@remnic/core 9.65.1 → 9.65.3

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 (576) hide show
  1. package/dist/access-admin-ops-surface.d.ts +44 -44
  2. package/dist/access-admin-ops-surface.js +36 -35
  3. package/dist/access-authorization-probe.d.ts +39 -40
  4. package/dist/access-authorization-probe.js +37 -36
  5. package/dist/access-boundary.d.ts +41 -185
  6. package/dist/access-boundary.js +36 -35
  7. package/dist/access-cli.js +110 -107
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +3 -1
  10. package/dist/access-extraction-force-flush.d.ts +25 -25
  11. package/dist/access-extraction-force-flush.js +36 -35
  12. package/dist/access-health-types.d.ts +3 -1
  13. package/dist/access-http-lcm-compaction.d.ts +39 -39
  14. package/dist/access-http-lifecycle-flush.d.ts +40 -41
  15. package/dist/access-http-offline-stream.d.ts +25 -25
  16. package/dist/access-http-query.d.ts +4 -2
  17. package/dist/access-http-query.js +38 -37
  18. package/dist/access-http.d.ts +51 -44
  19. package/dist/access-http.js +57 -56
  20. package/dist/access-identity-continuity-surface.d.ts +12 -12
  21. package/dist/access-identity-continuity-surface.js +36 -35
  22. package/dist/access-lcm-surface.d.ts +27 -27
  23. package/dist/access-lcm-surface.js +36 -35
  24. package/dist/access-mcp-admin-tools.d.ts +9 -1
  25. package/dist/access-mcp-admin-tools.js +3 -1
  26. package/dist/access-mcp-output-schemas.js +1 -1
  27. package/dist/access-mcp.d.ts +39 -39
  28. package/dist/access-mcp.js +50 -47
  29. package/dist/access-memory-search-fanout.d.ts +4 -2
  30. package/dist/{access-namespace-preflight-BKUnKsBv.d.ts → access-namespace-preflight-B7Usyz-K.d.ts} +1 -1
  31. package/dist/access-namespace-preflight.d.ts +5 -3
  32. package/dist/access-namespace-preflight.js +36 -35
  33. package/dist/access-observe-write-surface.d.ts +39 -39
  34. package/dist/access-observe-write-surface.js +36 -35
  35. package/dist/access-offline-manifest.d.ts +12 -12
  36. package/dist/access-offline-manifest.js +5 -5
  37. package/dist/access-operations-batch.js +41 -40
  38. package/dist/access-operations.d.ts +46 -47
  39. package/dist/access-operations.js +44 -43
  40. package/dist/access-recall-concurrency.d.ts +40 -40
  41. package/dist/access-recall-concurrency.js +36 -35
  42. package/dist/access-recall-response.d.ts +24 -24
  43. package/dist/access-recall-response.js +36 -35
  44. package/dist/access-recall-surface.d.ts +24 -24
  45. package/dist/access-recall-surface.js +36 -35
  46. package/dist/access-schema.d.ts +139 -139
  47. package/dist/access-schema.js +3 -3
  48. package/dist/{access-service-B1Lbb-nQ.d.ts → access-service-DkaIG3n8.d.ts} +688 -140
  49. package/dist/access-service-helpers.d.ts +40 -40
  50. package/dist/access-service.d.ts +47 -47
  51. package/dist/access-service.js +36 -35
  52. package/dist/access-surface-catalog.d.ts +41 -42
  53. package/dist/access-surface-catalog.js +44 -37
  54. package/dist/access-surface-catalog.js.map +1 -1
  55. package/dist/access-wearables-meetings-surface.d.ts +5 -3
  56. package/dist/action-confidence.d.ts +3 -1
  57. package/dist/active-memory-bridge.d.ts +3 -1
  58. package/dist/active-recall.d.ts +3 -1
  59. package/dist/active-recall.js +11 -1
  60. package/dist/active-recall.js.map +1 -1
  61. package/dist/adapters/index.js +4 -4
  62. package/dist/adapters/registry.js +2 -2
  63. package/dist/ambient-provenance.d.ts +3 -1
  64. package/dist/artifact-search.d.ts +3 -1
  65. package/dist/{auto-sync-5L7EUZ27.js → auto-sync-H64ZCNIR.js} +13 -5
  66. package/dist/{auto-sync-5L7EUZ27.js.map → auto-sync-H64ZCNIR.js.map} +1 -1
  67. package/dist/behavior-learner.d.ts +3 -1
  68. package/dist/behavior-signals.d.ts +3 -1
  69. package/dist/bootstrap.d.ts +12 -12
  70. package/dist/briefing-window.d.ts +4 -2
  71. package/dist/briefing.d.ts +4 -2
  72. package/dist/briefing.js +16 -15
  73. package/dist/buffer-surprise-report.d.ts +3 -1
  74. package/dist/buffer-turn-helpers.d.ts +3 -1
  75. package/dist/buffer.d.ts +4 -2
  76. package/dist/buffer.js +4 -4
  77. package/dist/bulk-import/index.d.ts +5 -3
  78. package/dist/calibration.d.ts +3 -1
  79. package/dist/calibration.js +1 -1
  80. package/dist/capabilities.d.ts +3 -1
  81. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
  82. package/dist/{catalog-DjVhJoRM.d.ts → catalog-CX2BZEJh.d.ts} +1 -1
  83. package/dist/causal-behavior.d.ts +1 -1
  84. package/dist/causal-consolidation.d.ts +3 -1
  85. package/dist/causal-consolidation.js +20 -19
  86. package/dist/causal-consolidation.js.map +1 -1
  87. package/dist/causal-trajectory-graph.d.ts +1 -1
  88. package/dist/{chunk-MIBKEW7A.js → chunk-2VXWFYJE.js} +3 -3
  89. package/dist/{chunk-3YTTAGPB.js → chunk-3DVBKTSO.js} +2 -2
  90. package/dist/{chunk-EIR5VLIH.js → chunk-4K7IW3F7.js} +2 -2
  91. package/dist/chunk-4K7IW3F7.js.map +1 -0
  92. package/dist/{chunk-JTSVMJHV.js → chunk-4XDGYCZI.js} +3 -3
  93. package/dist/chunk-573TEZCD.js +88 -0
  94. package/dist/chunk-573TEZCD.js.map +1 -0
  95. package/dist/{chunk-HQSBYI5X.js → chunk-57HVIG5U.js} +2 -2
  96. package/dist/{chunk-PMVPCZJZ.js → chunk-6433HV72.js} +2 -2
  97. package/dist/{chunk-N6TRHP72.js → chunk-6TAX66IA.js} +2 -2
  98. package/dist/{chunk-AGKIG3YA.js → chunk-6VALIZKG.js} +2 -2
  99. package/dist/{chunk-YQ3CBLL4.js → chunk-76PL4XLG.js} +512 -8
  100. package/dist/chunk-76PL4XLG.js.map +1 -0
  101. package/dist/{chunk-4NZHHGVL.js → chunk-7BDZTALN.js} +4 -1
  102. package/dist/chunk-7BDZTALN.js.map +1 -0
  103. package/dist/{chunk-NS5ETDYD.js → chunk-7BEPVIH3.js} +3 -3
  104. package/dist/{chunk-JG22O53B.js → chunk-7CBKAQIG.js} +2 -1
  105. package/dist/chunk-7CBKAQIG.js.map +1 -0
  106. package/dist/{chunk-LYIZXQYY.js → chunk-7KFIMGMP.js} +2 -2
  107. package/dist/{chunk-LWVO2QZV.js → chunk-7QOO4LGC.js} +56 -56
  108. package/dist/chunk-AAXJNINV.js +55 -0
  109. package/dist/chunk-AAXJNINV.js.map +1 -0
  110. package/dist/{chunk-56BSXSHC.js → chunk-AB3A7EFH.js} +31 -2
  111. package/dist/{chunk-56BSXSHC.js.map → chunk-AB3A7EFH.js.map} +1 -1
  112. package/dist/{chunk-CCTVAVTT.js → chunk-AUO2LJ3K.js} +2 -2
  113. package/dist/{chunk-ALCJRQ72.js → chunk-AYDDB3XI.js} +2 -2
  114. package/dist/{chunk-3TMYV3LP.js → chunk-AYYGRVRP.js} +5 -5
  115. package/dist/{chunk-W6TSGWYS.js → chunk-AZAA5DNP.js} +2 -2
  116. package/dist/{chunk-WTOE7CW4.js → chunk-BKYPJUQL.js} +122 -16
  117. package/dist/chunk-BKYPJUQL.js.map +1 -0
  118. package/dist/{chunk-6JJT5AKI.js → chunk-BQUEAVNW.js} +2 -2
  119. package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
  120. package/dist/{chunk-CEH2AFXG.js → chunk-C24UZSFW.js} +6 -6
  121. package/dist/{chunk-ZPN7W3OP.js → chunk-CDUUDBWJ.js} +3 -3
  122. package/dist/{chunk-35NN3ZFA.js → chunk-CTVWELNK.js} +21 -3
  123. package/dist/chunk-CTVWELNK.js.map +1 -0
  124. package/dist/{chunk-Y23B2QXP.js → chunk-D27J626P.js} +2 -2
  125. package/dist/{chunk-2572MRP2.js → chunk-DHTQP334.js} +2 -2
  126. package/dist/{chunk-HJQZQUPC.js → chunk-DJZWNKFO.js} +5 -5
  127. package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
  128. package/dist/{chunk-VJ6ECBIP.js → chunk-E4MVQQVX.js} +2 -2
  129. package/dist/{chunk-SYJ6EKKE.js → chunk-EIVIB73I.js} +2 -2
  130. package/dist/{chunk-HUNSEO5U.js → chunk-EV3YFLCB.js} +2 -2
  131. package/dist/{chunk-GEULB2VI.js → chunk-FC7TIRFS.js} +21 -1
  132. package/dist/chunk-FC7TIRFS.js.map +1 -0
  133. package/dist/{chunk-VPGRXEAB.js → chunk-G57LQRP6.js} +2 -2
  134. package/dist/{chunk-BC4QD3FM.js → chunk-GN55KU2P.js} +2 -2
  135. package/dist/{chunk-4W6INNXO.js → chunk-GUXS322H.js} +2 -2
  136. package/dist/{chunk-DBXZZIDU.js → chunk-H5FW4S5Q.js} +434 -693
  137. package/dist/chunk-H5FW4S5Q.js.map +1 -0
  138. package/dist/chunk-I32NKXE2.js +879 -0
  139. package/dist/chunk-I32NKXE2.js.map +1 -0
  140. package/dist/{chunk-3MADV4YC.js → chunk-IQSC3V2E.js} +2 -2
  141. package/dist/{chunk-UYCIS6V5.js → chunk-JCWY73FK.js} +2 -2
  142. package/dist/{chunk-T42L3S6A.js → chunk-LBWQ65SX.js} +4 -4
  143. package/dist/{chunk-MSTNSVXI.js → chunk-LDBFXD4F.js} +2 -1
  144. package/dist/chunk-LDBFXD4F.js.map +1 -0
  145. package/dist/{chunk-CEQF6L5K.js → chunk-LUNJ3WFO.js} +9 -7
  146. package/dist/chunk-LUNJ3WFO.js.map +1 -0
  147. package/dist/{chunk-256FBCVX.js → chunk-M4AHBM72.js} +7 -7
  148. package/dist/{chunk-YEQEGSJA.js → chunk-MBDJJTAT.js} +3 -3
  149. package/dist/{chunk-IAY7YBXS.js → chunk-MRTUN665.js} +2 -2
  150. package/dist/{chunk-JFJ3MHGV.js → chunk-NXKJHSDN.js} +1 -1
  151. package/dist/chunk-NXKJHSDN.js.map +1 -0
  152. package/dist/{chunk-R3AAOKR2.js → chunk-NZWEEALH.js} +2 -2
  153. package/dist/{chunk-I2HTKOOP.js → chunk-ODZG724P.js} +2 -2
  154. package/dist/{chunk-7QFBLYFP.js → chunk-OJD4WS2E.js} +3 -3
  155. package/dist/{chunk-CUS6S7PN.js → chunk-OLWTCWQ2.js} +9 -9
  156. package/dist/chunk-OLWTCWQ2.js.map +1 -0
  157. package/dist/{chunk-53ENM6F6.js → chunk-P4DHENRE.js} +2 -2
  158. package/dist/{chunk-DEFI2QBT.js → chunk-PAYGC3BD.js} +52 -22
  159. package/dist/chunk-PAYGC3BD.js.map +1 -0
  160. package/dist/{chunk-KPBLJCCV.js → chunk-PDVQ5JU3.js} +2 -2
  161. package/dist/{chunk-7BY7V4YX.js → chunk-Q4WONDMJ.js} +4 -3
  162. package/dist/{chunk-7BY7V4YX.js.map → chunk-Q4WONDMJ.js.map} +1 -1
  163. package/dist/{chunk-ESCQ6LY7.js → chunk-QFMO32TO.js} +3 -3
  164. package/dist/{chunk-HQSPXTQO.js → chunk-QXIQPCCN.js} +1 -1
  165. package/dist/{chunk-CFRBTATE.js → chunk-R47WINCY.js} +3 -3
  166. package/dist/{chunk-G72IPMR7.js → chunk-R4OCGPSH.js} +2 -2
  167. package/dist/{chunk-LCU5R6TQ.js → chunk-RAIUTAZZ.js} +22 -3
  168. package/dist/chunk-RAIUTAZZ.js.map +1 -0
  169. package/dist/chunk-RIAM7DND.js +167 -0
  170. package/dist/chunk-RIAM7DND.js.map +1 -0
  171. package/dist/{chunk-VZVP2W4O.js → chunk-RK4WXUI2.js} +2 -2
  172. package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
  173. package/dist/{chunk-6L27N6YI.js → chunk-S7Q5CM7E.js} +2 -2
  174. package/dist/{chunk-CTQRPANJ.js → chunk-SVSRPG6M.js} +2 -2
  175. package/dist/{chunk-GXWDWOWP.js → chunk-TDKSCV62.js} +2 -2
  176. package/dist/{chunk-S2VBSTTA.js → chunk-THG4GYIE.js} +2 -2
  177. package/dist/{chunk-IXRC7EQG.js → chunk-TR7DGXGI.js} +2 -2
  178. package/dist/{chunk-63FHSH7E.js → chunk-TYUS5TLG.js} +4 -4
  179. package/dist/{chunk-7PWWGYGO.js → chunk-URHCUXKI.js} +2 -2
  180. package/dist/{chunk-Z54TXZ2F.js → chunk-VA5KMSAE.js} +16 -7
  181. package/dist/chunk-VA5KMSAE.js.map +1 -0
  182. package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
  183. package/dist/{chunk-MUJ4QFUQ.js → chunk-W4BMEGQA.js} +4 -4
  184. package/dist/{chunk-5HK3CJAR.js → chunk-W675UJCZ.js} +2 -2
  185. package/dist/{chunk-3PXVYJMC.js → chunk-WN5FSGLE.js} +2077 -215
  186. package/dist/chunk-WN5FSGLE.js.map +1 -0
  187. package/dist/{chunk-3RHFGGI5.js → chunk-YF6UHWOV.js} +30 -10
  188. package/dist/chunk-YF6UHWOV.js.map +1 -0
  189. package/dist/{chunk-X5SDZMO7.js → chunk-YHCBJULX.js} +2 -2
  190. package/dist/{chunk-5UYSCYR7.js → chunk-Z4RPXHJH.js} +4 -4
  191. package/dist/{cli-Pulnz-qm.d.ts → cli-ChKeYMZv.d.ts} +5 -5
  192. package/dist/cli.d.ts +25 -25
  193. package/dist/cli.js +81 -78
  194. package/dist/coding/pre-action-gate.d.ts +2 -60
  195. package/dist/compounding/engine.d.ts +4 -2
  196. package/dist/compounding/engine.js +17 -16
  197. package/dist/compounding/preference-consolidator.d.ts +3 -1
  198. package/dist/compression-optimizer.d.ts +3 -1
  199. package/dist/config.d.ts +3 -1
  200. package/dist/config.js +11 -1
  201. package/dist/connectors/codex-materialize-runner.d.ts +3 -1
  202. package/dist/connectors/codex-materialize-runner.js +16 -15
  203. package/dist/connectors/codex-materialize.d.ts +3 -1
  204. package/dist/connectors/index.d.ts +3 -1
  205. package/dist/connectors/index.js +16 -15
  206. package/dist/consolidation-provenance-check.d.ts +4 -2
  207. package/dist/consolidation-undo.d.ts +4 -2
  208. package/dist/contradiction/index.d.ts +10 -270
  209. package/dist/contradiction/index.js +20 -7
  210. package/dist/{contradiction-review-QKJH5DKD.js → contradiction-review-WRVLRWHS.js} +6 -2
  211. package/dist/{contradiction-scan-VOTQRRSX.js → contradiction-scan-AKUWPX5N.js} +5 -3
  212. package/dist/converge-config.d.ts +3 -1
  213. package/dist/convergence-refresh.d.ts +4 -2
  214. package/dist/convergence-refresh.js +18 -17
  215. package/dist/conversation-index/backend.d.ts +3 -1
  216. package/dist/conversation-index/chunker.d.ts +3 -1
  217. package/dist/conversation-index/faiss-adapter.d.ts +3 -1
  218. package/dist/conversation-index/indexer.d.ts +3 -1
  219. package/dist/conversation-index/search.d.ts +3 -1
  220. package/dist/corpus-watermark.d.ts +3 -1
  221. package/dist/corpus-watermark.js +18 -17
  222. package/dist/cross-lingual-recall.d.ts +3 -1
  223. package/dist/day-summary.d.ts +3 -1
  224. package/dist/delinearize.d.ts +3 -1
  225. package/dist/dependency-propagation-config.d.ts +3 -1
  226. package/dist/{dependency-propagation-delivery-Co17gxYb.d.ts → dependency-propagation-delivery-B8ZMBBCY.d.ts} +1 -1
  227. package/dist/direct-answer-wiring.d.ts +3 -1
  228. package/dist/direct-answer.d.ts +3 -1
  229. package/dist/embedding-fallback.d.ts +3 -1
  230. package/dist/enrichment/index.d.ts +3 -1
  231. package/dist/entity-origin-fields.d.ts +3 -1
  232. package/dist/entity-retrieval.d.ts +4 -2
  233. package/dist/entity-retrieval.js +16 -15
  234. package/dist/entity-schema.d.ts +3 -1
  235. package/dist/episodic-context.d.ts +3 -1
  236. package/dist/explicit-capture.d.ts +12 -12
  237. package/dist/explicit-capture.js +7 -6
  238. package/dist/external-wiki-access.d.ts +41 -42
  239. package/dist/external-wiki-access.js +37 -36
  240. package/dist/external-wiki-collection-registration.d.ts +3 -1
  241. package/dist/external-wiki-collection.d.ts +3 -1
  242. package/dist/external-wiki-mcp-tools.d.ts +40 -40
  243. package/dist/extraction-error-classification.d.ts +3 -1
  244. package/dist/extraction-faithfulness.d.ts +3 -1
  245. package/dist/extraction-judge-telemetry.d.ts +3 -1
  246. package/dist/extraction-judge-training.d.ts +3 -1
  247. package/dist/extraction-judge.d.ts +3 -1
  248. package/dist/extraction-judge.js +2 -2
  249. package/dist/extraction-liveness.d.ts +3 -1
  250. package/dist/extraction-normalization.d.ts +3 -1
  251. package/dist/extraction-normalization.js +2 -2
  252. package/dist/extraction-prompt.d.ts +4 -2
  253. package/dist/extraction-prompt.js +1 -1
  254. package/dist/extraction-source-grounding-rules.d.ts +3 -1
  255. package/dist/extraction-source-grounding.d.ts +3 -1
  256. package/dist/extraction.d.ts +3 -1
  257. package/dist/extraction.js +22 -21
  258. package/dist/fallback-llm.d.ts +3 -1
  259. package/dist/graph-dashboard-diff.d.ts +3 -1
  260. package/dist/graph-dashboard-key.d.ts +3 -1
  261. package/dist/graph-dashboard-parser.d.ts +3 -1
  262. package/dist/graph-edge-reinforcement.d.ts +3 -1
  263. package/dist/graph-path-reconstruction.d.ts +3 -1
  264. package/dist/graph-path-scoring.d.ts +3 -1
  265. package/dist/graph-snapshot.d.ts +3 -1
  266. package/dist/graph.d.ts +3 -1
  267. package/dist/harmonic-retrieval.js +1 -1
  268. package/dist/importance.d.ts +3 -1
  269. package/dist/importers/index.d.ts +3 -1
  270. package/dist/in-flight-reads.d.ts +3 -1
  271. package/dist/index-CexDrJzC.d.ts +284 -0
  272. package/dist/index.d.ts +946 -707
  273. package/dist/index.js +253 -151
  274. package/dist/intent.d.ts +3 -1
  275. package/dist/lcm/engine.d.ts +3 -1
  276. package/dist/lcm/engine.js +3 -3
  277. package/dist/lcm/index.d.ts +3 -1
  278. package/dist/lcm/index.js +6 -6
  279. package/dist/lcm/tools.d.ts +3 -1
  280. package/dist/lifecycle.d.ts +3 -1
  281. package/dist/live-connectors-runner.d.ts +3 -1
  282. package/dist/local-llm.d.ts +3 -1
  283. package/dist/local-model-endpoint.d.ts +3 -1
  284. package/dist/maintenance/memory-governance.d.ts +3 -1
  285. package/dist/maintenance/memory-governance.js +16 -15
  286. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +4 -2
  287. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -15
  288. package/dist/maintenance/rebuild-memory-projection.d.ts +4 -2
  289. package/dist/maintenance/rebuild-memory-projection.js +17 -16
  290. package/dist/{maintenance-DiSLtVN7.d.ts → maintenance-nkdtSrVr.d.ts} +3 -3
  291. package/dist/mcp-memory-inspector-app.d.ts +37 -37
  292. package/dist/mcp-read-only-tools.js +1 -1
  293. package/dist/memory-action-policy.d.ts +3 -1
  294. package/dist/memory-cache.d.ts +3 -1
  295. package/dist/memory-lifecycle-ledger-utils.d.ts +3 -1
  296. package/dist/memory-projection-store.d.ts +3 -1
  297. package/dist/memory-provenance.d.ts +3 -1
  298. package/dist/memory-snapshot.d.ts +3 -1
  299. package/dist/memory-subject-cli.d.ts +177 -0
  300. package/dist/memory-subject-cli.js +16 -0
  301. package/dist/memory-subject.d.ts +128 -0
  302. package/dist/memory-subject.js +44 -0
  303. package/dist/memory-subject.js.map +1 -0
  304. package/dist/memory-worth-outcomes.d.ts +7 -4
  305. package/dist/memory-worth-outcomes.js +1 -1
  306. package/dist/models-json.d.ts +3 -1
  307. package/dist/namespaces/migrate.d.ts +5 -3
  308. package/dist/namespaces/migrate.js +17 -16
  309. package/dist/namespaces/principal.d.ts +3 -1
  310. package/dist/namespaces/search.d.ts +3 -1
  311. package/dist/namespaces/search.js +6 -6
  312. package/dist/namespaces/storage.d.ts +5 -3
  313. package/dist/namespaces/storage.js +16 -15
  314. package/dist/native-knowledge.d.ts +3 -1
  315. package/dist/offline-sync-impression-drain.d.ts +3 -1
  316. package/dist/operator-doctor-corpus.d.ts +3 -1
  317. package/dist/operator-doctor-corpus.js +19 -18
  318. package/dist/operator-doctor-replica.d.ts +3 -1
  319. package/dist/operator-toolkit.d.ts +5 -3
  320. package/dist/operator-toolkit.js +29 -24
  321. package/dist/orchestration/compression-guideline-coordinator.d.ts +4 -2
  322. package/dist/orchestration/maintenance.d.ts +6 -4
  323. package/dist/orchestration/maintenance.js +22 -21
  324. package/dist/{orchestrator-DzCaxNS4.d.ts → orchestrator-Bvq1-RQs.d.ts} +23 -9
  325. package/dist/orchestrator.d.ts +12 -12
  326. package/dist/orchestrator.js +111 -108
  327. package/dist/patterns-cli.d.ts +3 -1
  328. package/dist/{pipeline-HJ8DKbFl.d.ts → pipeline-C8vfIiTX.d.ts} +1 -1
  329. package/dist/policy-runtime.d.ts +3 -1
  330. package/dist/proactive-contention.d.ts +3 -1
  331. package/dist/provenance.d.ts +3 -1
  332. package/dist/{public-http-DwXauTX3.d.ts → public-http-Cy0aYbys.d.ts} +1 -1
  333. package/dist/{qmd-BzxluoLt.d.ts → qmd-B9p1SZTZ.d.ts} +1 -1
  334. package/dist/qmd-preflight.d.ts +4 -2
  335. package/dist/qmd-recall-cache.d.ts +3 -1
  336. package/dist/qmd.d.ts +4 -2
  337. package/dist/qmd.js +4 -4
  338. package/dist/recall-concurrency-config.d.ts +3 -1
  339. package/dist/recall-disclosure-escalation.d.ts +3 -1
  340. package/dist/recall-explain-renderer.d.ts +3 -1
  341. package/dist/recall-explain-renderer.js +3 -3
  342. package/dist/recall-memory-map.d.ts +3 -1
  343. package/dist/recall-planner-llm.d.ts +3 -1
  344. package/dist/recall-state.d.ts +3 -1
  345. package/dist/recall-tag-filter.d.ts +3 -1
  346. package/dist/recall-timings.d.ts +3 -1
  347. package/dist/recall-xray-cli.d.ts +3 -1
  348. package/dist/recall-xray-cli.js +4 -4
  349. package/dist/recall-xray-renderer.d.ts +3 -1
  350. package/dist/recall-xray-renderer.js +3 -3
  351. package/dist/recall-xray.d.ts +3 -1
  352. package/dist/recall-xray.js +2 -2
  353. package/dist/reconcile/cursor.d.ts +3 -1
  354. package/dist/reconcile/manifest.d.ts +3 -1
  355. package/dist/reconcile/manifest.js +3 -3
  356. package/dist/reconcile/plan.d.ts +3 -1
  357. package/dist/replay/normalizers/chatgpt.d.ts +3 -1
  358. package/dist/replay/normalizers/claude.d.ts +3 -1
  359. package/dist/replay/normalizers/openclaw.d.ts +3 -1
  360. package/dist/replay/normalizers/shared.d.ts +3 -1
  361. package/dist/replay/runner.d.ts +3 -1
  362. package/dist/replay/types.d.ts +3 -1
  363. package/dist/replica-divergence.d.ts +3 -1
  364. package/dist/replica-peers-config.d.ts +3 -1
  365. package/dist/resolution-4552BNRV.js +36 -0
  366. package/dist/resolution-4552BNRV.js.map +1 -0
  367. package/dist/resolve-auth-token.d.ts +3 -1
  368. package/dist/resume-bundles.js +9 -2
  369. package/dist/retrieval-agents.d.ts +4 -2
  370. package/dist/retrieval-tiers.d.ts +3 -1
  371. package/dist/routing/engine.d.ts +3 -1
  372. package/dist/routing/store.d.ts +3 -1
  373. package/dist/salvage-envelope.d.ts +3 -1
  374. package/dist/salvage-envelope.js +10 -2
  375. package/dist/schemas.d.ts +130 -116
  376. package/dist/schemas.js +1 -1
  377. package/dist/{scope-profiles-CEMZz0t5.d.ts → scope-profiles-DLrRxFWR.d.ts} +1 -1
  378. package/dist/search/embed-helper.d.ts +3 -1
  379. package/dist/search/factory.d.ts +3 -1
  380. package/dist/search/factory.js +5 -5
  381. package/dist/search/index.d.ts +3 -1
  382. package/dist/search/index.js +9 -9
  383. package/dist/search/lancedb-backend.d.ts +3 -1
  384. package/dist/search/meilisearch-backend.d.ts +3 -1
  385. package/dist/search/noop-backend.d.ts +3 -1
  386. package/dist/search/orama-backend.d.ts +3 -1
  387. package/dist/search/port.d.ts +3 -1
  388. package/dist/search/remote-backend.d.ts +3 -1
  389. package/dist/{semantic-TddhF0y7.d.ts → semantic-BalR6EXU.d.ts} +1 -1
  390. package/dist/{semantic-consolidation-D9dYj6vu.d.ts → semantic-consolidation-DlN6xe20.d.ts} +1 -1
  391. package/dist/semantic-consolidation.d.ts +4 -2
  392. package/dist/semantic-consolidation.js +17 -16
  393. package/dist/semantic-rule-promotion.js +16 -15
  394. package/dist/semantic-rule-verifier.d.ts +3 -1
  395. package/dist/semantic-rule-verifier.js +16 -15
  396. package/dist/{service-_qgST_0y.d.ts → service-GkYyVfm9.d.ts} +2 -2
  397. package/dist/session-observer-bands.d.ts +3 -1
  398. package/dist/session-observer-state.d.ts +3 -1
  399. package/dist/shared-context/manager.d.ts +13 -11
  400. package/dist/signal.d.ts +3 -1
  401. package/dist/source-agent-qualifier.d.ts +3 -1
  402. package/dist/source-agent-qualifier.js +18 -17
  403. package/dist/{storage-B9lbNTYE.d.ts → storage-BIDzuKIn.d.ts} +3 -2
  404. package/dist/storage.d.ts +4 -2
  405. package/dist/storage.js +18 -17
  406. package/dist/subject-config.d.ts +40 -0
  407. package/dist/subject-config.js +20 -0
  408. package/dist/subject-config.js.map +1 -0
  409. package/dist/summarizer.d.ts +3 -1
  410. package/dist/summary-snapshot.d.ts +3 -1
  411. package/dist/support-passport/index.d.ts +43 -43
  412. package/dist/support-passport/index.js +39 -38
  413. package/dist/temporal-supersession.d.ts +4 -2
  414. package/dist/temporal-timeline-recall.d.ts +3 -1
  415. package/dist/temporal-validity.d.ts +3 -1
  416. package/dist/threading.d.ts +3 -1
  417. package/dist/tier-migration.d.ts +4 -2
  418. package/dist/tier-routing.d.ts +3 -1
  419. package/dist/topics.d.ts +3 -1
  420. package/dist/transcript.d.ts +3 -1
  421. package/dist/transfer/backup.js +2 -2
  422. package/dist/transfer/capsule-export.js +2 -2
  423. package/dist/transfer/capsule-import.js +2 -2
  424. package/dist/transfer/types.d.ts +86 -86
  425. package/dist/trust-score-stage.d.ts +3 -1
  426. package/dist/trust-score.d.ts +3 -1
  427. package/dist/{types-BrEzuxPA.d.ts → types-BxAcOl5Q.d.ts} +360 -32
  428. package/dist/types.d.ts +3 -1
  429. package/dist/types.js +1 -1
  430. package/dist/utility-runtime.d.ts +3 -1
  431. package/dist/verified-recall.js +16 -15
  432. package/dist/who-knows-cli.d.ts +40 -40
  433. package/dist/who-knows-cli.js +17 -16
  434. package/dist/who-knows.d.ts +42 -42
  435. package/dist/who-knows.js +16 -15
  436. package/dist/write-envelope.d.ts +7 -2
  437. package/dist/write-envelope.js +10 -1
  438. package/package.json +2 -2
  439. package/scripts/build-with-heap.mjs +1 -1
  440. package/src/access-boundary.ts +6 -0
  441. package/src/access-http.ts +6 -5
  442. package/src/access-mcp-admin-tools.ts +38 -0
  443. package/src/access-mcp-output-schemas.ts +20 -0
  444. package/src/access-mcp.ts +8 -8
  445. package/src/access-operations-batch.ts +13 -0
  446. package/src/access-service.ts +112 -0
  447. package/src/access-surface-catalog.test.ts +24 -0
  448. package/src/access-surface-catalog.ts +6 -0
  449. package/src/coding/action-gate.test.ts +341 -0
  450. package/src/coding/action-gate.ts +556 -0
  451. package/src/config.ts +15 -17
  452. package/src/contradiction/contradiction-review.ts +50 -4
  453. package/src/contradiction/contradiction-scan.ts +14 -3
  454. package/src/contradiction/resolution.ts +50 -2
  455. package/src/extraction-prompt.ts +1 -0
  456. package/src/extraction.ts +4 -1
  457. package/src/index.ts +9 -9
  458. package/src/mcp-read-only-tools.ts +1 -0
  459. package/src/memory-subject-cli.ts +135 -0
  460. package/src/memory-subject.test.ts +48 -0
  461. package/src/memory-subject.ts +314 -0
  462. package/src/memory-worth-outcomes.test.ts +6 -2
  463. package/src/memory-worth-outcomes.ts +11 -7
  464. package/src/operator-toolkit.ts +1 -1
  465. package/src/orchestration/extraction-persist.ts +48 -48
  466. package/src/orchestration/recall-internal.ts +6 -5
  467. package/src/orchestration/recall-rerank-coordinator.ts +123 -4
  468. package/src/orchestration/recall-result-formatter.ts +6 -2
  469. package/src/orchestration/recall-search-pipeline.ts +14 -1
  470. package/src/preferences/drift-config.ts +118 -0
  471. package/src/preferences/drift-recall.ts +133 -0
  472. package/src/preferences/drift-types.ts +87 -0
  473. package/src/preferences/index.ts +12 -0
  474. package/src/preferences/preference-drift.test.ts +690 -0
  475. package/src/preferences/preference-drift.ts +724 -0
  476. package/src/procedural/library-maintenance.test.ts +582 -0
  477. package/src/procedural/library-maintenance.ts +546 -0
  478. package/src/procedural/maintenance-config.ts +78 -0
  479. package/src/procedural/procedure-recall.ts +29 -1
  480. package/src/procedural/procedure-stats.ts +20 -0
  481. package/src/review/review-deck-access.test.ts +325 -0
  482. package/src/review/review-deck-http-base.ts +133 -0
  483. package/src/review/review-deck-mutation.test.ts +417 -0
  484. package/src/review/review-deck-mutation.ts +677 -0
  485. package/src/review/review-deck-snapshot.ts +196 -0
  486. package/src/review/review-deck-surface.ts +117 -0
  487. package/src/review/review-deck.test.ts +347 -0
  488. package/src/review/review-deck.ts +311 -0
  489. package/src/schemas.ts +7 -0
  490. package/src/spaces/index.ts +38 -2
  491. package/src/storage.ts +10 -8
  492. package/src/subject-config.ts +80 -0
  493. package/src/types.ts +33 -32
  494. package/src/write-envelope.test.ts +14 -0
  495. package/src/write-envelope.ts +24 -3
  496. package/dist/chunk-35NN3ZFA.js.map +0 -1
  497. package/dist/chunk-3PXVYJMC.js.map +0 -1
  498. package/dist/chunk-3RHFGGI5.js.map +0 -1
  499. package/dist/chunk-4NZHHGVL.js.map +0 -1
  500. package/dist/chunk-CEQF6L5K.js.map +0 -1
  501. package/dist/chunk-CUS6S7PN.js.map +0 -1
  502. package/dist/chunk-DBXZZIDU.js.map +0 -1
  503. package/dist/chunk-DEFI2QBT.js.map +0 -1
  504. package/dist/chunk-EIR5VLIH.js.map +0 -1
  505. package/dist/chunk-GEULB2VI.js.map +0 -1
  506. package/dist/chunk-JFJ3MHGV.js.map +0 -1
  507. package/dist/chunk-JG22O53B.js.map +0 -1
  508. package/dist/chunk-LCU5R6TQ.js.map +0 -1
  509. package/dist/chunk-MDVBCPOS.js +0 -402
  510. package/dist/chunk-MDVBCPOS.js.map +0 -1
  511. package/dist/chunk-MSTNSVXI.js.map +0 -1
  512. package/dist/chunk-WTOE7CW4.js.map +0 -1
  513. package/dist/chunk-YQ3CBLL4.js.map +0 -1
  514. package/dist/chunk-Z54TXZ2F.js.map +0 -1
  515. package/dist/resolution-DKMBPXHI.js +0 -18
  516. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
  517. /package/dist/{chunk-MIBKEW7A.js.map → chunk-2VXWFYJE.js.map} +0 -0
  518. /package/dist/{chunk-3YTTAGPB.js.map → chunk-3DVBKTSO.js.map} +0 -0
  519. /package/dist/{chunk-JTSVMJHV.js.map → chunk-4XDGYCZI.js.map} +0 -0
  520. /package/dist/{chunk-HQSBYI5X.js.map → chunk-57HVIG5U.js.map} +0 -0
  521. /package/dist/{chunk-PMVPCZJZ.js.map → chunk-6433HV72.js.map} +0 -0
  522. /package/dist/{chunk-N6TRHP72.js.map → chunk-6TAX66IA.js.map} +0 -0
  523. /package/dist/{chunk-AGKIG3YA.js.map → chunk-6VALIZKG.js.map} +0 -0
  524. /package/dist/{chunk-NS5ETDYD.js.map → chunk-7BEPVIH3.js.map} +0 -0
  525. /package/dist/{chunk-LYIZXQYY.js.map → chunk-7KFIMGMP.js.map} +0 -0
  526. /package/dist/{chunk-LWVO2QZV.js.map → chunk-7QOO4LGC.js.map} +0 -0
  527. /package/dist/{chunk-CCTVAVTT.js.map → chunk-AUO2LJ3K.js.map} +0 -0
  528. /package/dist/{chunk-ALCJRQ72.js.map → chunk-AYDDB3XI.js.map} +0 -0
  529. /package/dist/{chunk-3TMYV3LP.js.map → chunk-AYYGRVRP.js.map} +0 -0
  530. /package/dist/{chunk-W6TSGWYS.js.map → chunk-AZAA5DNP.js.map} +0 -0
  531. /package/dist/{chunk-6JJT5AKI.js.map → chunk-BQUEAVNW.js.map} +0 -0
  532. /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
  533. /package/dist/{chunk-CEH2AFXG.js.map → chunk-C24UZSFW.js.map} +0 -0
  534. /package/dist/{chunk-ZPN7W3OP.js.map → chunk-CDUUDBWJ.js.map} +0 -0
  535. /package/dist/{chunk-Y23B2QXP.js.map → chunk-D27J626P.js.map} +0 -0
  536. /package/dist/{chunk-2572MRP2.js.map → chunk-DHTQP334.js.map} +0 -0
  537. /package/dist/{chunk-HJQZQUPC.js.map → chunk-DJZWNKFO.js.map} +0 -0
  538. /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
  539. /package/dist/{chunk-VJ6ECBIP.js.map → chunk-E4MVQQVX.js.map} +0 -0
  540. /package/dist/{chunk-SYJ6EKKE.js.map → chunk-EIVIB73I.js.map} +0 -0
  541. /package/dist/{chunk-HUNSEO5U.js.map → chunk-EV3YFLCB.js.map} +0 -0
  542. /package/dist/{chunk-VPGRXEAB.js.map → chunk-G57LQRP6.js.map} +0 -0
  543. /package/dist/{chunk-BC4QD3FM.js.map → chunk-GN55KU2P.js.map} +0 -0
  544. /package/dist/{chunk-4W6INNXO.js.map → chunk-GUXS322H.js.map} +0 -0
  545. /package/dist/{chunk-3MADV4YC.js.map → chunk-IQSC3V2E.js.map} +0 -0
  546. /package/dist/{chunk-UYCIS6V5.js.map → chunk-JCWY73FK.js.map} +0 -0
  547. /package/dist/{chunk-T42L3S6A.js.map → chunk-LBWQ65SX.js.map} +0 -0
  548. /package/dist/{chunk-256FBCVX.js.map → chunk-M4AHBM72.js.map} +0 -0
  549. /package/dist/{chunk-YEQEGSJA.js.map → chunk-MBDJJTAT.js.map} +0 -0
  550. /package/dist/{chunk-IAY7YBXS.js.map → chunk-MRTUN665.js.map} +0 -0
  551. /package/dist/{chunk-R3AAOKR2.js.map → chunk-NZWEEALH.js.map} +0 -0
  552. /package/dist/{chunk-I2HTKOOP.js.map → chunk-ODZG724P.js.map} +0 -0
  553. /package/dist/{chunk-7QFBLYFP.js.map → chunk-OJD4WS2E.js.map} +0 -0
  554. /package/dist/{chunk-53ENM6F6.js.map → chunk-P4DHENRE.js.map} +0 -0
  555. /package/dist/{chunk-KPBLJCCV.js.map → chunk-PDVQ5JU3.js.map} +0 -0
  556. /package/dist/{chunk-ESCQ6LY7.js.map → chunk-QFMO32TO.js.map} +0 -0
  557. /package/dist/{chunk-HQSPXTQO.js.map → chunk-QXIQPCCN.js.map} +0 -0
  558. /package/dist/{chunk-CFRBTATE.js.map → chunk-R47WINCY.js.map} +0 -0
  559. /package/dist/{chunk-G72IPMR7.js.map → chunk-R4OCGPSH.js.map} +0 -0
  560. /package/dist/{chunk-VZVP2W4O.js.map → chunk-RK4WXUI2.js.map} +0 -0
  561. /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
  562. /package/dist/{chunk-6L27N6YI.js.map → chunk-S7Q5CM7E.js.map} +0 -0
  563. /package/dist/{chunk-CTQRPANJ.js.map → chunk-SVSRPG6M.js.map} +0 -0
  564. /package/dist/{chunk-GXWDWOWP.js.map → chunk-TDKSCV62.js.map} +0 -0
  565. /package/dist/{chunk-S2VBSTTA.js.map → chunk-THG4GYIE.js.map} +0 -0
  566. /package/dist/{chunk-IXRC7EQG.js.map → chunk-TR7DGXGI.js.map} +0 -0
  567. /package/dist/{chunk-63FHSH7E.js.map → chunk-TYUS5TLG.js.map} +0 -0
  568. /package/dist/{chunk-7PWWGYGO.js.map → chunk-URHCUXKI.js.map} +0 -0
  569. /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
  570. /package/dist/{chunk-MUJ4QFUQ.js.map → chunk-W4BMEGQA.js.map} +0 -0
  571. /package/dist/{chunk-5HK3CJAR.js.map → chunk-W675UJCZ.js.map} +0 -0
  572. /package/dist/{chunk-X5SDZMO7.js.map → chunk-YHCBJULX.js.map} +0 -0
  573. /package/dist/{chunk-5UYSCYR7.js.map → chunk-Z4RPXHJH.js.map} +0 -0
  574. /package/dist/{contradiction-review-QKJH5DKD.js.map → contradiction-review-WRVLRWHS.js.map} +0 -0
  575. /package/dist/{contradiction-scan-VOTQRRSX.js.map → contradiction-scan-AKUWPX5N.js.map} +0 -0
  576. /package/dist/{resolution-DKMBPXHI.js.map → memory-subject-cli.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,19 +5,20 @@ export { resolveRemnicConfigRecord } from './config-record.js';
5
5
  export { ExternalWikiCatalog, ExternalWikiCatalogEntry, ExternalWikiCatalogLimits, ExternalWikiLayout, ExternalWikiPage, loadExternalWikiCatalog, parseExternalWikiCatalog, readExternalWikiPage, validateExternalWikiLayout } from './external-wiki.js';
6
6
  export { runExternalWikiCliCommand } from './external-wiki-cli.js';
7
7
  export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
8
- export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-DzCaxNS4.js';
8
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-Bvq1-RQs.js';
9
9
  export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
10
10
  export { searchWithGenericExclusion } from './access-memory-search-fanout.js';
11
11
  export { ModelCapabilities, ModelRegistry } from './model-registry.js';
12
- export { ACTIVE_STATUSES, ContradictionFilter, ContradictionJudgeBatchResult, ContradictionJudgeInput, ContradictionJudgeResult, ContradictionListResult, ContradictionVerdict, ResolutionResult, ResolutionVerb, ScanDependencies, ScanResult, computePairId, executeResolution, isCoolingDown, isValidResolutionVerb, judgeContradictionPairs, listPairs, readPair, resolvePair, runContradictionScan, writePair, writePairs } from './contradiction/index.js';
12
+ import { S as ScanStorageResolution, C as ContradictionPair$1 } from './index-CexDrJzC.js';
13
+ export { A as ACTIVE_STATUSES, a as ContradictionFilter, b as ContradictionJudgeBatchResult, c as ContradictionJudgeInput, d as ContradictionJudgeResult, e as ContradictionListResult, f as ContradictionVerdict, R as ResolutionResult, g as ResolutionVerb, h as ScanDependencies, i as ScanResult, j as computePairId, k as executeResolution, l as isCoolingDown, m as isValidResolutionVerb, n as judgeContradictionPairs, o as listPairs, r as readPair, p as resolvePair, q as runContradictionScan, w as writePair, s as writePairs } from './index-CexDrJzC.js';
13
14
  export { EvidencePackItem, EvidencePackOptions, EvidencePackSelectedItem, EvidencePackSelectionReceipt, buildEvidencePack } from './evidence-pack.js';
14
15
  export { ExplicitCueRecallEngine, ExplicitCueRecallOptions, ExplicitTurnReference, TrajectoryAnalysisLineReceipt, TrajectoryAnalysisRecallOptions, buildExplicitCueRecallSection, buildTrajectoryAnalysisRecallSection, collectBenchmarkAnchorCues, collectContentLexicalCues, collectExplicitTurnReferences, collectLexicalCues, collectQuestionSlotCues, collectStructuredPlanCues, collectTemporalLexicalCues, normalizeTurnExpansionEnd } from './explicit-cue-recall.js';
15
16
  export { TargetedFactRecallOptions, buildTargetedFactRecallSection, shouldRecallTargetedFactEvidence } from './targeted-fact-recall.js';
16
17
  export { FocusedListRecallOptions, buildFocusedListRecallSection, shouldRecallFocusedListEvidence } from './focused-list-recall.js';
17
18
  export { ResponseGuidanceRecallOptions, buildResponseGuidanceRecallSection, shouldRecallResponseGuidance } from './response-guidance-recall.js';
18
19
  export { EventOrderRecallOptions, buildEventOrderRecallSection } from './event-order-recall.js';
19
- import { S as StorageManager, a as MeetingRecordStore } from './storage-B9lbNTYE.js';
20
- 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-B9lbNTYE.js';
20
+ import { S as StorageManager, a as MeetingRecordStore } from './storage-BIDzuKIn.js';
21
+ 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-BIDzuKIn.js';
21
22
  import { SealedMemoryEnvelope } from './write-envelope.js';
22
23
  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';
23
24
  export { HostEmbeddingInputType, HostEmbeddingProvider, getHostEmbeddingProvider, normalizeHostEmbeddingVector, registerHostEmbeddingProvider } from './host-embedding-provider.js';
@@ -26,13 +27,18 @@ export { CodexCliFallbackConfig, CodexCliFallbackMessage, CodexCliFallbackOption
26
27
  export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
27
28
  export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
28
29
  export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
29
- import { C as CodingContext, bi as CodingModeConfig, aR as FusionConversationInput, bj as FusedSpeaker, bk as FusedSegment, bl as FusedDisagreement, bm as FusionOptions, aT as WearableConversation, bn as FusionDayResult, P as PluginConfig, bo as CodingKnowledgeConfig, x as MemoryCategory, bp as WearableCleanupSettings, bq as WearableFusionConfig, aU as WearableSourceSettings, aY as WearablesConfig, aX as WearableSourceConnector, br as OffTheRecordMarkerSettings, b1 as WearableCorrectionRule, bs as WearableDayTranscriptMeta, a$ as WearableDayTranscript, aI as ActivitySnapshot, bt as ActivityDayMeta, bu as ActivityDayDigest, aL as ActivitySourceClient, bv as ActivitySourceCheck, bw as ActivitySnapshotPage, aJ as ActivityConfig, a6 as ExtractionResult, z as MemoryStatus, ar as ImportanceScore, bx as MeetingsDetectionConfig, aQ as MeetingsDetectionInput, aS as DetectedMeeting, aN as MeetingsConfig, aP as MeetingRecord, by as MeetingAudioWindow, bz as MeetingAppSpan } from './types-BrEzuxPA.js';
30
- export { bA as ActivityExtractionMode, aK as ActivitySourceConfig, w as AgentAccessAuthToken, g as BriefingActiveThread, bB as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bC as BriefingWindow, a8 as BufferSurpriseEvent, bD as BulkImportError, aa as BulkImportOptions, ac as BulkImportResult, ab as BulkImportSource, bE as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bF as CodexCompatConfig, bh as ConsolidationObservation, bG as DEFAULT_RECALL_DISCLOSURE, bH as DisagreementKind, E as EntityFile, am as EntityStructuredSection, ap as ExtractedFact, bI as FusedContribution, bJ as FusedConversationProvenance, b3 as FusedDayFile, b2 as FusedDayMeta, aO as FusedMeeting, bK as FusedSegmentProvenance, b0 as FusedWearableConversation, bL as FusionSegmentInput, G as GatewayConfig, bM as ImportSourceRole, a9 as ImportTurn, bN as ImportTurnValidationIssue, aM as MeetingBuildInput, b4 as MeetingDetectionSource, bO as MeetingScreenContextEvent, bP as MeetingSummaryMode, at as MemoryActionEligibilityContext, bQ as MemoryActionEligibilitySource, ag as MemoryActionType, M as MemoryFile, m as MemoryFrontmatter, bR as MemoryObservation, bS as MemoryScope, bT as RECALL_DISCLOSURE_LEVELS, o as RecallDisclosure, v as SecretRef, bU as SegmentPickReason, bV as WearableAuthCheck, bW as WearableFetchOptions, bX as WearableFetchPage, aW as WearableMemoryMode, aV as WearableNativeMemory, bY as WearableNativeMemoryPage, a_ as WearableSourceStatus, aZ as WearableSyncSummary, bZ as WearableTranscriptSegment, b_ as isImportRole, b$ as isRecallDisclosure, c0 as parseIsoTimestamp, c1 as validateImportTurn } from './types-BrEzuxPA.js';
30
+ import { C as CodingContext, bk as CodingModeConfig, aT as FusionConversationInput, bl as FusedSpeaker, bm as FusedSegment, bn as FusedDisagreement, bo as FusionOptions, aV as WearableConversation, bp as FusionDayResult, P as PluginConfig, bq as MemoryDriftState, br as DriftDetectionConfig, bs as CodingKnowledgeConfig, au as SubjectGuardMode, y as MemoryCategory, bt as WearableCleanupSettings, bu as WearableFusionConfig, aW as WearableSourceSettings, a_ as WearablesConfig, aZ as WearableSourceConnector, bv as OffTheRecordMarkerSettings, b3 as WearableCorrectionRule, bw as WearableDayTranscriptMeta, b1 as WearableDayTranscript, aK as ActivitySnapshot, bx as ActivityDayMeta, by as ActivityDayDigest, aN as ActivitySourceClient, bz as ActivitySourceCheck, bA as ActivitySnapshotPage, aL as ActivityConfig, a7 as ExtractionResult, w as MemoryStatus, as as ImportanceScore, bB as MeetingsDetectionConfig, aS as MeetingsDetectionInput, aU as DetectedMeeting, aP as MeetingsConfig, aR as MeetingRecord, bC as MeetingAudioWindow, bD as MeetingAppSpan } from './types-BxAcOl5Q.js';
31
+ export { bE as ACTION_GATE_DEFAULTS, bF as ACTION_GATE_DEFAULT_MAX_ADVISORIES_PER_TURN, bG as ActionGateAdvisory, bH as ActionGateAuditRecord, bI as ActionGateAuditSink, bJ as ActionGateCandidate, bK as ActionGateCandidateQuery, bL as ActionGateCandidateSource, bM as ActionGateConfig, bN as ActionGateDecision, bO as ActionGateRequest, bP as ActionGateService, bQ as ActionGateServiceDependencies, bR as ActionGateSourceResult, bS as ActionGateStatus, bT as ActivityExtractionMode, aM as ActivitySourceConfig, v as AgentAccessAuthToken, g as BriefingActiveThread, bU as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bV as BriefingWindow, a9 as BufferSurpriseEvent, bW as BulkImportError, ab as BulkImportOptions, ad as BulkImportResult, ac as BulkImportSource, bX as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bY as CodexCompatConfig, bi as ConsolidationObservation, bZ as DEFAULT_RECALL_DISCLOSURE, b_ as DRIFT_DETECTION_DEFAULTS, b$ as DisagreementKind, c0 as DriftDetectionSettings, E as EntityFile, an as EntityStructuredSection, aq as ExtractedFact, c1 as FailureMemorySourceDependencies, c2 as FusedContribution, c3 as FusedConversationProvenance, b5 as FusedDayFile, b4 as FusedDayMeta, aQ as FusedMeeting, c4 as FusedSegmentProvenance, b2 as FusedWearableConversation, c5 as FusionSegmentInput, G as GatewayConfig, c6 as ImportSourceRole, aa as ImportTurn, c7 as ImportTurnValidationIssue, aO as MeetingBuildInput, b6 as MeetingDetectionSource, c8 as MeetingScreenContextEvent, c9 as MeetingSummaryMode, av as MemoryActionEligibilityContext, ca as MemoryActionEligibilitySource, ah as MemoryActionType, cb as MemoryDriftProvenance, M as MemoryFile, m as MemoryFrontmatter, cc as MemoryObservation, cd as MemoryScope, ce as NormalizedActionIntent, cf as PRE_ACTION_FINGERPRINT_VERSION, cg as PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS, ch as PRE_ACTION_WARNING_VERSION, ci as PreActionFailureGate, cj as PreActionGateDependencies, ck as PreActionGateRequest, cl as PreActionGateResult, cm as PreActionGateStatus, cn as RECALL_DISCLOSURE_LEVELS, o as RecallDisclosure, co as RecallDriftAnnotation, u as SecretRef, cp as SegmentPickReason, cq as WearableAuthCheck, cr as WearableFetchOptions, cs as WearableFetchPage, aY as WearableMemoryMode, aX as WearableNativeMemory, ct as WearableNativeMemoryPage, b0 as WearableSourceStatus, a$ as WearableSyncSummary, cu as WearableTranscriptSegment, cv as actionTermsFor, cw as createFailureMemoryCandidateSource, cx as createTrajectoryCandidateSource, cy as isFailureClassMemory, cz as isImportRole, cA as isRecallDisclosure, cB as normalizeActionIntent, cC as parseActionGateConfig, cD as parseDriftDetectionConfig, cE as parseDriftProvenance, cF as parseIsoTimestamp, cG as sanitizePayloadString, cH as serializeDriftProvenance, cI as validateImportTurn } from './types-BxAcOl5Q.js';
31
32
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
32
33
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
33
34
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
34
- import { f as EngramAccessService } from './access-service-B1Lbb-nQ.js';
35
- export { K as EngramMcpServer, P as ProcedureStatsConfigSnapshot, L as ProcedureStatsRecent, N as ProcedureStatsReport, O as ProcedureStatusCounts, S as SUPPORT_PASSPORT_CARD_CATEGORIES, Q as SUPPORT_PASSPORT_CARD_STATUSES, R as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, T as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, U as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, V as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, X as SupportPassportAccessSurface, Y as SupportPassportAccessSurfaceDependencies, Z as SupportPassportAnswerModelInput, _ as SupportPassportAnswerModelInputSchema, $ as SupportPassportAnswerOutput, a0 as SupportPassportAnswerOutputSchema, a1 as SupportPassportAnswerResult, a2 as SupportPassportCard, a3 as SupportPassportCardCategory, a4 as SupportPassportCardCategorySchema, a5 as SupportPassportCardListSchema, a6 as SupportPassportCardMutationInput, a7 as SupportPassportCardMutationInputSchema, a8 as SupportPassportCardSchema, a9 as SupportPassportCardServiceDependencies, aa as SupportPassportCardStatus, ab as SupportPassportCardStatusSchema, ac as SupportPassportCardTitleSchema, ad as SupportPassportCreateGrantInput, ae as SupportPassportCreateGrantInputSchema, af as SupportPassportCreateGrantRequest, ag as SupportPassportCreateGrantRequestSchema, ah as SupportPassportCreateGrantResult, ai as SupportPassportCreatedGrant, aj as SupportPassportCreatedGrantSchema, ak as SupportPassportDraftCard, al as SupportPassportDraftCardSchema, am as SupportPassportDraftModelInput, an as SupportPassportDraftModelInputSchema, ao as SupportPassportDraftOutputSchema, ap as SupportPassportDraftResult, aq as SupportPassportError, ar as SupportPassportErrorCode, as as SupportPassportGrantCardRef, at as SupportPassportGrantCardRefSchema, au as SupportPassportGrantState, av as SupportPassportGrantStateSchema, aw as SupportPassportListCardsInputSchema, ax as SupportPassportListGrantsInputSchema, ay as SupportPassportManualDraftInput, az as SupportPassportManualDraftInputSchema, aA as SupportPassportMemoryIdSchema, aB as SupportPassportMemoryPreview, aC as SupportPassportModelAdapter, aD as SupportPassportModelAdapterOptions, aE as SupportPassportModelAuditRecord, aF as SupportPassportModelAuditRecordSchema, aG as SupportPassportModelAuditSink, aH as SupportPassportModelAuditStore, aI as SupportPassportModelCallError, aJ as SupportPassportModelClients, aK as SupportPassportModelFailureMetadata, aL as SupportPassportModelMessage, aM as SupportPassportModelResultMetadata, aN as SupportPassportModelRoute, aO as SupportPassportModelRouteKind, aP as SupportPassportModelRouteResult, aQ as SupportPassportModelUsage, aR as SupportPassportNamespaceSchema, aS as SupportPassportOwnerCreateGrantRequest, aT as SupportPassportOwnerCreateGrantRequestSchema, aU as SupportPassportOwnerGrant, aV as SupportPassportOwnerGrantSchema, aW as SupportPassportOwnerScope, aX as SupportPassportPublicCardSchema, aY as SupportPassportPublicGuide, aZ as SupportPassportPublicGuideSchema, a_ as SupportPassportReplaceCardInput, a$ as SupportPassportReplaceCardInputSchema, b0 as SupportPassportRevokeGrantInput, b1 as SupportPassportRevokeGrantInputSchema, b2 as SupportPassportRevokeGrantResult, b3 as SupportPassportSourceMemoryIdSchema, b4 as WHO_KNOWS_AUTHORSHIP_BONUS, b5 as WHO_KNOWS_DEFAULT_LIMIT, b6 as WHO_KNOWS_MAX_EVIDENCE, b7 as WHO_KNOWS_MAX_LIMIT, b8 as WHO_KNOWS_MCP_TOOLS, b9 as WhoKnowsEntity, ba as WhoKnowsEvidence, bb as WhoKnowsHit, bc as WhoKnowsHttpOutcome, W as WhoKnowsResult, bd as WhoKnowsStorage, be as acceptsSupportPassportModelResponse, bf as buildSupportPassportDirectGatewayConfig, bg as computeProcedureStats, bh as computeSupportPassportCardRevision, bi as computeWhoKnows, bj as createSupportPassportModelAdapter, bk as formatProcedureStatsText, bl as handleWhoKnowsHttpQuery, bm as hashSupportPassportAuditValues, bn as loadWhoKnowsEntities, bo as resolveSupportPassportModelRoutePlan, bp as tokenizeTopic, bq as validateWhoKnowsInput } from './access-service-B1Lbb-nQ.js';
35
+ import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-DkaIG3n8.js';
36
+ export { N as EngramMcpServer, Q as OPERATION_NAMES, O as OperationName, T as PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS, U as PROMOTION_CANDIDATES_MCP_TOOLS, V as ProcedureLibraryMaintenanceReport, X as ProcedureMaintenanceAction, Y as ProcedureMaintenanceActionKind, Z as ProcedureMaintenanceEvidence, _ as ProcedureMaintenanceMarker, $ as ProcedureMaintenanceReasonCode, a0 as ProcedureStatsConfigSnapshot, a1 as ProcedureStatsRecent, a2 as ProcedureStatsReport, a3 as ProcedureStatusCounts, a4 as PromotionCandidate, P as PromotionCandidatesResult, a5 as PromotionReuseSignal, a6 as ReviewDeckActionReceipt, a7 as ReviewDeckActionRequest, a8 as ReviewDeckChoice, a9 as ReviewDeckCursorError, aa as ReviewDeckCursorScope, ab as ReviewDeckEvidence, ac as ReviewDeckItem, ad as ReviewDeckPage, ae as ReviewDeckRisk, af as ReviewDeckUndoRequest, ag as SUBJECT_GUARD_MODES, ah as SUBJECT_GUARD_OVERRIDE_FLAG, ai as SUBJECT_VALUES, aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, S as SubjectBackfillReport, ap as SubjectBackfillStorage, aq as SubjectGuardDecision, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, av as SupportPassportAnswerOutput, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, ay as SupportPassportCard, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aC as SupportPassportCardMutationInput, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aF as SupportPassportCardServiceDependencies, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aJ as SupportPassportCreateGrantInput, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aO as SupportPassportCreatedGrant, aP as SupportPassportCreatedGrantSchema, aQ as SupportPassportDraftCard, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aY as SupportPassportGrantCardRef, aZ as SupportPassportGrantCardRefSchema, a_ as SupportPassportGrantState, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b2 as SupportPassportManualDraftInput, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b6 as SupportPassportModelAdapter, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, ba as SupportPassportModelAuditSink, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bh as SupportPassportModelRoute, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bo as SupportPassportOwnerGrant, bp as SupportPassportOwnerGrantSchema, bq as SupportPassportOwnerScope, br as SupportPassportPublicCardSchema, bs as SupportPassportPublicGuide, bt as SupportPassportPublicGuideSchema, bu as SupportPassportReplaceCardInput, bv as SupportPassportReplaceCardInputSchema, bw as SupportPassportRevokeGrantInput, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bK as acceptsSupportPassportModelResponse, bL as backfillMemorySubjects, bM as buildReviewDeckPage, bN as buildSupportPassportDirectGatewayConfig, bO as compareReviewDeckRows, bP as computeProcedureStats, bQ as computePromotionCandidates, bR as computeReviewItemRevision, bS as computeSupportPassportCardRevision, bT as computeWhoKnows, bU as createSupportPassportModelAdapter, bV as decodeReviewDeckCursor, bW as encodeReviewDeckCursor, bX as evaluateSubjectGuard, bY as formatProcedureStatsText, bZ as handleWhoKnowsHttpQuery, b_ as hashSupportPassportAuditValues, b$ as isMemorySubject, c0 as isSharedPromotionTarget, c1 as isSubjectGuardMode, c2 as loadWhoKnowsEntities, c3 as projectReviewDeckItem, c4 as promotionCandidateKey, c5 as resolveSupportPassportModelRoutePlan, c6 as resolveWriteSubject, c7 as runProcedureLibraryMaintenance, c8 as subjectDefaultForCategory, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-DkaIG3n8.js';
37
+ import { LocalLlmClient } from './local-llm.js';
38
+ import { FallbackLlmClient } from './fallback-llm.js';
39
+ export { FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
40
+ import { a as SemanticDedupLookup } from './semantic-BalR6EXU.js';
41
+ export { b as SemanticDedupDecision, S as SemanticDedupHit, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-BalR6EXU.js';
36
42
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
37
43
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
38
44
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -40,22 +46,20 @@ export { LcmMessagePartInput, LcmMessagePartKind, LcmMessagePartRow, MessagePart
40
46
  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';
41
47
  export { BuildRetrievedMemoryProvenanceOptions, RetrievedMemoryCorrectionState, RetrievedMemoryProvenance, RetrievedMemorySafety, buildRetrievedMemoryProvenance, normalizeRetrievedMemoryProvenance, summarizeRetrievedMemoryProvenance } from './memory-provenance.js';
42
48
  export { CITATION_UNKNOWN, CitationContext, DEFAULT_CITATION_FORMAT, ParsedCitation, attachCitation, deriveSessionId, formatCitation, hasCitation, parseAllCitations, parseCitation, stripCitation } from './source-attribution.js';
43
- export { Q as QmdClient } from './qmd-BzxluoLt.js';
49
+ export { Q as QmdClient } from './qmd-B9p1SZTZ.js';
44
50
  export { LanceDbBackend } from './search/lancedb-backend.js';
45
51
  export { OramaBackend } from './search/orama-backend.js';
46
52
  export { MeilisearchBackend } from './search/meilisearch-backend.js';
47
53
  export { buildEntityRecallSection } from './entity-retrieval.js';
48
54
  export { isNamespacePolicyCovered, resolvePrincipal } from './namespaces/principal.js';
49
- export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatalogRebuildResult, e as NamespaceCatalogSkippedRoot, f as NamespaceDiscoverySource, N as NamespaceKind, b as NamespaceRecord, g as NamespaceTouchMetadata } from './catalog-DjVhJoRM.js';
55
+ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatalogRebuildResult, e as NamespaceCatalogSkippedRoot, f as NamespaceDiscoverySource, N as NamespaceKind, b as NamespaceRecord, g as NamespaceTouchMetadata } from './catalog-CX2BZEJh.js';
50
56
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
51
57
  export { storagePathHash } from './storage-paths.js';
52
58
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
53
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-Pulnz-qm.js';
59
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-ChKeYMZv.js';
54
60
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
55
- import { BoundOperation } from './access-boundary.js';
56
- export { OPERATION_NAMES, OperationName } from './access-boundary.js';
57
61
  export { CreateStoredGrantInput, DEFAULT_SUPPORT_PASSPORT_CONFIG, SUPPORT_PASSPORT_ATTRIBUTE_KEYS, SUPPORT_PASSPORT_AUDIT_TAG, SUPPORT_PASSPORT_CARD_TAG, SUPPORT_PASSPORT_MODEL_ACK_PATH, SUPPORT_PASSPORT_MODEL_JOB_PATH, SUPPORT_PASSPORT_MODEL_RESULT_PATH, StoredSupportPassportCard, SupportPassportCardService, SupportPassportDraftService, SupportPassportDraftServiceDependencies, SupportPassportGrantMutationHooks, SupportPassportGrantService, SupportPassportGrantServiceDependencies, SupportPassportGrantStore, SupportPassportGrantStoreOptions, SupportPassportModelBridge, SupportPassportModelBridgeOptions, SupportPassportModelJob, SupportPassportQuestionService, SupportPassportQuestionServiceDependencies, activeSupportPassportReplacementPredecessorIds, computeSupportPassportOwnerKey, computeSupportPassportSourceRevision, createSupportPassportPrivateFileExclusion, decodeSupportPassportNamespaceAttributes, encodeSupportPassportNamespaceAttributes, excludeSupportPassportPrivateMemories, hasLiveSupportPassportCard, isSupportPassportPrivateMemory, isSupportPassportSourceEligible, notifySupportPassportCommitted, parseSupportPassportConfig, parseSupportPassportModelJob, projectSupportPassportCard, syncDirectoryForDurability } from './support-passport/index.js';
58
- export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-DwXauTX3.js';
62
+ export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-Cy0aYbys.js';
59
63
  import { z } from 'zod';
60
64
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
61
65
  export { CuriosityQuestion, MEMORY_CONTEXT_HEADER, MEMORY_CONTEXT_INSTRUCTION, RECALL_CONTEXT_SEPARATOR, RecallAuthorityRenderOptions, RecallContextComposition, RenderMemoryContextPromptInput, RenderedMemoryContextPrompt, boundRecallContextComposition, composeRecallContext, contextBudgetForFooter, formatCuriosityFooter, renderAuthorityBoundContent, renderMemoryContextPrompt, selectCuriosityQuestion } from './recall-context-composition.js';
@@ -63,8 +67,9 @@ export { ParsedXrayCliOptions, parseXrayBudgetFlag, parseXrayCliOptions } from '
63
67
  export { RECALL_XRAY_FORMATS, RecallXrayFormat, parseXrayFormat, renderXray, renderXrayJson, renderXrayMarkdown, renderXrayText } from './recall-xray-renderer.js';
64
68
  export { RecallFilterTrace, RecallXrayResult, RecallXrayScoreDecomposition, RecallXrayServedBy, RecallXraySnapshot } from './recall-xray.js';
65
69
  export { ParsedWhoKnowsCliOptions, extractWhoKnowsRawArgs, parseWhoKnowsCliOptions, renderWhoKnows, renderWhoKnowsJson, renderWhoKnowsText } from './who-knows-cli.js';
70
+ export { PromotionCandidatesCliOptions, SubjectsBackfillCliOptions, parsePromotionCandidatesCliOptions, parseSubjectsBackfillCliOptions, renderPromotionCandidates, runPromotionCandidatesCommand, runSubjectsBackfillCommand } from './memory-subject-cli.js';
71
+ export { SubjectRuntimeConfig, parseSubjectRuntimeConfig } from './subject-config.js';
66
72
  export { REMNIC_CHATGPT_MEMORY_INSPECTOR_CANONICAL_TOOL, REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE, REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL, REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_HTML, REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_URI, RemnicChatGptMemoryCard, RemnicChatGptMemoryInspectorInput, RemnicChatGptMemoryInspectorResult, buildChatGptMemoryInspectorActionRequest, buildChatGptMemoryInspectorResult } from './mcp-memory-inspector-app.js';
67
- export { NormalizedActionIntent, PRE_ACTION_FINGERPRINT_VERSION, PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS, PRE_ACTION_WARNING_VERSION, PreActionFailureGate, PreActionGateDependencies, PreActionGateRequest, PreActionGateResult, PreActionGateStatus, normalizeActionIntent, sanitizePayloadString } from './coding/pre-action-gate.js';
68
73
  export { ActionIdentity, ActionIntent, ActionStrategyId, CausalTrajectoryCodingContext, CausalTrajectoryRecord, CausalTrajectorySearchResult, CausalTrajectoryStoreStatus, CausalTrajectoryStrictReadResult, CommandIntent, EditIntent, EditKind, advanceCausalTrajectoryRevisionToken, filterTrajectoriesByLookbackDays, getCausalTrajectoryStoreStatus, readCausalTrajectoryRecords, readCausalTrajectoryRecordsStrict, readCausalTrajectoryRevisionToken, recordCausalTrajectory, resolveCausalTrajectoryStoreDir, searchCausalTrajectories, validateCausalTrajectoryRecord } from './causal-trajectory.js';
69
74
  export { MemoryStoreRequest, ObserveRequest, RecallRequest, SchemaName, SchemaValidationError, SuggestionSubmitRequest, formatZodError, memoryStoreRequestSchema, observeRequestSchema, recallRequestSchema, suggestionSubmitRequestSchema, validateRequest } from './access-schema.js';
70
75
  export { buildExtensionsFooterForSummary, loadDaySummaryPrompt } from './day-summary.js';
@@ -77,11 +82,10 @@ export { CODEX_THREAD_KEY_PREFIX } from './thread-key.js';
77
82
  export { PageVersion, VersionHistory, VersionTrigger, VersioningConfig, VersioningLogger, createVersion, diffVersions, getVersion, listVersions, revertToVersion } from './page-versioning.js';
78
83
  export { CitationBlock, CitationEntry, CitationMetadata, buildCitationGuidance, formatOaiMemCitation, parseOaiMemCitation, sanitizeNoteForCitation } from './citations.js';
79
84
  export { initLogger, log } from './logger.js';
80
- export { b as SemanticDedupDecision, a as SemanticDedupHit, S as SemanticDedupLookup, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-TddhF0y7.js';
81
85
  export { drainPendingImpressionsForOfflineSync, drainPendingLifecycleForOfflineSync } from './offline-sync-impression-drain.js';
82
86
  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-D9dYj6vu.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-D9dYj6vu.js';
87
+ import { D as DiscoveredExtension } from './semantic-consolidation-DlN6xe20.js';
88
+ export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-DlN6xe20.js';
85
89
  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';
86
90
  import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CNDn2164.js';
87
91
  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';
@@ -96,14 +100,13 @@ import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
96
100
  export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
97
101
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
98
102
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.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-HJ8DKbFl.js';
100
- 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-_qgST_0y.js';
101
- 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-_qgST_0y.js';
102
- import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-DiSLtVN7.js';
103
- 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-DiSLtVN7.js';
103
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-C8vfIiTX.js';
104
+ 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-GkYyVfm9.js';
105
+ 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-GkYyVfm9.js';
106
+ import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-nkdtSrVr.js';
107
+ 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-nkdtSrVr.js';
104
108
  import { SearchExecutionOptions } from './search/port.js';
105
109
  export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
106
- export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
107
110
  export { ComputeMemoryWorthInput, MemoryWorthResult, computeMemoryWorth } from './memory-worth.js';
108
111
  export { MemoryOutcomeKind, RecordMemoryOutcomeInput, RecordMemoryOutcomeResult, memoryWorthOutcomeEligibleCategories, recordMemoryOutcome } from './memory-worth-outcomes.js';
109
112
  export { MemoryWorthCounters, MemoryWorthFilterCandidate, MemoryWorthFilterOptions, MemoryWorthFilterResultItem, applyMemoryWorthFilter, buildMemoryWorthCounterMap } from './memory-worth-filter.js';
@@ -118,7 +121,7 @@ export { P as PEERS_DIR_NAME, a as appendInteractionLog, b as assertValidPeerId,
118
121
  import { ImportCapsuleResult } from './transfer/capsule-import.js';
119
122
  import { ExportManifestV2, CapsuleParent } from './transfer/types.js';
120
123
  export { CODING_GRAPH_ENGINE_VERSION, CodingGraphEngine, CodingGraphErrorCode, CodingGraphLanguage, CreateCodingGraphEngineOptions, FileIR, ParseFileInput, ParseResult, SymbolIR, TIER_1_LANGUAGES } from './coding/coding-graph-types.js';
121
- export { R as ResolvedScopeProfilePlan } from './scope-profiles-CEMZz0t5.js';
124
+ export { R as ResolvedScopeProfilePlan } from './scope-profiles-DLrRxFWR.js';
122
125
  export { commitPreparedFileAtomically, copyExistingFileToBackup, writeFileAtomically } from './maintenance/atomic-file.js';
123
126
  export { ContinuityImprovementLoop } from './types-continuity.js';
124
127
  export { EngramAccessInputError } from './access-errors.js';
@@ -132,11 +135,11 @@ import './types-CM86alG1.js';
132
135
  import './operator-doctor-types.js';
133
136
  import './contradiction-config.js';
134
137
  import './graph-path-scoring-config.js';
138
+ import './objective-state.js';
135
139
  import './recall-state.js';
136
140
  import './utils/serialize-mutations.js';
137
141
  import './included-memories.js';
138
142
  import './extraction-faithfulness.js';
139
- import './local-llm.js';
140
143
  import './resolve-provider-secret.js';
141
144
  import './transcript.js';
142
145
  import './session-integrity.js';
@@ -156,7 +159,6 @@ import './utility-runtime.js';
156
159
  import './lifecycle.js';
157
160
  import './orchestration/compression-guideline-coordinator.js';
158
161
  import './embedding-fallback.js';
159
- import './objective-state.js';
160
162
  import './harmonic-retrieval.js';
161
163
  import './abstraction-nodes.js';
162
164
  import './cue-anchors.js';
@@ -170,7 +172,7 @@ import './conversation-index/chunker.js';
170
172
  import './conversation-index/backend.js';
171
173
  import './faiss-adapter-BHecI1fF.js';
172
174
  import './runtime/child-process.js';
173
- import './dependency-propagation-delivery-Co17gxYb.js';
175
+ import './dependency-propagation-delivery-B8ZMBBCY.js';
174
176
  import './namespaces/storage.js';
175
177
  import './threading.js';
176
178
  import './graph-444E-DrF.js';
@@ -190,7 +192,8 @@ import './policy-runtime.js';
190
192
  import './profiling.js';
191
193
  import './schemas.js';
192
194
  import './extraction-error-classification.js';
193
- import './access-namespace-preflight-BKUnKsBv.js';
195
+ import 'node:stream';
196
+ import './access-namespace-preflight-B7Usyz-K.js';
194
197
  import './recall-explain-renderer.js';
195
198
  import './access-citation.js';
196
199
  import './access-health-types.js';
@@ -204,7 +207,6 @@ import './access-offline-manifest.js';
204
207
  import './reconcile/manifest.js';
205
208
  import './reconcile/plan.js';
206
209
  import './capsule-cli.js';
207
- import 'node:stream';
208
210
  import './transfer/capsule-export.js';
209
211
  import './qmd-status.js';
210
212
  import './search/embed-helper.js';
@@ -530,6 +532,18 @@ declare function withRawEntityPageMutation<T>(baseDir: string, filePath: string,
530
532
  declare function buildProcedureRecallSection(storage: StorageManager, prompt: string, config: PluginConfig, options?: {
531
533
  partitionToolScoped?: boolean;
532
534
  requestingConnector?: string;
535
+ /**
536
+ * Out-param (issue #2370): populated with the injected procedures
537
+ * (id + path, in injection order) so the recall pipeline can fold them
538
+ * into the same per-recall bookkeeping as QMD-served memories —
539
+ * access tracking and `LastRecallSnapshot.memoryIds`. Only populated
540
+ * when a section is returned.
541
+ */
542
+ injectedMemories?: Array<{
543
+ id: string;
544
+ path: string;
545
+ namespace?: string;
546
+ }>;
533
547
  }): Promise<string | null>;
534
548
 
535
549
  /**
@@ -554,6 +568,217 @@ declare function buildProcedureMarkdownBody(steps: ProcedureStep[]): string;
554
568
  */
555
569
  declare function parseProcedureStepsFromBody(content: string): ProcedureStep[] | null;
556
570
 
571
+ /**
572
+ * Stale-preference recall stage (issue #2371).
573
+ *
574
+ * Pure ranking + annotation helpers, deliberately free of storage, LLM, and
575
+ * config-loading imports so the recall hot path can import them without
576
+ * pulling in the drift scan's dependency graph.
577
+ *
578
+ * Two independent, independently-gated effects:
579
+ *
580
+ * 1. `driftDetection.recallDamping` multiplies the rank score of a
581
+ * `category: preference` memory carrying `driftState: stale` by
582
+ * `stalePenalty`, so a stale preference sinks below an otherwise-equal
583
+ * fresh memory. Applied in the same boost stage as the Memory Worth
584
+ * multiplier, so the pipeline-order contract (retrieve → filter →
585
+ * rerank/boost → cap → format) is untouched.
586
+ * 2. `driftDetection.annotateAfterDays` emits a compact age note for a
587
+ * preference whose last corroboration is older than the configured
588
+ * window. Formatting-stage only — it never mutates the stored memory.
589
+ *
590
+ * Both are off by default, and with both off this module returns the input
591
+ * order and no notes, so recall output is byte-identical to pre-#2371.
592
+ */
593
+
594
+ /** The only frontmatter fields this stage reads. */
595
+ interface DriftRecallFrontmatter {
596
+ category?: string;
597
+ driftState?: MemoryDriftState;
598
+ lastCorroborated?: string;
599
+ created?: string;
600
+ }
601
+ interface DriftRankInput {
602
+ /** Opaque candidate identity — the caller's composite (namespace, path) key. */
603
+ key: string;
604
+ /** Monotone-decreasing rank score preserving upstream order. */
605
+ rank: number;
606
+ frontmatter?: DriftRecallFrontmatter;
607
+ }
608
+ interface DriftRankOutput {
609
+ key: string;
610
+ /** `1` when untouched, `stalePenalty` when damped. */
611
+ multiplier: number;
612
+ /** Injection annotation, when the age gate fired. */
613
+ note?: string;
614
+ }
615
+ /**
616
+ * True when this stage would change nothing. Callers use it to skip the
617
+ * frontmatter lookups entirely on the default (all-off) configuration.
618
+ *
619
+ * `stalePenalty === 1` is the documented no-op (§33): damping stays "enabled"
620
+ * but multiplies by one, so it must not by itself activate the stage.
621
+ */
622
+ declare function isPreferenceDriftStageActive(config: DriftDetectionConfig | undefined): boolean;
623
+ /**
624
+ * Render the age note for an uncorroborated preference, or `undefined` when
625
+ * the gate is off or the preference is inside the window.
626
+ *
627
+ * `lastCorroborated` absent falls back to `created`: a preference the scan has
628
+ * never corroborated is measured from when it was stated, which is exactly the
629
+ * "stated 2026-01; not corroborated since" case the survey describes.
630
+ */
631
+ declare function driftAgeNote(frontmatter: DriftRecallFrontmatter | undefined, config: DriftDetectionConfig, now: Date): string | undefined;
632
+ /**
633
+ * Rank and annotate one recall branch's candidates.
634
+ *
635
+ * Returns one output per input, ordered by damped rank descending with a
636
+ * stable key tiebreak so the comparator is total and the ordering is identical
637
+ * across runs (§12).
638
+ */
639
+ declare function applyPreferenceDriftRanking(inputs: readonly DriftRankInput[], options: {
640
+ config: DriftDetectionConfig;
641
+ now: Date;
642
+ }): DriftRankOutput[];
643
+
644
+ /**
645
+ * Preference drift detection (issue #2371).
646
+ *
647
+ * Remnic already handles *explicit* preference change: the contradiction scan
648
+ * catches a new statement that conflicts with a stored one, and temporal
649
+ * supersession retires a fact that gets restated. Both require new evidence to
650
+ * arrive. This module covers the opposite failure mode the agent-memory survey
651
+ * calls stale preference reuse: a `category: preference` memory keeps being
652
+ * injected at full prominence even though the last N days of conversation
653
+ * contain no corroboration for it — or contain behavioral evidence pointing the
654
+ * other way that never rose to an explicit contradiction.
655
+ *
656
+ * Per aging preference the scan gathers recent same-namespace evidence, then
657
+ * classifies:
658
+ *
659
+ * - `corroborated` — recent evidence restates or is consistent with it.
660
+ * - `stale` — the lookback window held nothing either way.
661
+ * - `drifted` — recent evidence points away from it (judge verdict
662
+ * `contradicts`), so a review item is opened.
663
+ * - `skipped` — the classification could not be made honestly:
664
+ * `backend_unavailable` (evidence lookup failed — §22:
665
+ * never counted as "no evidence") or
666
+ * `verification_unavailable` (evidence exists but no LLM
667
+ * could judge it, so neither a positive nor a negative
668
+ * claim is warranted).
669
+ *
670
+ * Apply mode stamps `lastCorroborated` / `driftState` and opens review items.
671
+ * It never auto-deletes and never auto-supersedes: drift is inference, and the
672
+ * least-privileged default for an inferred change to user state is "ask"
673
+ * (Review Prevention Checklist §36). Resolution runs through the existing
674
+ * review queue and `review_resolve`, with the drift verbs `keep`, `supersede`,
675
+ * and `archive`.
676
+ *
677
+ * Deliberately NOT part of `runMemoryGovernance` — same isolation decision as
678
+ * procedure mining and procedure-library maintenance.
679
+ */
680
+
681
+ type PreferenceDriftClassification = "corroborated" | "stale" | "drifted" | "skipped";
682
+ type PreferenceDriftSkipReason = "backend_unavailable" | "verification_unavailable";
683
+ interface PreferenceDriftEvidence {
684
+ memoryId: string;
685
+ /** Similarity score reported by the evidence lookup. */
686
+ score: number;
687
+ /** `updated` (or `created`) of the evidence memory, ISO 8601. */
688
+ observedAt: string;
689
+ }
690
+ interface PreferenceDriftFinding {
691
+ memoryId: string;
692
+ classification: PreferenceDriftClassification;
693
+ /** Set only for `classification: "skipped"`. */
694
+ skipped?: PreferenceDriftSkipReason;
695
+ /** Age of the preference in whole days at the run instant. */
696
+ ageDays: number;
697
+ /** Existing `lastCorroborated` stamp, or null when never corroborated. */
698
+ lastCorroborated: string | null;
699
+ reason: string;
700
+ evidence: PreferenceDriftEvidence[];
701
+ /** Review pair id opened for a `drifted` finding in apply mode. */
702
+ reviewPairId?: string;
703
+ }
704
+ interface PreferenceDriftReport {
705
+ schemaVersion: 1;
706
+ generatedAt: string;
707
+ mode: "shadow" | "apply";
708
+ namespace?: string;
709
+ /** Active preferences examined after the min-age filter and per-run cap. */
710
+ scanned: number;
711
+ /** Active preferences that passed the category/status filter before the cap. */
712
+ eligible: number;
713
+ findings: PreferenceDriftFinding[];
714
+ counts: Record<PreferenceDriftClassification, number>;
715
+ /** Frontmatter stamps + review items actually written. Always 0 in shadow mode. */
716
+ appliedCount: number;
717
+ reviewItemsOpened: number;
718
+ elapsedMs: number;
719
+ skippedReason?: "drift_disabled" | "scan_disabled";
720
+ }
721
+ interface PreferenceDriftMarker {
722
+ schemaVersion: 1;
723
+ lastRunAt: string;
724
+ lastApplyAt: string | null;
725
+ appliedCount: number;
726
+ }
727
+ interface PreferenceDriftDependencies {
728
+ storage: StorageManager;
729
+ config: PluginConfig;
730
+ memoryDir: string;
731
+ /** Pre-built evidence lookup. Superseded by `embeddingLookupFactory`. */
732
+ embeddingLookup?: SemanticDedupLookup;
733
+ /** Builds a namespace-scoped evidence lookup from the scan's own storage. */
734
+ embeddingLookupFactory?: (storage: StorageManager) => SemanticDedupLookup | undefined;
735
+ storageForNamespace?: (namespace: string | undefined) => StorageManager | ScanStorageResolution | Promise<StorageManager | ScanStorageResolution>;
736
+ localLlm: LocalLlmClient | null;
737
+ fallbackLlm: FallbackLlmClient | null;
738
+ namespace?: string;
739
+ /** When true (and `driftDetection.enabled`), stamps and review items are written. */
740
+ apply?: boolean;
741
+ now?: Date;
742
+ }
743
+ /** Read the last-run marker. Absent marker (or shadow-only history) → null apply timestamp. */
744
+ declare function readPreferenceDriftMarker(memoryDir: string): Promise<PreferenceDriftMarker | null>;
745
+ /**
746
+ * Run one preference-drift pass over a namespace.
747
+ *
748
+ * Shadow mode (the default) performs NO writes — not even the run marker.
749
+ * Applying requires `apply: true` AND `driftDetection.enabled: true`.
750
+ */
751
+ declare function runPreferenceDriftScan(deps: PreferenceDriftDependencies): Promise<PreferenceDriftReport>;
752
+ interface PreferenceDriftResolutionOptions {
753
+ /** Replacement preference text. Required for `supersede`. */
754
+ mergedContent?: string;
755
+ /** Fires after a resolution leaves a durable memory mutation in the namespace. */
756
+ onMemoryWritten?: (namespace: string | undefined, storageDir: string) => void;
757
+ now?: Date;
758
+ }
759
+ interface PreferenceDriftResolutionResult {
760
+ affectedIds: string[];
761
+ message: string;
762
+ }
763
+ /**
764
+ * Execute a `kind: "preference-drift"` resolution verb.
765
+ *
766
+ * The first memory id on the item is the aging preference; the second is the
767
+ * evidence that pointed away from it. Only the preference is ever mutated —
768
+ * the evidence memory is a witness, not a target.
769
+ *
770
+ * - `keep` — the preference still holds: stamp `lastCorroborated`, clear
771
+ * `driftState`.
772
+ * - `supersede` — write the corrected preference and retire the old one
773
+ * through the normal supersession path.
774
+ * - `archive` — demote the preference to `archived`. Demotion, never
775
+ * deletion; page versioning snapshots the overwrite.
776
+ *
777
+ * Callers resolve the pair record itself (`resolvePair`); this function owns
778
+ * only the memory-side effects.
779
+ */
780
+ declare function resolvePreferenceDrift(storage: StorageManager, pair: Pick<ContradictionPair$1, "pairId" | "memoryIds" | "namespace">, verb: "keep" | "supersede" | "archive", options?: PreferenceDriftResolutionOptions): Promise<PreferenceDriftResolutionResult>;
781
+
557
782
  /**
558
783
  * Origin metadata and the single recall-time authority fence.
559
784
  *
@@ -953,15 +1178,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
953
1178
  locator: z.ZodOptional<z.ZodString>;
954
1179
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
955
1180
  }, "strict", z.ZodTypeAny, {
956
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
957
- label: string;
958
1181
  id: string;
1182
+ label: string;
1183
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
959
1184
  capture: "at_action" | "historical_lookup" | "fixture";
960
1185
  locator?: string | undefined;
961
1186
  }, {
962
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
963
- label: string;
964
1187
  id: string;
1188
+ label: string;
1189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
965
1190
  capture: "at_action" | "historical_lookup" | "fixture";
966
1191
  locator?: string | undefined;
967
1192
  }>;
@@ -978,15 +1203,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
978
1203
  locator: z.ZodOptional<z.ZodString>;
979
1204
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
980
1205
  }, "strict", z.ZodTypeAny, {
981
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
982
- label: string;
983
1206
  id: string;
1207
+ label: string;
1208
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
984
1209
  capture: "at_action" | "historical_lookup" | "fixture";
985
1210
  locator?: string | undefined;
986
1211
  }, {
987
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
988
- label: string;
989
1212
  id: string;
1213
+ label: string;
1214
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
990
1215
  capture: "at_action" | "historical_lookup" | "fixture";
991
1216
  locator?: string | undefined;
992
1217
  }>, "many">>;
@@ -994,9 +1219,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
994
1219
  kind: "mission_started";
995
1220
  title: string;
996
1221
  evidence: {
997
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
998
- label: string;
999
1222
  id: string;
1223
+ label: string;
1224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1000
1225
  capture: "at_action" | "historical_lookup" | "fixture";
1001
1226
  locator?: string | undefined;
1002
1227
  }[];
@@ -1008,9 +1233,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1008
1233
  objective: string;
1009
1234
  runMode: "replay" | "fixture" | "live";
1010
1235
  evidence?: {
1011
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1012
- label: string;
1013
1236
  id: string;
1237
+ label: string;
1238
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1014
1239
  capture: "at_action" | "historical_lookup" | "fixture";
1015
1240
  locator?: string | undefined;
1016
1241
  }[] | undefined;
@@ -1026,15 +1251,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1026
1251
  locator: z.ZodOptional<z.ZodString>;
1027
1252
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1028
1253
  }, "strict", z.ZodTypeAny, {
1029
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1030
- label: string;
1031
1254
  id: string;
1255
+ label: string;
1256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1032
1257
  capture: "at_action" | "historical_lookup" | "fixture";
1033
1258
  locator?: string | undefined;
1034
1259
  }, {
1035
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1036
- label: string;
1037
1260
  id: string;
1261
+ label: string;
1262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1038
1263
  capture: "at_action" | "historical_lookup" | "fixture";
1039
1264
  locator?: string | undefined;
1040
1265
  }>, "many">>;
@@ -1042,32 +1267,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1042
1267
  sessionId: z.ZodString;
1043
1268
  kind: z.ZodLiteral<"agent_status">;
1044
1269
  }, "strict", z.ZodTypeAny, {
1045
- kind: "agent_status";
1046
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1047
1270
  label: string;
1271
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1272
+ kind: "agent_status";
1048
1273
  role: string;
1049
1274
  agentId: string;
1050
1275
  sessionId: string;
1051
1276
  evidence: {
1052
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1053
- label: string;
1054
1277
  id: string;
1278
+ label: string;
1279
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1055
1280
  capture: "at_action" | "historical_lookup" | "fixture";
1056
1281
  locator?: string | undefined;
1057
1282
  }[];
1058
1283
  detail?: string | undefined;
1059
1284
  }, {
1060
- kind: "agent_status";
1061
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1062
1285
  label: string;
1286
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1287
+ kind: "agent_status";
1063
1288
  role: string;
1064
1289
  agentId: string;
1065
1290
  sessionId: string;
1066
1291
  detail?: string | undefined;
1067
1292
  evidence?: {
1068
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1069
- label: string;
1070
1293
  id: string;
1294
+ label: string;
1295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1071
1296
  capture: "at_action" | "historical_lookup" | "fixture";
1072
1297
  locator?: string | undefined;
1073
1298
  }[] | undefined;
@@ -1081,15 +1306,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1081
1306
  locator: z.ZodOptional<z.ZodString>;
1082
1307
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1083
1308
  }, "strict", z.ZodTypeAny, {
1084
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1085
- label: string;
1086
1309
  id: string;
1310
+ label: string;
1311
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1087
1312
  capture: "at_action" | "historical_lookup" | "fixture";
1088
1313
  locator?: string | undefined;
1089
1314
  }, {
1090
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1091
- label: string;
1092
1315
  id: string;
1316
+ label: string;
1317
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1093
1318
  capture: "at_action" | "historical_lookup" | "fixture";
1094
1319
  locator?: string | undefined;
1095
1320
  }>, "many">>;
@@ -1097,28 +1322,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1097
1322
  sessionId: z.ZodString;
1098
1323
  kind: z.ZodLiteral<"agent_output">;
1099
1324
  }, "strict", z.ZodTypeAny, {
1100
- kind: "agent_output";
1101
1325
  summary: string;
1326
+ kind: "agent_output";
1102
1327
  agentId: string;
1103
1328
  sessionId: string;
1104
1329
  evidence: {
1105
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1106
- label: string;
1107
1330
  id: string;
1331
+ label: string;
1332
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1108
1333
  capture: "at_action" | "historical_lookup" | "fixture";
1109
1334
  locator?: string | undefined;
1110
1335
  }[];
1111
1336
  outputId: string;
1112
1337
  }, {
1113
- kind: "agent_output";
1114
1338
  summary: string;
1339
+ kind: "agent_output";
1115
1340
  agentId: string;
1116
1341
  sessionId: string;
1117
1342
  outputId: string;
1118
1343
  evidence?: {
1119
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1120
- label: string;
1121
1344
  id: string;
1345
+ label: string;
1346
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1122
1347
  capture: "at_action" | "historical_lookup" | "fixture";
1123
1348
  locator?: string | undefined;
1124
1349
  }[] | undefined;
@@ -1134,15 +1359,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1134
1359
  locator: z.ZodOptional<z.ZodString>;
1135
1360
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1136
1361
  }, "strict", z.ZodTypeAny, {
1137
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1138
- label: string;
1139
1362
  id: string;
1363
+ label: string;
1364
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1140
1365
  capture: "at_action" | "historical_lookup" | "fixture";
1141
1366
  locator?: string | undefined;
1142
1367
  }, {
1143
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1144
- label: string;
1145
1368
  id: string;
1369
+ label: string;
1370
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1146
1371
  capture: "at_action" | "historical_lookup" | "fixture";
1147
1372
  locator?: string | undefined;
1148
1373
  }>, "many">>;
@@ -1155,9 +1380,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1155
1380
  statement: string;
1156
1381
  sessionId: string;
1157
1382
  evidence: {
1158
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1159
- label: string;
1160
1383
  id: string;
1384
+ label: string;
1385
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1161
1386
  capture: "at_action" | "historical_lookup" | "fixture";
1162
1387
  locator?: string | undefined;
1163
1388
  }[];
@@ -1173,9 +1398,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1173
1398
  decisionId: string;
1174
1399
  confidence?: number | undefined;
1175
1400
  evidence?: {
1176
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1177
- label: string;
1178
1401
  id: string;
1402
+ label: string;
1403
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1179
1404
  capture: "at_action" | "historical_lookup" | "fixture";
1180
1405
  locator?: string | undefined;
1181
1406
  }[] | undefined;
@@ -1192,25 +1417,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1192
1417
  locator: z.ZodOptional<z.ZodString>;
1193
1418
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1194
1419
  }, "strict", z.ZodTypeAny, {
1195
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1196
- label: string;
1197
1420
  id: string;
1421
+ label: string;
1422
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1198
1423
  capture: "at_action" | "historical_lookup" | "fixture";
1199
1424
  locator?: string | undefined;
1200
1425
  }, {
1201
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1202
- label: string;
1203
1426
  id: string;
1427
+ label: string;
1428
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1204
1429
  capture: "at_action" | "historical_lookup" | "fixture";
1205
1430
  locator?: string | undefined;
1206
1431
  }>, "many">>;
1207
1432
  }, "strict", z.ZodTypeAny, {
1208
- kind: "conflict_detected";
1209
1433
  summary: string;
1434
+ kind: "conflict_detected";
1210
1435
  evidence: {
1211
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1212
- label: string;
1213
1436
  id: string;
1437
+ label: string;
1438
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1214
1439
  capture: "at_action" | "historical_lookup" | "fixture";
1215
1440
  locator?: string | undefined;
1216
1441
  }[];
@@ -1218,15 +1443,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1218
1443
  decisionIds: string[];
1219
1444
  agentIds: string[];
1220
1445
  }, {
1221
- kind: "conflict_detected";
1222
1446
  summary: string;
1447
+ kind: "conflict_detected";
1223
1448
  conflictId: string;
1224
1449
  decisionIds: string[];
1225
1450
  agentIds: string[];
1226
1451
  evidence?: {
1227
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1228
- label: string;
1229
1452
  id: string;
1453
+ label: string;
1454
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1230
1455
  capture: "at_action" | "historical_lookup" | "fixture";
1231
1456
  locator?: string | undefined;
1232
1457
  }[] | undefined;
@@ -1246,27 +1471,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1246
1471
  locator: z.ZodOptional<z.ZodString>;
1247
1472
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1248
1473
  }, "strict", z.ZodTypeAny, {
1249
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1250
- label: string;
1251
1474
  id: string;
1475
+ label: string;
1476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1252
1477
  capture: "at_action" | "historical_lookup" | "fixture";
1253
1478
  locator?: string | undefined;
1254
1479
  }, {
1255
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1256
- label: string;
1257
1480
  id: string;
1481
+ label: string;
1482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1258
1483
  capture: "at_action" | "historical_lookup" | "fixture";
1259
1484
  locator?: string | undefined;
1260
1485
  }>, "many">>;
1261
1486
  }, "strict", z.ZodTypeAny, {
1262
- kind: "test_result";
1263
1487
  summary: string;
1264
1488
  status: "error" | "failed" | "passed";
1489
+ kind: "test_result";
1265
1490
  command: string;
1266
1491
  evidence: {
1267
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1268
- label: string;
1269
1492
  id: string;
1493
+ label: string;
1494
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1270
1495
  capture: "at_action" | "historical_lookup" | "fixture";
1271
1496
  locator?: string | undefined;
1272
1497
  }[];
@@ -1275,17 +1500,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1275
1500
  durationMs?: number | undefined;
1276
1501
  correctionId?: string | undefined;
1277
1502
  }, {
1278
- kind: "test_result";
1279
1503
  summary: string;
1280
1504
  status: "error" | "failed" | "passed";
1505
+ kind: "test_result";
1281
1506
  command: string;
1282
1507
  decisionId: string;
1283
1508
  testId: string;
1284
1509
  durationMs?: number | undefined;
1285
1510
  evidence?: {
1286
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1287
- label: string;
1288
1511
  id: string;
1512
+ label: string;
1513
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1289
1514
  capture: "at_action" | "historical_lookup" | "fixture";
1290
1515
  locator?: string | undefined;
1291
1516
  }[] | undefined;
@@ -1306,15 +1531,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1306
1531
  locator: z.ZodOptional<z.ZodString>;
1307
1532
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1308
1533
  }, "strict", z.ZodTypeAny, {
1309
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1310
- label: string;
1311
1534
  id: string;
1535
+ label: string;
1536
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1312
1537
  capture: "at_action" | "historical_lookup" | "fixture";
1313
1538
  locator?: string | undefined;
1314
1539
  }, {
1315
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1316
- label: string;
1317
1540
  id: string;
1541
+ label: string;
1542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1318
1543
  capture: "at_action" | "historical_lookup" | "fixture";
1319
1544
  locator?: string | undefined;
1320
1545
  }>, "many">>;
@@ -1323,9 +1548,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1323
1548
  statement: string;
1324
1549
  rationale: string;
1325
1550
  evidence: {
1326
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1327
- label: string;
1328
1551
  id: string;
1552
+ label: string;
1553
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1329
1554
  capture: "at_action" | "historical_lookup" | "fixture";
1330
1555
  locator?: string | undefined;
1331
1556
  }[];
@@ -1344,9 +1569,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1344
1569
  supersedesDecisionIds: string[];
1345
1570
  proposedBy: string;
1346
1571
  evidence?: {
1347
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1348
- label: string;
1349
1572
  id: string;
1573
+ label: string;
1574
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
1575
  capture: "at_action" | "historical_lookup" | "fixture";
1351
1576
  locator?: string | undefined;
1352
1577
  }[] | undefined;
@@ -1358,13 +1583,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1358
1583
  id: z.ZodString;
1359
1584
  label: z.ZodString;
1360
1585
  }, "strict", z.ZodTypeAny, {
1361
- kind: "agent" | "human";
1362
- label: string;
1363
1586
  id: string;
1364
- }, {
1365
- kind: "agent" | "human";
1366
1587
  label: string;
1588
+ kind: "agent" | "human";
1589
+ }, {
1367
1590
  id: string;
1591
+ label: string;
1592
+ kind: "agent" | "human";
1368
1593
  }>;
1369
1594
  note: z.ZodOptional<z.ZodString>;
1370
1595
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1374,47 +1599,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1374
1599
  locator: z.ZodOptional<z.ZodString>;
1375
1600
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1376
1601
  }, "strict", z.ZodTypeAny, {
1377
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1378
- label: string;
1379
1602
  id: string;
1603
+ label: string;
1604
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1380
1605
  capture: "at_action" | "historical_lookup" | "fixture";
1381
1606
  locator?: string | undefined;
1382
1607
  }, {
1383
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1384
- label: string;
1385
1608
  id: string;
1609
+ label: string;
1610
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1386
1611
  capture: "at_action" | "historical_lookup" | "fixture";
1387
1612
  locator?: string | undefined;
1388
1613
  }>, "many">>;
1389
1614
  }, "strict", z.ZodTypeAny, {
1390
1615
  kind: "correction_approved";
1391
1616
  evidence: {
1392
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1393
- label: string;
1394
1617
  id: string;
1618
+ label: string;
1619
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1395
1620
  capture: "at_action" | "historical_lookup" | "fixture";
1396
1621
  locator?: string | undefined;
1397
1622
  }[];
1398
1623
  correctionId: string;
1399
1624
  approvedBy: {
1400
- kind: "agent" | "human";
1401
- label: string;
1402
1625
  id: string;
1626
+ label: string;
1627
+ kind: "agent" | "human";
1403
1628
  };
1404
1629
  note?: string | undefined;
1405
1630
  }, {
1406
1631
  kind: "correction_approved";
1407
1632
  correctionId: string;
1408
1633
  approvedBy: {
1409
- kind: "agent" | "human";
1410
- label: string;
1411
1634
  id: string;
1635
+ label: string;
1636
+ kind: "agent" | "human";
1412
1637
  };
1413
1638
  note?: string | undefined;
1414
1639
  evidence?: {
1415
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1416
- label: string;
1417
1640
  id: string;
1641
+ label: string;
1642
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1418
1643
  capture: "at_action" | "historical_lookup" | "fixture";
1419
1644
  locator?: string | undefined;
1420
1645
  }[] | undefined;
@@ -1430,24 +1655,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1430
1655
  locator: z.ZodOptional<z.ZodString>;
1431
1656
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1432
1657
  }, "strict", z.ZodTypeAny, {
1433
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1434
- label: string;
1435
1658
  id: string;
1659
+ label: string;
1660
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1436
1661
  capture: "at_action" | "historical_lookup" | "fixture";
1437
1662
  locator?: string | undefined;
1438
1663
  }, {
1439
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1440
- label: string;
1441
1664
  id: string;
1665
+ label: string;
1666
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1442
1667
  capture: "at_action" | "historical_lookup" | "fixture";
1443
1668
  locator?: string | undefined;
1444
1669
  }>, "many">>;
1445
1670
  }, "strict", z.ZodTypeAny, {
1446
1671
  kind: "decision_superseded";
1447
1672
  evidence: {
1448
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1449
- label: string;
1450
1673
  id: string;
1674
+ label: string;
1675
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1451
1676
  capture: "at_action" | "historical_lookup" | "fixture";
1452
1677
  locator?: string | undefined;
1453
1678
  }[];
@@ -1460,9 +1685,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1460
1685
  correctionId: string;
1461
1686
  replacementDecisionId: string;
1462
1687
  evidence?: {
1463
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1464
- label: string;
1465
1688
  id: string;
1689
+ label: string;
1690
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1466
1691
  capture: "at_action" | "historical_lookup" | "fixture";
1467
1692
  locator?: string | undefined;
1468
1693
  }[] | undefined;
@@ -1478,15 +1703,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1478
1703
  locator: z.ZodOptional<z.ZodString>;
1479
1704
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1480
1705
  }, "strict", z.ZodTypeAny, {
1481
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1482
- label: string;
1483
1706
  id: string;
1707
+ label: string;
1708
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1484
1709
  capture: "at_action" | "historical_lookup" | "fixture";
1485
1710
  locator?: string | undefined;
1486
1711
  }, {
1487
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1488
- label: string;
1489
1712
  id: string;
1713
+ label: string;
1714
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1490
1715
  capture: "at_action" | "historical_lookup" | "fixture";
1491
1716
  locator?: string | undefined;
1492
1717
  }>, "many">>;
@@ -1499,9 +1724,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1499
1724
  agentId: string;
1500
1725
  sessionId: string;
1501
1726
  evidence: {
1502
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1503
- label: string;
1504
1727
  id: string;
1728
+ label: string;
1729
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1505
1730
  capture: "at_action" | "historical_lookup" | "fixture";
1506
1731
  locator?: string | undefined;
1507
1732
  }[];
@@ -1517,9 +1742,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1517
1742
  recallReceiptId: string;
1518
1743
  capturedAtAction: boolean;
1519
1744
  evidence?: {
1520
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1521
- label: string;
1522
1745
  id: string;
1746
+ label: string;
1747
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1523
1748
  capture: "at_action" | "historical_lookup" | "fixture";
1524
1749
  locator?: string | undefined;
1525
1750
  }[] | undefined;
@@ -1535,15 +1760,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1535
1760
  locator: z.ZodOptional<z.ZodString>;
1536
1761
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1537
1762
  }, "strict", z.ZodTypeAny, {
1538
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1539
- label: string;
1540
1763
  id: string;
1764
+ label: string;
1765
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
1766
  capture: "at_action" | "historical_lookup" | "fixture";
1542
1767
  locator?: string | undefined;
1543
1768
  }, {
1544
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1545
- label: string;
1546
1769
  id: string;
1770
+ label: string;
1771
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1547
1772
  capture: "at_action" | "historical_lookup" | "fixture";
1548
1773
  locator?: string | undefined;
1549
1774
  }>, "many">>;
@@ -1555,9 +1780,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1555
1780
  agentId: string;
1556
1781
  sessionId: string;
1557
1782
  evidence: {
1558
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1559
- label: string;
1560
1783
  id: string;
1784
+ label: string;
1785
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1561
1786
  capture: "at_action" | "historical_lookup" | "fixture";
1562
1787
  locator?: string | undefined;
1563
1788
  }[];
@@ -1574,9 +1799,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1574
1799
  recallReceiptId: string;
1575
1800
  staleDecisionAbsent: boolean;
1576
1801
  evidence?: {
1577
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1578
- label: string;
1579
1802
  id: string;
1803
+ label: string;
1804
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1580
1805
  capture: "at_action" | "historical_lookup" | "fixture";
1581
1806
  locator?: string | undefined;
1582
1807
  }[] | undefined;
@@ -1591,37 +1816,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1591
1816
  locator: z.ZodOptional<z.ZodString>;
1592
1817
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1593
1818
  }, "strict", z.ZodTypeAny, {
1594
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
- label: string;
1596
1819
  id: string;
1820
+ label: string;
1821
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1597
1822
  capture: "at_action" | "historical_lookup" | "fixture";
1598
1823
  locator?: string | undefined;
1599
1824
  }, {
1600
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1601
- label: string;
1602
1825
  id: string;
1826
+ label: string;
1827
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1603
1828
  capture: "at_action" | "historical_lookup" | "fixture";
1604
1829
  locator?: string | undefined;
1605
1830
  }>, "many">>;
1606
1831
  }, "strict", z.ZodTypeAny, {
1607
- kind: "mission_completed";
1608
1832
  summary: string;
1833
+ kind: "mission_completed";
1609
1834
  outcome: "failed" | "recovered" | "inconclusive";
1610
1835
  evidence: {
1611
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1612
- label: string;
1613
1836
  id: string;
1837
+ label: string;
1838
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1614
1839
  capture: "at_action" | "historical_lookup" | "fixture";
1615
1840
  locator?: string | undefined;
1616
1841
  }[];
1617
1842
  }, {
1618
- kind: "mission_completed";
1619
1843
  summary: string;
1844
+ kind: "mission_completed";
1620
1845
  outcome: "failed" | "recovered" | "inconclusive";
1621
1846
  evidence?: {
1622
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1623
- label: string;
1624
1847
  id: string;
1848
+ label: string;
1849
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1625
1850
  capture: "at_action" | "historical_lookup" | "fixture";
1626
1851
  locator?: string | undefined;
1627
1852
  }[] | undefined;
@@ -1629,38 +1854,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1629
1854
  kind: "mission_started";
1630
1855
  title: string;
1631
1856
  evidence: {
1632
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1633
- label: string;
1634
1857
  id: string;
1858
+ label: string;
1859
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1635
1860
  capture: "at_action" | "historical_lookup" | "fixture";
1636
1861
  locator?: string | undefined;
1637
1862
  }[];
1638
1863
  objective: string;
1639
1864
  runMode: "replay" | "fixture" | "live";
1640
1865
  } | {
1641
- kind: "agent_status";
1642
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1643
1866
  label: string;
1867
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1868
+ kind: "agent_status";
1644
1869
  role: string;
1645
1870
  agentId: string;
1646
1871
  sessionId: string;
1647
1872
  evidence: {
1648
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1649
- label: string;
1650
1873
  id: string;
1874
+ label: string;
1875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1651
1876
  capture: "at_action" | "historical_lookup" | "fixture";
1652
1877
  locator?: string | undefined;
1653
1878
  }[];
1654
1879
  detail?: string | undefined;
1655
1880
  } | {
1656
- kind: "agent_output";
1657
1881
  summary: string;
1882
+ kind: "agent_output";
1658
1883
  agentId: string;
1659
1884
  sessionId: string;
1660
1885
  evidence: {
1661
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1662
- label: string;
1663
1886
  id: string;
1887
+ label: string;
1888
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
1889
  capture: "at_action" | "historical_lookup" | "fixture";
1665
1890
  locator?: string | undefined;
1666
1891
  }[];
@@ -1671,9 +1896,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1671
1896
  statement: string;
1672
1897
  sessionId: string;
1673
1898
  evidence: {
1674
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1675
- label: string;
1676
1899
  id: string;
1900
+ label: string;
1901
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1677
1902
  capture: "at_action" | "historical_lookup" | "fixture";
1678
1903
  locator?: string | undefined;
1679
1904
  }[];
@@ -1681,12 +1906,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1681
1906
  decisionId: string;
1682
1907
  confidence?: number | undefined;
1683
1908
  } | {
1684
- kind: "conflict_detected";
1685
1909
  summary: string;
1910
+ kind: "conflict_detected";
1686
1911
  evidence: {
1687
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1688
- label: string;
1689
1912
  id: string;
1913
+ label: string;
1914
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1690
1915
  capture: "at_action" | "historical_lookup" | "fixture";
1691
1916
  locator?: string | undefined;
1692
1917
  }[];
@@ -1694,14 +1919,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1694
1919
  decisionIds: string[];
1695
1920
  agentIds: string[];
1696
1921
  } | {
1697
- kind: "test_result";
1698
1922
  summary: string;
1699
1923
  status: "error" | "failed" | "passed";
1924
+ kind: "test_result";
1700
1925
  command: string;
1701
1926
  evidence: {
1702
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1703
- label: string;
1704
1927
  id: string;
1928
+ label: string;
1929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1705
1930
  capture: "at_action" | "historical_lookup" | "fixture";
1706
1931
  locator?: string | undefined;
1707
1932
  }[];
@@ -1714,9 +1939,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1714
1939
  statement: string;
1715
1940
  rationale: string;
1716
1941
  evidence: {
1717
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1718
- label: string;
1719
1942
  id: string;
1943
+ label: string;
1944
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1720
1945
  capture: "at_action" | "historical_lookup" | "fixture";
1721
1946
  locator?: string | undefined;
1722
1947
  }[];
@@ -1728,25 +1953,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1728
1953
  } | {
1729
1954
  kind: "correction_approved";
1730
1955
  evidence: {
1731
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1732
- label: string;
1733
1956
  id: string;
1957
+ label: string;
1958
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1734
1959
  capture: "at_action" | "historical_lookup" | "fixture";
1735
1960
  locator?: string | undefined;
1736
1961
  }[];
1737
1962
  correctionId: string;
1738
1963
  approvedBy: {
1739
- kind: "agent" | "human";
1740
- label: string;
1741
1964
  id: string;
1965
+ label: string;
1966
+ kind: "agent" | "human";
1742
1967
  };
1743
1968
  note?: string | undefined;
1744
1969
  } | {
1745
1970
  kind: "decision_superseded";
1746
1971
  evidence: {
1747
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1748
- label: string;
1749
1972
  id: string;
1973
+ label: string;
1974
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1750
1975
  capture: "at_action" | "historical_lookup" | "fixture";
1751
1976
  locator?: string | undefined;
1752
1977
  }[];
@@ -1759,9 +1984,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1759
1984
  agentId: string;
1760
1985
  sessionId: string;
1761
1986
  evidence: {
1762
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1763
- label: string;
1764
1987
  id: string;
1988
+ label: string;
1989
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
1990
  capture: "at_action" | "historical_lookup" | "fixture";
1766
1991
  locator?: string | undefined;
1767
1992
  }[];
@@ -1773,9 +1998,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1773
1998
  agentId: string;
1774
1999
  sessionId: string;
1775
2000
  evidence: {
1776
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1777
- label: string;
1778
2001
  id: string;
2002
+ label: string;
2003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1779
2004
  capture: "at_action" | "historical_lookup" | "fixture";
1780
2005
  locator?: string | undefined;
1781
2006
  }[];
@@ -1784,13 +2009,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1784
2009
  recallReceiptId: string;
1785
2010
  staleDecisionAbsent: boolean;
1786
2011
  } | {
1787
- kind: "mission_completed";
1788
2012
  summary: string;
2013
+ kind: "mission_completed";
1789
2014
  outcome: "failed" | "recovered" | "inconclusive";
1790
2015
  evidence: {
1791
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1792
- label: string;
1793
2016
  id: string;
2017
+ label: string;
2018
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1794
2019
  capture: "at_action" | "historical_lookup" | "fixture";
1795
2020
  locator?: string | undefined;
1796
2021
  }[];
@@ -1800,37 +2025,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1800
2025
  objective: string;
1801
2026
  runMode: "replay" | "fixture" | "live";
1802
2027
  evidence?: {
1803
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1804
- label: string;
1805
2028
  id: string;
2029
+ label: string;
2030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1806
2031
  capture: "at_action" | "historical_lookup" | "fixture";
1807
2032
  locator?: string | undefined;
1808
2033
  }[] | undefined;
1809
2034
  } | {
1810
- kind: "agent_status";
1811
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1812
2035
  label: string;
2036
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2037
+ kind: "agent_status";
1813
2038
  role: string;
1814
2039
  agentId: string;
1815
2040
  sessionId: string;
1816
2041
  detail?: string | undefined;
1817
2042
  evidence?: {
1818
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1819
- label: string;
1820
2043
  id: string;
2044
+ label: string;
2045
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1821
2046
  capture: "at_action" | "historical_lookup" | "fixture";
1822
2047
  locator?: string | undefined;
1823
2048
  }[] | undefined;
1824
2049
  } | {
1825
- kind: "agent_output";
1826
2050
  summary: string;
2051
+ kind: "agent_output";
1827
2052
  agentId: string;
1828
2053
  sessionId: string;
1829
2054
  outputId: string;
1830
2055
  evidence?: {
1831
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1832
- label: string;
1833
2056
  id: string;
2057
+ label: string;
2058
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1834
2059
  capture: "at_action" | "historical_lookup" | "fixture";
1835
2060
  locator?: string | undefined;
1836
2061
  }[] | undefined;
@@ -1843,37 +2068,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1843
2068
  decisionId: string;
1844
2069
  confidence?: number | undefined;
1845
2070
  evidence?: {
1846
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1847
- label: string;
1848
2071
  id: string;
2072
+ label: string;
2073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1849
2074
  capture: "at_action" | "historical_lookup" | "fixture";
1850
2075
  locator?: string | undefined;
1851
2076
  }[] | undefined;
1852
2077
  } | {
1853
- kind: "conflict_detected";
1854
2078
  summary: string;
2079
+ kind: "conflict_detected";
1855
2080
  conflictId: string;
1856
2081
  decisionIds: string[];
1857
2082
  agentIds: string[];
1858
2083
  evidence?: {
1859
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1860
- label: string;
1861
2084
  id: string;
2085
+ label: string;
2086
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1862
2087
  capture: "at_action" | "historical_lookup" | "fixture";
1863
2088
  locator?: string | undefined;
1864
2089
  }[] | undefined;
1865
2090
  } | {
1866
- kind: "test_result";
1867
2091
  summary: string;
1868
2092
  status: "error" | "failed" | "passed";
2093
+ kind: "test_result";
1869
2094
  command: string;
1870
2095
  decisionId: string;
1871
2096
  testId: string;
1872
2097
  durationMs?: number | undefined;
1873
2098
  evidence?: {
1874
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1875
- label: string;
1876
2099
  id: string;
2100
+ label: string;
2101
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1877
2102
  capture: "at_action" | "historical_lookup" | "fixture";
1878
2103
  locator?: string | undefined;
1879
2104
  }[] | undefined;
@@ -1888,9 +2113,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1888
2113
  supersedesDecisionIds: string[];
1889
2114
  proposedBy: string;
1890
2115
  evidence?: {
1891
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1892
- label: string;
1893
2116
  id: string;
2117
+ label: string;
2118
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1894
2119
  capture: "at_action" | "historical_lookup" | "fixture";
1895
2120
  locator?: string | undefined;
1896
2121
  }[] | undefined;
@@ -1898,15 +2123,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1898
2123
  kind: "correction_approved";
1899
2124
  correctionId: string;
1900
2125
  approvedBy: {
1901
- kind: "agent" | "human";
1902
- label: string;
1903
2126
  id: string;
2127
+ label: string;
2128
+ kind: "agent" | "human";
1904
2129
  };
1905
2130
  note?: string | undefined;
1906
2131
  evidence?: {
1907
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
- label: string;
1909
2132
  id: string;
2133
+ label: string;
2134
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1910
2135
  capture: "at_action" | "historical_lookup" | "fixture";
1911
2136
  locator?: string | undefined;
1912
2137
  }[] | undefined;
@@ -1916,9 +2141,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1916
2141
  correctionId: string;
1917
2142
  replacementDecisionId: string;
1918
2143
  evidence?: {
1919
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1920
- label: string;
1921
2144
  id: string;
2145
+ label: string;
2146
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1922
2147
  capture: "at_action" | "historical_lookup" | "fixture";
1923
2148
  locator?: string | undefined;
1924
2149
  }[] | undefined;
@@ -1931,9 +2156,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1931
2156
  recallReceiptId: string;
1932
2157
  capturedAtAction: boolean;
1933
2158
  evidence?: {
1934
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1935
- label: string;
1936
2159
  id: string;
2160
+ label: string;
2161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1937
2162
  capture: "at_action" | "historical_lookup" | "fixture";
1938
2163
  locator?: string | undefined;
1939
2164
  }[] | undefined;
@@ -1946,20 +2171,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1946
2171
  recallReceiptId: string;
1947
2172
  staleDecisionAbsent: boolean;
1948
2173
  evidence?: {
1949
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1950
- label: string;
1951
2174
  id: string;
2175
+ label: string;
2176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1952
2177
  capture: "at_action" | "historical_lookup" | "fixture";
1953
2178
  locator?: string | undefined;
1954
2179
  }[] | undefined;
1955
2180
  } | {
1956
- kind: "mission_completed";
1957
2181
  summary: string;
2182
+ kind: "mission_completed";
1958
2183
  outcome: "failed" | "recovered" | "inconclusive";
1959
2184
  evidence?: {
1960
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1961
- label: string;
1962
2185
  id: string;
2186
+ label: string;
2187
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1963
2188
  capture: "at_action" | "historical_lookup" | "fixture";
1964
2189
  locator?: string | undefined;
1965
2190
  }[] | undefined;
@@ -1980,15 +2205,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1980
2205
  locator: z.ZodOptional<z.ZodString>;
1981
2206
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1982
2207
  }, "strict", z.ZodTypeAny, {
1983
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1984
- label: string;
1985
2208
  id: string;
2209
+ label: string;
2210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1986
2211
  capture: "at_action" | "historical_lookup" | "fixture";
1987
2212
  locator?: string | undefined;
1988
2213
  }, {
1989
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1990
- label: string;
1991
2214
  id: string;
2215
+ label: string;
2216
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1992
2217
  capture: "at_action" | "historical_lookup" | "fixture";
1993
2218
  locator?: string | undefined;
1994
2219
  }>, "many">>;
@@ -1996,9 +2221,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1996
2221
  kind: "mission_started";
1997
2222
  title: string;
1998
2223
  evidence: {
1999
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2000
- label: string;
2001
2224
  id: string;
2225
+ label: string;
2226
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2002
2227
  capture: "at_action" | "historical_lookup" | "fixture";
2003
2228
  locator?: string | undefined;
2004
2229
  }[];
@@ -2010,9 +2235,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2010
2235
  objective: string;
2011
2236
  runMode: "replay" | "fixture" | "live";
2012
2237
  evidence?: {
2013
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2014
- label: string;
2015
2238
  id: string;
2239
+ label: string;
2240
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2016
2241
  capture: "at_action" | "historical_lookup" | "fixture";
2017
2242
  locator?: string | undefined;
2018
2243
  }[] | undefined;
@@ -2028,15 +2253,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2028
2253
  locator: z.ZodOptional<z.ZodString>;
2029
2254
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2030
2255
  }, "strict", z.ZodTypeAny, {
2031
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2032
- label: string;
2033
2256
  id: string;
2257
+ label: string;
2258
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2034
2259
  capture: "at_action" | "historical_lookup" | "fixture";
2035
2260
  locator?: string | undefined;
2036
2261
  }, {
2037
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2038
- label: string;
2039
2262
  id: string;
2263
+ label: string;
2264
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2040
2265
  capture: "at_action" | "historical_lookup" | "fixture";
2041
2266
  locator?: string | undefined;
2042
2267
  }>, "many">>;
@@ -2044,32 +2269,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2044
2269
  sessionId: z.ZodString;
2045
2270
  kind: z.ZodLiteral<"agent_status">;
2046
2271
  }, "strict", z.ZodTypeAny, {
2047
- kind: "agent_status";
2048
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2049
2272
  label: string;
2273
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2274
+ kind: "agent_status";
2050
2275
  role: string;
2051
2276
  agentId: string;
2052
2277
  sessionId: string;
2053
2278
  evidence: {
2054
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2055
- label: string;
2056
2279
  id: string;
2280
+ label: string;
2281
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
2282
  capture: "at_action" | "historical_lookup" | "fixture";
2058
2283
  locator?: string | undefined;
2059
2284
  }[];
2060
2285
  detail?: string | undefined;
2061
2286
  }, {
2062
- kind: "agent_status";
2063
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2064
2287
  label: string;
2288
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2289
+ kind: "agent_status";
2065
2290
  role: string;
2066
2291
  agentId: string;
2067
2292
  sessionId: string;
2068
2293
  detail?: string | undefined;
2069
2294
  evidence?: {
2070
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2071
- label: string;
2072
2295
  id: string;
2296
+ label: string;
2297
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2073
2298
  capture: "at_action" | "historical_lookup" | "fixture";
2074
2299
  locator?: string | undefined;
2075
2300
  }[] | undefined;
@@ -2083,15 +2308,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2083
2308
  locator: z.ZodOptional<z.ZodString>;
2084
2309
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2085
2310
  }, "strict", z.ZodTypeAny, {
2086
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2087
- label: string;
2088
2311
  id: string;
2312
+ label: string;
2313
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2089
2314
  capture: "at_action" | "historical_lookup" | "fixture";
2090
2315
  locator?: string | undefined;
2091
2316
  }, {
2092
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2093
- label: string;
2094
2317
  id: string;
2318
+ label: string;
2319
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2095
2320
  capture: "at_action" | "historical_lookup" | "fixture";
2096
2321
  locator?: string | undefined;
2097
2322
  }>, "many">>;
@@ -2099,28 +2324,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2099
2324
  sessionId: z.ZodString;
2100
2325
  kind: z.ZodLiteral<"agent_output">;
2101
2326
  }, "strict", z.ZodTypeAny, {
2102
- kind: "agent_output";
2103
2327
  summary: string;
2328
+ kind: "agent_output";
2104
2329
  agentId: string;
2105
2330
  sessionId: string;
2106
2331
  evidence: {
2107
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2108
- label: string;
2109
2332
  id: string;
2333
+ label: string;
2334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2110
2335
  capture: "at_action" | "historical_lookup" | "fixture";
2111
2336
  locator?: string | undefined;
2112
2337
  }[];
2113
2338
  outputId: string;
2114
2339
  }, {
2115
- kind: "agent_output";
2116
2340
  summary: string;
2341
+ kind: "agent_output";
2117
2342
  agentId: string;
2118
2343
  sessionId: string;
2119
2344
  outputId: string;
2120
2345
  evidence?: {
2121
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2122
- label: string;
2123
2346
  id: string;
2347
+ label: string;
2348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2124
2349
  capture: "at_action" | "historical_lookup" | "fixture";
2125
2350
  locator?: string | undefined;
2126
2351
  }[] | undefined;
@@ -2136,15 +2361,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2136
2361
  locator: z.ZodOptional<z.ZodString>;
2137
2362
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2138
2363
  }, "strict", z.ZodTypeAny, {
2139
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2140
- label: string;
2141
2364
  id: string;
2365
+ label: string;
2366
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2142
2367
  capture: "at_action" | "historical_lookup" | "fixture";
2143
2368
  locator?: string | undefined;
2144
2369
  }, {
2145
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2146
- label: string;
2147
2370
  id: string;
2371
+ label: string;
2372
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2148
2373
  capture: "at_action" | "historical_lookup" | "fixture";
2149
2374
  locator?: string | undefined;
2150
2375
  }>, "many">>;
@@ -2157,9 +2382,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2157
2382
  statement: string;
2158
2383
  sessionId: string;
2159
2384
  evidence: {
2160
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2161
- label: string;
2162
2385
  id: string;
2386
+ label: string;
2387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2163
2388
  capture: "at_action" | "historical_lookup" | "fixture";
2164
2389
  locator?: string | undefined;
2165
2390
  }[];
@@ -2175,9 +2400,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2175
2400
  decisionId: string;
2176
2401
  confidence?: number | undefined;
2177
2402
  evidence?: {
2178
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2179
- label: string;
2180
2403
  id: string;
2404
+ label: string;
2405
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2181
2406
  capture: "at_action" | "historical_lookup" | "fixture";
2182
2407
  locator?: string | undefined;
2183
2408
  }[] | undefined;
@@ -2194,25 +2419,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2194
2419
  locator: z.ZodOptional<z.ZodString>;
2195
2420
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2196
2421
  }, "strict", z.ZodTypeAny, {
2197
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2198
- label: string;
2199
2422
  id: string;
2423
+ label: string;
2424
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2425
  capture: "at_action" | "historical_lookup" | "fixture";
2201
2426
  locator?: string | undefined;
2202
2427
  }, {
2203
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2204
- label: string;
2205
2428
  id: string;
2429
+ label: string;
2430
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2206
2431
  capture: "at_action" | "historical_lookup" | "fixture";
2207
2432
  locator?: string | undefined;
2208
2433
  }>, "many">>;
2209
2434
  }, "strict", z.ZodTypeAny, {
2210
- kind: "conflict_detected";
2211
2435
  summary: string;
2436
+ kind: "conflict_detected";
2212
2437
  evidence: {
2213
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2214
- label: string;
2215
2438
  id: string;
2439
+ label: string;
2440
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2216
2441
  capture: "at_action" | "historical_lookup" | "fixture";
2217
2442
  locator?: string | undefined;
2218
2443
  }[];
@@ -2220,15 +2445,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2220
2445
  decisionIds: string[];
2221
2446
  agentIds: string[];
2222
2447
  }, {
2223
- kind: "conflict_detected";
2224
2448
  summary: string;
2449
+ kind: "conflict_detected";
2225
2450
  conflictId: string;
2226
2451
  decisionIds: string[];
2227
2452
  agentIds: string[];
2228
2453
  evidence?: {
2229
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
- label: string;
2231
2454
  id: string;
2455
+ label: string;
2456
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2232
2457
  capture: "at_action" | "historical_lookup" | "fixture";
2233
2458
  locator?: string | undefined;
2234
2459
  }[] | undefined;
@@ -2248,27 +2473,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2248
2473
  locator: z.ZodOptional<z.ZodString>;
2249
2474
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2250
2475
  }, "strict", z.ZodTypeAny, {
2251
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2252
- label: string;
2253
2476
  id: string;
2477
+ label: string;
2478
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2254
2479
  capture: "at_action" | "historical_lookup" | "fixture";
2255
2480
  locator?: string | undefined;
2256
2481
  }, {
2257
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2258
- label: string;
2259
2482
  id: string;
2483
+ label: string;
2484
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2260
2485
  capture: "at_action" | "historical_lookup" | "fixture";
2261
2486
  locator?: string | undefined;
2262
2487
  }>, "many">>;
2263
2488
  }, "strict", z.ZodTypeAny, {
2264
- kind: "test_result";
2265
2489
  summary: string;
2266
2490
  status: "error" | "failed" | "passed";
2491
+ kind: "test_result";
2267
2492
  command: string;
2268
2493
  evidence: {
2269
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2270
- label: string;
2271
2494
  id: string;
2495
+ label: string;
2496
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2272
2497
  capture: "at_action" | "historical_lookup" | "fixture";
2273
2498
  locator?: string | undefined;
2274
2499
  }[];
@@ -2277,17 +2502,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2277
2502
  durationMs?: number | undefined;
2278
2503
  correctionId?: string | undefined;
2279
2504
  }, {
2280
- kind: "test_result";
2281
2505
  summary: string;
2282
2506
  status: "error" | "failed" | "passed";
2507
+ kind: "test_result";
2283
2508
  command: string;
2284
2509
  decisionId: string;
2285
2510
  testId: string;
2286
2511
  durationMs?: number | undefined;
2287
2512
  evidence?: {
2288
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2289
- label: string;
2290
2513
  id: string;
2514
+ label: string;
2515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2291
2516
  capture: "at_action" | "historical_lookup" | "fixture";
2292
2517
  locator?: string | undefined;
2293
2518
  }[] | undefined;
@@ -2308,15 +2533,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2308
2533
  locator: z.ZodOptional<z.ZodString>;
2309
2534
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2310
2535
  }, "strict", z.ZodTypeAny, {
2311
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2312
- label: string;
2313
2536
  id: string;
2537
+ label: string;
2538
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2314
2539
  capture: "at_action" | "historical_lookup" | "fixture";
2315
2540
  locator?: string | undefined;
2316
2541
  }, {
2317
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2318
- label: string;
2319
2542
  id: string;
2543
+ label: string;
2544
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2320
2545
  capture: "at_action" | "historical_lookup" | "fixture";
2321
2546
  locator?: string | undefined;
2322
2547
  }>, "many">>;
@@ -2325,9 +2550,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2325
2550
  statement: string;
2326
2551
  rationale: string;
2327
2552
  evidence: {
2328
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2329
- label: string;
2330
2553
  id: string;
2554
+ label: string;
2555
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2331
2556
  capture: "at_action" | "historical_lookup" | "fixture";
2332
2557
  locator?: string | undefined;
2333
2558
  }[];
@@ -2346,9 +2571,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2346
2571
  supersedesDecisionIds: string[];
2347
2572
  proposedBy: string;
2348
2573
  evidence?: {
2349
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2350
- label: string;
2351
2574
  id: string;
2575
+ label: string;
2576
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2352
2577
  capture: "at_action" | "historical_lookup" | "fixture";
2353
2578
  locator?: string | undefined;
2354
2579
  }[] | undefined;
@@ -2360,13 +2585,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2360
2585
  id: z.ZodString;
2361
2586
  label: z.ZodString;
2362
2587
  }, "strict", z.ZodTypeAny, {
2363
- kind: "agent" | "human";
2364
- label: string;
2365
2588
  id: string;
2366
- }, {
2367
- kind: "agent" | "human";
2368
2589
  label: string;
2590
+ kind: "agent" | "human";
2591
+ }, {
2369
2592
  id: string;
2593
+ label: string;
2594
+ kind: "agent" | "human";
2370
2595
  }>;
2371
2596
  note: z.ZodOptional<z.ZodString>;
2372
2597
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2376,47 +2601,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2376
2601
  locator: z.ZodOptional<z.ZodString>;
2377
2602
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2378
2603
  }, "strict", z.ZodTypeAny, {
2379
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2380
- label: string;
2381
2604
  id: string;
2605
+ label: string;
2606
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2382
2607
  capture: "at_action" | "historical_lookup" | "fixture";
2383
2608
  locator?: string | undefined;
2384
2609
  }, {
2385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2386
- label: string;
2387
2610
  id: string;
2611
+ label: string;
2612
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2388
2613
  capture: "at_action" | "historical_lookup" | "fixture";
2389
2614
  locator?: string | undefined;
2390
2615
  }>, "many">>;
2391
2616
  }, "strict", z.ZodTypeAny, {
2392
2617
  kind: "correction_approved";
2393
2618
  evidence: {
2394
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2395
- label: string;
2396
2619
  id: string;
2620
+ label: string;
2621
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2397
2622
  capture: "at_action" | "historical_lookup" | "fixture";
2398
2623
  locator?: string | undefined;
2399
2624
  }[];
2400
2625
  correctionId: string;
2401
2626
  approvedBy: {
2402
- kind: "agent" | "human";
2403
- label: string;
2404
2627
  id: string;
2628
+ label: string;
2629
+ kind: "agent" | "human";
2405
2630
  };
2406
2631
  note?: string | undefined;
2407
2632
  }, {
2408
2633
  kind: "correction_approved";
2409
2634
  correctionId: string;
2410
2635
  approvedBy: {
2411
- kind: "agent" | "human";
2412
- label: string;
2413
2636
  id: string;
2637
+ label: string;
2638
+ kind: "agent" | "human";
2414
2639
  };
2415
2640
  note?: string | undefined;
2416
2641
  evidence?: {
2417
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2418
- label: string;
2419
2642
  id: string;
2643
+ label: string;
2644
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2420
2645
  capture: "at_action" | "historical_lookup" | "fixture";
2421
2646
  locator?: string | undefined;
2422
2647
  }[] | undefined;
@@ -2432,24 +2657,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2432
2657
  locator: z.ZodOptional<z.ZodString>;
2433
2658
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2434
2659
  }, "strict", z.ZodTypeAny, {
2435
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2436
- label: string;
2437
2660
  id: string;
2661
+ label: string;
2662
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2438
2663
  capture: "at_action" | "historical_lookup" | "fixture";
2439
2664
  locator?: string | undefined;
2440
2665
  }, {
2441
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2442
- label: string;
2443
2666
  id: string;
2667
+ label: string;
2668
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2444
2669
  capture: "at_action" | "historical_lookup" | "fixture";
2445
2670
  locator?: string | undefined;
2446
2671
  }>, "many">>;
2447
2672
  }, "strict", z.ZodTypeAny, {
2448
2673
  kind: "decision_superseded";
2449
2674
  evidence: {
2450
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2451
- label: string;
2452
2675
  id: string;
2676
+ label: string;
2677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2453
2678
  capture: "at_action" | "historical_lookup" | "fixture";
2454
2679
  locator?: string | undefined;
2455
2680
  }[];
@@ -2462,9 +2687,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2462
2687
  correctionId: string;
2463
2688
  replacementDecisionId: string;
2464
2689
  evidence?: {
2465
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2466
- label: string;
2467
2690
  id: string;
2691
+ label: string;
2692
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2468
2693
  capture: "at_action" | "historical_lookup" | "fixture";
2469
2694
  locator?: string | undefined;
2470
2695
  }[] | undefined;
@@ -2480,15 +2705,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2480
2705
  locator: z.ZodOptional<z.ZodString>;
2481
2706
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2482
2707
  }, "strict", z.ZodTypeAny, {
2483
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2484
- label: string;
2485
2708
  id: string;
2709
+ label: string;
2710
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2486
2711
  capture: "at_action" | "historical_lookup" | "fixture";
2487
2712
  locator?: string | undefined;
2488
2713
  }, {
2489
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2490
- label: string;
2491
2714
  id: string;
2715
+ label: string;
2716
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2492
2717
  capture: "at_action" | "historical_lookup" | "fixture";
2493
2718
  locator?: string | undefined;
2494
2719
  }>, "many">>;
@@ -2501,9 +2726,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2501
2726
  agentId: string;
2502
2727
  sessionId: string;
2503
2728
  evidence: {
2504
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2505
- label: string;
2506
2729
  id: string;
2730
+ label: string;
2731
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2507
2732
  capture: "at_action" | "historical_lookup" | "fixture";
2508
2733
  locator?: string | undefined;
2509
2734
  }[];
@@ -2519,9 +2744,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2519
2744
  recallReceiptId: string;
2520
2745
  capturedAtAction: boolean;
2521
2746
  evidence?: {
2522
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2523
- label: string;
2524
2747
  id: string;
2748
+ label: string;
2749
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2525
2750
  capture: "at_action" | "historical_lookup" | "fixture";
2526
2751
  locator?: string | undefined;
2527
2752
  }[] | undefined;
@@ -2537,15 +2762,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2537
2762
  locator: z.ZodOptional<z.ZodString>;
2538
2763
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2539
2764
  }, "strict", z.ZodTypeAny, {
2540
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2541
- label: string;
2542
2765
  id: string;
2766
+ label: string;
2767
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
2768
  capture: "at_action" | "historical_lookup" | "fixture";
2544
2769
  locator?: string | undefined;
2545
2770
  }, {
2546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2547
- label: string;
2548
2771
  id: string;
2772
+ label: string;
2773
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2549
2774
  capture: "at_action" | "historical_lookup" | "fixture";
2550
2775
  locator?: string | undefined;
2551
2776
  }>, "many">>;
@@ -2557,9 +2782,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2557
2782
  agentId: string;
2558
2783
  sessionId: string;
2559
2784
  evidence: {
2560
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2561
- label: string;
2562
2785
  id: string;
2786
+ label: string;
2787
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2563
2788
  capture: "at_action" | "historical_lookup" | "fixture";
2564
2789
  locator?: string | undefined;
2565
2790
  }[];
@@ -2576,9 +2801,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2576
2801
  recallReceiptId: string;
2577
2802
  staleDecisionAbsent: boolean;
2578
2803
  evidence?: {
2579
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2580
- label: string;
2581
2804
  id: string;
2805
+ label: string;
2806
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2582
2807
  capture: "at_action" | "historical_lookup" | "fixture";
2583
2808
  locator?: string | undefined;
2584
2809
  }[] | undefined;
@@ -2593,37 +2818,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2593
2818
  locator: z.ZodOptional<z.ZodString>;
2594
2819
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2595
2820
  }, "strict", z.ZodTypeAny, {
2596
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
- label: string;
2598
2821
  id: string;
2822
+ label: string;
2823
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2599
2824
  capture: "at_action" | "historical_lookup" | "fixture";
2600
2825
  locator?: string | undefined;
2601
2826
  }, {
2602
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2603
- label: string;
2604
2827
  id: string;
2828
+ label: string;
2829
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2605
2830
  capture: "at_action" | "historical_lookup" | "fixture";
2606
2831
  locator?: string | undefined;
2607
2832
  }>, "many">>;
2608
2833
  }, "strict", z.ZodTypeAny, {
2609
- kind: "mission_completed";
2610
2834
  summary: string;
2835
+ kind: "mission_completed";
2611
2836
  outcome: "failed" | "recovered" | "inconclusive";
2612
2837
  evidence: {
2613
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2614
- label: string;
2615
2838
  id: string;
2839
+ label: string;
2840
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2616
2841
  capture: "at_action" | "historical_lookup" | "fixture";
2617
2842
  locator?: string | undefined;
2618
2843
  }[];
2619
2844
  }, {
2620
- kind: "mission_completed";
2621
2845
  summary: string;
2846
+ kind: "mission_completed";
2622
2847
  outcome: "failed" | "recovered" | "inconclusive";
2623
2848
  evidence?: {
2624
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2625
- label: string;
2626
2849
  id: string;
2850
+ label: string;
2851
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2627
2852
  capture: "at_action" | "historical_lookup" | "fixture";
2628
2853
  locator?: string | undefined;
2629
2854
  }[] | undefined;
@@ -2631,38 +2856,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2631
2856
  kind: "mission_started";
2632
2857
  title: string;
2633
2858
  evidence: {
2634
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2635
- label: string;
2636
2859
  id: string;
2860
+ label: string;
2861
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2637
2862
  capture: "at_action" | "historical_lookup" | "fixture";
2638
2863
  locator?: string | undefined;
2639
2864
  }[];
2640
2865
  objective: string;
2641
2866
  runMode: "replay" | "fixture" | "live";
2642
2867
  } | {
2643
- kind: "agent_status";
2644
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2645
2868
  label: string;
2869
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2870
+ kind: "agent_status";
2646
2871
  role: string;
2647
2872
  agentId: string;
2648
2873
  sessionId: string;
2649
2874
  evidence: {
2650
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2651
- label: string;
2652
2875
  id: string;
2876
+ label: string;
2877
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2653
2878
  capture: "at_action" | "historical_lookup" | "fixture";
2654
2879
  locator?: string | undefined;
2655
2880
  }[];
2656
2881
  detail?: string | undefined;
2657
2882
  } | {
2658
- kind: "agent_output";
2659
2883
  summary: string;
2884
+ kind: "agent_output";
2660
2885
  agentId: string;
2661
2886
  sessionId: string;
2662
2887
  evidence: {
2663
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2664
- label: string;
2665
2888
  id: string;
2889
+ label: string;
2890
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2666
2891
  capture: "at_action" | "historical_lookup" | "fixture";
2667
2892
  locator?: string | undefined;
2668
2893
  }[];
@@ -2673,9 +2898,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2673
2898
  statement: string;
2674
2899
  sessionId: string;
2675
2900
  evidence: {
2676
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2677
- label: string;
2678
2901
  id: string;
2902
+ label: string;
2903
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2679
2904
  capture: "at_action" | "historical_lookup" | "fixture";
2680
2905
  locator?: string | undefined;
2681
2906
  }[];
@@ -2683,12 +2908,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2683
2908
  decisionId: string;
2684
2909
  confidence?: number | undefined;
2685
2910
  } | {
2686
- kind: "conflict_detected";
2687
2911
  summary: string;
2912
+ kind: "conflict_detected";
2688
2913
  evidence: {
2689
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2690
- label: string;
2691
2914
  id: string;
2915
+ label: string;
2916
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2692
2917
  capture: "at_action" | "historical_lookup" | "fixture";
2693
2918
  locator?: string | undefined;
2694
2919
  }[];
@@ -2696,14 +2921,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2696
2921
  decisionIds: string[];
2697
2922
  agentIds: string[];
2698
2923
  } | {
2699
- kind: "test_result";
2700
2924
  summary: string;
2701
2925
  status: "error" | "failed" | "passed";
2926
+ kind: "test_result";
2702
2927
  command: string;
2703
2928
  evidence: {
2704
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2705
- label: string;
2706
2929
  id: string;
2930
+ label: string;
2931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2707
2932
  capture: "at_action" | "historical_lookup" | "fixture";
2708
2933
  locator?: string | undefined;
2709
2934
  }[];
@@ -2716,9 +2941,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2716
2941
  statement: string;
2717
2942
  rationale: string;
2718
2943
  evidence: {
2719
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2720
- label: string;
2721
2944
  id: string;
2945
+ label: string;
2946
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2722
2947
  capture: "at_action" | "historical_lookup" | "fixture";
2723
2948
  locator?: string | undefined;
2724
2949
  }[];
@@ -2730,25 +2955,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2730
2955
  } | {
2731
2956
  kind: "correction_approved";
2732
2957
  evidence: {
2733
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2734
- label: string;
2735
2958
  id: string;
2959
+ label: string;
2960
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2736
2961
  capture: "at_action" | "historical_lookup" | "fixture";
2737
2962
  locator?: string | undefined;
2738
2963
  }[];
2739
2964
  correctionId: string;
2740
2965
  approvedBy: {
2741
- kind: "agent" | "human";
2742
- label: string;
2743
2966
  id: string;
2967
+ label: string;
2968
+ kind: "agent" | "human";
2744
2969
  };
2745
2970
  note?: string | undefined;
2746
2971
  } | {
2747
2972
  kind: "decision_superseded";
2748
2973
  evidence: {
2749
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2750
- label: string;
2751
2974
  id: string;
2975
+ label: string;
2976
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2752
2977
  capture: "at_action" | "historical_lookup" | "fixture";
2753
2978
  locator?: string | undefined;
2754
2979
  }[];
@@ -2761,9 +2986,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2761
2986
  agentId: string;
2762
2987
  sessionId: string;
2763
2988
  evidence: {
2764
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2765
- label: string;
2766
2989
  id: string;
2990
+ label: string;
2991
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
2992
  capture: "at_action" | "historical_lookup" | "fixture";
2768
2993
  locator?: string | undefined;
2769
2994
  }[];
@@ -2775,9 +3000,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2775
3000
  agentId: string;
2776
3001
  sessionId: string;
2777
3002
  evidence: {
2778
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2779
- label: string;
2780
3003
  id: string;
3004
+ label: string;
3005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2781
3006
  capture: "at_action" | "historical_lookup" | "fixture";
2782
3007
  locator?: string | undefined;
2783
3008
  }[];
@@ -2786,13 +3011,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2786
3011
  recallReceiptId: string;
2787
3012
  staleDecisionAbsent: boolean;
2788
3013
  } | {
2789
- kind: "mission_completed";
2790
3014
  summary: string;
3015
+ kind: "mission_completed";
2791
3016
  outcome: "failed" | "recovered" | "inconclusive";
2792
3017
  evidence: {
2793
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2794
- label: string;
2795
3018
  id: string;
3019
+ label: string;
3020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2796
3021
  capture: "at_action" | "historical_lookup" | "fixture";
2797
3022
  locator?: string | undefined;
2798
3023
  }[];
@@ -2802,37 +3027,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2802
3027
  objective: string;
2803
3028
  runMode: "replay" | "fixture" | "live";
2804
3029
  evidence?: {
2805
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2806
- label: string;
2807
3030
  id: string;
3031
+ label: string;
3032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2808
3033
  capture: "at_action" | "historical_lookup" | "fixture";
2809
3034
  locator?: string | undefined;
2810
3035
  }[] | undefined;
2811
3036
  } | {
2812
- kind: "agent_status";
2813
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2814
3037
  label: string;
3038
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3039
+ kind: "agent_status";
2815
3040
  role: string;
2816
3041
  agentId: string;
2817
3042
  sessionId: string;
2818
3043
  detail?: string | undefined;
2819
3044
  evidence?: {
2820
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2821
- label: string;
2822
3045
  id: string;
3046
+ label: string;
3047
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2823
3048
  capture: "at_action" | "historical_lookup" | "fixture";
2824
3049
  locator?: string | undefined;
2825
3050
  }[] | undefined;
2826
3051
  } | {
2827
- kind: "agent_output";
2828
3052
  summary: string;
3053
+ kind: "agent_output";
2829
3054
  agentId: string;
2830
3055
  sessionId: string;
2831
3056
  outputId: string;
2832
3057
  evidence?: {
2833
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2834
- label: string;
2835
3058
  id: string;
3059
+ label: string;
3060
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2836
3061
  capture: "at_action" | "historical_lookup" | "fixture";
2837
3062
  locator?: string | undefined;
2838
3063
  }[] | undefined;
@@ -2845,37 +3070,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2845
3070
  decisionId: string;
2846
3071
  confidence?: number | undefined;
2847
3072
  evidence?: {
2848
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2849
- label: string;
2850
3073
  id: string;
3074
+ label: string;
3075
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2851
3076
  capture: "at_action" | "historical_lookup" | "fixture";
2852
3077
  locator?: string | undefined;
2853
3078
  }[] | undefined;
2854
3079
  } | {
2855
- kind: "conflict_detected";
2856
3080
  summary: string;
3081
+ kind: "conflict_detected";
2857
3082
  conflictId: string;
2858
3083
  decisionIds: string[];
2859
3084
  agentIds: string[];
2860
3085
  evidence?: {
2861
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2862
- label: string;
2863
3086
  id: string;
3087
+ label: string;
3088
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2864
3089
  capture: "at_action" | "historical_lookup" | "fixture";
2865
3090
  locator?: string | undefined;
2866
3091
  }[] | undefined;
2867
3092
  } | {
2868
- kind: "test_result";
2869
3093
  summary: string;
2870
3094
  status: "error" | "failed" | "passed";
3095
+ kind: "test_result";
2871
3096
  command: string;
2872
3097
  decisionId: string;
2873
3098
  testId: string;
2874
3099
  durationMs?: number | undefined;
2875
3100
  evidence?: {
2876
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2877
- label: string;
2878
3101
  id: string;
3102
+ label: string;
3103
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2879
3104
  capture: "at_action" | "historical_lookup" | "fixture";
2880
3105
  locator?: string | undefined;
2881
3106
  }[] | undefined;
@@ -2890,9 +3115,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2890
3115
  supersedesDecisionIds: string[];
2891
3116
  proposedBy: string;
2892
3117
  evidence?: {
2893
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2894
- label: string;
2895
3118
  id: string;
3119
+ label: string;
3120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2896
3121
  capture: "at_action" | "historical_lookup" | "fixture";
2897
3122
  locator?: string | undefined;
2898
3123
  }[] | undefined;
@@ -2900,15 +3125,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2900
3125
  kind: "correction_approved";
2901
3126
  correctionId: string;
2902
3127
  approvedBy: {
2903
- kind: "agent" | "human";
2904
- label: string;
2905
3128
  id: string;
3129
+ label: string;
3130
+ kind: "agent" | "human";
2906
3131
  };
2907
3132
  note?: string | undefined;
2908
3133
  evidence?: {
2909
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2910
- label: string;
2911
3134
  id: string;
3135
+ label: string;
3136
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
3137
  capture: "at_action" | "historical_lookup" | "fixture";
2913
3138
  locator?: string | undefined;
2914
3139
  }[] | undefined;
@@ -2918,9 +3143,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2918
3143
  correctionId: string;
2919
3144
  replacementDecisionId: string;
2920
3145
  evidence?: {
2921
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2922
- label: string;
2923
3146
  id: string;
3147
+ label: string;
3148
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2924
3149
  capture: "at_action" | "historical_lookup" | "fixture";
2925
3150
  locator?: string | undefined;
2926
3151
  }[] | undefined;
@@ -2933,9 +3158,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2933
3158
  recallReceiptId: string;
2934
3159
  capturedAtAction: boolean;
2935
3160
  evidence?: {
2936
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2937
- label: string;
2938
3161
  id: string;
3162
+ label: string;
3163
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2939
3164
  capture: "at_action" | "historical_lookup" | "fixture";
2940
3165
  locator?: string | undefined;
2941
3166
  }[] | undefined;
@@ -2948,20 +3173,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2948
3173
  recallReceiptId: string;
2949
3174
  staleDecisionAbsent: boolean;
2950
3175
  evidence?: {
2951
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2952
- label: string;
2953
3176
  id: string;
3177
+ label: string;
3178
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2954
3179
  capture: "at_action" | "historical_lookup" | "fixture";
2955
3180
  locator?: string | undefined;
2956
3181
  }[] | undefined;
2957
3182
  } | {
2958
- kind: "mission_completed";
2959
3183
  summary: string;
3184
+ kind: "mission_completed";
2960
3185
  outcome: "failed" | "recovered" | "inconclusive";
2961
3186
  evidence?: {
2962
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
- label: string;
2964
3187
  id: string;
3188
+ label: string;
3189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2965
3190
  capture: "at_action" | "historical_lookup" | "fixture";
2966
3191
  locator?: string | undefined;
2967
3192
  }[] | undefined;
@@ -2971,38 +3196,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2971
3196
  kind: "mission_started";
2972
3197
  title: string;
2973
3198
  evidence: {
2974
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2975
- label: string;
2976
3199
  id: string;
3200
+ label: string;
3201
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2977
3202
  capture: "at_action" | "historical_lookup" | "fixture";
2978
3203
  locator?: string | undefined;
2979
3204
  }[];
2980
3205
  objective: string;
2981
3206
  runMode: "replay" | "fixture" | "live";
2982
3207
  } | {
2983
- kind: "agent_status";
2984
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2985
3208
  label: string;
3209
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3210
+ kind: "agent_status";
2986
3211
  role: string;
2987
3212
  agentId: string;
2988
3213
  sessionId: string;
2989
3214
  evidence: {
2990
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2991
- label: string;
2992
3215
  id: string;
3216
+ label: string;
3217
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2993
3218
  capture: "at_action" | "historical_lookup" | "fixture";
2994
3219
  locator?: string | undefined;
2995
3220
  }[];
2996
3221
  detail?: string | undefined;
2997
3222
  } | {
2998
- kind: "agent_output";
2999
3223
  summary: string;
3224
+ kind: "agent_output";
3000
3225
  agentId: string;
3001
3226
  sessionId: string;
3002
3227
  evidence: {
3003
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3004
- label: string;
3005
3228
  id: string;
3229
+ label: string;
3230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3006
3231
  capture: "at_action" | "historical_lookup" | "fixture";
3007
3232
  locator?: string | undefined;
3008
3233
  }[];
@@ -3013,9 +3238,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3013
3238
  statement: string;
3014
3239
  sessionId: string;
3015
3240
  evidence: {
3016
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3017
- label: string;
3018
3241
  id: string;
3242
+ label: string;
3243
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3019
3244
  capture: "at_action" | "historical_lookup" | "fixture";
3020
3245
  locator?: string | undefined;
3021
3246
  }[];
@@ -3023,12 +3248,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3023
3248
  decisionId: string;
3024
3249
  confidence?: number | undefined;
3025
3250
  } | {
3026
- kind: "conflict_detected";
3027
3251
  summary: string;
3252
+ kind: "conflict_detected";
3028
3253
  evidence: {
3029
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3030
- label: string;
3031
3254
  id: string;
3255
+ label: string;
3256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3032
3257
  capture: "at_action" | "historical_lookup" | "fixture";
3033
3258
  locator?: string | undefined;
3034
3259
  }[];
@@ -3036,14 +3261,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3036
3261
  decisionIds: string[];
3037
3262
  agentIds: string[];
3038
3263
  } | {
3039
- kind: "test_result";
3040
3264
  summary: string;
3041
3265
  status: "error" | "failed" | "passed";
3266
+ kind: "test_result";
3042
3267
  command: string;
3043
3268
  evidence: {
3044
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3045
- label: string;
3046
3269
  id: string;
3270
+ label: string;
3271
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3047
3272
  capture: "at_action" | "historical_lookup" | "fixture";
3048
3273
  locator?: string | undefined;
3049
3274
  }[];
@@ -3056,9 +3281,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3056
3281
  statement: string;
3057
3282
  rationale: string;
3058
3283
  evidence: {
3059
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3060
- label: string;
3061
3284
  id: string;
3285
+ label: string;
3286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3062
3287
  capture: "at_action" | "historical_lookup" | "fixture";
3063
3288
  locator?: string | undefined;
3064
3289
  }[];
@@ -3070,25 +3295,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3070
3295
  } | {
3071
3296
  kind: "correction_approved";
3072
3297
  evidence: {
3073
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3074
- label: string;
3075
3298
  id: string;
3299
+ label: string;
3300
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3301
  capture: "at_action" | "historical_lookup" | "fixture";
3077
3302
  locator?: string | undefined;
3078
3303
  }[];
3079
3304
  correctionId: string;
3080
3305
  approvedBy: {
3081
- kind: "agent" | "human";
3082
- label: string;
3083
3306
  id: string;
3307
+ label: string;
3308
+ kind: "agent" | "human";
3084
3309
  };
3085
3310
  note?: string | undefined;
3086
3311
  } | {
3087
3312
  kind: "decision_superseded";
3088
3313
  evidence: {
3089
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3090
- label: string;
3091
3314
  id: string;
3315
+ label: string;
3316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3092
3317
  capture: "at_action" | "historical_lookup" | "fixture";
3093
3318
  locator?: string | undefined;
3094
3319
  }[];
@@ -3101,9 +3326,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3101
3326
  agentId: string;
3102
3327
  sessionId: string;
3103
3328
  evidence: {
3104
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3105
- label: string;
3106
3329
  id: string;
3330
+ label: string;
3331
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3107
3332
  capture: "at_action" | "historical_lookup" | "fixture";
3108
3333
  locator?: string | undefined;
3109
3334
  }[];
@@ -3115,9 +3340,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3115
3340
  agentId: string;
3116
3341
  sessionId: string;
3117
3342
  evidence: {
3118
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3119
- label: string;
3120
3343
  id: string;
3344
+ label: string;
3345
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3121
3346
  capture: "at_action" | "historical_lookup" | "fixture";
3122
3347
  locator?: string | undefined;
3123
3348
  }[];
@@ -3126,13 +3351,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3126
3351
  recallReceiptId: string;
3127
3352
  staleDecisionAbsent: boolean;
3128
3353
  } | {
3129
- kind: "mission_completed";
3130
3354
  summary: string;
3355
+ kind: "mission_completed";
3131
3356
  outcome: "failed" | "recovered" | "inconclusive";
3132
3357
  evidence: {
3133
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3134
- label: string;
3135
3358
  id: string;
3359
+ label: string;
3360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3136
3361
  capture: "at_action" | "historical_lookup" | "fixture";
3137
3362
  locator?: string | undefined;
3138
3363
  }[];
@@ -3146,37 +3371,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3146
3371
  objective: string;
3147
3372
  runMode: "replay" | "fixture" | "live";
3148
3373
  evidence?: {
3149
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3150
- label: string;
3151
3374
  id: string;
3375
+ label: string;
3376
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3152
3377
  capture: "at_action" | "historical_lookup" | "fixture";
3153
3378
  locator?: string | undefined;
3154
3379
  }[] | undefined;
3155
3380
  } | {
3156
- kind: "agent_status";
3157
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3158
3381
  label: string;
3382
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3383
+ kind: "agent_status";
3159
3384
  role: string;
3160
3385
  agentId: string;
3161
3386
  sessionId: string;
3162
3387
  detail?: string | undefined;
3163
3388
  evidence?: {
3164
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3165
- label: string;
3166
3389
  id: string;
3390
+ label: string;
3391
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3167
3392
  capture: "at_action" | "historical_lookup" | "fixture";
3168
3393
  locator?: string | undefined;
3169
3394
  }[] | undefined;
3170
3395
  } | {
3171
- kind: "agent_output";
3172
3396
  summary: string;
3397
+ kind: "agent_output";
3173
3398
  agentId: string;
3174
3399
  sessionId: string;
3175
3400
  outputId: string;
3176
3401
  evidence?: {
3177
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3178
- label: string;
3179
3402
  id: string;
3403
+ label: string;
3404
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3180
3405
  capture: "at_action" | "historical_lookup" | "fixture";
3181
3406
  locator?: string | undefined;
3182
3407
  }[] | undefined;
@@ -3189,37 +3414,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3189
3414
  decisionId: string;
3190
3415
  confidence?: number | undefined;
3191
3416
  evidence?: {
3192
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3193
- label: string;
3194
3417
  id: string;
3418
+ label: string;
3419
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3195
3420
  capture: "at_action" | "historical_lookup" | "fixture";
3196
3421
  locator?: string | undefined;
3197
3422
  }[] | undefined;
3198
3423
  } | {
3199
- kind: "conflict_detected";
3200
3424
  summary: string;
3425
+ kind: "conflict_detected";
3201
3426
  conflictId: string;
3202
3427
  decisionIds: string[];
3203
3428
  agentIds: string[];
3204
3429
  evidence?: {
3205
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3206
- label: string;
3207
3430
  id: string;
3431
+ label: string;
3432
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3208
3433
  capture: "at_action" | "historical_lookup" | "fixture";
3209
3434
  locator?: string | undefined;
3210
3435
  }[] | undefined;
3211
3436
  } | {
3212
- kind: "test_result";
3213
3437
  summary: string;
3214
3438
  status: "error" | "failed" | "passed";
3439
+ kind: "test_result";
3215
3440
  command: string;
3216
3441
  decisionId: string;
3217
3442
  testId: string;
3218
3443
  durationMs?: number | undefined;
3219
3444
  evidence?: {
3220
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3221
- label: string;
3222
3445
  id: string;
3446
+ label: string;
3447
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3223
3448
  capture: "at_action" | "historical_lookup" | "fixture";
3224
3449
  locator?: string | undefined;
3225
3450
  }[] | undefined;
@@ -3234,9 +3459,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3234
3459
  supersedesDecisionIds: string[];
3235
3460
  proposedBy: string;
3236
3461
  evidence?: {
3237
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3238
- label: string;
3239
3462
  id: string;
3463
+ label: string;
3464
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3240
3465
  capture: "at_action" | "historical_lookup" | "fixture";
3241
3466
  locator?: string | undefined;
3242
3467
  }[] | undefined;
@@ -3244,15 +3469,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3244
3469
  kind: "correction_approved";
3245
3470
  correctionId: string;
3246
3471
  approvedBy: {
3247
- kind: "agent" | "human";
3248
- label: string;
3249
3472
  id: string;
3473
+ label: string;
3474
+ kind: "agent" | "human";
3250
3475
  };
3251
3476
  note?: string | undefined;
3252
3477
  evidence?: {
3253
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3254
- label: string;
3255
3478
  id: string;
3479
+ label: string;
3480
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3256
3481
  capture: "at_action" | "historical_lookup" | "fixture";
3257
3482
  locator?: string | undefined;
3258
3483
  }[] | undefined;
@@ -3262,9 +3487,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3262
3487
  correctionId: string;
3263
3488
  replacementDecisionId: string;
3264
3489
  evidence?: {
3265
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3266
- label: string;
3267
3490
  id: string;
3491
+ label: string;
3492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3268
3493
  capture: "at_action" | "historical_lookup" | "fixture";
3269
3494
  locator?: string | undefined;
3270
3495
  }[] | undefined;
@@ -3277,9 +3502,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3277
3502
  recallReceiptId: string;
3278
3503
  capturedAtAction: boolean;
3279
3504
  evidence?: {
3280
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3281
- label: string;
3282
3505
  id: string;
3506
+ label: string;
3507
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3283
3508
  capture: "at_action" | "historical_lookup" | "fixture";
3284
3509
  locator?: string | undefined;
3285
3510
  }[] | undefined;
@@ -3292,20 +3517,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3292
3517
  recallReceiptId: string;
3293
3518
  staleDecisionAbsent: boolean;
3294
3519
  evidence?: {
3295
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3296
- label: string;
3297
3520
  id: string;
3521
+ label: string;
3522
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3298
3523
  capture: "at_action" | "historical_lookup" | "fixture";
3299
3524
  locator?: string | undefined;
3300
3525
  }[] | undefined;
3301
3526
  } | {
3302
- kind: "mission_completed";
3303
3527
  summary: string;
3528
+ kind: "mission_completed";
3304
3529
  outcome: "failed" | "recovered" | "inconclusive";
3305
3530
  evidence?: {
3306
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3307
- label: string;
3308
3531
  id: string;
3532
+ label: string;
3533
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3309
3534
  capture: "at_action" | "historical_lookup" | "fixture";
3310
3535
  locator?: string | undefined;
3311
3536
  }[] | undefined;
@@ -3335,15 +3560,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3335
3560
  locator: z.ZodOptional<z.ZodString>;
3336
3561
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3337
3562
  }, "strict", z.ZodTypeAny, {
3338
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3339
- label: string;
3340
3563
  id: string;
3564
+ label: string;
3565
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3341
3566
  capture: "at_action" | "historical_lookup" | "fixture";
3342
3567
  locator?: string | undefined;
3343
3568
  }, {
3344
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3345
- label: string;
3346
3569
  id: string;
3570
+ label: string;
3571
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3347
3572
  capture: "at_action" | "historical_lookup" | "fixture";
3348
3573
  locator?: string | undefined;
3349
3574
  }>, "many">>;
@@ -3351,9 +3576,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3351
3576
  kind: "mission_started";
3352
3577
  title: string;
3353
3578
  evidence: {
3354
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3355
- label: string;
3356
3579
  id: string;
3580
+ label: string;
3581
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3357
3582
  capture: "at_action" | "historical_lookup" | "fixture";
3358
3583
  locator?: string | undefined;
3359
3584
  }[];
@@ -3365,9 +3590,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3365
3590
  objective: string;
3366
3591
  runMode: "replay" | "fixture" | "live";
3367
3592
  evidence?: {
3368
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3369
- label: string;
3370
3593
  id: string;
3594
+ label: string;
3595
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3371
3596
  capture: "at_action" | "historical_lookup" | "fixture";
3372
3597
  locator?: string | undefined;
3373
3598
  }[] | undefined;
@@ -3383,15 +3608,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3383
3608
  locator: z.ZodOptional<z.ZodString>;
3384
3609
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3385
3610
  }, "strict", z.ZodTypeAny, {
3386
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3387
- label: string;
3388
3611
  id: string;
3612
+ label: string;
3613
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3389
3614
  capture: "at_action" | "historical_lookup" | "fixture";
3390
3615
  locator?: string | undefined;
3391
3616
  }, {
3392
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3393
- label: string;
3394
3617
  id: string;
3618
+ label: string;
3619
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3395
3620
  capture: "at_action" | "historical_lookup" | "fixture";
3396
3621
  locator?: string | undefined;
3397
3622
  }>, "many">>;
@@ -3399,32 +3624,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3399
3624
  sessionId: z.ZodString;
3400
3625
  kind: z.ZodLiteral<"agent_status">;
3401
3626
  }, "strict", z.ZodTypeAny, {
3402
- kind: "agent_status";
3403
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3404
3627
  label: string;
3628
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3629
+ kind: "agent_status";
3405
3630
  role: string;
3406
3631
  agentId: string;
3407
3632
  sessionId: string;
3408
3633
  evidence: {
3409
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3410
- label: string;
3411
3634
  id: string;
3635
+ label: string;
3636
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3412
3637
  capture: "at_action" | "historical_lookup" | "fixture";
3413
3638
  locator?: string | undefined;
3414
3639
  }[];
3415
3640
  detail?: string | undefined;
3416
3641
  }, {
3417
- kind: "agent_status";
3418
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3419
3642
  label: string;
3643
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3644
+ kind: "agent_status";
3420
3645
  role: string;
3421
3646
  agentId: string;
3422
3647
  sessionId: string;
3423
3648
  detail?: string | undefined;
3424
3649
  evidence?: {
3425
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3426
- label: string;
3427
3650
  id: string;
3651
+ label: string;
3652
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3428
3653
  capture: "at_action" | "historical_lookup" | "fixture";
3429
3654
  locator?: string | undefined;
3430
3655
  }[] | undefined;
@@ -3438,15 +3663,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3438
3663
  locator: z.ZodOptional<z.ZodString>;
3439
3664
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3440
3665
  }, "strict", z.ZodTypeAny, {
3441
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3442
- label: string;
3443
3666
  id: string;
3667
+ label: string;
3668
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3444
3669
  capture: "at_action" | "historical_lookup" | "fixture";
3445
3670
  locator?: string | undefined;
3446
3671
  }, {
3447
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3448
- label: string;
3449
3672
  id: string;
3673
+ label: string;
3674
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3450
3675
  capture: "at_action" | "historical_lookup" | "fixture";
3451
3676
  locator?: string | undefined;
3452
3677
  }>, "many">>;
@@ -3454,28 +3679,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3454
3679
  sessionId: z.ZodString;
3455
3680
  kind: z.ZodLiteral<"agent_output">;
3456
3681
  }, "strict", z.ZodTypeAny, {
3457
- kind: "agent_output";
3458
3682
  summary: string;
3683
+ kind: "agent_output";
3459
3684
  agentId: string;
3460
3685
  sessionId: string;
3461
3686
  evidence: {
3462
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3463
- label: string;
3464
3687
  id: string;
3688
+ label: string;
3689
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3465
3690
  capture: "at_action" | "historical_lookup" | "fixture";
3466
3691
  locator?: string | undefined;
3467
3692
  }[];
3468
3693
  outputId: string;
3469
3694
  }, {
3470
- kind: "agent_output";
3471
3695
  summary: string;
3696
+ kind: "agent_output";
3472
3697
  agentId: string;
3473
3698
  sessionId: string;
3474
3699
  outputId: string;
3475
3700
  evidence?: {
3476
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
- label: string;
3478
3701
  id: string;
3702
+ label: string;
3703
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3479
3704
  capture: "at_action" | "historical_lookup" | "fixture";
3480
3705
  locator?: string | undefined;
3481
3706
  }[] | undefined;
@@ -3491,15 +3716,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3491
3716
  locator: z.ZodOptional<z.ZodString>;
3492
3717
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3493
3718
  }, "strict", z.ZodTypeAny, {
3494
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3495
- label: string;
3496
3719
  id: string;
3720
+ label: string;
3721
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3497
3722
  capture: "at_action" | "historical_lookup" | "fixture";
3498
3723
  locator?: string | undefined;
3499
3724
  }, {
3500
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3501
- label: string;
3502
3725
  id: string;
3726
+ label: string;
3727
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3503
3728
  capture: "at_action" | "historical_lookup" | "fixture";
3504
3729
  locator?: string | undefined;
3505
3730
  }>, "many">>;
@@ -3512,9 +3737,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3512
3737
  statement: string;
3513
3738
  sessionId: string;
3514
3739
  evidence: {
3515
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3516
- label: string;
3517
3740
  id: string;
3741
+ label: string;
3742
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3518
3743
  capture: "at_action" | "historical_lookup" | "fixture";
3519
3744
  locator?: string | undefined;
3520
3745
  }[];
@@ -3530,9 +3755,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3530
3755
  decisionId: string;
3531
3756
  confidence?: number | undefined;
3532
3757
  evidence?: {
3533
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3534
- label: string;
3535
3758
  id: string;
3759
+ label: string;
3760
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3536
3761
  capture: "at_action" | "historical_lookup" | "fixture";
3537
3762
  locator?: string | undefined;
3538
3763
  }[] | undefined;
@@ -3549,25 +3774,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3549
3774
  locator: z.ZodOptional<z.ZodString>;
3550
3775
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3551
3776
  }, "strict", z.ZodTypeAny, {
3552
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3553
- label: string;
3554
3777
  id: string;
3778
+ label: string;
3779
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3555
3780
  capture: "at_action" | "historical_lookup" | "fixture";
3556
3781
  locator?: string | undefined;
3557
3782
  }, {
3558
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3559
- label: string;
3560
3783
  id: string;
3784
+ label: string;
3785
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3561
3786
  capture: "at_action" | "historical_lookup" | "fixture";
3562
3787
  locator?: string | undefined;
3563
3788
  }>, "many">>;
3564
3789
  }, "strict", z.ZodTypeAny, {
3565
- kind: "conflict_detected";
3566
3790
  summary: string;
3791
+ kind: "conflict_detected";
3567
3792
  evidence: {
3568
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3569
- label: string;
3570
3793
  id: string;
3794
+ label: string;
3795
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3571
3796
  capture: "at_action" | "historical_lookup" | "fixture";
3572
3797
  locator?: string | undefined;
3573
3798
  }[];
@@ -3575,15 +3800,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3575
3800
  decisionIds: string[];
3576
3801
  agentIds: string[];
3577
3802
  }, {
3578
- kind: "conflict_detected";
3579
3803
  summary: string;
3804
+ kind: "conflict_detected";
3580
3805
  conflictId: string;
3581
3806
  decisionIds: string[];
3582
3807
  agentIds: string[];
3583
3808
  evidence?: {
3584
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3585
- label: string;
3586
3809
  id: string;
3810
+ label: string;
3811
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3587
3812
  capture: "at_action" | "historical_lookup" | "fixture";
3588
3813
  locator?: string | undefined;
3589
3814
  }[] | undefined;
@@ -3603,27 +3828,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3603
3828
  locator: z.ZodOptional<z.ZodString>;
3604
3829
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3605
3830
  }, "strict", z.ZodTypeAny, {
3606
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3607
- label: string;
3608
3831
  id: string;
3832
+ label: string;
3833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3609
3834
  capture: "at_action" | "historical_lookup" | "fixture";
3610
3835
  locator?: string | undefined;
3611
3836
  }, {
3612
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3613
- label: string;
3614
3837
  id: string;
3838
+ label: string;
3839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3615
3840
  capture: "at_action" | "historical_lookup" | "fixture";
3616
3841
  locator?: string | undefined;
3617
3842
  }>, "many">>;
3618
3843
  }, "strict", z.ZodTypeAny, {
3619
- kind: "test_result";
3620
3844
  summary: string;
3621
3845
  status: "error" | "failed" | "passed";
3846
+ kind: "test_result";
3622
3847
  command: string;
3623
3848
  evidence: {
3624
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3625
- label: string;
3626
3849
  id: string;
3850
+ label: string;
3851
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3627
3852
  capture: "at_action" | "historical_lookup" | "fixture";
3628
3853
  locator?: string | undefined;
3629
3854
  }[];
@@ -3632,17 +3857,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3632
3857
  durationMs?: number | undefined;
3633
3858
  correctionId?: string | undefined;
3634
3859
  }, {
3635
- kind: "test_result";
3636
3860
  summary: string;
3637
3861
  status: "error" | "failed" | "passed";
3862
+ kind: "test_result";
3638
3863
  command: string;
3639
3864
  decisionId: string;
3640
3865
  testId: string;
3641
3866
  durationMs?: number | undefined;
3642
3867
  evidence?: {
3643
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3644
- label: string;
3645
3868
  id: string;
3869
+ label: string;
3870
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3646
3871
  capture: "at_action" | "historical_lookup" | "fixture";
3647
3872
  locator?: string | undefined;
3648
3873
  }[] | undefined;
@@ -3663,15 +3888,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3663
3888
  locator: z.ZodOptional<z.ZodString>;
3664
3889
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3665
3890
  }, "strict", z.ZodTypeAny, {
3666
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3667
- label: string;
3668
3891
  id: string;
3892
+ label: string;
3893
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3669
3894
  capture: "at_action" | "historical_lookup" | "fixture";
3670
3895
  locator?: string | undefined;
3671
3896
  }, {
3672
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3673
- label: string;
3674
3897
  id: string;
3898
+ label: string;
3899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3675
3900
  capture: "at_action" | "historical_lookup" | "fixture";
3676
3901
  locator?: string | undefined;
3677
3902
  }>, "many">>;
@@ -3680,9 +3905,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3680
3905
  statement: string;
3681
3906
  rationale: string;
3682
3907
  evidence: {
3683
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3684
- label: string;
3685
3908
  id: string;
3909
+ label: string;
3910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3686
3911
  capture: "at_action" | "historical_lookup" | "fixture";
3687
3912
  locator?: string | undefined;
3688
3913
  }[];
@@ -3701,9 +3926,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3701
3926
  supersedesDecisionIds: string[];
3702
3927
  proposedBy: string;
3703
3928
  evidence?: {
3704
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3705
- label: string;
3706
3929
  id: string;
3930
+ label: string;
3931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3707
3932
  capture: "at_action" | "historical_lookup" | "fixture";
3708
3933
  locator?: string | undefined;
3709
3934
  }[] | undefined;
@@ -3715,13 +3940,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3715
3940
  id: z.ZodString;
3716
3941
  label: z.ZodString;
3717
3942
  }, "strict", z.ZodTypeAny, {
3718
- kind: "agent" | "human";
3719
- label: string;
3720
3943
  id: string;
3721
- }, {
3722
- kind: "agent" | "human";
3723
3944
  label: string;
3945
+ kind: "agent" | "human";
3946
+ }, {
3724
3947
  id: string;
3948
+ label: string;
3949
+ kind: "agent" | "human";
3725
3950
  }>;
3726
3951
  note: z.ZodOptional<z.ZodString>;
3727
3952
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3731,47 +3956,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3731
3956
  locator: z.ZodOptional<z.ZodString>;
3732
3957
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3733
3958
  }, "strict", z.ZodTypeAny, {
3734
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3735
- label: string;
3736
3959
  id: string;
3960
+ label: string;
3961
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3737
3962
  capture: "at_action" | "historical_lookup" | "fixture";
3738
3963
  locator?: string | undefined;
3739
3964
  }, {
3740
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3741
- label: string;
3742
3965
  id: string;
3966
+ label: string;
3967
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3743
3968
  capture: "at_action" | "historical_lookup" | "fixture";
3744
3969
  locator?: string | undefined;
3745
3970
  }>, "many">>;
3746
3971
  }, "strict", z.ZodTypeAny, {
3747
3972
  kind: "correction_approved";
3748
3973
  evidence: {
3749
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3750
- label: string;
3751
3974
  id: string;
3975
+ label: string;
3976
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3752
3977
  capture: "at_action" | "historical_lookup" | "fixture";
3753
3978
  locator?: string | undefined;
3754
3979
  }[];
3755
3980
  correctionId: string;
3756
3981
  approvedBy: {
3757
- kind: "agent" | "human";
3758
- label: string;
3759
3982
  id: string;
3983
+ label: string;
3984
+ kind: "agent" | "human";
3760
3985
  };
3761
3986
  note?: string | undefined;
3762
3987
  }, {
3763
3988
  kind: "correction_approved";
3764
3989
  correctionId: string;
3765
3990
  approvedBy: {
3766
- kind: "agent" | "human";
3767
- label: string;
3768
3991
  id: string;
3992
+ label: string;
3993
+ kind: "agent" | "human";
3769
3994
  };
3770
3995
  note?: string | undefined;
3771
3996
  evidence?: {
3772
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3773
- label: string;
3774
3997
  id: string;
3998
+ label: string;
3999
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3775
4000
  capture: "at_action" | "historical_lookup" | "fixture";
3776
4001
  locator?: string | undefined;
3777
4002
  }[] | undefined;
@@ -3787,24 +4012,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3787
4012
  locator: z.ZodOptional<z.ZodString>;
3788
4013
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3789
4014
  }, "strict", z.ZodTypeAny, {
3790
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3791
- label: string;
3792
4015
  id: string;
4016
+ label: string;
4017
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3793
4018
  capture: "at_action" | "historical_lookup" | "fixture";
3794
4019
  locator?: string | undefined;
3795
4020
  }, {
3796
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3797
- label: string;
3798
4021
  id: string;
4022
+ label: string;
4023
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3799
4024
  capture: "at_action" | "historical_lookup" | "fixture";
3800
4025
  locator?: string | undefined;
3801
4026
  }>, "many">>;
3802
4027
  }, "strict", z.ZodTypeAny, {
3803
4028
  kind: "decision_superseded";
3804
4029
  evidence: {
3805
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3806
- label: string;
3807
4030
  id: string;
4031
+ label: string;
4032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3808
4033
  capture: "at_action" | "historical_lookup" | "fixture";
3809
4034
  locator?: string | undefined;
3810
4035
  }[];
@@ -3817,9 +4042,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3817
4042
  correctionId: string;
3818
4043
  replacementDecisionId: string;
3819
4044
  evidence?: {
3820
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3821
- label: string;
3822
4045
  id: string;
4046
+ label: string;
4047
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3823
4048
  capture: "at_action" | "historical_lookup" | "fixture";
3824
4049
  locator?: string | undefined;
3825
4050
  }[] | undefined;
@@ -3835,15 +4060,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3835
4060
  locator: z.ZodOptional<z.ZodString>;
3836
4061
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3837
4062
  }, "strict", z.ZodTypeAny, {
3838
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3839
- label: string;
3840
4063
  id: string;
4064
+ label: string;
4065
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3841
4066
  capture: "at_action" | "historical_lookup" | "fixture";
3842
4067
  locator?: string | undefined;
3843
4068
  }, {
3844
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3845
- label: string;
3846
4069
  id: string;
4070
+ label: string;
4071
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3847
4072
  capture: "at_action" | "historical_lookup" | "fixture";
3848
4073
  locator?: string | undefined;
3849
4074
  }>, "many">>;
@@ -3856,9 +4081,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3856
4081
  agentId: string;
3857
4082
  sessionId: string;
3858
4083
  evidence: {
3859
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3860
- label: string;
3861
4084
  id: string;
4085
+ label: string;
4086
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3862
4087
  capture: "at_action" | "historical_lookup" | "fixture";
3863
4088
  locator?: string | undefined;
3864
4089
  }[];
@@ -3874,9 +4099,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3874
4099
  recallReceiptId: string;
3875
4100
  capturedAtAction: boolean;
3876
4101
  evidence?: {
3877
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3878
- label: string;
3879
4102
  id: string;
4103
+ label: string;
4104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3880
4105
  capture: "at_action" | "historical_lookup" | "fixture";
3881
4106
  locator?: string | undefined;
3882
4107
  }[] | undefined;
@@ -3892,15 +4117,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3892
4117
  locator: z.ZodOptional<z.ZodString>;
3893
4118
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3894
4119
  }, "strict", z.ZodTypeAny, {
3895
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3896
- label: string;
3897
4120
  id: string;
4121
+ label: string;
4122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
4123
  capture: "at_action" | "historical_lookup" | "fixture";
3899
4124
  locator?: string | undefined;
3900
4125
  }, {
3901
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3902
- label: string;
3903
4126
  id: string;
4127
+ label: string;
4128
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3904
4129
  capture: "at_action" | "historical_lookup" | "fixture";
3905
4130
  locator?: string | undefined;
3906
4131
  }>, "many">>;
@@ -3912,9 +4137,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3912
4137
  agentId: string;
3913
4138
  sessionId: string;
3914
4139
  evidence: {
3915
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3916
- label: string;
3917
4140
  id: string;
4141
+ label: string;
4142
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3918
4143
  capture: "at_action" | "historical_lookup" | "fixture";
3919
4144
  locator?: string | undefined;
3920
4145
  }[];
@@ -3931,9 +4156,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3931
4156
  recallReceiptId: string;
3932
4157
  staleDecisionAbsent: boolean;
3933
4158
  evidence?: {
3934
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3935
- label: string;
3936
4159
  id: string;
4160
+ label: string;
4161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3937
4162
  capture: "at_action" | "historical_lookup" | "fixture";
3938
4163
  locator?: string | undefined;
3939
4164
  }[] | undefined;
@@ -3948,37 +4173,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3948
4173
  locator: z.ZodOptional<z.ZodString>;
3949
4174
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3950
4175
  }, "strict", z.ZodTypeAny, {
3951
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
- label: string;
3953
4176
  id: string;
4177
+ label: string;
4178
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3954
4179
  capture: "at_action" | "historical_lookup" | "fixture";
3955
4180
  locator?: string | undefined;
3956
4181
  }, {
3957
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3958
- label: string;
3959
4182
  id: string;
4183
+ label: string;
4184
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3960
4185
  capture: "at_action" | "historical_lookup" | "fixture";
3961
4186
  locator?: string | undefined;
3962
4187
  }>, "many">>;
3963
4188
  }, "strict", z.ZodTypeAny, {
3964
- kind: "mission_completed";
3965
4189
  summary: string;
4190
+ kind: "mission_completed";
3966
4191
  outcome: "failed" | "recovered" | "inconclusive";
3967
4192
  evidence: {
3968
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3969
- label: string;
3970
4193
  id: string;
4194
+ label: string;
4195
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3971
4196
  capture: "at_action" | "historical_lookup" | "fixture";
3972
4197
  locator?: string | undefined;
3973
4198
  }[];
3974
4199
  }, {
3975
- kind: "mission_completed";
3976
4200
  summary: string;
4201
+ kind: "mission_completed";
3977
4202
  outcome: "failed" | "recovered" | "inconclusive";
3978
4203
  evidence?: {
3979
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3980
- label: string;
3981
4204
  id: string;
4205
+ label: string;
4206
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3982
4207
  capture: "at_action" | "historical_lookup" | "fixture";
3983
4208
  locator?: string | undefined;
3984
4209
  }[] | undefined;
@@ -3986,38 +4211,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3986
4211
  kind: "mission_started";
3987
4212
  title: string;
3988
4213
  evidence: {
3989
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3990
- label: string;
3991
4214
  id: string;
4215
+ label: string;
4216
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3992
4217
  capture: "at_action" | "historical_lookup" | "fixture";
3993
4218
  locator?: string | undefined;
3994
4219
  }[];
3995
4220
  objective: string;
3996
4221
  runMode: "replay" | "fixture" | "live";
3997
4222
  } | {
3998
- kind: "agent_status";
3999
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4000
4223
  label: string;
4224
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4225
+ kind: "agent_status";
4001
4226
  role: string;
4002
4227
  agentId: string;
4003
4228
  sessionId: string;
4004
4229
  evidence: {
4005
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4006
- label: string;
4007
4230
  id: string;
4231
+ label: string;
4232
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4008
4233
  capture: "at_action" | "historical_lookup" | "fixture";
4009
4234
  locator?: string | undefined;
4010
4235
  }[];
4011
4236
  detail?: string | undefined;
4012
4237
  } | {
4013
- kind: "agent_output";
4014
4238
  summary: string;
4239
+ kind: "agent_output";
4015
4240
  agentId: string;
4016
4241
  sessionId: string;
4017
4242
  evidence: {
4018
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4019
- label: string;
4020
4243
  id: string;
4244
+ label: string;
4245
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4021
4246
  capture: "at_action" | "historical_lookup" | "fixture";
4022
4247
  locator?: string | undefined;
4023
4248
  }[];
@@ -4028,9 +4253,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4028
4253
  statement: string;
4029
4254
  sessionId: string;
4030
4255
  evidence: {
4031
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4032
- label: string;
4033
4256
  id: string;
4257
+ label: string;
4258
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4034
4259
  capture: "at_action" | "historical_lookup" | "fixture";
4035
4260
  locator?: string | undefined;
4036
4261
  }[];
@@ -4038,12 +4263,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4038
4263
  decisionId: string;
4039
4264
  confidence?: number | undefined;
4040
4265
  } | {
4041
- kind: "conflict_detected";
4042
4266
  summary: string;
4267
+ kind: "conflict_detected";
4043
4268
  evidence: {
4044
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4045
- label: string;
4046
4269
  id: string;
4270
+ label: string;
4271
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4047
4272
  capture: "at_action" | "historical_lookup" | "fixture";
4048
4273
  locator?: string | undefined;
4049
4274
  }[];
@@ -4051,14 +4276,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4051
4276
  decisionIds: string[];
4052
4277
  agentIds: string[];
4053
4278
  } | {
4054
- kind: "test_result";
4055
4279
  summary: string;
4056
4280
  status: "error" | "failed" | "passed";
4281
+ kind: "test_result";
4057
4282
  command: string;
4058
4283
  evidence: {
4059
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4060
- label: string;
4061
4284
  id: string;
4285
+ label: string;
4286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4062
4287
  capture: "at_action" | "historical_lookup" | "fixture";
4063
4288
  locator?: string | undefined;
4064
4289
  }[];
@@ -4071,9 +4296,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4071
4296
  statement: string;
4072
4297
  rationale: string;
4073
4298
  evidence: {
4074
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4075
- label: string;
4076
4299
  id: string;
4300
+ label: string;
4301
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4077
4302
  capture: "at_action" | "historical_lookup" | "fixture";
4078
4303
  locator?: string | undefined;
4079
4304
  }[];
@@ -4085,25 +4310,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4085
4310
  } | {
4086
4311
  kind: "correction_approved";
4087
4312
  evidence: {
4088
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4089
- label: string;
4090
4313
  id: string;
4314
+ label: string;
4315
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4091
4316
  capture: "at_action" | "historical_lookup" | "fixture";
4092
4317
  locator?: string | undefined;
4093
4318
  }[];
4094
4319
  correctionId: string;
4095
4320
  approvedBy: {
4096
- kind: "agent" | "human";
4097
- label: string;
4098
4321
  id: string;
4322
+ label: string;
4323
+ kind: "agent" | "human";
4099
4324
  };
4100
4325
  note?: string | undefined;
4101
4326
  } | {
4102
4327
  kind: "decision_superseded";
4103
4328
  evidence: {
4104
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4105
- label: string;
4106
4329
  id: string;
4330
+ label: string;
4331
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4107
4332
  capture: "at_action" | "historical_lookup" | "fixture";
4108
4333
  locator?: string | undefined;
4109
4334
  }[];
@@ -4116,9 +4341,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4116
4341
  agentId: string;
4117
4342
  sessionId: string;
4118
4343
  evidence: {
4119
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4120
- label: string;
4121
4344
  id: string;
4345
+ label: string;
4346
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
4347
  capture: "at_action" | "historical_lookup" | "fixture";
4123
4348
  locator?: string | undefined;
4124
4349
  }[];
@@ -4130,9 +4355,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4130
4355
  agentId: string;
4131
4356
  sessionId: string;
4132
4357
  evidence: {
4133
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4134
- label: string;
4135
4358
  id: string;
4359
+ label: string;
4360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4136
4361
  capture: "at_action" | "historical_lookup" | "fixture";
4137
4362
  locator?: string | undefined;
4138
4363
  }[];
@@ -4141,13 +4366,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4141
4366
  recallReceiptId: string;
4142
4367
  staleDecisionAbsent: boolean;
4143
4368
  } | {
4144
- kind: "mission_completed";
4145
4369
  summary: string;
4370
+ kind: "mission_completed";
4146
4371
  outcome: "failed" | "recovered" | "inconclusive";
4147
4372
  evidence: {
4148
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4149
- label: string;
4150
4373
  id: string;
4374
+ label: string;
4375
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4151
4376
  capture: "at_action" | "historical_lookup" | "fixture";
4152
4377
  locator?: string | undefined;
4153
4378
  }[];
@@ -4157,37 +4382,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4157
4382
  objective: string;
4158
4383
  runMode: "replay" | "fixture" | "live";
4159
4384
  evidence?: {
4160
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4161
- label: string;
4162
4385
  id: string;
4386
+ label: string;
4387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4163
4388
  capture: "at_action" | "historical_lookup" | "fixture";
4164
4389
  locator?: string | undefined;
4165
4390
  }[] | undefined;
4166
4391
  } | {
4167
- kind: "agent_status";
4168
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4169
4392
  label: string;
4393
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4394
+ kind: "agent_status";
4170
4395
  role: string;
4171
4396
  agentId: string;
4172
4397
  sessionId: string;
4173
4398
  detail?: string | undefined;
4174
4399
  evidence?: {
4175
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4176
- label: string;
4177
4400
  id: string;
4401
+ label: string;
4402
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4178
4403
  capture: "at_action" | "historical_lookup" | "fixture";
4179
4404
  locator?: string | undefined;
4180
4405
  }[] | undefined;
4181
4406
  } | {
4182
- kind: "agent_output";
4183
4407
  summary: string;
4408
+ kind: "agent_output";
4184
4409
  agentId: string;
4185
4410
  sessionId: string;
4186
4411
  outputId: string;
4187
4412
  evidence?: {
4188
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4189
- label: string;
4190
4413
  id: string;
4414
+ label: string;
4415
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4191
4416
  capture: "at_action" | "historical_lookup" | "fixture";
4192
4417
  locator?: string | undefined;
4193
4418
  }[] | undefined;
@@ -4200,37 +4425,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4200
4425
  decisionId: string;
4201
4426
  confidence?: number | undefined;
4202
4427
  evidence?: {
4203
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4204
- label: string;
4205
4428
  id: string;
4429
+ label: string;
4430
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4206
4431
  capture: "at_action" | "historical_lookup" | "fixture";
4207
4432
  locator?: string | undefined;
4208
4433
  }[] | undefined;
4209
4434
  } | {
4210
- kind: "conflict_detected";
4211
4435
  summary: string;
4436
+ kind: "conflict_detected";
4212
4437
  conflictId: string;
4213
4438
  decisionIds: string[];
4214
4439
  agentIds: string[];
4215
4440
  evidence?: {
4216
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4217
- label: string;
4218
4441
  id: string;
4442
+ label: string;
4443
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4219
4444
  capture: "at_action" | "historical_lookup" | "fixture";
4220
4445
  locator?: string | undefined;
4221
4446
  }[] | undefined;
4222
4447
  } | {
4223
- kind: "test_result";
4224
4448
  summary: string;
4225
4449
  status: "error" | "failed" | "passed";
4450
+ kind: "test_result";
4226
4451
  command: string;
4227
4452
  decisionId: string;
4228
4453
  testId: string;
4229
4454
  durationMs?: number | undefined;
4230
4455
  evidence?: {
4231
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4232
- label: string;
4233
4456
  id: string;
4457
+ label: string;
4458
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4234
4459
  capture: "at_action" | "historical_lookup" | "fixture";
4235
4460
  locator?: string | undefined;
4236
4461
  }[] | undefined;
@@ -4245,9 +4470,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4245
4470
  supersedesDecisionIds: string[];
4246
4471
  proposedBy: string;
4247
4472
  evidence?: {
4248
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4249
- label: string;
4250
4473
  id: string;
4474
+ label: string;
4475
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4251
4476
  capture: "at_action" | "historical_lookup" | "fixture";
4252
4477
  locator?: string | undefined;
4253
4478
  }[] | undefined;
@@ -4255,15 +4480,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4255
4480
  kind: "correction_approved";
4256
4481
  correctionId: string;
4257
4482
  approvedBy: {
4258
- kind: "agent" | "human";
4259
- label: string;
4260
4483
  id: string;
4484
+ label: string;
4485
+ kind: "agent" | "human";
4261
4486
  };
4262
4487
  note?: string | undefined;
4263
4488
  evidence?: {
4264
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4265
- label: string;
4266
4489
  id: string;
4490
+ label: string;
4491
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4267
4492
  capture: "at_action" | "historical_lookup" | "fixture";
4268
4493
  locator?: string | undefined;
4269
4494
  }[] | undefined;
@@ -4273,9 +4498,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4273
4498
  correctionId: string;
4274
4499
  replacementDecisionId: string;
4275
4500
  evidence?: {
4276
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4277
- label: string;
4278
4501
  id: string;
4502
+ label: string;
4503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4279
4504
  capture: "at_action" | "historical_lookup" | "fixture";
4280
4505
  locator?: string | undefined;
4281
4506
  }[] | undefined;
@@ -4288,9 +4513,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4288
4513
  recallReceiptId: string;
4289
4514
  capturedAtAction: boolean;
4290
4515
  evidence?: {
4291
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4292
- label: string;
4293
4516
  id: string;
4517
+ label: string;
4518
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4294
4519
  capture: "at_action" | "historical_lookup" | "fixture";
4295
4520
  locator?: string | undefined;
4296
4521
  }[] | undefined;
@@ -4303,63 +4528,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4303
4528
  recallReceiptId: string;
4304
4529
  staleDecisionAbsent: boolean;
4305
4530
  evidence?: {
4306
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4307
- label: string;
4308
4531
  id: string;
4532
+ label: string;
4533
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4534
  capture: "at_action" | "historical_lookup" | "fixture";
4310
4535
  locator?: string | undefined;
4311
4536
  }[] | undefined;
4312
4537
  } | {
4313
- kind: "mission_completed";
4314
4538
  summary: string;
4539
+ kind: "mission_completed";
4315
4540
  outcome: "failed" | "recovered" | "inconclusive";
4316
4541
  evidence?: {
4317
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4318
- label: string;
4319
4542
  id: string;
4543
+ label: string;
4544
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4320
4545
  capture: "at_action" | "historical_lookup" | "fixture";
4321
4546
  locator?: string | undefined;
4322
4547
  }[] | undefined;
4323
4548
  }>;
4324
4549
  }, "strict", z.ZodTypeAny, {
4550
+ namespace: string;
4325
4551
  recordedAt: string;
4326
4552
  schemaVersion: "1";
4327
4553
  payload: {
4328
4554
  kind: "mission_started";
4329
4555
  title: string;
4330
4556
  evidence: {
4331
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4332
- label: string;
4333
4557
  id: string;
4558
+ label: string;
4559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4334
4560
  capture: "at_action" | "historical_lookup" | "fixture";
4335
4561
  locator?: string | undefined;
4336
4562
  }[];
4337
4563
  objective: string;
4338
4564
  runMode: "replay" | "fixture" | "live";
4339
4565
  } | {
4340
- kind: "agent_status";
4341
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4342
4566
  label: string;
4567
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4568
+ kind: "agent_status";
4343
4569
  role: string;
4344
4570
  agentId: string;
4345
4571
  sessionId: string;
4346
4572
  evidence: {
4347
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4348
- label: string;
4349
4573
  id: string;
4574
+ label: string;
4575
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4350
4576
  capture: "at_action" | "historical_lookup" | "fixture";
4351
4577
  locator?: string | undefined;
4352
4578
  }[];
4353
4579
  detail?: string | undefined;
4354
4580
  } | {
4355
- kind: "agent_output";
4356
4581
  summary: string;
4582
+ kind: "agent_output";
4357
4583
  agentId: string;
4358
4584
  sessionId: string;
4359
4585
  evidence: {
4360
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4361
- label: string;
4362
4586
  id: string;
4587
+ label: string;
4588
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4363
4589
  capture: "at_action" | "historical_lookup" | "fixture";
4364
4590
  locator?: string | undefined;
4365
4591
  }[];
@@ -4370,9 +4596,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4370
4596
  statement: string;
4371
4597
  sessionId: string;
4372
4598
  evidence: {
4373
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4374
- label: string;
4375
4599
  id: string;
4600
+ label: string;
4601
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4376
4602
  capture: "at_action" | "historical_lookup" | "fixture";
4377
4603
  locator?: string | undefined;
4378
4604
  }[];
@@ -4380,12 +4606,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4380
4606
  decisionId: string;
4381
4607
  confidence?: number | undefined;
4382
4608
  } | {
4383
- kind: "conflict_detected";
4384
4609
  summary: string;
4610
+ kind: "conflict_detected";
4385
4611
  evidence: {
4386
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4387
- label: string;
4388
4612
  id: string;
4613
+ label: string;
4614
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4389
4615
  capture: "at_action" | "historical_lookup" | "fixture";
4390
4616
  locator?: string | undefined;
4391
4617
  }[];
@@ -4393,14 +4619,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4393
4619
  decisionIds: string[];
4394
4620
  agentIds: string[];
4395
4621
  } | {
4396
- kind: "test_result";
4397
4622
  summary: string;
4398
4623
  status: "error" | "failed" | "passed";
4624
+ kind: "test_result";
4399
4625
  command: string;
4400
4626
  evidence: {
4401
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4402
- label: string;
4403
4627
  id: string;
4628
+ label: string;
4629
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4404
4630
  capture: "at_action" | "historical_lookup" | "fixture";
4405
4631
  locator?: string | undefined;
4406
4632
  }[];
@@ -4413,9 +4639,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4413
4639
  statement: string;
4414
4640
  rationale: string;
4415
4641
  evidence: {
4416
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4417
- label: string;
4418
4642
  id: string;
4643
+ label: string;
4644
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4419
4645
  capture: "at_action" | "historical_lookup" | "fixture";
4420
4646
  locator?: string | undefined;
4421
4647
  }[];
@@ -4427,25 +4653,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4427
4653
  } | {
4428
4654
  kind: "correction_approved";
4429
4655
  evidence: {
4430
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4431
- label: string;
4432
4656
  id: string;
4657
+ label: string;
4658
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4433
4659
  capture: "at_action" | "historical_lookup" | "fixture";
4434
4660
  locator?: string | undefined;
4435
4661
  }[];
4436
4662
  correctionId: string;
4437
4663
  approvedBy: {
4438
- kind: "agent" | "human";
4439
- label: string;
4440
4664
  id: string;
4665
+ label: string;
4666
+ kind: "agent" | "human";
4441
4667
  };
4442
4668
  note?: string | undefined;
4443
4669
  } | {
4444
4670
  kind: "decision_superseded";
4445
4671
  evidence: {
4446
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4447
- label: string;
4448
4672
  id: string;
4673
+ label: string;
4674
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4449
4675
  capture: "at_action" | "historical_lookup" | "fixture";
4450
4676
  locator?: string | undefined;
4451
4677
  }[];
@@ -4458,9 +4684,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4458
4684
  agentId: string;
4459
4685
  sessionId: string;
4460
4686
  evidence: {
4461
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4462
- label: string;
4463
4687
  id: string;
4688
+ label: string;
4689
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4464
4690
  capture: "at_action" | "historical_lookup" | "fixture";
4465
4691
  locator?: string | undefined;
4466
4692
  }[];
@@ -4472,9 +4698,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4472
4698
  agentId: string;
4473
4699
  sessionId: string;
4474
4700
  evidence: {
4475
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4476
- label: string;
4477
4701
  id: string;
4702
+ label: string;
4703
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4478
4704
  capture: "at_action" | "historical_lookup" | "fixture";
4479
4705
  locator?: string | undefined;
4480
4706
  }[];
@@ -4483,24 +4709,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4483
4709
  recallReceiptId: string;
4484
4710
  staleDecisionAbsent: boolean;
4485
4711
  } | {
4486
- kind: "mission_completed";
4487
4712
  summary: string;
4713
+ kind: "mission_completed";
4488
4714
  outcome: "failed" | "recovered" | "inconclusive";
4489
4715
  evidence: {
4490
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4491
- label: string;
4492
4716
  id: string;
4717
+ label: string;
4718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4493
4719
  capture: "at_action" | "historical_lookup" | "fixture";
4494
4720
  locator?: string | undefined;
4495
4721
  }[];
4496
4722
  };
4497
- namespace: string;
4498
4723
  eventId: string;
4499
4724
  occurredAt: string;
4500
4725
  missionId: string;
4501
- authenticatedPrincipal?: string | undefined;
4502
4726
  idempotencyKey?: string | undefined;
4727
+ authenticatedPrincipal?: string | undefined;
4503
4728
  }, {
4729
+ namespace: string;
4504
4730
  recordedAt: string;
4505
4731
  schemaVersion: "1";
4506
4732
  payload: {
@@ -4509,37 +4735,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4509
4735
  objective: string;
4510
4736
  runMode: "replay" | "fixture" | "live";
4511
4737
  evidence?: {
4512
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4513
- label: string;
4514
4738
  id: string;
4739
+ label: string;
4740
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4515
4741
  capture: "at_action" | "historical_lookup" | "fixture";
4516
4742
  locator?: string | undefined;
4517
4743
  }[] | undefined;
4518
4744
  } | {
4519
- kind: "agent_status";
4520
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4521
4745
  label: string;
4746
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4747
+ kind: "agent_status";
4522
4748
  role: string;
4523
4749
  agentId: string;
4524
4750
  sessionId: string;
4525
4751
  detail?: string | undefined;
4526
4752
  evidence?: {
4527
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4528
- label: string;
4529
4753
  id: string;
4754
+ label: string;
4755
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4530
4756
  capture: "at_action" | "historical_lookup" | "fixture";
4531
4757
  locator?: string | undefined;
4532
4758
  }[] | undefined;
4533
4759
  } | {
4534
- kind: "agent_output";
4535
4760
  summary: string;
4761
+ kind: "agent_output";
4536
4762
  agentId: string;
4537
4763
  sessionId: string;
4538
4764
  outputId: string;
4539
4765
  evidence?: {
4540
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4541
- label: string;
4542
4766
  id: string;
4767
+ label: string;
4768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4543
4769
  capture: "at_action" | "historical_lookup" | "fixture";
4544
4770
  locator?: string | undefined;
4545
4771
  }[] | undefined;
@@ -4552,37 +4778,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4552
4778
  decisionId: string;
4553
4779
  confidence?: number | undefined;
4554
4780
  evidence?: {
4555
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4556
- label: string;
4557
4781
  id: string;
4782
+ label: string;
4783
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4558
4784
  capture: "at_action" | "historical_lookup" | "fixture";
4559
4785
  locator?: string | undefined;
4560
4786
  }[] | undefined;
4561
4787
  } | {
4562
- kind: "conflict_detected";
4563
4788
  summary: string;
4789
+ kind: "conflict_detected";
4564
4790
  conflictId: string;
4565
4791
  decisionIds: string[];
4566
4792
  agentIds: string[];
4567
4793
  evidence?: {
4568
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4569
- label: string;
4570
4794
  id: string;
4795
+ label: string;
4796
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4571
4797
  capture: "at_action" | "historical_lookup" | "fixture";
4572
4798
  locator?: string | undefined;
4573
4799
  }[] | undefined;
4574
4800
  } | {
4575
- kind: "test_result";
4576
4801
  summary: string;
4577
4802
  status: "error" | "failed" | "passed";
4803
+ kind: "test_result";
4578
4804
  command: string;
4579
4805
  decisionId: string;
4580
4806
  testId: string;
4581
4807
  durationMs?: number | undefined;
4582
4808
  evidence?: {
4583
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4584
- label: string;
4585
4809
  id: string;
4810
+ label: string;
4811
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4586
4812
  capture: "at_action" | "historical_lookup" | "fixture";
4587
4813
  locator?: string | undefined;
4588
4814
  }[] | undefined;
@@ -4597,9 +4823,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4597
4823
  supersedesDecisionIds: string[];
4598
4824
  proposedBy: string;
4599
4825
  evidence?: {
4600
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4601
- label: string;
4602
4826
  id: string;
4827
+ label: string;
4828
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4603
4829
  capture: "at_action" | "historical_lookup" | "fixture";
4604
4830
  locator?: string | undefined;
4605
4831
  }[] | undefined;
@@ -4607,15 +4833,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4607
4833
  kind: "correction_approved";
4608
4834
  correctionId: string;
4609
4835
  approvedBy: {
4610
- kind: "agent" | "human";
4611
- label: string;
4612
4836
  id: string;
4837
+ label: string;
4838
+ kind: "agent" | "human";
4613
4839
  };
4614
4840
  note?: string | undefined;
4615
4841
  evidence?: {
4616
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4617
- label: string;
4618
4842
  id: string;
4843
+ label: string;
4844
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4619
4845
  capture: "at_action" | "historical_lookup" | "fixture";
4620
4846
  locator?: string | undefined;
4621
4847
  }[] | undefined;
@@ -4625,9 +4851,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4625
4851
  correctionId: string;
4626
4852
  replacementDecisionId: string;
4627
4853
  evidence?: {
4628
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4629
- label: string;
4630
4854
  id: string;
4855
+ label: string;
4856
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4631
4857
  capture: "at_action" | "historical_lookup" | "fixture";
4632
4858
  locator?: string | undefined;
4633
4859
  }[] | undefined;
@@ -4640,9 +4866,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4640
4866
  recallReceiptId: string;
4641
4867
  capturedAtAction: boolean;
4642
4868
  evidence?: {
4643
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4644
- label: string;
4645
4869
  id: string;
4870
+ label: string;
4871
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4646
4872
  capture: "at_action" | "historical_lookup" | "fixture";
4647
4873
  locator?: string | undefined;
4648
4874
  }[] | undefined;
@@ -4655,30 +4881,29 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4655
4881
  recallReceiptId: string;
4656
4882
  staleDecisionAbsent: boolean;
4657
4883
  evidence?: {
4658
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4659
- label: string;
4660
4884
  id: string;
4885
+ label: string;
4886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4661
4887
  capture: "at_action" | "historical_lookup" | "fixture";
4662
4888
  locator?: string | undefined;
4663
4889
  }[] | undefined;
4664
4890
  } | {
4665
- kind: "mission_completed";
4666
4891
  summary: string;
4892
+ kind: "mission_completed";
4667
4893
  outcome: "failed" | "recovered" | "inconclusive";
4668
4894
  evidence?: {
4669
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4670
- label: string;
4671
4895
  id: string;
4896
+ label: string;
4897
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4672
4898
  capture: "at_action" | "historical_lookup" | "fixture";
4673
4899
  locator?: string | undefined;
4674
4900
  }[] | undefined;
4675
4901
  };
4676
- namespace: string;
4677
4902
  eventId: string;
4678
4903
  occurredAt: string;
4679
4904
  missionId: string;
4680
- authenticatedPrincipal?: string | undefined;
4681
4905
  idempotencyKey?: string | undefined;
4906
+ authenticatedPrincipal?: string | undefined;
4682
4907
  }>;
4683
4908
  type RelayMissionEvent = z.infer<typeof RelayMissionEventSchema>;
4684
4909
  declare const RelayMissionReadOptionsSchema: z.ZodEffects<z.ZodObject<{
@@ -5965,6 +6190,15 @@ declare function listReviewItems(options: ReviewOptions): ReviewListResult;
5965
6190
  */
5966
6191
  declare function performReview(memoryDir: string, itemId: string, action: ReviewAction, options?: ReviewActionOptions): ReviewResult;
5967
6192
 
6193
+ declare function readReviewDeckSnapshot(opts: {
6194
+ memoryDir: string;
6195
+ namespace: string;
6196
+ }): ReviewDeckSnapshot;
6197
+ declare function readReviewDeckRow(opts: {
6198
+ memoryDir: string;
6199
+ itemId: string;
6200
+ }): ReviewDeckSourceRow | null;
6201
+
5968
6202
  /**
5969
6203
  * @remnic/core — Diff-Aware Sync
5970
6204
  *
@@ -6066,6 +6300,7 @@ declare function renderExtensionsFooter(extensions: DiscoveredExtension[]): stri
6066
6300
  * Each space is an isolated memory directory. Spaces can share memories
6067
6301
  * through push/pull and promotion workflows.
6068
6302
  */
6303
+
6069
6304
  type SpaceKind = "personal" | "project" | "team";
6070
6305
  interface Space {
6071
6306
  /** Unique space ID */
@@ -6129,6 +6364,8 @@ interface SpacePromoteResult {
6129
6364
  memoriesPromoted: number;
6130
6365
  conflicts: ConflictEntry[];
6131
6366
  durationMs: number;
6367
+ /** Subject-guard warnings (issue #2372): user-subject memories promoted to a shared team space under "warn". */
6368
+ subjectWarnings?: string[];
6132
6369
  }
6133
6370
  interface ConflictEntry {
6134
6371
  /** Memory ID */
@@ -6192,6 +6429,8 @@ declare function promoteSpace(sourceSpaceId: string, targetSpaceId: string, opti
6192
6429
  force?: boolean;
6193
6430
  forceOverwrite?: boolean;
6194
6431
  baseDir?: string;
6432
+ subjectGuard?: SubjectGuardMode;
6433
+ allowUserSubject?: boolean;
6195
6434
  }): Promise<SpacePromoteResult>;
6196
6435
  declare function mergeSpaces(sourceSpaceId: string, targetSpaceId: string, options?: {
6197
6436
  force?: boolean;
@@ -7997,4 +8236,4 @@ declare function forkCapsule(opts: ForkCapsuleOptions): Promise<ForkCapsuleResul
7997
8236
  */
7998
8237
  declare function readForkLineage(targetRoot: string, forkId: string): Promise<ForkLineage | null>;
7999
8238
 
8000
- 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_UNTRUSTED_ORIGINS, 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, INJECTION_SCREEN_THRESHOLD, type IngestionPlan, type InjectionScreenFinding, type InjectionScreenResult, 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, type OriginClass, 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, classifyOrigin, 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, isUntrustedOrigin, 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, parseOriginClass, 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, renderAuthorityFence, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runOkfCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, screenCandidateFact, 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 };
8239
+ 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_UNTRUSTED_ORIGINS, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DetectedMeeting, DiscoveredExtension, type DocFile, DriftDetectionConfig, type DriftRankInput, type DriftRankOutput, type DriftRecallFrontmatter, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, FallbackLlmClient, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, INJECTION_SCREEN_THRESHOLD, type IngestionPlan, type InjectionScreenFinding, type InjectionScreenResult, 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, MemoryDriftState, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OffTheRecordMarkerInput, OffTheRecordMarkerSettings, type OnboardOptions, type OnboardResult, type OriginClass, PUBLISHERS, type PackReviewContextStructuralInput, type PipelineResult, PluginConfig, type PreferenceDriftClassification, type PreferenceDriftDependencies, type PreferenceDriftEvidence, type PreferenceDriftFinding, type PreferenceDriftMarker, type PreferenceDriftReport, type PreferenceDriftResolutionOptions, type PreferenceDriftResolutionResult, type PreferenceDriftSkipReason, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, ReviewDeckSnapshot, ReviewDeckSourceRow, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type ScriptHint, SealedMemoryEnvelope, SemanticDedupLookup, 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, applyPreferenceDriftRanking, assertValidTimezone, bodyIsEscaped, branchNamespaceName, buildAudioWindows, buildPhraseMatcher, buildProcedureMarkdownBody, buildProcedureRecallSection, builtInConnectorPackageSpecifier, classifyOrigin, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileOffTheRecordMarkers, compileRedactionPatterns, compileRedactionRules, composeActivityDigestBody, composeActivityDigestMeta, composeDayTranscriptBody, composeDayTranscriptMeta, composeMeetingEpisodeContent, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createMeetingMemoryGenerator, createMeetingMemoryWriter, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultActivityConfig, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, deriveAppSpans, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, detectMeetings, detectScriptHints, driftAgeNote, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, 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, isPreferenceDriftStageActive, isReviewPrompt, isUntrustedOrigin, 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, parseOriginClass, parseProcedureStepsFromBody, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, readPreferenceDriftMarker, readRelayMission, readReviewDeckRow, readReviewDeckSnapshot, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, refreshActivityIndex, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderAuthorityFence, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, resolvePreferenceDrift, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runOkfCliCommand, runPreferenceDriftScan, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, screenCandidateFact, 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 };