@remnic/core 10.0.50 → 10.0.52

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 (272) hide show
  1. package/dist/access-admin-ops-surface.js +22 -22
  2. package/dist/access-authorization-probe.js +23 -23
  3. package/dist/access-boundary.d.ts +6 -1
  4. package/dist/access-boundary.d.ts.map +1 -1
  5. package/dist/access-boundary.js +22 -22
  6. package/dist/access-cli.js +68 -68
  7. package/dist/access-errors.d.ts.map +1 -1
  8. package/dist/access-errors.js +1 -1
  9. package/dist/access-extraction-force-flush.js +22 -22
  10. package/dist/access-http-briefing.js +23 -23
  11. package/dist/access-http-query.js +24 -24
  12. package/dist/access-http.js +42 -42
  13. package/dist/access-identity-continuity-surface.js +22 -22
  14. package/dist/access-lcm-surface.js +22 -22
  15. package/dist/access-mcp.js +32 -32
  16. package/dist/access-memory-search-fanout.js +2 -2
  17. package/dist/access-namespace-preflight.js +22 -22
  18. package/dist/access-observe-write-category.js +2 -2
  19. package/dist/access-observe-write-surface.js +22 -22
  20. package/dist/access-offline-manifest.js +2 -2
  21. package/dist/access-operations-batch.js +23 -23
  22. package/dist/access-operations.js +30 -30
  23. package/dist/access-recall-concurrency.js +22 -22
  24. package/dist/access-recall-diagnostics.js +2 -2
  25. package/dist/access-recall-response.js +22 -22
  26. package/dist/access-recall-surface.js +22 -22
  27. package/dist/access-schema.d.ts +245 -773
  28. package/dist/access-schema.d.ts.map +1 -1
  29. package/dist/access-schema.js +1 -1
  30. package/dist/access-service.js +22 -22
  31. package/dist/access-surface-catalog.js +24 -24
  32. package/dist/access-token-capabilities.js +2 -2
  33. package/dist/active-recall.js +5 -5
  34. package/dist/briefing.js +3 -3
  35. package/dist/causal-consolidation.js +4 -4
  36. package/dist/{chunk-7YVER7ZO.js → chunk-2EXF6IIB.js} +2 -2
  37. package/dist/{chunk-HPNXS6W6.js → chunk-2ONKXEC7.js} +3 -3
  38. package/dist/{chunk-DMKTOCC7.js → chunk-2S6JADBB.js} +2 -2
  39. package/dist/{chunk-ZSEFGDCI.js → chunk-2TGIKMMZ.js} +2 -2
  40. package/dist/{chunk-Q3PNQYAC.js → chunk-44EUCSG4.js} +2 -2
  41. package/dist/{chunk-PJCVI44H.js → chunk-4FM35YIA.js} +3 -3
  42. package/dist/{chunk-M6TP6UYD.js → chunk-6ZAU7LAR.js} +2 -2
  43. package/dist/{chunk-SJTSWG2Z.js → chunk-72CBJ5VP.js} +3 -3
  44. package/dist/{chunk-EKYWZYZJ.js → chunk-75BK4XGV.js} +17 -17
  45. package/dist/{chunk-HKOMHP6D.js → chunk-A6JDT6QF.js} +2 -2
  46. package/dist/{chunk-TFWJXWL6.js → chunk-AHGOOZUC.js} +2 -2
  47. package/dist/{chunk-A7AISUJI.js → chunk-AJG2TAMR.js} +2 -2
  48. package/dist/{chunk-VCOMACR6.js → chunk-AZLD4CKG.js} +19 -19
  49. package/dist/{chunk-GXVXBYRA.js → chunk-B35EQQ7L.js} +3 -3
  50. package/dist/{chunk-E6UNM67F.js → chunk-B6SPPYGJ.js} +2 -2
  51. package/dist/{chunk-TXKQBQYW.js → chunk-CK6GCGMX.js} +3 -3
  52. package/dist/{chunk-NPLM7AFU.js → chunk-DF6ZF2BN.js} +3 -3
  53. package/dist/{chunk-6ZQX3R66.js → chunk-DJFULNXK.js} +4 -4
  54. package/dist/{chunk-JBWD3J5U.js → chunk-DQOGZZJA.js} +3 -3
  55. package/dist/{chunk-K5QQXVG6.js → chunk-EC2KVA27.js} +7 -7
  56. package/dist/{chunk-N74WJ7B2.js → chunk-EZS6QJNC.js} +2 -2
  57. package/dist/{chunk-MWURUSRE.js → chunk-FNNGWN3O.js} +2 -2
  58. package/dist/{chunk-5FUDSK6Z.js → chunk-FT75AQ74.js} +3 -3
  59. package/dist/{chunk-ZMO2S5RT.js → chunk-G6A3SGCE.js} +3 -3
  60. package/dist/chunk-G6A3SGCE.js.map +1 -0
  61. package/dist/{chunk-IMKOJVD4.js → chunk-GBGU5OZP.js} +52 -51
  62. package/dist/chunk-GBGU5OZP.js.map +1 -0
  63. package/dist/{chunk-5X2H3X4J.js → chunk-GE3ZX6YK.js} +2 -2
  64. package/dist/{chunk-UNOAVHV4.js → chunk-HCIRR3BA.js} +3 -3
  65. package/dist/{chunk-MLNXATFG.js → chunk-HEF4BRMT.js} +3 -3
  66. package/dist/{chunk-Z5277JWF.js → chunk-HQUYENKK.js} +7 -10
  67. package/dist/chunk-HQUYENKK.js.map +1 -0
  68. package/dist/{chunk-6UDLN4IA.js → chunk-I6ORDT54.js} +2 -2
  69. package/dist/{chunk-M4HRYLOA.js → chunk-IUQXRRJB.js} +3 -3
  70. package/dist/{chunk-GQIYL7OD.js → chunk-JIJAWTRK.js} +3 -3
  71. package/dist/{chunk-4KS4IHKH.js → chunk-JX3E4XCW.js} +2 -2
  72. package/dist/{chunk-ZFNXJEUG.js → chunk-KAJYSO3U.js} +2 -2
  73. package/dist/{chunk-QS765SBL.js → chunk-KETS5A62.js} +2 -2
  74. package/dist/{chunk-N7FNCE7F.js → chunk-KIWO4327.js} +2 -2
  75. package/dist/{chunk-FC3ZFEXF.js → chunk-KJ3MDX4V.js} +2 -2
  76. package/dist/{chunk-BNJAVRNJ.js → chunk-L3EFYRYK.js} +8 -8
  77. package/dist/{chunk-3MUKQQ7A.js → chunk-LGEH473S.js} +24 -29
  78. package/dist/chunk-LGEH473S.js.map +1 -0
  79. package/dist/{chunk-P7OVFGMU.js → chunk-LMB47UM6.js} +2 -2
  80. package/dist/{chunk-7SAE6T36.js → chunk-LWMLBVGB.js} +2 -2
  81. package/dist/{chunk-ZNRTHYYW.js → chunk-MC7PXJDP.js} +7 -7
  82. package/dist/{chunk-M2DOJBH7.js → chunk-MUNYUSBU.js} +2 -2
  83. package/dist/{chunk-LMMBV7QC.js → chunk-OCRLJJOV.js} +4 -4
  84. package/dist/{chunk-7J6A5MV2.js → chunk-ON77FQXH.js} +2 -2
  85. package/dist/{chunk-WV4UYDP6.js → chunk-POJRFSJM.js} +3 -3
  86. package/dist/{chunk-LKRXGOQW.js → chunk-QA3Y2O6H.js} +2 -2
  87. package/dist/{chunk-23ZLN5X6.js → chunk-QT5MGENX.js} +14 -6
  88. package/dist/chunk-QT5MGENX.js.map +1 -0
  89. package/dist/{chunk-YECEEJUU.js → chunk-RA7YRL6H.js} +2 -2
  90. package/dist/{chunk-UALXWWGN.js → chunk-RJDYDF5K.js} +4 -4
  91. package/dist/{chunk-WXJC2L66.js → chunk-ROAKLYOL.js} +2 -2
  92. package/dist/{chunk-NWIT3U2N.js → chunk-S5CQI2KF.js} +2 -2
  93. package/dist/{chunk-P6P35FY4.js → chunk-SDESKFKT.js} +2 -2
  94. package/dist/{chunk-UXGXJUZ5.js → chunk-SFRBUBUZ.js} +7 -7
  95. package/dist/{chunk-CRN3EPE2.js → chunk-SHNM7RIT.js} +3 -3
  96. package/dist/{chunk-XC3H7KON.js → chunk-SPTPBKZX.js} +2 -2
  97. package/dist/{chunk-IUYXCTA7.js → chunk-TC55M5PO.js} +2 -2
  98. package/dist/{chunk-EWBXMGXR.js → chunk-UCLJTGP3.js} +2 -2
  99. package/dist/{chunk-UZVQFGAY.js → chunk-UM3ZLT2X.js} +206 -165
  100. package/dist/chunk-UM3ZLT2X.js.map +1 -0
  101. package/dist/{chunk-754XN6LX.js → chunk-V27FK6D6.js} +2 -2
  102. package/dist/{chunk-LIBVANOF.js → chunk-V6Z4NAJZ.js} +2 -2
  103. package/dist/{chunk-XTXWR6KQ.js → chunk-VUMWVYMR.js} +7 -7
  104. package/dist/{chunk-ZSMA67FV.js → chunk-WY66J4PI.js} +2 -2
  105. package/dist/{chunk-5G53JSRO.js → chunk-XWJUFER3.js} +3 -3
  106. package/dist/{chunk-NSP5PIQH.js → chunk-Y3T5KQCR.js} +2 -2
  107. package/dist/{chunk-QTDZ2NYC.js → chunk-Y77FXULH.js} +2 -2
  108. package/dist/{chunk-IG747LRN.js → chunk-YO2JEX2Z.js} +2 -2
  109. package/dist/{chunk-KW5YZELC.js → chunk-ZKK3VMWU.js} +2 -2
  110. package/dist/cli.js +55 -55
  111. package/dist/coding/export-okf-codegraph.js +2 -2
  112. package/dist/compounding/engine.js +4 -4
  113. package/dist/config.js +5 -5
  114. package/dist/connectors/codex-materialize-runner.js +3 -3
  115. package/dist/connectors/index.js +7 -7
  116. package/dist/convergence-refresh.js +5 -5
  117. package/dist/corpus-watermark.js +7 -7
  118. package/dist/deep-recall-config.js +2 -2
  119. package/dist/deep-recall-http-glue.js +4 -4
  120. package/dist/{entity-canonical-id-migration-ZBNRGUNV.js → entity-canonical-id-migration-F3JVG6K6.js} +2 -2
  121. package/dist/entity-retrieval.js +3 -3
  122. package/dist/external-wiki-access.js +23 -23
  123. package/dist/extraction-span-wire.d.ts.map +1 -1
  124. package/dist/extraction-span-wire.js +1 -1
  125. package/dist/extraction.js +11 -11
  126. package/dist/harmonic-retrieval.js +3 -3
  127. package/dist/index.js +68 -68
  128. package/dist/location/index.js +6 -6
  129. package/dist/maintenance/memory-governance.js +3 -3
  130. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  131. package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
  132. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  133. package/dist/memory-browse-http-glue.js +2 -2
  134. package/dist/memory-browse-operations.js +23 -23
  135. package/dist/namespaces/migrate.js +4 -4
  136. package/dist/namespaces/storage.js +3 -3
  137. package/dist/offline-sync-impression-drain.js +2 -2
  138. package/dist/operator-doctor-corpus.js +10 -10
  139. package/dist/operator-doctor-replica.js +4 -4
  140. package/dist/operator-toolkit.js +17 -17
  141. package/dist/orchestration/extraction-persist-deps.d.ts +2 -0
  142. package/dist/orchestration/extraction-persist-deps.d.ts.map +1 -1
  143. package/dist/orchestration/extraction-persist-promotion.d.ts +40 -10
  144. package/dist/orchestration/extraction-persist-promotion.d.ts.map +1 -1
  145. package/dist/orchestration/extraction-persist.d.ts.map +1 -1
  146. package/dist/orchestration/maintenance.js +15 -15
  147. package/dist/orchestrator.d.ts.map +1 -1
  148. package/dist/orchestrator.js +68 -68
  149. package/dist/recall-navigation-http-glue.js +2 -2
  150. package/dist/recall-navigation-operations.js +23 -23
  151. package/dist/recall-navigation.js +22 -22
  152. package/dist/relay/mission.d.ts +731 -3403
  153. package/dist/relay/mission.d.ts.map +1 -1
  154. package/dist/replica-divergence.js +3 -3
  155. package/dist/resume-bundles.js +6 -6
  156. package/dist/schemas.d.ts +346 -1771
  157. package/dist/schemas.d.ts.map +1 -1
  158. package/dist/semantic-consolidation.js +4 -4
  159. package/dist/semantic-rule-promotion.js +3 -3
  160. package/dist/semantic-rule-verifier.js +3 -3
  161. package/dist/shared-context/manager.d.ts +13 -33
  162. package/dist/shared-context/manager.d.ts.map +1 -1
  163. package/dist/source-agent-qualifier.js +9 -9
  164. package/dist/standup/build.js +4 -4
  165. package/dist/storage.js +2 -2
  166. package/dist/support-passport/access-operations.d.ts +51 -51
  167. package/dist/support-passport/contracts.d.ts +85 -126
  168. package/dist/support-passport/contracts.d.ts.map +1 -1
  169. package/dist/support-passport/generated-batch.d.ts +3 -17
  170. package/dist/support-passport/generated-batch.d.ts.map +1 -1
  171. package/dist/support-passport/grant-contracts.d.ts +75 -381
  172. package/dist/support-passport/grant-contracts.d.ts.map +1 -1
  173. package/dist/support-passport/index.js +25 -25
  174. package/dist/support-passport/model-audit.d.ts +17 -82
  175. package/dist/support-passport/model-audit.d.ts.map +1 -1
  176. package/dist/support-passport/model-bridge.d.ts +12 -51
  177. package/dist/support-passport/model-bridge.d.ts.map +1 -1
  178. package/dist/support-passport/model-contracts.d.ts +53 -192
  179. package/dist/support-passport/model-contracts.d.ts.map +1 -1
  180. package/dist/tokens.js +3 -3
  181. package/dist/transfer/export-okf.js +3 -3
  182. package/dist/transfer/types.d.ts +32 -737
  183. package/dist/transfer/types.d.ts.map +1 -1
  184. package/dist/verified-recall.js +3 -3
  185. package/dist/who-knows-cli.js +5 -5
  186. package/dist/who-knows.js +4 -4
  187. package/package.json +3 -4
  188. package/src/access-boundary.test.ts +14 -0
  189. package/src/access-boundary.ts +48 -42
  190. package/src/access-category-alias.test.ts +9 -7
  191. package/src/access-errors.test.ts +21 -9
  192. package/src/access-errors.ts +45 -31
  193. package/src/access-http.test.ts +1 -1
  194. package/src/access-schema.ts +13 -17
  195. package/src/extraction-scope-source-agent.test.ts +6 -6
  196. package/src/extraction-span-wire.test.ts +28 -0
  197. package/src/extraction-span-wire.ts +34 -6
  198. package/src/orchestration/extraction-persist-deps.ts +3 -0
  199. package/src/orchestration/extraction-persist-promotion.ts +104 -16
  200. package/src/orchestration/extraction-persist.ts +66 -77
  201. package/src/orchestrator-entity-write-failure.test.ts +370 -0
  202. package/src/orchestrator.ts +1 -0
  203. package/src/storage/entity-canonical-id-migration.ts +2 -2
  204. package/dist/chunk-23ZLN5X6.js.map +0 -1
  205. package/dist/chunk-3MUKQQ7A.js.map +0 -1
  206. package/dist/chunk-IMKOJVD4.js.map +0 -1
  207. package/dist/chunk-UZVQFGAY.js.map +0 -1
  208. package/dist/chunk-Z5277JWF.js.map +0 -1
  209. package/dist/chunk-ZMO2S5RT.js.map +0 -1
  210. /package/dist/{chunk-7YVER7ZO.js.map → chunk-2EXF6IIB.js.map} +0 -0
  211. /package/dist/{chunk-HPNXS6W6.js.map → chunk-2ONKXEC7.js.map} +0 -0
  212. /package/dist/{chunk-DMKTOCC7.js.map → chunk-2S6JADBB.js.map} +0 -0
  213. /package/dist/{chunk-ZSEFGDCI.js.map → chunk-2TGIKMMZ.js.map} +0 -0
  214. /package/dist/{chunk-Q3PNQYAC.js.map → chunk-44EUCSG4.js.map} +0 -0
  215. /package/dist/{chunk-PJCVI44H.js.map → chunk-4FM35YIA.js.map} +0 -0
  216. /package/dist/{chunk-M6TP6UYD.js.map → chunk-6ZAU7LAR.js.map} +0 -0
  217. /package/dist/{chunk-SJTSWG2Z.js.map → chunk-72CBJ5VP.js.map} +0 -0
  218. /package/dist/{chunk-EKYWZYZJ.js.map → chunk-75BK4XGV.js.map} +0 -0
  219. /package/dist/{chunk-HKOMHP6D.js.map → chunk-A6JDT6QF.js.map} +0 -0
  220. /package/dist/{chunk-TFWJXWL6.js.map → chunk-AHGOOZUC.js.map} +0 -0
  221. /package/dist/{chunk-A7AISUJI.js.map → chunk-AJG2TAMR.js.map} +0 -0
  222. /package/dist/{chunk-VCOMACR6.js.map → chunk-AZLD4CKG.js.map} +0 -0
  223. /package/dist/{chunk-GXVXBYRA.js.map → chunk-B35EQQ7L.js.map} +0 -0
  224. /package/dist/{chunk-E6UNM67F.js.map → chunk-B6SPPYGJ.js.map} +0 -0
  225. /package/dist/{chunk-TXKQBQYW.js.map → chunk-CK6GCGMX.js.map} +0 -0
  226. /package/dist/{chunk-NPLM7AFU.js.map → chunk-DF6ZF2BN.js.map} +0 -0
  227. /package/dist/{chunk-6ZQX3R66.js.map → chunk-DJFULNXK.js.map} +0 -0
  228. /package/dist/{chunk-JBWD3J5U.js.map → chunk-DQOGZZJA.js.map} +0 -0
  229. /package/dist/{chunk-K5QQXVG6.js.map → chunk-EC2KVA27.js.map} +0 -0
  230. /package/dist/{chunk-N74WJ7B2.js.map → chunk-EZS6QJNC.js.map} +0 -0
  231. /package/dist/{chunk-MWURUSRE.js.map → chunk-FNNGWN3O.js.map} +0 -0
  232. /package/dist/{chunk-5FUDSK6Z.js.map → chunk-FT75AQ74.js.map} +0 -0
  233. /package/dist/{chunk-5X2H3X4J.js.map → chunk-GE3ZX6YK.js.map} +0 -0
  234. /package/dist/{chunk-UNOAVHV4.js.map → chunk-HCIRR3BA.js.map} +0 -0
  235. /package/dist/{chunk-MLNXATFG.js.map → chunk-HEF4BRMT.js.map} +0 -0
  236. /package/dist/{chunk-6UDLN4IA.js.map → chunk-I6ORDT54.js.map} +0 -0
  237. /package/dist/{chunk-M4HRYLOA.js.map → chunk-IUQXRRJB.js.map} +0 -0
  238. /package/dist/{chunk-GQIYL7OD.js.map → chunk-JIJAWTRK.js.map} +0 -0
  239. /package/dist/{chunk-4KS4IHKH.js.map → chunk-JX3E4XCW.js.map} +0 -0
  240. /package/dist/{chunk-ZFNXJEUG.js.map → chunk-KAJYSO3U.js.map} +0 -0
  241. /package/dist/{chunk-QS765SBL.js.map → chunk-KETS5A62.js.map} +0 -0
  242. /package/dist/{chunk-N7FNCE7F.js.map → chunk-KIWO4327.js.map} +0 -0
  243. /package/dist/{chunk-FC3ZFEXF.js.map → chunk-KJ3MDX4V.js.map} +0 -0
  244. /package/dist/{chunk-BNJAVRNJ.js.map → chunk-L3EFYRYK.js.map} +0 -0
  245. /package/dist/{chunk-P7OVFGMU.js.map → chunk-LMB47UM6.js.map} +0 -0
  246. /package/dist/{chunk-7SAE6T36.js.map → chunk-LWMLBVGB.js.map} +0 -0
  247. /package/dist/{chunk-ZNRTHYYW.js.map → chunk-MC7PXJDP.js.map} +0 -0
  248. /package/dist/{chunk-M2DOJBH7.js.map → chunk-MUNYUSBU.js.map} +0 -0
  249. /package/dist/{chunk-LMMBV7QC.js.map → chunk-OCRLJJOV.js.map} +0 -0
  250. /package/dist/{chunk-7J6A5MV2.js.map → chunk-ON77FQXH.js.map} +0 -0
  251. /package/dist/{chunk-WV4UYDP6.js.map → chunk-POJRFSJM.js.map} +0 -0
  252. /package/dist/{chunk-LKRXGOQW.js.map → chunk-QA3Y2O6H.js.map} +0 -0
  253. /package/dist/{chunk-YECEEJUU.js.map → chunk-RA7YRL6H.js.map} +0 -0
  254. /package/dist/{chunk-UALXWWGN.js.map → chunk-RJDYDF5K.js.map} +0 -0
  255. /package/dist/{chunk-WXJC2L66.js.map → chunk-ROAKLYOL.js.map} +0 -0
  256. /package/dist/{chunk-NWIT3U2N.js.map → chunk-S5CQI2KF.js.map} +0 -0
  257. /package/dist/{chunk-P6P35FY4.js.map → chunk-SDESKFKT.js.map} +0 -0
  258. /package/dist/{chunk-UXGXJUZ5.js.map → chunk-SFRBUBUZ.js.map} +0 -0
  259. /package/dist/{chunk-CRN3EPE2.js.map → chunk-SHNM7RIT.js.map} +0 -0
  260. /package/dist/{chunk-XC3H7KON.js.map → chunk-SPTPBKZX.js.map} +0 -0
  261. /package/dist/{chunk-IUYXCTA7.js.map → chunk-TC55M5PO.js.map} +0 -0
  262. /package/dist/{chunk-EWBXMGXR.js.map → chunk-UCLJTGP3.js.map} +0 -0
  263. /package/dist/{chunk-754XN6LX.js.map → chunk-V27FK6D6.js.map} +0 -0
  264. /package/dist/{chunk-LIBVANOF.js.map → chunk-V6Z4NAJZ.js.map} +0 -0
  265. /package/dist/{chunk-XTXWR6KQ.js.map → chunk-VUMWVYMR.js.map} +0 -0
  266. /package/dist/{chunk-ZSMA67FV.js.map → chunk-WY66J4PI.js.map} +0 -0
  267. /package/dist/{chunk-5G53JSRO.js.map → chunk-XWJUFER3.js.map} +0 -0
  268. /package/dist/{chunk-NSP5PIQH.js.map → chunk-Y3T5KQCR.js.map} +0 -0
  269. /package/dist/{chunk-QTDZ2NYC.js.map → chunk-Y77FXULH.js.map} +0 -0
  270. /package/dist/{chunk-IG747LRN.js.map → chunk-YO2JEX2Z.js.map} +0 -0
  271. /package/dist/{chunk-KW5YZELC.js.map → chunk-ZKK3VMWU.js.map} +0 -0
  272. /package/dist/{entity-canonical-id-migration-ZBNRGUNV.js.map → entity-canonical-id-migration-F3JVG6K6.js.map} +0 -0
@@ -6,2374 +6,727 @@ export declare const RELAY_MISSION_MAX_EVENTS = 2000;
6
6
  export declare const RELAY_MISSION_DEFAULT_EVENT_LIMIT = 200;
7
7
  export declare const RELAY_MISSION_MAX_EVENT_LIMIT = 500;
8
8
  export declare const RelayMissionIdSchema: z.ZodString;
9
- export declare const RelayIsoDateTimeSchema: z.ZodEffects<z.ZodString, string, string>;
9
+ export declare const RelayIsoDateTimeSchema: z.ZodString;
10
10
  export declare const RelayEvidenceRefSchema: z.ZodObject<{
11
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
11
+ kind: z.ZodEnum<{
12
+ source: "source";
13
+ correction: "correction";
14
+ memory: "memory";
15
+ commit: "commit";
16
+ recall_audit: "recall_audit";
17
+ test: "test";
18
+ agent_output: "agent_output";
19
+ approval: "approval";
20
+ }>;
12
21
  id: z.ZodString;
13
22
  label: z.ZodString;
14
23
  locator: z.ZodOptional<z.ZodString>;
15
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
16
- }, "strict", z.ZodTypeAny, {
17
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
18
- label: string;
19
- id: string;
20
- capture: "at_action" | "historical_lookup" | "fixture";
21
- locator?: string | undefined;
22
- }, {
23
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
24
- label: string;
25
- id: string;
26
- capture: "at_action" | "historical_lookup" | "fixture";
27
- locator?: string | undefined;
28
- }>;
24
+ capture: z.ZodEnum<{
25
+ at_action: "at_action";
26
+ historical_lookup: "historical_lookup";
27
+ fixture: "fixture";
28
+ }>;
29
+ }, z.core.$strict>;
29
30
  export type RelayEvidenceRef = z.infer<typeof RelayEvidenceRefSchema>;
30
- export declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
31
+ export declare const RelayMissionPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
32
  kind: z.ZodLiteral<"mission_started">;
32
33
  title: z.ZodString;
33
34
  objective: z.ZodString;
34
- runMode: z.ZodEnum<["live", "replay", "fixture"]>;
35
+ runMode: z.ZodEnum<{
36
+ replay: "replay";
37
+ fixture: "fixture";
38
+ live: "live";
39
+ }>;
35
40
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
36
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
41
+ kind: z.ZodEnum<{
42
+ source: "source";
43
+ correction: "correction";
44
+ memory: "memory";
45
+ commit: "commit";
46
+ recall_audit: "recall_audit";
47
+ test: "test";
48
+ agent_output: "agent_output";
49
+ approval: "approval";
50
+ }>;
37
51
  id: z.ZodString;
38
52
  label: z.ZodString;
39
53
  locator: z.ZodOptional<z.ZodString>;
40
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
41
- }, "strict", z.ZodTypeAny, {
42
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
43
- label: string;
44
- id: string;
45
- capture: "at_action" | "historical_lookup" | "fixture";
46
- locator?: string | undefined;
47
- }, {
48
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
49
- label: string;
50
- id: string;
51
- capture: "at_action" | "historical_lookup" | "fixture";
52
- locator?: string | undefined;
53
- }>, "many">>;
54
- }, "strict", z.ZodTypeAny, {
55
- kind: "mission_started";
56
- title: string;
57
- evidence: {
58
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
59
- label: string;
60
- id: string;
61
- capture: "at_action" | "historical_lookup" | "fixture";
62
- locator?: string | undefined;
63
- }[];
64
- objective: string;
65
- runMode: "replay" | "fixture" | "live";
66
- }, {
67
- kind: "mission_started";
68
- title: string;
69
- objective: string;
70
- runMode: "replay" | "fixture" | "live";
71
- evidence?: {
72
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
73
- label: string;
74
- id: string;
75
- capture: "at_action" | "historical_lookup" | "fixture";
76
- locator?: string | undefined;
77
- }[] | undefined;
78
- }>, z.ZodObject<{
54
+ capture: z.ZodEnum<{
55
+ at_action: "at_action";
56
+ historical_lookup: "historical_lookup";
57
+ fixture: "fixture";
58
+ }>;
59
+ }, z.core.$strict>>>;
60
+ }, z.core.$strict>, z.ZodObject<{
79
61
  label: z.ZodString;
80
62
  role: z.ZodString;
81
- status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
63
+ status: z.ZodEnum<{
64
+ failed: "failed";
65
+ complete: "complete";
66
+ blocked: "blocked";
67
+ idle: "idle";
68
+ working: "working";
69
+ }>;
82
70
  detail: z.ZodOptional<z.ZodString>;
83
71
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
84
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
72
+ kind: z.ZodEnum<{
73
+ source: "source";
74
+ correction: "correction";
75
+ memory: "memory";
76
+ commit: "commit";
77
+ recall_audit: "recall_audit";
78
+ test: "test";
79
+ agent_output: "agent_output";
80
+ approval: "approval";
81
+ }>;
85
82
  id: z.ZodString;
86
83
  label: z.ZodString;
87
84
  locator: z.ZodOptional<z.ZodString>;
88
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
89
- }, "strict", z.ZodTypeAny, {
90
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
91
- label: string;
92
- id: string;
93
- capture: "at_action" | "historical_lookup" | "fixture";
94
- locator?: string | undefined;
95
- }, {
96
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
97
- label: string;
98
- id: string;
99
- capture: "at_action" | "historical_lookup" | "fixture";
100
- locator?: string | undefined;
101
- }>, "many">>;
85
+ capture: z.ZodEnum<{
86
+ at_action: "at_action";
87
+ historical_lookup: "historical_lookup";
88
+ fixture: "fixture";
89
+ }>;
90
+ }, z.core.$strict>>>;
102
91
  agentId: z.ZodString;
103
92
  sessionId: z.ZodString;
104
93
  kind: z.ZodLiteral<"agent_status">;
105
- }, "strict", z.ZodTypeAny, {
106
- kind: "agent_status";
107
- status: "failed" | "complete" | "blocked" | "idle" | "working";
108
- label: string;
109
- role: string;
110
- agentId: string;
111
- sessionId: string;
112
- evidence: {
113
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
114
- label: string;
115
- id: string;
116
- capture: "at_action" | "historical_lookup" | "fixture";
117
- locator?: string | undefined;
118
- }[];
119
- detail?: string | undefined;
120
- }, {
121
- kind: "agent_status";
122
- status: "failed" | "complete" | "blocked" | "idle" | "working";
123
- label: string;
124
- role: string;
125
- agentId: string;
126
- sessionId: string;
127
- detail?: string | undefined;
128
- evidence?: {
129
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
130
- label: string;
131
- id: string;
132
- capture: "at_action" | "historical_lookup" | "fixture";
133
- locator?: string | undefined;
134
- }[] | undefined;
135
- }>, z.ZodObject<{
94
+ }, z.core.$strict>, z.ZodObject<{
136
95
  outputId: z.ZodString;
137
96
  summary: z.ZodString;
138
97
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
139
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
98
+ kind: z.ZodEnum<{
99
+ source: "source";
100
+ correction: "correction";
101
+ memory: "memory";
102
+ commit: "commit";
103
+ recall_audit: "recall_audit";
104
+ test: "test";
105
+ agent_output: "agent_output";
106
+ approval: "approval";
107
+ }>;
140
108
  id: z.ZodString;
141
109
  label: z.ZodString;
142
110
  locator: z.ZodOptional<z.ZodString>;
143
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
144
- }, "strict", z.ZodTypeAny, {
145
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
146
- label: string;
147
- id: string;
148
- capture: "at_action" | "historical_lookup" | "fixture";
149
- locator?: string | undefined;
150
- }, {
151
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
152
- label: string;
153
- id: string;
154
- capture: "at_action" | "historical_lookup" | "fixture";
155
- locator?: string | undefined;
156
- }>, "many">>;
111
+ capture: z.ZodEnum<{
112
+ at_action: "at_action";
113
+ historical_lookup: "historical_lookup";
114
+ fixture: "fixture";
115
+ }>;
116
+ }, z.core.$strict>>>;
157
117
  agentId: z.ZodString;
158
118
  sessionId: z.ZodString;
159
119
  kind: z.ZodLiteral<"agent_output">;
160
- }, "strict", z.ZodTypeAny, {
161
- kind: "agent_output";
162
- summary: string;
163
- agentId: string;
164
- sessionId: string;
165
- evidence: {
166
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
167
- label: string;
168
- id: string;
169
- capture: "at_action" | "historical_lookup" | "fixture";
170
- locator?: string | undefined;
171
- }[];
172
- outputId: string;
173
- }, {
174
- kind: "agent_output";
175
- summary: string;
176
- agentId: string;
177
- sessionId: string;
178
- outputId: string;
179
- evidence?: {
180
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
181
- label: string;
182
- id: string;
183
- capture: "at_action" | "historical_lookup" | "fixture";
184
- locator?: string | undefined;
185
- }[] | undefined;
186
- }>, z.ZodObject<{
120
+ }, z.core.$strict>, z.ZodObject<{
187
121
  beliefId: z.ZodString;
188
122
  decisionId: z.ZodString;
189
123
  statement: z.ZodString;
190
124
  confidence: z.ZodOptional<z.ZodNumber>;
191
125
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
192
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
126
+ kind: z.ZodEnum<{
127
+ source: "source";
128
+ correction: "correction";
129
+ memory: "memory";
130
+ commit: "commit";
131
+ recall_audit: "recall_audit";
132
+ test: "test";
133
+ agent_output: "agent_output";
134
+ approval: "approval";
135
+ }>;
193
136
  id: z.ZodString;
194
137
  label: z.ZodString;
195
138
  locator: z.ZodOptional<z.ZodString>;
196
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
197
- }, "strict", z.ZodTypeAny, {
198
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
199
- label: string;
200
- id: string;
201
- capture: "at_action" | "historical_lookup" | "fixture";
202
- locator?: string | undefined;
203
- }, {
204
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
205
- label: string;
206
- id: string;
207
- capture: "at_action" | "historical_lookup" | "fixture";
208
- locator?: string | undefined;
209
- }>, "many">>;
139
+ capture: z.ZodEnum<{
140
+ at_action: "at_action";
141
+ historical_lookup: "historical_lookup";
142
+ fixture: "fixture";
143
+ }>;
144
+ }, z.core.$strict>>>;
210
145
  agentId: z.ZodString;
211
146
  sessionId: z.ZodString;
212
147
  kind: z.ZodLiteral<"belief_observed">;
213
- }, "strict", z.ZodTypeAny, {
214
- kind: "belief_observed";
215
- agentId: string;
216
- statement: string;
217
- sessionId: string;
218
- evidence: {
219
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
220
- label: string;
221
- id: string;
222
- capture: "at_action" | "historical_lookup" | "fixture";
223
- locator?: string | undefined;
224
- }[];
225
- beliefId: string;
226
- decisionId: string;
227
- confidence?: number | undefined;
228
- }, {
229
- kind: "belief_observed";
230
- agentId: string;
231
- statement: string;
232
- sessionId: string;
233
- beliefId: string;
234
- decisionId: string;
235
- confidence?: number | undefined;
236
- evidence?: {
237
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
238
- label: string;
239
- id: string;
240
- capture: "at_action" | "historical_lookup" | "fixture";
241
- locator?: string | undefined;
242
- }[] | undefined;
243
- }>, z.ZodObject<{
148
+ }, z.core.$strict>, z.ZodObject<{
244
149
  kind: z.ZodLiteral<"conflict_detected">;
245
150
  conflictId: z.ZodString;
246
- decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
247
- agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
151
+ decisionIds: z.ZodArray<z.ZodString>;
152
+ agentIds: z.ZodArray<z.ZodString>;
248
153
  summary: z.ZodString;
249
154
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
250
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
155
+ kind: z.ZodEnum<{
156
+ source: "source";
157
+ correction: "correction";
158
+ memory: "memory";
159
+ commit: "commit";
160
+ recall_audit: "recall_audit";
161
+ test: "test";
162
+ agent_output: "agent_output";
163
+ approval: "approval";
164
+ }>;
251
165
  id: z.ZodString;
252
166
  label: z.ZodString;
253
167
  locator: z.ZodOptional<z.ZodString>;
254
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
255
- }, "strict", z.ZodTypeAny, {
256
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
257
- label: string;
258
- id: string;
259
- capture: "at_action" | "historical_lookup" | "fixture";
260
- locator?: string | undefined;
261
- }, {
262
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
263
- label: string;
264
- id: string;
265
- capture: "at_action" | "historical_lookup" | "fixture";
266
- locator?: string | undefined;
267
- }>, "many">>;
268
- }, "strict", z.ZodTypeAny, {
269
- kind: "conflict_detected";
270
- summary: string;
271
- evidence: {
272
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
273
- label: string;
274
- id: string;
275
- capture: "at_action" | "historical_lookup" | "fixture";
276
- locator?: string | undefined;
277
- }[];
278
- conflictId: string;
279
- decisionIds: string[];
280
- agentIds: string[];
281
- }, {
282
- kind: "conflict_detected";
283
- summary: string;
284
- conflictId: string;
285
- decisionIds: string[];
286
- agentIds: string[];
287
- evidence?: {
288
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
289
- label: string;
290
- id: string;
291
- capture: "at_action" | "historical_lookup" | "fixture";
292
- locator?: string | undefined;
293
- }[] | undefined;
294
- }>, z.ZodObject<{
168
+ capture: z.ZodEnum<{
169
+ at_action: "at_action";
170
+ historical_lookup: "historical_lookup";
171
+ fixture: "fixture";
172
+ }>;
173
+ }, z.core.$strict>>>;
174
+ }, z.core.$strict>, z.ZodObject<{
295
175
  kind: z.ZodLiteral<"test_result">;
296
176
  testId: z.ZodString;
297
177
  decisionId: z.ZodString;
298
178
  correctionId: z.ZodOptional<z.ZodString>;
299
179
  command: z.ZodString;
300
- status: z.ZodEnum<["passed", "failed", "error"]>;
180
+ status: z.ZodEnum<{
181
+ error: "error";
182
+ failed: "failed";
183
+ passed: "passed";
184
+ }>;
301
185
  summary: z.ZodString;
302
186
  durationMs: z.ZodOptional<z.ZodNumber>;
303
187
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
304
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
188
+ kind: z.ZodEnum<{
189
+ source: "source";
190
+ correction: "correction";
191
+ memory: "memory";
192
+ commit: "commit";
193
+ recall_audit: "recall_audit";
194
+ test: "test";
195
+ agent_output: "agent_output";
196
+ approval: "approval";
197
+ }>;
305
198
  id: z.ZodString;
306
199
  label: z.ZodString;
307
200
  locator: z.ZodOptional<z.ZodString>;
308
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
309
- }, "strict", z.ZodTypeAny, {
310
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
311
- label: string;
312
- id: string;
313
- capture: "at_action" | "historical_lookup" | "fixture";
314
- locator?: string | undefined;
315
- }, {
316
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
317
- label: string;
318
- id: string;
319
- capture: "at_action" | "historical_lookup" | "fixture";
320
- locator?: string | undefined;
321
- }>, "many">>;
322
- }, "strict", z.ZodTypeAny, {
323
- kind: "test_result";
324
- summary: string;
325
- status: "error" | "failed" | "passed";
326
- command: string;
327
- evidence: {
328
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
329
- label: string;
330
- id: string;
331
- capture: "at_action" | "historical_lookup" | "fixture";
332
- locator?: string | undefined;
333
- }[];
334
- decisionId: string;
335
- testId: string;
336
- durationMs?: number | undefined;
337
- correctionId?: string | undefined;
338
- }, {
339
- kind: "test_result";
340
- summary: string;
341
- status: "error" | "failed" | "passed";
342
- command: string;
343
- decisionId: string;
344
- testId: string;
345
- durationMs?: number | undefined;
346
- evidence?: {
347
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
348
- label: string;
349
- id: string;
350
- capture: "at_action" | "historical_lookup" | "fixture";
351
- locator?: string | undefined;
352
- }[] | undefined;
353
- correctionId?: string | undefined;
354
- }>, z.ZodObject<{
201
+ capture: z.ZodEnum<{
202
+ at_action: "at_action";
203
+ historical_lookup: "historical_lookup";
204
+ fixture: "fixture";
205
+ }>;
206
+ }, z.core.$strict>>>;
207
+ }, z.core.$strict>, z.ZodObject<{
355
208
  kind: z.ZodLiteral<"correction_proposed">;
356
209
  correctionId: z.ZodString;
357
210
  conflictId: z.ZodString;
358
211
  proposedDecisionId: z.ZodString;
359
- supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
212
+ supersedesDecisionIds: z.ZodArray<z.ZodString>;
360
213
  statement: z.ZodString;
361
214
  rationale: z.ZodString;
362
215
  proposedBy: z.ZodString;
363
216
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
364
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
217
+ kind: z.ZodEnum<{
218
+ source: "source";
219
+ correction: "correction";
220
+ memory: "memory";
221
+ commit: "commit";
222
+ recall_audit: "recall_audit";
223
+ test: "test";
224
+ agent_output: "agent_output";
225
+ approval: "approval";
226
+ }>;
365
227
  id: z.ZodString;
366
228
  label: z.ZodString;
367
229
  locator: z.ZodOptional<z.ZodString>;
368
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
369
- }, "strict", z.ZodTypeAny, {
370
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
371
- label: string;
372
- id: string;
373
- capture: "at_action" | "historical_lookup" | "fixture";
374
- locator?: string | undefined;
375
- }, {
376
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
377
- label: string;
378
- id: string;
379
- capture: "at_action" | "historical_lookup" | "fixture";
380
- locator?: string | undefined;
381
- }>, "many">>;
382
- }, "strict", z.ZodTypeAny, {
383
- kind: "correction_proposed";
384
- statement: string;
385
- rationale: string;
386
- evidence: {
387
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
388
- label: string;
389
- id: string;
390
- capture: "at_action" | "historical_lookup" | "fixture";
391
- locator?: string | undefined;
392
- }[];
393
- conflictId: string;
394
- correctionId: string;
395
- proposedDecisionId: string;
396
- supersedesDecisionIds: string[];
397
- proposedBy: string;
398
- }, {
399
- kind: "correction_proposed";
400
- statement: string;
401
- rationale: string;
402
- conflictId: string;
403
- correctionId: string;
404
- proposedDecisionId: string;
405
- supersedesDecisionIds: string[];
406
- proposedBy: string;
407
- evidence?: {
408
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
409
- label: string;
410
- id: string;
411
- capture: "at_action" | "historical_lookup" | "fixture";
412
- locator?: string | undefined;
413
- }[] | undefined;
414
- }>, z.ZodObject<{
230
+ capture: z.ZodEnum<{
231
+ at_action: "at_action";
232
+ historical_lookup: "historical_lookup";
233
+ fixture: "fixture";
234
+ }>;
235
+ }, z.core.$strict>>>;
236
+ }, z.core.$strict>, z.ZodObject<{
415
237
  kind: z.ZodLiteral<"correction_approved">;
416
238
  correctionId: z.ZodString;
417
239
  approvedBy: z.ZodObject<{
418
- kind: z.ZodEnum<["human", "agent"]>;
240
+ kind: z.ZodEnum<{
241
+ agent: "agent";
242
+ human: "human";
243
+ }>;
419
244
  id: z.ZodString;
420
245
  label: z.ZodString;
421
- }, "strict", z.ZodTypeAny, {
422
- kind: "agent" | "human";
423
- label: string;
424
- id: string;
425
- }, {
426
- kind: "agent" | "human";
427
- label: string;
428
- id: string;
429
- }>;
246
+ }, z.core.$strict>;
430
247
  note: z.ZodOptional<z.ZodString>;
431
248
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
432
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
249
+ kind: z.ZodEnum<{
250
+ source: "source";
251
+ correction: "correction";
252
+ memory: "memory";
253
+ commit: "commit";
254
+ recall_audit: "recall_audit";
255
+ test: "test";
256
+ agent_output: "agent_output";
257
+ approval: "approval";
258
+ }>;
433
259
  id: z.ZodString;
434
260
  label: z.ZodString;
435
261
  locator: z.ZodOptional<z.ZodString>;
436
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
437
- }, "strict", z.ZodTypeAny, {
438
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
439
- label: string;
440
- id: string;
441
- capture: "at_action" | "historical_lookup" | "fixture";
442
- locator?: string | undefined;
443
- }, {
444
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
445
- label: string;
446
- id: string;
447
- capture: "at_action" | "historical_lookup" | "fixture";
448
- locator?: string | undefined;
449
- }>, "many">>;
450
- }, "strict", z.ZodTypeAny, {
451
- kind: "correction_approved";
452
- evidence: {
453
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
454
- label: string;
455
- id: string;
456
- capture: "at_action" | "historical_lookup" | "fixture";
457
- locator?: string | undefined;
458
- }[];
459
- correctionId: string;
460
- approvedBy: {
461
- kind: "agent" | "human";
462
- label: string;
463
- id: string;
464
- };
465
- note?: string | undefined;
466
- }, {
467
- kind: "correction_approved";
468
- correctionId: string;
469
- approvedBy: {
470
- kind: "agent" | "human";
471
- label: string;
472
- id: string;
473
- };
474
- note?: string | undefined;
475
- evidence?: {
476
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
477
- label: string;
478
- id: string;
479
- capture: "at_action" | "historical_lookup" | "fixture";
480
- locator?: string | undefined;
481
- }[] | undefined;
482
- }>, z.ZodObject<{
262
+ capture: z.ZodEnum<{
263
+ at_action: "at_action";
264
+ historical_lookup: "historical_lookup";
265
+ fixture: "fixture";
266
+ }>;
267
+ }, z.core.$strict>>>;
268
+ }, z.core.$strict>, z.ZodObject<{
483
269
  kind: z.ZodLiteral<"decision_superseded">;
484
270
  decisionId: z.ZodString;
485
271
  replacementDecisionId: z.ZodString;
486
272
  correctionId: z.ZodString;
487
273
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
488
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
274
+ kind: z.ZodEnum<{
275
+ source: "source";
276
+ correction: "correction";
277
+ memory: "memory";
278
+ commit: "commit";
279
+ recall_audit: "recall_audit";
280
+ test: "test";
281
+ agent_output: "agent_output";
282
+ approval: "approval";
283
+ }>;
489
284
  id: z.ZodString;
490
285
  label: z.ZodString;
491
286
  locator: z.ZodOptional<z.ZodString>;
492
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
493
- }, "strict", z.ZodTypeAny, {
494
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
495
- label: string;
496
- id: string;
497
- capture: "at_action" | "historical_lookup" | "fixture";
498
- locator?: string | undefined;
499
- }, {
500
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
501
- label: string;
502
- id: string;
503
- capture: "at_action" | "historical_lookup" | "fixture";
504
- locator?: string | undefined;
505
- }>, "many">>;
506
- }, "strict", z.ZodTypeAny, {
507
- kind: "decision_superseded";
508
- evidence: {
509
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
510
- label: string;
511
- id: string;
512
- capture: "at_action" | "historical_lookup" | "fixture";
513
- locator?: string | undefined;
514
- }[];
515
- decisionId: string;
516
- correctionId: string;
517
- replacementDecisionId: string;
518
- }, {
519
- kind: "decision_superseded";
520
- decisionId: string;
521
- correctionId: string;
522
- replacementDecisionId: string;
523
- evidence?: {
524
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
525
- label: string;
526
- id: string;
527
- capture: "at_action" | "historical_lookup" | "fixture";
528
- locator?: string | undefined;
529
- }[] | undefined;
530
- }>, z.ZodObject<{
287
+ capture: z.ZodEnum<{
288
+ at_action: "at_action";
289
+ historical_lookup: "historical_lookup";
290
+ fixture: "fixture";
291
+ }>;
292
+ }, z.core.$strict>>>;
293
+ }, z.core.$strict>, z.ZodObject<{
531
294
  recallReceiptId: z.ZodString;
532
295
  decisionId: z.ZodString;
533
296
  query: z.ZodString;
534
297
  capturedAtAction: z.ZodBoolean;
535
298
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
536
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
299
+ kind: z.ZodEnum<{
300
+ source: "source";
301
+ correction: "correction";
302
+ memory: "memory";
303
+ commit: "commit";
304
+ recall_audit: "recall_audit";
305
+ test: "test";
306
+ agent_output: "agent_output";
307
+ approval: "approval";
308
+ }>;
537
309
  id: z.ZodString;
538
310
  label: z.ZodString;
539
311
  locator: z.ZodOptional<z.ZodString>;
540
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
541
- }, "strict", z.ZodTypeAny, {
542
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
543
- label: string;
544
- id: string;
545
- capture: "at_action" | "historical_lookup" | "fixture";
546
- locator?: string | undefined;
547
- }, {
548
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
549
- label: string;
550
- id: string;
551
- capture: "at_action" | "historical_lookup" | "fixture";
552
- locator?: string | undefined;
553
- }>, "many">>;
312
+ capture: z.ZodEnum<{
313
+ at_action: "at_action";
314
+ historical_lookup: "historical_lookup";
315
+ fixture: "fixture";
316
+ }>;
317
+ }, z.core.$strict>>>;
554
318
  agentId: z.ZodString;
555
319
  sessionId: z.ZodString;
556
320
  kind: z.ZodLiteral<"recall_observed">;
557
- }, "strict", z.ZodTypeAny, {
558
- kind: "recall_observed";
559
- agentId: string;
560
- query: string;
561
- sessionId: string;
562
- evidence: {
563
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
564
- label: string;
565
- id: string;
566
- capture: "at_action" | "historical_lookup" | "fixture";
567
- locator?: string | undefined;
568
- }[];
569
- decisionId: string;
570
- recallReceiptId: string;
571
- capturedAtAction: boolean;
572
- }, {
573
- kind: "recall_observed";
574
- agentId: string;
575
- query: string;
576
- sessionId: string;
577
- decisionId: string;
578
- recallReceiptId: string;
579
- capturedAtAction: boolean;
580
- evidence?: {
581
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
582
- label: string;
583
- id: string;
584
- capture: "at_action" | "historical_lookup" | "fixture";
585
- locator?: string | undefined;
586
- }[] | undefined;
587
- }>, z.ZodObject<{
321
+ }, z.core.$strict>, z.ZodObject<{
588
322
  correctionId: z.ZodString;
589
323
  decisionId: z.ZodString;
590
324
  recallReceiptId: z.ZodString;
591
325
  staleDecisionAbsent: z.ZodBoolean;
592
326
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
593
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
327
+ kind: z.ZodEnum<{
328
+ source: "source";
329
+ correction: "correction";
330
+ memory: "memory";
331
+ commit: "commit";
332
+ recall_audit: "recall_audit";
333
+ test: "test";
334
+ agent_output: "agent_output";
335
+ approval: "approval";
336
+ }>;
594
337
  id: z.ZodString;
595
338
  label: z.ZodString;
596
339
  locator: z.ZodOptional<z.ZodString>;
597
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
598
- }, "strict", z.ZodTypeAny, {
599
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
600
- label: string;
601
- id: string;
602
- capture: "at_action" | "historical_lookup" | "fixture";
603
- locator?: string | undefined;
604
- }, {
605
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
606
- label: string;
607
- id: string;
608
- capture: "at_action" | "historical_lookup" | "fixture";
609
- locator?: string | undefined;
610
- }>, "many">>;
340
+ capture: z.ZodEnum<{
341
+ at_action: "at_action";
342
+ historical_lookup: "historical_lookup";
343
+ fixture: "fixture";
344
+ }>;
345
+ }, z.core.$strict>>>;
611
346
  agentId: z.ZodString;
612
347
  sessionId: z.ZodString;
613
348
  kind: z.ZodLiteral<"propagation_verified">;
614
- }, "strict", z.ZodTypeAny, {
615
- kind: "propagation_verified";
616
- agentId: string;
617
- sessionId: string;
618
- evidence: {
619
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
620
- label: string;
621
- id: string;
622
- capture: "at_action" | "historical_lookup" | "fixture";
623
- locator?: string | undefined;
624
- }[];
625
- decisionId: string;
626
- correctionId: string;
627
- recallReceiptId: string;
628
- staleDecisionAbsent: boolean;
629
- }, {
630
- kind: "propagation_verified";
631
- agentId: string;
632
- sessionId: string;
633
- decisionId: string;
634
- correctionId: string;
635
- recallReceiptId: string;
636
- staleDecisionAbsent: boolean;
637
- evidence?: {
638
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
639
- label: string;
640
- id: string;
641
- capture: "at_action" | "historical_lookup" | "fixture";
642
- locator?: string | undefined;
643
- }[] | undefined;
644
- }>, z.ZodObject<{
349
+ }, z.core.$strict>, z.ZodObject<{
645
350
  kind: z.ZodLiteral<"mission_completed">;
646
- outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
351
+ outcome: z.ZodEnum<{
352
+ failed: "failed";
353
+ inconclusive: "inconclusive";
354
+ recovered: "recovered";
355
+ }>;
647
356
  summary: z.ZodString;
648
357
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
649
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
358
+ kind: z.ZodEnum<{
359
+ source: "source";
360
+ correction: "correction";
361
+ memory: "memory";
362
+ commit: "commit";
363
+ recall_audit: "recall_audit";
364
+ test: "test";
365
+ agent_output: "agent_output";
366
+ approval: "approval";
367
+ }>;
650
368
  id: z.ZodString;
651
369
  label: z.ZodString;
652
370
  locator: z.ZodOptional<z.ZodString>;
653
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
654
- }, "strict", z.ZodTypeAny, {
655
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
656
- label: string;
657
- id: string;
658
- capture: "at_action" | "historical_lookup" | "fixture";
659
- locator?: string | undefined;
660
- }, {
661
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
662
- label: string;
663
- id: string;
664
- capture: "at_action" | "historical_lookup" | "fixture";
665
- locator?: string | undefined;
666
- }>, "many">>;
667
- }, "strict", z.ZodTypeAny, {
668
- kind: "mission_completed";
669
- summary: string;
670
- outcome: "failed" | "inconclusive" | "recovered";
671
- evidence: {
672
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
673
- label: string;
674
- id: string;
675
- capture: "at_action" | "historical_lookup" | "fixture";
676
- locator?: string | undefined;
677
- }[];
678
- }, {
679
- kind: "mission_completed";
680
- summary: string;
681
- outcome: "failed" | "inconclusive" | "recovered";
682
- evidence?: {
683
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
684
- label: string;
685
- id: string;
686
- capture: "at_action" | "historical_lookup" | "fixture";
687
- locator?: string | undefined;
688
- }[] | undefined;
689
- }>]>, {
690
- kind: "mission_started";
691
- title: string;
692
- evidence: {
693
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
694
- label: string;
695
- id: string;
696
- capture: "at_action" | "historical_lookup" | "fixture";
697
- locator?: string | undefined;
698
- }[];
699
- objective: string;
700
- runMode: "replay" | "fixture" | "live";
701
- } | {
702
- kind: "agent_status";
703
- status: "failed" | "complete" | "blocked" | "idle" | "working";
704
- label: string;
705
- role: string;
706
- agentId: string;
707
- sessionId: string;
708
- evidence: {
709
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
710
- label: string;
711
- id: string;
712
- capture: "at_action" | "historical_lookup" | "fixture";
713
- locator?: string | undefined;
714
- }[];
715
- detail?: string | undefined;
716
- } | {
717
- kind: "agent_output";
718
- summary: string;
719
- agentId: string;
720
- sessionId: string;
721
- evidence: {
722
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
723
- label: string;
724
- id: string;
725
- capture: "at_action" | "historical_lookup" | "fixture";
726
- locator?: string | undefined;
727
- }[];
728
- outputId: string;
729
- } | {
730
- kind: "belief_observed";
731
- agentId: string;
732
- statement: string;
733
- sessionId: string;
734
- evidence: {
735
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
736
- label: string;
737
- id: string;
738
- capture: "at_action" | "historical_lookup" | "fixture";
739
- locator?: string | undefined;
740
- }[];
741
- beliefId: string;
742
- decisionId: string;
743
- confidence?: number | undefined;
744
- } | {
745
- kind: "conflict_detected";
746
- summary: string;
747
- evidence: {
748
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
749
- label: string;
750
- id: string;
751
- capture: "at_action" | "historical_lookup" | "fixture";
752
- locator?: string | undefined;
753
- }[];
754
- conflictId: string;
755
- decisionIds: string[];
756
- agentIds: string[];
757
- } | {
758
- kind: "test_result";
759
- summary: string;
760
- status: "error" | "failed" | "passed";
761
- command: string;
762
- evidence: {
763
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
764
- label: string;
765
- id: string;
766
- capture: "at_action" | "historical_lookup" | "fixture";
767
- locator?: string | undefined;
768
- }[];
769
- decisionId: string;
770
- testId: string;
771
- durationMs?: number | undefined;
772
- correctionId?: string | undefined;
773
- } | {
774
- kind: "correction_proposed";
775
- statement: string;
776
- rationale: string;
777
- evidence: {
778
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
779
- label: string;
780
- id: string;
781
- capture: "at_action" | "historical_lookup" | "fixture";
782
- locator?: string | undefined;
783
- }[];
784
- conflictId: string;
785
- correctionId: string;
786
- proposedDecisionId: string;
787
- supersedesDecisionIds: string[];
788
- proposedBy: string;
789
- } | {
790
- kind: "correction_approved";
791
- evidence: {
792
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
793
- label: string;
794
- id: string;
795
- capture: "at_action" | "historical_lookup" | "fixture";
796
- locator?: string | undefined;
797
- }[];
798
- correctionId: string;
799
- approvedBy: {
800
- kind: "agent" | "human";
801
- label: string;
802
- id: string;
803
- };
804
- note?: string | undefined;
805
- } | {
806
- kind: "decision_superseded";
807
- evidence: {
808
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
809
- label: string;
810
- id: string;
811
- capture: "at_action" | "historical_lookup" | "fixture";
812
- locator?: string | undefined;
813
- }[];
814
- decisionId: string;
815
- correctionId: string;
816
- replacementDecisionId: string;
817
- } | {
818
- kind: "recall_observed";
819
- agentId: string;
820
- query: string;
821
- sessionId: string;
822
- evidence: {
823
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
824
- label: string;
825
- id: string;
826
- capture: "at_action" | "historical_lookup" | "fixture";
827
- locator?: string | undefined;
828
- }[];
829
- decisionId: string;
830
- recallReceiptId: string;
831
- capturedAtAction: boolean;
832
- } | {
833
- kind: "propagation_verified";
834
- agentId: string;
835
- sessionId: string;
836
- evidence: {
837
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
838
- label: string;
839
- id: string;
840
- capture: "at_action" | "historical_lookup" | "fixture";
841
- locator?: string | undefined;
842
- }[];
843
- decisionId: string;
844
- correctionId: string;
845
- recallReceiptId: string;
846
- staleDecisionAbsent: boolean;
847
- } | {
848
- kind: "mission_completed";
849
- summary: string;
850
- outcome: "failed" | "inconclusive" | "recovered";
851
- evidence: {
852
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
853
- label: string;
854
- id: string;
855
- capture: "at_action" | "historical_lookup" | "fixture";
856
- locator?: string | undefined;
857
- }[];
858
- }, {
859
- kind: "mission_started";
860
- title: string;
861
- objective: string;
862
- runMode: "replay" | "fixture" | "live";
863
- evidence?: {
864
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
865
- label: string;
866
- id: string;
867
- capture: "at_action" | "historical_lookup" | "fixture";
868
- locator?: string | undefined;
869
- }[] | undefined;
870
- } | {
871
- kind: "agent_status";
872
- status: "failed" | "complete" | "blocked" | "idle" | "working";
873
- label: string;
874
- role: string;
875
- agentId: string;
876
- sessionId: string;
877
- detail?: string | undefined;
878
- evidence?: {
879
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
880
- label: string;
881
- id: string;
882
- capture: "at_action" | "historical_lookup" | "fixture";
883
- locator?: string | undefined;
884
- }[] | undefined;
885
- } | {
886
- kind: "agent_output";
887
- summary: string;
888
- agentId: string;
889
- sessionId: string;
890
- outputId: string;
891
- evidence?: {
892
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
893
- label: string;
894
- id: string;
895
- capture: "at_action" | "historical_lookup" | "fixture";
896
- locator?: string | undefined;
897
- }[] | undefined;
898
- } | {
899
- kind: "belief_observed";
900
- agentId: string;
901
- statement: string;
902
- sessionId: string;
903
- beliefId: string;
904
- decisionId: string;
905
- confidence?: number | undefined;
906
- evidence?: {
907
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
908
- label: string;
909
- id: string;
910
- capture: "at_action" | "historical_lookup" | "fixture";
911
- locator?: string | undefined;
912
- }[] | undefined;
913
- } | {
914
- kind: "conflict_detected";
915
- summary: string;
916
- conflictId: string;
917
- decisionIds: string[];
918
- agentIds: string[];
919
- evidence?: {
920
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
921
- label: string;
922
- id: string;
923
- capture: "at_action" | "historical_lookup" | "fixture";
924
- locator?: string | undefined;
925
- }[] | undefined;
926
- } | {
927
- kind: "test_result";
928
- summary: string;
929
- status: "error" | "failed" | "passed";
930
- command: string;
931
- decisionId: string;
932
- testId: string;
933
- durationMs?: number | undefined;
934
- evidence?: {
935
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
936
- label: string;
937
- id: string;
938
- capture: "at_action" | "historical_lookup" | "fixture";
939
- locator?: string | undefined;
940
- }[] | undefined;
941
- correctionId?: string | undefined;
942
- } | {
943
- kind: "correction_proposed";
944
- statement: string;
945
- rationale: string;
946
- conflictId: string;
947
- correctionId: string;
948
- proposedDecisionId: string;
949
- supersedesDecisionIds: string[];
950
- proposedBy: string;
951
- evidence?: {
952
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
953
- label: string;
954
- id: string;
955
- capture: "at_action" | "historical_lookup" | "fixture";
956
- locator?: string | undefined;
957
- }[] | undefined;
958
- } | {
959
- kind: "correction_approved";
960
- correctionId: string;
961
- approvedBy: {
962
- kind: "agent" | "human";
963
- label: string;
964
- id: string;
965
- };
966
- note?: string | undefined;
967
- evidence?: {
968
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
969
- label: string;
970
- id: string;
971
- capture: "at_action" | "historical_lookup" | "fixture";
972
- locator?: string | undefined;
973
- }[] | undefined;
974
- } | {
975
- kind: "decision_superseded";
976
- decisionId: string;
977
- correctionId: string;
978
- replacementDecisionId: string;
979
- evidence?: {
980
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
981
- label: string;
982
- id: string;
983
- capture: "at_action" | "historical_lookup" | "fixture";
984
- locator?: string | undefined;
985
- }[] | undefined;
986
- } | {
987
- kind: "recall_observed";
988
- agentId: string;
989
- query: string;
990
- sessionId: string;
991
- decisionId: string;
992
- recallReceiptId: string;
993
- capturedAtAction: boolean;
994
- evidence?: {
995
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
996
- label: string;
997
- id: string;
998
- capture: "at_action" | "historical_lookup" | "fixture";
999
- locator?: string | undefined;
1000
- }[] | undefined;
1001
- } | {
1002
- kind: "propagation_verified";
1003
- agentId: string;
1004
- sessionId: string;
1005
- decisionId: string;
1006
- correctionId: string;
1007
- recallReceiptId: string;
1008
- staleDecisionAbsent: boolean;
1009
- evidence?: {
1010
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1011
- label: string;
1012
- id: string;
1013
- capture: "at_action" | "historical_lookup" | "fixture";
1014
- locator?: string | undefined;
1015
- }[] | undefined;
1016
- } | {
1017
- kind: "mission_completed";
1018
- summary: string;
1019
- outcome: "failed" | "inconclusive" | "recovered";
1020
- evidence?: {
1021
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1022
- label: string;
1023
- id: string;
1024
- capture: "at_action" | "historical_lookup" | "fixture";
1025
- locator?: string | undefined;
1026
- }[] | undefined;
1027
- }>;
371
+ capture: z.ZodEnum<{
372
+ at_action: "at_action";
373
+ historical_lookup: "historical_lookup";
374
+ fixture: "fixture";
375
+ }>;
376
+ }, z.core.$strict>>>;
377
+ }, z.core.$strict>], "kind">;
1028
378
  export type RelayMissionPayload = z.infer<typeof RelayMissionPayloadSchema>;
1029
379
  export declare const RelayMissionEventInputSchema: z.ZodObject<{
1030
- occurredAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
380
+ occurredAt: z.ZodOptional<z.ZodString>;
1031
381
  idempotencyKey: z.ZodOptional<z.ZodString>;
1032
- payload: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
382
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1033
383
  kind: z.ZodLiteral<"mission_started">;
1034
384
  title: z.ZodString;
1035
385
  objective: z.ZodString;
1036
- runMode: z.ZodEnum<["live", "replay", "fixture"]>;
386
+ runMode: z.ZodEnum<{
387
+ replay: "replay";
388
+ fixture: "fixture";
389
+ live: "live";
390
+ }>;
1037
391
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1038
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
392
+ kind: z.ZodEnum<{
393
+ source: "source";
394
+ correction: "correction";
395
+ memory: "memory";
396
+ commit: "commit";
397
+ recall_audit: "recall_audit";
398
+ test: "test";
399
+ agent_output: "agent_output";
400
+ approval: "approval";
401
+ }>;
1039
402
  id: z.ZodString;
1040
403
  label: z.ZodString;
1041
404
  locator: z.ZodOptional<z.ZodString>;
1042
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1043
- }, "strict", z.ZodTypeAny, {
1044
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1045
- label: string;
1046
- id: string;
1047
- capture: "at_action" | "historical_lookup" | "fixture";
1048
- locator?: string | undefined;
1049
- }, {
1050
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1051
- label: string;
1052
- id: string;
1053
- capture: "at_action" | "historical_lookup" | "fixture";
1054
- locator?: string | undefined;
1055
- }>, "many">>;
1056
- }, "strict", z.ZodTypeAny, {
1057
- kind: "mission_started";
1058
- title: string;
1059
- evidence: {
1060
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1061
- label: string;
1062
- id: string;
1063
- capture: "at_action" | "historical_lookup" | "fixture";
1064
- locator?: string | undefined;
1065
- }[];
1066
- objective: string;
1067
- runMode: "replay" | "fixture" | "live";
1068
- }, {
1069
- kind: "mission_started";
1070
- title: string;
1071
- objective: string;
1072
- runMode: "replay" | "fixture" | "live";
1073
- evidence?: {
1074
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1075
- label: string;
1076
- id: string;
1077
- capture: "at_action" | "historical_lookup" | "fixture";
1078
- locator?: string | undefined;
1079
- }[] | undefined;
1080
- }>, z.ZodObject<{
405
+ capture: z.ZodEnum<{
406
+ at_action: "at_action";
407
+ historical_lookup: "historical_lookup";
408
+ fixture: "fixture";
409
+ }>;
410
+ }, z.core.$strict>>>;
411
+ }, z.core.$strict>, z.ZodObject<{
1081
412
  label: z.ZodString;
1082
413
  role: z.ZodString;
1083
- status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
414
+ status: z.ZodEnum<{
415
+ failed: "failed";
416
+ complete: "complete";
417
+ blocked: "blocked";
418
+ idle: "idle";
419
+ working: "working";
420
+ }>;
1084
421
  detail: z.ZodOptional<z.ZodString>;
1085
422
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1086
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
423
+ kind: z.ZodEnum<{
424
+ source: "source";
425
+ correction: "correction";
426
+ memory: "memory";
427
+ commit: "commit";
428
+ recall_audit: "recall_audit";
429
+ test: "test";
430
+ agent_output: "agent_output";
431
+ approval: "approval";
432
+ }>;
1087
433
  id: z.ZodString;
1088
434
  label: z.ZodString;
1089
435
  locator: z.ZodOptional<z.ZodString>;
1090
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1091
- }, "strict", z.ZodTypeAny, {
1092
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1093
- label: string;
1094
- id: string;
1095
- capture: "at_action" | "historical_lookup" | "fixture";
1096
- locator?: string | undefined;
1097
- }, {
1098
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1099
- label: string;
1100
- id: string;
1101
- capture: "at_action" | "historical_lookup" | "fixture";
1102
- locator?: string | undefined;
1103
- }>, "many">>;
436
+ capture: z.ZodEnum<{
437
+ at_action: "at_action";
438
+ historical_lookup: "historical_lookup";
439
+ fixture: "fixture";
440
+ }>;
441
+ }, z.core.$strict>>>;
1104
442
  agentId: z.ZodString;
1105
443
  sessionId: z.ZodString;
1106
444
  kind: z.ZodLiteral<"agent_status">;
1107
- }, "strict", z.ZodTypeAny, {
1108
- kind: "agent_status";
1109
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1110
- label: string;
1111
- role: string;
1112
- agentId: string;
1113
- sessionId: string;
1114
- evidence: {
1115
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1116
- label: string;
1117
- id: string;
1118
- capture: "at_action" | "historical_lookup" | "fixture";
1119
- locator?: string | undefined;
1120
- }[];
1121
- detail?: string | undefined;
1122
- }, {
1123
- kind: "agent_status";
1124
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1125
- label: string;
1126
- role: string;
1127
- agentId: string;
1128
- sessionId: string;
1129
- detail?: string | undefined;
1130
- evidence?: {
1131
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1132
- label: string;
1133
- id: string;
1134
- capture: "at_action" | "historical_lookup" | "fixture";
1135
- locator?: string | undefined;
1136
- }[] | undefined;
1137
- }>, z.ZodObject<{
445
+ }, z.core.$strict>, z.ZodObject<{
1138
446
  outputId: z.ZodString;
1139
447
  summary: z.ZodString;
1140
448
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1141
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
449
+ kind: z.ZodEnum<{
450
+ source: "source";
451
+ correction: "correction";
452
+ memory: "memory";
453
+ commit: "commit";
454
+ recall_audit: "recall_audit";
455
+ test: "test";
456
+ agent_output: "agent_output";
457
+ approval: "approval";
458
+ }>;
1142
459
  id: z.ZodString;
1143
460
  label: z.ZodString;
1144
461
  locator: z.ZodOptional<z.ZodString>;
1145
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1146
- }, "strict", z.ZodTypeAny, {
1147
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1148
- label: string;
1149
- id: string;
1150
- capture: "at_action" | "historical_lookup" | "fixture";
1151
- locator?: string | undefined;
1152
- }, {
1153
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1154
- label: string;
1155
- id: string;
1156
- capture: "at_action" | "historical_lookup" | "fixture";
1157
- locator?: string | undefined;
1158
- }>, "many">>;
462
+ capture: z.ZodEnum<{
463
+ at_action: "at_action";
464
+ historical_lookup: "historical_lookup";
465
+ fixture: "fixture";
466
+ }>;
467
+ }, z.core.$strict>>>;
1159
468
  agentId: z.ZodString;
1160
469
  sessionId: z.ZodString;
1161
470
  kind: z.ZodLiteral<"agent_output">;
1162
- }, "strict", z.ZodTypeAny, {
1163
- kind: "agent_output";
1164
- summary: string;
1165
- agentId: string;
1166
- sessionId: string;
1167
- evidence: {
1168
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1169
- label: string;
1170
- id: string;
1171
- capture: "at_action" | "historical_lookup" | "fixture";
1172
- locator?: string | undefined;
1173
- }[];
1174
- outputId: string;
1175
- }, {
1176
- kind: "agent_output";
1177
- summary: string;
1178
- agentId: string;
1179
- sessionId: string;
1180
- outputId: string;
1181
- evidence?: {
1182
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1183
- label: string;
1184
- id: string;
1185
- capture: "at_action" | "historical_lookup" | "fixture";
1186
- locator?: string | undefined;
1187
- }[] | undefined;
1188
- }>, z.ZodObject<{
471
+ }, z.core.$strict>, z.ZodObject<{
1189
472
  beliefId: z.ZodString;
1190
473
  decisionId: z.ZodString;
1191
474
  statement: z.ZodString;
1192
475
  confidence: z.ZodOptional<z.ZodNumber>;
1193
476
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1194
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
477
+ kind: z.ZodEnum<{
478
+ source: "source";
479
+ correction: "correction";
480
+ memory: "memory";
481
+ commit: "commit";
482
+ recall_audit: "recall_audit";
483
+ test: "test";
484
+ agent_output: "agent_output";
485
+ approval: "approval";
486
+ }>;
1195
487
  id: z.ZodString;
1196
488
  label: z.ZodString;
1197
489
  locator: z.ZodOptional<z.ZodString>;
1198
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1199
- }, "strict", z.ZodTypeAny, {
1200
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1201
- label: string;
1202
- id: string;
1203
- capture: "at_action" | "historical_lookup" | "fixture";
1204
- locator?: string | undefined;
1205
- }, {
1206
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1207
- label: string;
1208
- id: string;
1209
- capture: "at_action" | "historical_lookup" | "fixture";
1210
- locator?: string | undefined;
1211
- }>, "many">>;
490
+ capture: z.ZodEnum<{
491
+ at_action: "at_action";
492
+ historical_lookup: "historical_lookup";
493
+ fixture: "fixture";
494
+ }>;
495
+ }, z.core.$strict>>>;
1212
496
  agentId: z.ZodString;
1213
497
  sessionId: z.ZodString;
1214
498
  kind: z.ZodLiteral<"belief_observed">;
1215
- }, "strict", z.ZodTypeAny, {
1216
- kind: "belief_observed";
1217
- agentId: string;
1218
- statement: string;
1219
- sessionId: string;
1220
- evidence: {
1221
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1222
- label: string;
1223
- id: string;
1224
- capture: "at_action" | "historical_lookup" | "fixture";
1225
- locator?: string | undefined;
1226
- }[];
1227
- beliefId: string;
1228
- decisionId: string;
1229
- confidence?: number | undefined;
1230
- }, {
1231
- kind: "belief_observed";
1232
- agentId: string;
1233
- statement: string;
1234
- sessionId: string;
1235
- beliefId: string;
1236
- decisionId: string;
1237
- confidence?: number | undefined;
1238
- evidence?: {
1239
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1240
- label: string;
1241
- id: string;
1242
- capture: "at_action" | "historical_lookup" | "fixture";
1243
- locator?: string | undefined;
1244
- }[] | undefined;
1245
- }>, z.ZodObject<{
499
+ }, z.core.$strict>, z.ZodObject<{
1246
500
  kind: z.ZodLiteral<"conflict_detected">;
1247
501
  conflictId: z.ZodString;
1248
- decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1249
- agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
502
+ decisionIds: z.ZodArray<z.ZodString>;
503
+ agentIds: z.ZodArray<z.ZodString>;
1250
504
  summary: z.ZodString;
1251
505
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1252
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
506
+ kind: z.ZodEnum<{
507
+ source: "source";
508
+ correction: "correction";
509
+ memory: "memory";
510
+ commit: "commit";
511
+ recall_audit: "recall_audit";
512
+ test: "test";
513
+ agent_output: "agent_output";
514
+ approval: "approval";
515
+ }>;
1253
516
  id: z.ZodString;
1254
517
  label: z.ZodString;
1255
518
  locator: z.ZodOptional<z.ZodString>;
1256
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1257
- }, "strict", z.ZodTypeAny, {
1258
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1259
- label: string;
1260
- id: string;
1261
- capture: "at_action" | "historical_lookup" | "fixture";
1262
- locator?: string | undefined;
1263
- }, {
1264
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1265
- label: string;
1266
- id: string;
1267
- capture: "at_action" | "historical_lookup" | "fixture";
1268
- locator?: string | undefined;
1269
- }>, "many">>;
1270
- }, "strict", z.ZodTypeAny, {
1271
- kind: "conflict_detected";
1272
- summary: string;
1273
- evidence: {
1274
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1275
- label: string;
1276
- id: string;
1277
- capture: "at_action" | "historical_lookup" | "fixture";
1278
- locator?: string | undefined;
1279
- }[];
1280
- conflictId: string;
1281
- decisionIds: string[];
1282
- agentIds: string[];
1283
- }, {
1284
- kind: "conflict_detected";
1285
- summary: string;
1286
- conflictId: string;
1287
- decisionIds: string[];
1288
- agentIds: string[];
1289
- evidence?: {
1290
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1291
- label: string;
1292
- id: string;
1293
- capture: "at_action" | "historical_lookup" | "fixture";
1294
- locator?: string | undefined;
1295
- }[] | undefined;
1296
- }>, z.ZodObject<{
519
+ capture: z.ZodEnum<{
520
+ at_action: "at_action";
521
+ historical_lookup: "historical_lookup";
522
+ fixture: "fixture";
523
+ }>;
524
+ }, z.core.$strict>>>;
525
+ }, z.core.$strict>, z.ZodObject<{
1297
526
  kind: z.ZodLiteral<"test_result">;
1298
527
  testId: z.ZodString;
1299
528
  decisionId: z.ZodString;
1300
529
  correctionId: z.ZodOptional<z.ZodString>;
1301
530
  command: z.ZodString;
1302
- status: z.ZodEnum<["passed", "failed", "error"]>;
531
+ status: z.ZodEnum<{
532
+ error: "error";
533
+ failed: "failed";
534
+ passed: "passed";
535
+ }>;
1303
536
  summary: z.ZodString;
1304
537
  durationMs: z.ZodOptional<z.ZodNumber>;
1305
538
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1306
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
539
+ kind: z.ZodEnum<{
540
+ source: "source";
541
+ correction: "correction";
542
+ memory: "memory";
543
+ commit: "commit";
544
+ recall_audit: "recall_audit";
545
+ test: "test";
546
+ agent_output: "agent_output";
547
+ approval: "approval";
548
+ }>;
1307
549
  id: z.ZodString;
1308
550
  label: z.ZodString;
1309
551
  locator: z.ZodOptional<z.ZodString>;
1310
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1311
- }, "strict", z.ZodTypeAny, {
1312
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1313
- label: string;
1314
- id: string;
1315
- capture: "at_action" | "historical_lookup" | "fixture";
1316
- locator?: string | undefined;
1317
- }, {
1318
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1319
- label: string;
1320
- id: string;
1321
- capture: "at_action" | "historical_lookup" | "fixture";
1322
- locator?: string | undefined;
1323
- }>, "many">>;
1324
- }, "strict", z.ZodTypeAny, {
1325
- kind: "test_result";
1326
- summary: string;
1327
- status: "error" | "failed" | "passed";
1328
- command: string;
1329
- evidence: {
1330
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1331
- label: string;
1332
- id: string;
1333
- capture: "at_action" | "historical_lookup" | "fixture";
1334
- locator?: string | undefined;
1335
- }[];
1336
- decisionId: string;
1337
- testId: string;
1338
- durationMs?: number | undefined;
1339
- correctionId?: string | undefined;
1340
- }, {
1341
- kind: "test_result";
1342
- summary: string;
1343
- status: "error" | "failed" | "passed";
1344
- command: string;
1345
- decisionId: string;
1346
- testId: string;
1347
- durationMs?: number | undefined;
1348
- evidence?: {
1349
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
- label: string;
1351
- id: string;
1352
- capture: "at_action" | "historical_lookup" | "fixture";
1353
- locator?: string | undefined;
1354
- }[] | undefined;
1355
- correctionId?: string | undefined;
1356
- }>, z.ZodObject<{
552
+ capture: z.ZodEnum<{
553
+ at_action: "at_action";
554
+ historical_lookup: "historical_lookup";
555
+ fixture: "fixture";
556
+ }>;
557
+ }, z.core.$strict>>>;
558
+ }, z.core.$strict>, z.ZodObject<{
1357
559
  kind: z.ZodLiteral<"correction_proposed">;
1358
560
  correctionId: z.ZodString;
1359
561
  conflictId: z.ZodString;
1360
562
  proposedDecisionId: z.ZodString;
1361
- supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
563
+ supersedesDecisionIds: z.ZodArray<z.ZodString>;
1362
564
  statement: z.ZodString;
1363
565
  rationale: z.ZodString;
1364
566
  proposedBy: z.ZodString;
1365
567
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1366
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
568
+ kind: z.ZodEnum<{
569
+ source: "source";
570
+ correction: "correction";
571
+ memory: "memory";
572
+ commit: "commit";
573
+ recall_audit: "recall_audit";
574
+ test: "test";
575
+ agent_output: "agent_output";
576
+ approval: "approval";
577
+ }>;
1367
578
  id: z.ZodString;
1368
579
  label: z.ZodString;
1369
580
  locator: z.ZodOptional<z.ZodString>;
1370
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1371
- }, "strict", z.ZodTypeAny, {
1372
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1373
- label: string;
1374
- id: string;
1375
- capture: "at_action" | "historical_lookup" | "fixture";
1376
- locator?: string | undefined;
1377
- }, {
1378
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1379
- label: string;
1380
- id: string;
1381
- capture: "at_action" | "historical_lookup" | "fixture";
1382
- locator?: string | undefined;
1383
- }>, "many">>;
1384
- }, "strict", z.ZodTypeAny, {
1385
- kind: "correction_proposed";
1386
- statement: string;
1387
- rationale: string;
1388
- evidence: {
1389
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1390
- label: string;
1391
- id: string;
1392
- capture: "at_action" | "historical_lookup" | "fixture";
1393
- locator?: string | undefined;
1394
- }[];
1395
- conflictId: string;
1396
- correctionId: string;
1397
- proposedDecisionId: string;
1398
- supersedesDecisionIds: string[];
1399
- proposedBy: string;
1400
- }, {
1401
- kind: "correction_proposed";
1402
- statement: string;
1403
- rationale: string;
1404
- conflictId: string;
1405
- correctionId: string;
1406
- proposedDecisionId: string;
1407
- supersedesDecisionIds: string[];
1408
- proposedBy: string;
1409
- evidence?: {
1410
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1411
- label: string;
1412
- id: string;
1413
- capture: "at_action" | "historical_lookup" | "fixture";
1414
- locator?: string | undefined;
1415
- }[] | undefined;
1416
- }>, z.ZodObject<{
581
+ capture: z.ZodEnum<{
582
+ at_action: "at_action";
583
+ historical_lookup: "historical_lookup";
584
+ fixture: "fixture";
585
+ }>;
586
+ }, z.core.$strict>>>;
587
+ }, z.core.$strict>, z.ZodObject<{
1417
588
  kind: z.ZodLiteral<"correction_approved">;
1418
589
  correctionId: z.ZodString;
1419
590
  approvedBy: z.ZodObject<{
1420
- kind: z.ZodEnum<["human", "agent"]>;
591
+ kind: z.ZodEnum<{
592
+ agent: "agent";
593
+ human: "human";
594
+ }>;
1421
595
  id: z.ZodString;
1422
596
  label: z.ZodString;
1423
- }, "strict", z.ZodTypeAny, {
1424
- kind: "agent" | "human";
1425
- label: string;
1426
- id: string;
1427
- }, {
1428
- kind: "agent" | "human";
1429
- label: string;
1430
- id: string;
1431
- }>;
597
+ }, z.core.$strict>;
1432
598
  note: z.ZodOptional<z.ZodString>;
1433
599
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1434
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
600
+ kind: z.ZodEnum<{
601
+ source: "source";
602
+ correction: "correction";
603
+ memory: "memory";
604
+ commit: "commit";
605
+ recall_audit: "recall_audit";
606
+ test: "test";
607
+ agent_output: "agent_output";
608
+ approval: "approval";
609
+ }>;
1435
610
  id: z.ZodString;
1436
611
  label: z.ZodString;
1437
612
  locator: z.ZodOptional<z.ZodString>;
1438
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1439
- }, "strict", z.ZodTypeAny, {
1440
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1441
- label: string;
1442
- id: string;
1443
- capture: "at_action" | "historical_lookup" | "fixture";
1444
- locator?: string | undefined;
1445
- }, {
1446
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1447
- label: string;
1448
- id: string;
1449
- capture: "at_action" | "historical_lookup" | "fixture";
1450
- locator?: string | undefined;
1451
- }>, "many">>;
1452
- }, "strict", z.ZodTypeAny, {
1453
- kind: "correction_approved";
1454
- evidence: {
1455
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
- label: string;
1457
- id: string;
1458
- capture: "at_action" | "historical_lookup" | "fixture";
1459
- locator?: string | undefined;
1460
- }[];
1461
- correctionId: string;
1462
- approvedBy: {
1463
- kind: "agent" | "human";
1464
- label: string;
1465
- id: string;
1466
- };
1467
- note?: string | undefined;
1468
- }, {
1469
- kind: "correction_approved";
1470
- correctionId: string;
1471
- approvedBy: {
1472
- kind: "agent" | "human";
1473
- label: string;
1474
- id: string;
1475
- };
1476
- note?: string | undefined;
1477
- evidence?: {
1478
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1479
- label: string;
1480
- id: string;
1481
- capture: "at_action" | "historical_lookup" | "fixture";
1482
- locator?: string | undefined;
1483
- }[] | undefined;
1484
- }>, z.ZodObject<{
613
+ capture: z.ZodEnum<{
614
+ at_action: "at_action";
615
+ historical_lookup: "historical_lookup";
616
+ fixture: "fixture";
617
+ }>;
618
+ }, z.core.$strict>>>;
619
+ }, z.core.$strict>, z.ZodObject<{
1485
620
  kind: z.ZodLiteral<"decision_superseded">;
1486
621
  decisionId: z.ZodString;
1487
622
  replacementDecisionId: z.ZodString;
1488
623
  correctionId: z.ZodString;
1489
624
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1490
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
625
+ kind: z.ZodEnum<{
626
+ source: "source";
627
+ correction: "correction";
628
+ memory: "memory";
629
+ commit: "commit";
630
+ recall_audit: "recall_audit";
631
+ test: "test";
632
+ agent_output: "agent_output";
633
+ approval: "approval";
634
+ }>;
1491
635
  id: z.ZodString;
1492
636
  label: z.ZodString;
1493
637
  locator: z.ZodOptional<z.ZodString>;
1494
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1495
- }, "strict", z.ZodTypeAny, {
1496
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1497
- label: string;
1498
- id: string;
1499
- capture: "at_action" | "historical_lookup" | "fixture";
1500
- locator?: string | undefined;
1501
- }, {
1502
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1503
- label: string;
1504
- id: string;
1505
- capture: "at_action" | "historical_lookup" | "fixture";
1506
- locator?: string | undefined;
1507
- }>, "many">>;
1508
- }, "strict", z.ZodTypeAny, {
1509
- kind: "decision_superseded";
1510
- evidence: {
1511
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
- label: string;
1513
- id: string;
1514
- capture: "at_action" | "historical_lookup" | "fixture";
1515
- locator?: string | undefined;
1516
- }[];
1517
- decisionId: string;
1518
- correctionId: string;
1519
- replacementDecisionId: string;
1520
- }, {
1521
- kind: "decision_superseded";
1522
- decisionId: string;
1523
- correctionId: string;
1524
- replacementDecisionId: string;
1525
- evidence?: {
1526
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1527
- label: string;
1528
- id: string;
1529
- capture: "at_action" | "historical_lookup" | "fixture";
1530
- locator?: string | undefined;
1531
- }[] | undefined;
1532
- }>, z.ZodObject<{
638
+ capture: z.ZodEnum<{
639
+ at_action: "at_action";
640
+ historical_lookup: "historical_lookup";
641
+ fixture: "fixture";
642
+ }>;
643
+ }, z.core.$strict>>>;
644
+ }, z.core.$strict>, z.ZodObject<{
1533
645
  recallReceiptId: z.ZodString;
1534
646
  decisionId: z.ZodString;
1535
647
  query: z.ZodString;
1536
648
  capturedAtAction: z.ZodBoolean;
1537
649
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1538
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
650
+ kind: z.ZodEnum<{
651
+ source: "source";
652
+ correction: "correction";
653
+ memory: "memory";
654
+ commit: "commit";
655
+ recall_audit: "recall_audit";
656
+ test: "test";
657
+ agent_output: "agent_output";
658
+ approval: "approval";
659
+ }>;
1539
660
  id: z.ZodString;
1540
661
  label: z.ZodString;
1541
662
  locator: z.ZodOptional<z.ZodString>;
1542
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1543
- }, "strict", z.ZodTypeAny, {
1544
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1545
- label: string;
1546
- id: string;
1547
- capture: "at_action" | "historical_lookup" | "fixture";
1548
- locator?: string | undefined;
1549
- }, {
1550
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1551
- label: string;
1552
- id: string;
1553
- capture: "at_action" | "historical_lookup" | "fixture";
1554
- locator?: string | undefined;
1555
- }>, "many">>;
663
+ capture: z.ZodEnum<{
664
+ at_action: "at_action";
665
+ historical_lookup: "historical_lookup";
666
+ fixture: "fixture";
667
+ }>;
668
+ }, z.core.$strict>>>;
1556
669
  agentId: z.ZodString;
1557
670
  sessionId: z.ZodString;
1558
671
  kind: z.ZodLiteral<"recall_observed">;
1559
- }, "strict", z.ZodTypeAny, {
1560
- kind: "recall_observed";
1561
- agentId: string;
1562
- query: string;
1563
- sessionId: string;
1564
- evidence: {
1565
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1566
- label: string;
1567
- id: string;
1568
- capture: "at_action" | "historical_lookup" | "fixture";
1569
- locator?: string | undefined;
1570
- }[];
1571
- decisionId: string;
1572
- recallReceiptId: string;
1573
- capturedAtAction: boolean;
1574
- }, {
1575
- kind: "recall_observed";
1576
- agentId: string;
1577
- query: string;
1578
- sessionId: string;
1579
- decisionId: string;
1580
- recallReceiptId: string;
1581
- capturedAtAction: boolean;
1582
- evidence?: {
1583
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1584
- label: string;
1585
- id: string;
1586
- capture: "at_action" | "historical_lookup" | "fixture";
1587
- locator?: string | undefined;
1588
- }[] | undefined;
1589
- }>, z.ZodObject<{
672
+ }, z.core.$strict>, z.ZodObject<{
1590
673
  correctionId: z.ZodString;
1591
674
  decisionId: z.ZodString;
1592
675
  recallReceiptId: z.ZodString;
1593
676
  staleDecisionAbsent: z.ZodBoolean;
1594
677
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1595
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
678
+ kind: z.ZodEnum<{
679
+ source: "source";
680
+ correction: "correction";
681
+ memory: "memory";
682
+ commit: "commit";
683
+ recall_audit: "recall_audit";
684
+ test: "test";
685
+ agent_output: "agent_output";
686
+ approval: "approval";
687
+ }>;
1596
688
  id: z.ZodString;
1597
689
  label: z.ZodString;
1598
690
  locator: z.ZodOptional<z.ZodString>;
1599
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1600
- }, "strict", z.ZodTypeAny, {
1601
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1602
- label: string;
1603
- id: string;
1604
- capture: "at_action" | "historical_lookup" | "fixture";
1605
- locator?: string | undefined;
1606
- }, {
1607
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1608
- label: string;
1609
- id: string;
1610
- capture: "at_action" | "historical_lookup" | "fixture";
1611
- locator?: string | undefined;
1612
- }>, "many">>;
691
+ capture: z.ZodEnum<{
692
+ at_action: "at_action";
693
+ historical_lookup: "historical_lookup";
694
+ fixture: "fixture";
695
+ }>;
696
+ }, z.core.$strict>>>;
1613
697
  agentId: z.ZodString;
1614
698
  sessionId: z.ZodString;
1615
699
  kind: z.ZodLiteral<"propagation_verified">;
1616
- }, "strict", z.ZodTypeAny, {
1617
- kind: "propagation_verified";
1618
- agentId: string;
1619
- sessionId: string;
1620
- evidence: {
1621
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1622
- label: string;
1623
- id: string;
1624
- capture: "at_action" | "historical_lookup" | "fixture";
1625
- locator?: string | undefined;
1626
- }[];
1627
- decisionId: string;
1628
- correctionId: string;
1629
- recallReceiptId: string;
1630
- staleDecisionAbsent: boolean;
1631
- }, {
1632
- kind: "propagation_verified";
1633
- agentId: string;
1634
- sessionId: string;
1635
- decisionId: string;
1636
- correctionId: string;
1637
- recallReceiptId: string;
1638
- staleDecisionAbsent: boolean;
1639
- evidence?: {
1640
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1641
- label: string;
1642
- id: string;
1643
- capture: "at_action" | "historical_lookup" | "fixture";
1644
- locator?: string | undefined;
1645
- }[] | undefined;
1646
- }>, z.ZodObject<{
700
+ }, z.core.$strict>, z.ZodObject<{
1647
701
  kind: z.ZodLiteral<"mission_completed">;
1648
- outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
702
+ outcome: z.ZodEnum<{
703
+ failed: "failed";
704
+ inconclusive: "inconclusive";
705
+ recovered: "recovered";
706
+ }>;
1649
707
  summary: z.ZodString;
1650
708
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1651
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
709
+ kind: z.ZodEnum<{
710
+ source: "source";
711
+ correction: "correction";
712
+ memory: "memory";
713
+ commit: "commit";
714
+ recall_audit: "recall_audit";
715
+ test: "test";
716
+ agent_output: "agent_output";
717
+ approval: "approval";
718
+ }>;
1652
719
  id: z.ZodString;
1653
720
  label: z.ZodString;
1654
721
  locator: z.ZodOptional<z.ZodString>;
1655
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1656
- }, "strict", z.ZodTypeAny, {
1657
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1658
- label: string;
1659
- id: string;
1660
- capture: "at_action" | "historical_lookup" | "fixture";
1661
- locator?: string | undefined;
1662
- }, {
1663
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
- label: string;
1665
- id: string;
1666
- capture: "at_action" | "historical_lookup" | "fixture";
1667
- locator?: string | undefined;
1668
- }>, "many">>;
1669
- }, "strict", z.ZodTypeAny, {
1670
- kind: "mission_completed";
1671
- summary: string;
1672
- outcome: "failed" | "inconclusive" | "recovered";
1673
- evidence: {
1674
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1675
- label: string;
1676
- id: string;
1677
- capture: "at_action" | "historical_lookup" | "fixture";
1678
- locator?: string | undefined;
1679
- }[];
1680
- }, {
1681
- kind: "mission_completed";
1682
- summary: string;
1683
- outcome: "failed" | "inconclusive" | "recovered";
1684
- evidence?: {
1685
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1686
- label: string;
1687
- id: string;
1688
- capture: "at_action" | "historical_lookup" | "fixture";
1689
- locator?: string | undefined;
1690
- }[] | undefined;
1691
- }>]>, {
1692
- kind: "mission_started";
1693
- title: string;
1694
- evidence: {
1695
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1696
- label: string;
1697
- id: string;
1698
- capture: "at_action" | "historical_lookup" | "fixture";
1699
- locator?: string | undefined;
1700
- }[];
1701
- objective: string;
1702
- runMode: "replay" | "fixture" | "live";
1703
- } | {
1704
- kind: "agent_status";
1705
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1706
- label: string;
1707
- role: string;
1708
- agentId: string;
1709
- sessionId: string;
1710
- evidence: {
1711
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1712
- label: string;
1713
- id: string;
1714
- capture: "at_action" | "historical_lookup" | "fixture";
1715
- locator?: string | undefined;
1716
- }[];
1717
- detail?: string | undefined;
1718
- } | {
1719
- kind: "agent_output";
1720
- summary: string;
1721
- agentId: string;
1722
- sessionId: string;
1723
- evidence: {
1724
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1725
- label: string;
1726
- id: string;
1727
- capture: "at_action" | "historical_lookup" | "fixture";
1728
- locator?: string | undefined;
1729
- }[];
1730
- outputId: string;
1731
- } | {
1732
- kind: "belief_observed";
1733
- agentId: string;
1734
- statement: string;
1735
- sessionId: string;
1736
- evidence: {
1737
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1738
- label: string;
1739
- id: string;
1740
- capture: "at_action" | "historical_lookup" | "fixture";
1741
- locator?: string | undefined;
1742
- }[];
1743
- beliefId: string;
1744
- decisionId: string;
1745
- confidence?: number | undefined;
1746
- } | {
1747
- kind: "conflict_detected";
1748
- summary: string;
1749
- evidence: {
1750
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1751
- label: string;
1752
- id: string;
1753
- capture: "at_action" | "historical_lookup" | "fixture";
1754
- locator?: string | undefined;
1755
- }[];
1756
- conflictId: string;
1757
- decisionIds: string[];
1758
- agentIds: string[];
1759
- } | {
1760
- kind: "test_result";
1761
- summary: string;
1762
- status: "error" | "failed" | "passed";
1763
- command: string;
1764
- evidence: {
1765
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1766
- label: string;
1767
- id: string;
1768
- capture: "at_action" | "historical_lookup" | "fixture";
1769
- locator?: string | undefined;
1770
- }[];
1771
- decisionId: string;
1772
- testId: string;
1773
- durationMs?: number | undefined;
1774
- correctionId?: string | undefined;
1775
- } | {
1776
- kind: "correction_proposed";
1777
- statement: string;
1778
- rationale: string;
1779
- evidence: {
1780
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1781
- label: string;
1782
- id: string;
1783
- capture: "at_action" | "historical_lookup" | "fixture";
1784
- locator?: string | undefined;
1785
- }[];
1786
- conflictId: string;
1787
- correctionId: string;
1788
- proposedDecisionId: string;
1789
- supersedesDecisionIds: string[];
1790
- proposedBy: string;
1791
- } | {
1792
- kind: "correction_approved";
1793
- evidence: {
1794
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1795
- label: string;
1796
- id: string;
1797
- capture: "at_action" | "historical_lookup" | "fixture";
1798
- locator?: string | undefined;
1799
- }[];
1800
- correctionId: string;
1801
- approvedBy: {
1802
- kind: "agent" | "human";
1803
- label: string;
1804
- id: string;
1805
- };
1806
- note?: string | undefined;
1807
- } | {
1808
- kind: "decision_superseded";
1809
- evidence: {
1810
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1811
- label: string;
1812
- id: string;
1813
- capture: "at_action" | "historical_lookup" | "fixture";
1814
- locator?: string | undefined;
1815
- }[];
1816
- decisionId: string;
1817
- correctionId: string;
1818
- replacementDecisionId: string;
1819
- } | {
1820
- kind: "recall_observed";
1821
- agentId: string;
1822
- query: string;
1823
- sessionId: string;
1824
- evidence: {
1825
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1826
- label: string;
1827
- id: string;
1828
- capture: "at_action" | "historical_lookup" | "fixture";
1829
- locator?: string | undefined;
1830
- }[];
1831
- decisionId: string;
1832
- recallReceiptId: string;
1833
- capturedAtAction: boolean;
1834
- } | {
1835
- kind: "propagation_verified";
1836
- agentId: string;
1837
- sessionId: string;
1838
- evidence: {
1839
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1840
- label: string;
1841
- id: string;
1842
- capture: "at_action" | "historical_lookup" | "fixture";
1843
- locator?: string | undefined;
1844
- }[];
1845
- decisionId: string;
1846
- correctionId: string;
1847
- recallReceiptId: string;
1848
- staleDecisionAbsent: boolean;
1849
- } | {
1850
- kind: "mission_completed";
1851
- summary: string;
1852
- outcome: "failed" | "inconclusive" | "recovered";
1853
- evidence: {
1854
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1855
- label: string;
1856
- id: string;
1857
- capture: "at_action" | "historical_lookup" | "fixture";
1858
- locator?: string | undefined;
1859
- }[];
1860
- }, {
1861
- kind: "mission_started";
1862
- title: string;
1863
- objective: string;
1864
- runMode: "replay" | "fixture" | "live";
1865
- evidence?: {
1866
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1867
- label: string;
1868
- id: string;
1869
- capture: "at_action" | "historical_lookup" | "fixture";
1870
- locator?: string | undefined;
1871
- }[] | undefined;
1872
- } | {
1873
- kind: "agent_status";
1874
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1875
- label: string;
1876
- role: string;
1877
- agentId: string;
1878
- sessionId: string;
1879
- detail?: string | undefined;
1880
- evidence?: {
1881
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1882
- label: string;
1883
- id: string;
1884
- capture: "at_action" | "historical_lookup" | "fixture";
1885
- locator?: string | undefined;
1886
- }[] | undefined;
1887
- } | {
1888
- kind: "agent_output";
1889
- summary: string;
1890
- agentId: string;
1891
- sessionId: string;
1892
- outputId: string;
1893
- evidence?: {
1894
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1895
- label: string;
1896
- id: string;
1897
- capture: "at_action" | "historical_lookup" | "fixture";
1898
- locator?: string | undefined;
1899
- }[] | undefined;
1900
- } | {
1901
- kind: "belief_observed";
1902
- agentId: string;
1903
- statement: string;
1904
- sessionId: string;
1905
- beliefId: string;
1906
- decisionId: string;
1907
- confidence?: number | undefined;
1908
- evidence?: {
1909
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1910
- label: string;
1911
- id: string;
1912
- capture: "at_action" | "historical_lookup" | "fixture";
1913
- locator?: string | undefined;
1914
- }[] | undefined;
1915
- } | {
1916
- kind: "conflict_detected";
1917
- summary: string;
1918
- conflictId: string;
1919
- decisionIds: string[];
1920
- agentIds: string[];
1921
- evidence?: {
1922
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1923
- label: string;
1924
- id: string;
1925
- capture: "at_action" | "historical_lookup" | "fixture";
1926
- locator?: string | undefined;
1927
- }[] | undefined;
1928
- } | {
1929
- kind: "test_result";
1930
- summary: string;
1931
- status: "error" | "failed" | "passed";
1932
- command: string;
1933
- decisionId: string;
1934
- testId: string;
1935
- durationMs?: number | undefined;
1936
- evidence?: {
1937
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1938
- label: string;
1939
- id: string;
1940
- capture: "at_action" | "historical_lookup" | "fixture";
1941
- locator?: string | undefined;
1942
- }[] | undefined;
1943
- correctionId?: string | undefined;
1944
- } | {
1945
- kind: "correction_proposed";
1946
- statement: string;
1947
- rationale: string;
1948
- conflictId: string;
1949
- correctionId: string;
1950
- proposedDecisionId: string;
1951
- supersedesDecisionIds: string[];
1952
- proposedBy: string;
1953
- evidence?: {
1954
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1955
- label: string;
1956
- id: string;
1957
- capture: "at_action" | "historical_lookup" | "fixture";
1958
- locator?: string | undefined;
1959
- }[] | undefined;
1960
- } | {
1961
- kind: "correction_approved";
1962
- correctionId: string;
1963
- approvedBy: {
1964
- kind: "agent" | "human";
1965
- label: string;
1966
- id: string;
1967
- };
1968
- note?: string | undefined;
1969
- evidence?: {
1970
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1971
- label: string;
1972
- id: string;
1973
- capture: "at_action" | "historical_lookup" | "fixture";
1974
- locator?: string | undefined;
1975
- }[] | undefined;
1976
- } | {
1977
- kind: "decision_superseded";
1978
- decisionId: string;
1979
- correctionId: string;
1980
- replacementDecisionId: string;
1981
- evidence?: {
1982
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1983
- label: string;
1984
- id: string;
1985
- capture: "at_action" | "historical_lookup" | "fixture";
1986
- locator?: string | undefined;
1987
- }[] | undefined;
1988
- } | {
1989
- kind: "recall_observed";
1990
- agentId: string;
1991
- query: string;
1992
- sessionId: string;
1993
- decisionId: string;
1994
- recallReceiptId: string;
1995
- capturedAtAction: boolean;
1996
- evidence?: {
1997
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1998
- label: string;
1999
- id: string;
2000
- capture: "at_action" | "historical_lookup" | "fixture";
2001
- locator?: string | undefined;
2002
- }[] | undefined;
2003
- } | {
2004
- kind: "propagation_verified";
2005
- agentId: string;
2006
- sessionId: string;
2007
- decisionId: string;
2008
- correctionId: string;
2009
- recallReceiptId: string;
2010
- staleDecisionAbsent: boolean;
2011
- evidence?: {
2012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2013
- label: string;
2014
- id: string;
2015
- capture: "at_action" | "historical_lookup" | "fixture";
2016
- locator?: string | undefined;
2017
- }[] | undefined;
2018
- } | {
2019
- kind: "mission_completed";
2020
- summary: string;
2021
- outcome: "failed" | "inconclusive" | "recovered";
2022
- evidence?: {
2023
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2024
- label: string;
2025
- id: string;
2026
- capture: "at_action" | "historical_lookup" | "fixture";
2027
- locator?: string | undefined;
2028
- }[] | undefined;
2029
- }>;
2030
- }, "strict", z.ZodTypeAny, {
2031
- payload: {
2032
- kind: "mission_started";
2033
- title: string;
2034
- evidence: {
2035
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2036
- label: string;
2037
- id: string;
2038
- capture: "at_action" | "historical_lookup" | "fixture";
2039
- locator?: string | undefined;
2040
- }[];
2041
- objective: string;
2042
- runMode: "replay" | "fixture" | "live";
2043
- } | {
2044
- kind: "agent_status";
2045
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2046
- label: string;
2047
- role: string;
2048
- agentId: string;
2049
- sessionId: string;
2050
- evidence: {
2051
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2052
- label: string;
2053
- id: string;
2054
- capture: "at_action" | "historical_lookup" | "fixture";
2055
- locator?: string | undefined;
2056
- }[];
2057
- detail?: string | undefined;
2058
- } | {
2059
- kind: "agent_output";
2060
- summary: string;
2061
- agentId: string;
2062
- sessionId: string;
2063
- evidence: {
2064
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2065
- label: string;
2066
- id: string;
2067
- capture: "at_action" | "historical_lookup" | "fixture";
2068
- locator?: string | undefined;
2069
- }[];
2070
- outputId: string;
2071
- } | {
2072
- kind: "belief_observed";
2073
- agentId: string;
2074
- statement: string;
2075
- sessionId: string;
2076
- evidence: {
2077
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2078
- label: string;
2079
- id: string;
2080
- capture: "at_action" | "historical_lookup" | "fixture";
2081
- locator?: string | undefined;
2082
- }[];
2083
- beliefId: string;
2084
- decisionId: string;
2085
- confidence?: number | undefined;
2086
- } | {
2087
- kind: "conflict_detected";
2088
- summary: string;
2089
- evidence: {
2090
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2091
- label: string;
2092
- id: string;
2093
- capture: "at_action" | "historical_lookup" | "fixture";
2094
- locator?: string | undefined;
2095
- }[];
2096
- conflictId: string;
2097
- decisionIds: string[];
2098
- agentIds: string[];
2099
- } | {
2100
- kind: "test_result";
2101
- summary: string;
2102
- status: "error" | "failed" | "passed";
2103
- command: string;
2104
- evidence: {
2105
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2106
- label: string;
2107
- id: string;
2108
- capture: "at_action" | "historical_lookup" | "fixture";
2109
- locator?: string | undefined;
2110
- }[];
2111
- decisionId: string;
2112
- testId: string;
2113
- durationMs?: number | undefined;
2114
- correctionId?: string | undefined;
2115
- } | {
2116
- kind: "correction_proposed";
2117
- statement: string;
2118
- rationale: string;
2119
- evidence: {
2120
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2121
- label: string;
2122
- id: string;
2123
- capture: "at_action" | "historical_lookup" | "fixture";
2124
- locator?: string | undefined;
2125
- }[];
2126
- conflictId: string;
2127
- correctionId: string;
2128
- proposedDecisionId: string;
2129
- supersedesDecisionIds: string[];
2130
- proposedBy: string;
2131
- } | {
2132
- kind: "correction_approved";
2133
- evidence: {
2134
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2135
- label: string;
2136
- id: string;
2137
- capture: "at_action" | "historical_lookup" | "fixture";
2138
- locator?: string | undefined;
2139
- }[];
2140
- correctionId: string;
2141
- approvedBy: {
2142
- kind: "agent" | "human";
2143
- label: string;
2144
- id: string;
2145
- };
2146
- note?: string | undefined;
2147
- } | {
2148
- kind: "decision_superseded";
2149
- evidence: {
2150
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2151
- label: string;
2152
- id: string;
2153
- capture: "at_action" | "historical_lookup" | "fixture";
2154
- locator?: string | undefined;
2155
- }[];
2156
- decisionId: string;
2157
- correctionId: string;
2158
- replacementDecisionId: string;
2159
- } | {
2160
- kind: "recall_observed";
2161
- agentId: string;
2162
- query: string;
2163
- sessionId: string;
2164
- evidence: {
2165
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2166
- label: string;
2167
- id: string;
2168
- capture: "at_action" | "historical_lookup" | "fixture";
2169
- locator?: string | undefined;
2170
- }[];
2171
- decisionId: string;
2172
- recallReceiptId: string;
2173
- capturedAtAction: boolean;
2174
- } | {
2175
- kind: "propagation_verified";
2176
- agentId: string;
2177
- sessionId: string;
2178
- evidence: {
2179
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2180
- label: string;
2181
- id: string;
2182
- capture: "at_action" | "historical_lookup" | "fixture";
2183
- locator?: string | undefined;
2184
- }[];
2185
- decisionId: string;
2186
- correctionId: string;
2187
- recallReceiptId: string;
2188
- staleDecisionAbsent: boolean;
2189
- } | {
2190
- kind: "mission_completed";
2191
- summary: string;
2192
- outcome: "failed" | "inconclusive" | "recovered";
2193
- evidence: {
2194
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2195
- label: string;
2196
- id: string;
2197
- capture: "at_action" | "historical_lookup" | "fixture";
2198
- locator?: string | undefined;
2199
- }[];
2200
- };
2201
- idempotencyKey?: string | undefined;
2202
- occurredAt?: string | undefined;
2203
- }, {
2204
- payload: {
2205
- kind: "mission_started";
2206
- title: string;
2207
- objective: string;
2208
- runMode: "replay" | "fixture" | "live";
2209
- evidence?: {
2210
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2211
- label: string;
2212
- id: string;
2213
- capture: "at_action" | "historical_lookup" | "fixture";
2214
- locator?: string | undefined;
2215
- }[] | undefined;
2216
- } | {
2217
- kind: "agent_status";
2218
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2219
- label: string;
2220
- role: string;
2221
- agentId: string;
2222
- sessionId: string;
2223
- detail?: string | undefined;
2224
- evidence?: {
2225
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2226
- label: string;
2227
- id: string;
2228
- capture: "at_action" | "historical_lookup" | "fixture";
2229
- locator?: string | undefined;
2230
- }[] | undefined;
2231
- } | {
2232
- kind: "agent_output";
2233
- summary: string;
2234
- agentId: string;
2235
- sessionId: string;
2236
- outputId: string;
2237
- evidence?: {
2238
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2239
- label: string;
2240
- id: string;
2241
- capture: "at_action" | "historical_lookup" | "fixture";
2242
- locator?: string | undefined;
2243
- }[] | undefined;
2244
- } | {
2245
- kind: "belief_observed";
2246
- agentId: string;
2247
- statement: string;
2248
- sessionId: string;
2249
- beliefId: string;
2250
- decisionId: string;
2251
- confidence?: number | undefined;
2252
- evidence?: {
2253
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2254
- label: string;
2255
- id: string;
2256
- capture: "at_action" | "historical_lookup" | "fixture";
2257
- locator?: string | undefined;
2258
- }[] | undefined;
2259
- } | {
2260
- kind: "conflict_detected";
2261
- summary: string;
2262
- conflictId: string;
2263
- decisionIds: string[];
2264
- agentIds: string[];
2265
- evidence?: {
2266
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2267
- label: string;
2268
- id: string;
2269
- capture: "at_action" | "historical_lookup" | "fixture";
2270
- locator?: string | undefined;
2271
- }[] | undefined;
2272
- } | {
2273
- kind: "test_result";
2274
- summary: string;
2275
- status: "error" | "failed" | "passed";
2276
- command: string;
2277
- decisionId: string;
2278
- testId: string;
2279
- durationMs?: number | undefined;
2280
- evidence?: {
2281
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2282
- label: string;
2283
- id: string;
2284
- capture: "at_action" | "historical_lookup" | "fixture";
2285
- locator?: string | undefined;
2286
- }[] | undefined;
2287
- correctionId?: string | undefined;
2288
- } | {
2289
- kind: "correction_proposed";
2290
- statement: string;
2291
- rationale: string;
2292
- conflictId: string;
2293
- correctionId: string;
2294
- proposedDecisionId: string;
2295
- supersedesDecisionIds: string[];
2296
- proposedBy: string;
2297
- evidence?: {
2298
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2299
- label: string;
2300
- id: string;
2301
- capture: "at_action" | "historical_lookup" | "fixture";
2302
- locator?: string | undefined;
2303
- }[] | undefined;
2304
- } | {
2305
- kind: "correction_approved";
2306
- correctionId: string;
2307
- approvedBy: {
2308
- kind: "agent" | "human";
2309
- label: string;
2310
- id: string;
2311
- };
2312
- note?: string | undefined;
2313
- evidence?: {
2314
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2315
- label: string;
2316
- id: string;
2317
- capture: "at_action" | "historical_lookup" | "fixture";
2318
- locator?: string | undefined;
2319
- }[] | undefined;
2320
- } | {
2321
- kind: "decision_superseded";
2322
- decisionId: string;
2323
- correctionId: string;
2324
- replacementDecisionId: string;
2325
- evidence?: {
2326
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2327
- label: string;
2328
- id: string;
2329
- capture: "at_action" | "historical_lookup" | "fixture";
2330
- locator?: string | undefined;
2331
- }[] | undefined;
2332
- } | {
2333
- kind: "recall_observed";
2334
- agentId: string;
2335
- query: string;
2336
- sessionId: string;
2337
- decisionId: string;
2338
- recallReceiptId: string;
2339
- capturedAtAction: boolean;
2340
- evidence?: {
2341
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2342
- label: string;
2343
- id: string;
2344
- capture: "at_action" | "historical_lookup" | "fixture";
2345
- locator?: string | undefined;
2346
- }[] | undefined;
2347
- } | {
2348
- kind: "propagation_verified";
2349
- agentId: string;
2350
- sessionId: string;
2351
- decisionId: string;
2352
- correctionId: string;
2353
- recallReceiptId: string;
2354
- staleDecisionAbsent: boolean;
2355
- evidence?: {
2356
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2357
- label: string;
2358
- id: string;
2359
- capture: "at_action" | "historical_lookup" | "fixture";
2360
- locator?: string | undefined;
2361
- }[] | undefined;
2362
- } | {
2363
- kind: "mission_completed";
2364
- summary: string;
2365
- outcome: "failed" | "inconclusive" | "recovered";
2366
- evidence?: {
2367
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2368
- label: string;
2369
- id: string;
2370
- capture: "at_action" | "historical_lookup" | "fixture";
2371
- locator?: string | undefined;
2372
- }[] | undefined;
2373
- };
2374
- idempotencyKey?: string | undefined;
2375
- occurredAt?: string | undefined;
2376
- }>;
722
+ capture: z.ZodEnum<{
723
+ at_action: "at_action";
724
+ historical_lookup: "historical_lookup";
725
+ fixture: "fixture";
726
+ }>;
727
+ }, z.core.$strict>>>;
728
+ }, z.core.$strict>], "kind">;
729
+ }, z.core.$strict>;
2377
730
  export type RelayMissionEventInput = z.infer<typeof RelayMissionEventInputSchema>;
2378
731
  export declare const RelayMissionEventSchema: z.ZodObject<{
2379
732
  schemaVersion: z.ZodLiteral<"1">;
@@ -2381,1388 +734,363 @@ export declare const RelayMissionEventSchema: z.ZodObject<{
2381
734
  missionId: z.ZodString;
2382
735
  namespace: z.ZodString;
2383
736
  authenticatedPrincipal: z.ZodOptional<z.ZodString>;
2384
- recordedAt: z.ZodEffects<z.ZodString, string, string>;
2385
- occurredAt: z.ZodEffects<z.ZodString, string, string>;
737
+ recordedAt: z.ZodString;
738
+ occurredAt: z.ZodString;
2386
739
  idempotencyKey: z.ZodOptional<z.ZodString>;
2387
- payload: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
740
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2388
741
  kind: z.ZodLiteral<"mission_started">;
2389
742
  title: z.ZodString;
2390
743
  objective: z.ZodString;
2391
- runMode: z.ZodEnum<["live", "replay", "fixture"]>;
744
+ runMode: z.ZodEnum<{
745
+ replay: "replay";
746
+ fixture: "fixture";
747
+ live: "live";
748
+ }>;
2392
749
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2393
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
750
+ kind: z.ZodEnum<{
751
+ source: "source";
752
+ correction: "correction";
753
+ memory: "memory";
754
+ commit: "commit";
755
+ recall_audit: "recall_audit";
756
+ test: "test";
757
+ agent_output: "agent_output";
758
+ approval: "approval";
759
+ }>;
2394
760
  id: z.ZodString;
2395
761
  label: z.ZodString;
2396
762
  locator: z.ZodOptional<z.ZodString>;
2397
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2398
- }, "strict", z.ZodTypeAny, {
2399
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2400
- label: string;
2401
- id: string;
2402
- capture: "at_action" | "historical_lookup" | "fixture";
2403
- locator?: string | undefined;
2404
- }, {
2405
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2406
- label: string;
2407
- id: string;
2408
- capture: "at_action" | "historical_lookup" | "fixture";
2409
- locator?: string | undefined;
2410
- }>, "many">>;
2411
- }, "strict", z.ZodTypeAny, {
2412
- kind: "mission_started";
2413
- title: string;
2414
- evidence: {
2415
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2416
- label: string;
2417
- id: string;
2418
- capture: "at_action" | "historical_lookup" | "fixture";
2419
- locator?: string | undefined;
2420
- }[];
2421
- objective: string;
2422
- runMode: "replay" | "fixture" | "live";
2423
- }, {
2424
- kind: "mission_started";
2425
- title: string;
2426
- objective: string;
2427
- runMode: "replay" | "fixture" | "live";
2428
- evidence?: {
2429
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2430
- label: string;
2431
- id: string;
2432
- capture: "at_action" | "historical_lookup" | "fixture";
2433
- locator?: string | undefined;
2434
- }[] | undefined;
2435
- }>, z.ZodObject<{
763
+ capture: z.ZodEnum<{
764
+ at_action: "at_action";
765
+ historical_lookup: "historical_lookup";
766
+ fixture: "fixture";
767
+ }>;
768
+ }, z.core.$strict>>>;
769
+ }, z.core.$strict>, z.ZodObject<{
2436
770
  label: z.ZodString;
2437
771
  role: z.ZodString;
2438
- status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
772
+ status: z.ZodEnum<{
773
+ failed: "failed";
774
+ complete: "complete";
775
+ blocked: "blocked";
776
+ idle: "idle";
777
+ working: "working";
778
+ }>;
2439
779
  detail: z.ZodOptional<z.ZodString>;
2440
780
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2441
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
781
+ kind: z.ZodEnum<{
782
+ source: "source";
783
+ correction: "correction";
784
+ memory: "memory";
785
+ commit: "commit";
786
+ recall_audit: "recall_audit";
787
+ test: "test";
788
+ agent_output: "agent_output";
789
+ approval: "approval";
790
+ }>;
2442
791
  id: z.ZodString;
2443
792
  label: z.ZodString;
2444
793
  locator: z.ZodOptional<z.ZodString>;
2445
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2446
- }, "strict", z.ZodTypeAny, {
2447
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2448
- label: string;
2449
- id: string;
2450
- capture: "at_action" | "historical_lookup" | "fixture";
2451
- locator?: string | undefined;
2452
- }, {
2453
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2454
- label: string;
2455
- id: string;
2456
- capture: "at_action" | "historical_lookup" | "fixture";
2457
- locator?: string | undefined;
2458
- }>, "many">>;
794
+ capture: z.ZodEnum<{
795
+ at_action: "at_action";
796
+ historical_lookup: "historical_lookup";
797
+ fixture: "fixture";
798
+ }>;
799
+ }, z.core.$strict>>>;
2459
800
  agentId: z.ZodString;
2460
801
  sessionId: z.ZodString;
2461
802
  kind: z.ZodLiteral<"agent_status">;
2462
- }, "strict", z.ZodTypeAny, {
2463
- kind: "agent_status";
2464
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2465
- label: string;
2466
- role: string;
2467
- agentId: string;
2468
- sessionId: string;
2469
- evidence: {
2470
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2471
- label: string;
2472
- id: string;
2473
- capture: "at_action" | "historical_lookup" | "fixture";
2474
- locator?: string | undefined;
2475
- }[];
2476
- detail?: string | undefined;
2477
- }, {
2478
- kind: "agent_status";
2479
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2480
- label: string;
2481
- role: string;
2482
- agentId: string;
2483
- sessionId: string;
2484
- detail?: string | undefined;
2485
- evidence?: {
2486
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2487
- label: string;
2488
- id: string;
2489
- capture: "at_action" | "historical_lookup" | "fixture";
2490
- locator?: string | undefined;
2491
- }[] | undefined;
2492
- }>, z.ZodObject<{
803
+ }, z.core.$strict>, z.ZodObject<{
2493
804
  outputId: z.ZodString;
2494
805
  summary: z.ZodString;
2495
806
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2496
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
807
+ kind: z.ZodEnum<{
808
+ source: "source";
809
+ correction: "correction";
810
+ memory: "memory";
811
+ commit: "commit";
812
+ recall_audit: "recall_audit";
813
+ test: "test";
814
+ agent_output: "agent_output";
815
+ approval: "approval";
816
+ }>;
2497
817
  id: z.ZodString;
2498
818
  label: z.ZodString;
2499
819
  locator: z.ZodOptional<z.ZodString>;
2500
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2501
- }, "strict", z.ZodTypeAny, {
2502
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2503
- label: string;
2504
- id: string;
2505
- capture: "at_action" | "historical_lookup" | "fixture";
2506
- locator?: string | undefined;
2507
- }, {
2508
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2509
- label: string;
2510
- id: string;
2511
- capture: "at_action" | "historical_lookup" | "fixture";
2512
- locator?: string | undefined;
2513
- }>, "many">>;
820
+ capture: z.ZodEnum<{
821
+ at_action: "at_action";
822
+ historical_lookup: "historical_lookup";
823
+ fixture: "fixture";
824
+ }>;
825
+ }, z.core.$strict>>>;
2514
826
  agentId: z.ZodString;
2515
827
  sessionId: z.ZodString;
2516
828
  kind: z.ZodLiteral<"agent_output">;
2517
- }, "strict", z.ZodTypeAny, {
2518
- kind: "agent_output";
2519
- summary: string;
2520
- agentId: string;
2521
- sessionId: string;
2522
- evidence: {
2523
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2524
- label: string;
2525
- id: string;
2526
- capture: "at_action" | "historical_lookup" | "fixture";
2527
- locator?: string | undefined;
2528
- }[];
2529
- outputId: string;
2530
- }, {
2531
- kind: "agent_output";
2532
- summary: string;
2533
- agentId: string;
2534
- sessionId: string;
2535
- outputId: string;
2536
- evidence?: {
2537
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
- label: string;
2539
- id: string;
2540
- capture: "at_action" | "historical_lookup" | "fixture";
2541
- locator?: string | undefined;
2542
- }[] | undefined;
2543
- }>, z.ZodObject<{
829
+ }, z.core.$strict>, z.ZodObject<{
2544
830
  beliefId: z.ZodString;
2545
831
  decisionId: z.ZodString;
2546
832
  statement: z.ZodString;
2547
833
  confidence: z.ZodOptional<z.ZodNumber>;
2548
834
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2549
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
835
+ kind: z.ZodEnum<{
836
+ source: "source";
837
+ correction: "correction";
838
+ memory: "memory";
839
+ commit: "commit";
840
+ recall_audit: "recall_audit";
841
+ test: "test";
842
+ agent_output: "agent_output";
843
+ approval: "approval";
844
+ }>;
2550
845
  id: z.ZodString;
2551
846
  label: z.ZodString;
2552
847
  locator: z.ZodOptional<z.ZodString>;
2553
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2554
- }, "strict", z.ZodTypeAny, {
2555
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2556
- label: string;
2557
- id: string;
2558
- capture: "at_action" | "historical_lookup" | "fixture";
2559
- locator?: string | undefined;
2560
- }, {
2561
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
- label: string;
2563
- id: string;
2564
- capture: "at_action" | "historical_lookup" | "fixture";
2565
- locator?: string | undefined;
2566
- }>, "many">>;
848
+ capture: z.ZodEnum<{
849
+ at_action: "at_action";
850
+ historical_lookup: "historical_lookup";
851
+ fixture: "fixture";
852
+ }>;
853
+ }, z.core.$strict>>>;
2567
854
  agentId: z.ZodString;
2568
855
  sessionId: z.ZodString;
2569
856
  kind: z.ZodLiteral<"belief_observed">;
2570
- }, "strict", z.ZodTypeAny, {
2571
- kind: "belief_observed";
2572
- agentId: string;
2573
- statement: string;
2574
- sessionId: string;
2575
- evidence: {
2576
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2577
- label: string;
2578
- id: string;
2579
- capture: "at_action" | "historical_lookup" | "fixture";
2580
- locator?: string | undefined;
2581
- }[];
2582
- beliefId: string;
2583
- decisionId: string;
2584
- confidence?: number | undefined;
2585
- }, {
2586
- kind: "belief_observed";
2587
- agentId: string;
2588
- statement: string;
2589
- sessionId: string;
2590
- beliefId: string;
2591
- decisionId: string;
2592
- confidence?: number | undefined;
2593
- evidence?: {
2594
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2595
- label: string;
2596
- id: string;
2597
- capture: "at_action" | "historical_lookup" | "fixture";
2598
- locator?: string | undefined;
2599
- }[] | undefined;
2600
- }>, z.ZodObject<{
857
+ }, z.core.$strict>, z.ZodObject<{
2601
858
  kind: z.ZodLiteral<"conflict_detected">;
2602
859
  conflictId: z.ZodString;
2603
- decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2604
- agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
860
+ decisionIds: z.ZodArray<z.ZodString>;
861
+ agentIds: z.ZodArray<z.ZodString>;
2605
862
  summary: z.ZodString;
2606
863
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2607
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
864
+ kind: z.ZodEnum<{
865
+ source: "source";
866
+ correction: "correction";
867
+ memory: "memory";
868
+ commit: "commit";
869
+ recall_audit: "recall_audit";
870
+ test: "test";
871
+ agent_output: "agent_output";
872
+ approval: "approval";
873
+ }>;
2608
874
  id: z.ZodString;
2609
875
  label: z.ZodString;
2610
876
  locator: z.ZodOptional<z.ZodString>;
2611
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2612
- }, "strict", z.ZodTypeAny, {
2613
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2614
- label: string;
2615
- id: string;
2616
- capture: "at_action" | "historical_lookup" | "fixture";
2617
- locator?: string | undefined;
2618
- }, {
2619
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2620
- label: string;
2621
- id: string;
2622
- capture: "at_action" | "historical_lookup" | "fixture";
2623
- locator?: string | undefined;
2624
- }>, "many">>;
2625
- }, "strict", z.ZodTypeAny, {
2626
- kind: "conflict_detected";
2627
- summary: string;
2628
- evidence: {
2629
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2630
- label: string;
2631
- id: string;
2632
- capture: "at_action" | "historical_lookup" | "fixture";
2633
- locator?: string | undefined;
2634
- }[];
2635
- conflictId: string;
2636
- decisionIds: string[];
2637
- agentIds: string[];
2638
- }, {
2639
- kind: "conflict_detected";
2640
- summary: string;
2641
- conflictId: string;
2642
- decisionIds: string[];
2643
- agentIds: string[];
2644
- evidence?: {
2645
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2646
- label: string;
2647
- id: string;
2648
- capture: "at_action" | "historical_lookup" | "fixture";
2649
- locator?: string | undefined;
2650
- }[] | undefined;
2651
- }>, z.ZodObject<{
877
+ capture: z.ZodEnum<{
878
+ at_action: "at_action";
879
+ historical_lookup: "historical_lookup";
880
+ fixture: "fixture";
881
+ }>;
882
+ }, z.core.$strict>>>;
883
+ }, z.core.$strict>, z.ZodObject<{
2652
884
  kind: z.ZodLiteral<"test_result">;
2653
885
  testId: z.ZodString;
2654
886
  decisionId: z.ZodString;
2655
887
  correctionId: z.ZodOptional<z.ZodString>;
2656
888
  command: z.ZodString;
2657
- status: z.ZodEnum<["passed", "failed", "error"]>;
889
+ status: z.ZodEnum<{
890
+ error: "error";
891
+ failed: "failed";
892
+ passed: "passed";
893
+ }>;
2658
894
  summary: z.ZodString;
2659
895
  durationMs: z.ZodOptional<z.ZodNumber>;
2660
896
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2661
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
897
+ kind: z.ZodEnum<{
898
+ source: "source";
899
+ correction: "correction";
900
+ memory: "memory";
901
+ commit: "commit";
902
+ recall_audit: "recall_audit";
903
+ test: "test";
904
+ agent_output: "agent_output";
905
+ approval: "approval";
906
+ }>;
2662
907
  id: z.ZodString;
2663
908
  label: z.ZodString;
2664
909
  locator: z.ZodOptional<z.ZodString>;
2665
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2666
- }, "strict", z.ZodTypeAny, {
2667
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2668
- label: string;
2669
- id: string;
2670
- capture: "at_action" | "historical_lookup" | "fixture";
2671
- locator?: string | undefined;
2672
- }, {
2673
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2674
- label: string;
2675
- id: string;
2676
- capture: "at_action" | "historical_lookup" | "fixture";
2677
- locator?: string | undefined;
2678
- }>, "many">>;
2679
- }, "strict", z.ZodTypeAny, {
2680
- kind: "test_result";
2681
- summary: string;
2682
- status: "error" | "failed" | "passed";
2683
- command: string;
2684
- evidence: {
2685
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2686
- label: string;
2687
- id: string;
2688
- capture: "at_action" | "historical_lookup" | "fixture";
2689
- locator?: string | undefined;
2690
- }[];
2691
- decisionId: string;
2692
- testId: string;
2693
- durationMs?: number | undefined;
2694
- correctionId?: string | undefined;
2695
- }, {
2696
- kind: "test_result";
2697
- summary: string;
2698
- status: "error" | "failed" | "passed";
2699
- command: string;
2700
- decisionId: string;
2701
- testId: string;
2702
- durationMs?: number | undefined;
2703
- evidence?: {
2704
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2705
- label: string;
2706
- id: string;
2707
- capture: "at_action" | "historical_lookup" | "fixture";
2708
- locator?: string | undefined;
2709
- }[] | undefined;
2710
- correctionId?: string | undefined;
2711
- }>, z.ZodObject<{
910
+ capture: z.ZodEnum<{
911
+ at_action: "at_action";
912
+ historical_lookup: "historical_lookup";
913
+ fixture: "fixture";
914
+ }>;
915
+ }, z.core.$strict>>>;
916
+ }, z.core.$strict>, z.ZodObject<{
2712
917
  kind: z.ZodLiteral<"correction_proposed">;
2713
918
  correctionId: z.ZodString;
2714
919
  conflictId: z.ZodString;
2715
920
  proposedDecisionId: z.ZodString;
2716
- supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
921
+ supersedesDecisionIds: z.ZodArray<z.ZodString>;
2717
922
  statement: z.ZodString;
2718
923
  rationale: z.ZodString;
2719
924
  proposedBy: z.ZodString;
2720
925
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2721
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
926
+ kind: z.ZodEnum<{
927
+ source: "source";
928
+ correction: "correction";
929
+ memory: "memory";
930
+ commit: "commit";
931
+ recall_audit: "recall_audit";
932
+ test: "test";
933
+ agent_output: "agent_output";
934
+ approval: "approval";
935
+ }>;
2722
936
  id: z.ZodString;
2723
937
  label: z.ZodString;
2724
938
  locator: z.ZodOptional<z.ZodString>;
2725
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2726
- }, "strict", z.ZodTypeAny, {
2727
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2728
- label: string;
2729
- id: string;
2730
- capture: "at_action" | "historical_lookup" | "fixture";
2731
- locator?: string | undefined;
2732
- }, {
2733
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2734
- label: string;
2735
- id: string;
2736
- capture: "at_action" | "historical_lookup" | "fixture";
2737
- locator?: string | undefined;
2738
- }>, "many">>;
2739
- }, "strict", z.ZodTypeAny, {
2740
- kind: "correction_proposed";
2741
- statement: string;
2742
- rationale: string;
2743
- evidence: {
2744
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2745
- label: string;
2746
- id: string;
2747
- capture: "at_action" | "historical_lookup" | "fixture";
2748
- locator?: string | undefined;
2749
- }[];
2750
- conflictId: string;
2751
- correctionId: string;
2752
- proposedDecisionId: string;
2753
- supersedesDecisionIds: string[];
2754
- proposedBy: string;
2755
- }, {
2756
- kind: "correction_proposed";
2757
- statement: string;
2758
- rationale: string;
2759
- conflictId: string;
2760
- correctionId: string;
2761
- proposedDecisionId: string;
2762
- supersedesDecisionIds: string[];
2763
- proposedBy: string;
2764
- evidence?: {
2765
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2766
- label: string;
2767
- id: string;
2768
- capture: "at_action" | "historical_lookup" | "fixture";
2769
- locator?: string | undefined;
2770
- }[] | undefined;
2771
- }>, z.ZodObject<{
939
+ capture: z.ZodEnum<{
940
+ at_action: "at_action";
941
+ historical_lookup: "historical_lookup";
942
+ fixture: "fixture";
943
+ }>;
944
+ }, z.core.$strict>>>;
945
+ }, z.core.$strict>, z.ZodObject<{
2772
946
  kind: z.ZodLiteral<"correction_approved">;
2773
947
  correctionId: z.ZodString;
2774
948
  approvedBy: z.ZodObject<{
2775
- kind: z.ZodEnum<["human", "agent"]>;
949
+ kind: z.ZodEnum<{
950
+ agent: "agent";
951
+ human: "human";
952
+ }>;
2776
953
  id: z.ZodString;
2777
954
  label: z.ZodString;
2778
- }, "strict", z.ZodTypeAny, {
2779
- kind: "agent" | "human";
2780
- label: string;
2781
- id: string;
2782
- }, {
2783
- kind: "agent" | "human";
2784
- label: string;
2785
- id: string;
2786
- }>;
955
+ }, z.core.$strict>;
2787
956
  note: z.ZodOptional<z.ZodString>;
2788
957
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2789
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
958
+ kind: z.ZodEnum<{
959
+ source: "source";
960
+ correction: "correction";
961
+ memory: "memory";
962
+ commit: "commit";
963
+ recall_audit: "recall_audit";
964
+ test: "test";
965
+ agent_output: "agent_output";
966
+ approval: "approval";
967
+ }>;
2790
968
  id: z.ZodString;
2791
969
  label: z.ZodString;
2792
970
  locator: z.ZodOptional<z.ZodString>;
2793
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2794
- }, "strict", z.ZodTypeAny, {
2795
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2796
- label: string;
2797
- id: string;
2798
- capture: "at_action" | "historical_lookup" | "fixture";
2799
- locator?: string | undefined;
2800
- }, {
2801
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2802
- label: string;
2803
- id: string;
2804
- capture: "at_action" | "historical_lookup" | "fixture";
2805
- locator?: string | undefined;
2806
- }>, "many">>;
2807
- }, "strict", z.ZodTypeAny, {
2808
- kind: "correction_approved";
2809
- evidence: {
2810
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
- label: string;
2812
- id: string;
2813
- capture: "at_action" | "historical_lookup" | "fixture";
2814
- locator?: string | undefined;
2815
- }[];
2816
- correctionId: string;
2817
- approvedBy: {
2818
- kind: "agent" | "human";
2819
- label: string;
2820
- id: string;
2821
- };
2822
- note?: string | undefined;
2823
- }, {
2824
- kind: "correction_approved";
2825
- correctionId: string;
2826
- approvedBy: {
2827
- kind: "agent" | "human";
2828
- label: string;
2829
- id: string;
2830
- };
2831
- note?: string | undefined;
2832
- evidence?: {
2833
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2834
- label: string;
2835
- id: string;
2836
- capture: "at_action" | "historical_lookup" | "fixture";
2837
- locator?: string | undefined;
2838
- }[] | undefined;
2839
- }>, z.ZodObject<{
971
+ capture: z.ZodEnum<{
972
+ at_action: "at_action";
973
+ historical_lookup: "historical_lookup";
974
+ fixture: "fixture";
975
+ }>;
976
+ }, z.core.$strict>>>;
977
+ }, z.core.$strict>, z.ZodObject<{
2840
978
  kind: z.ZodLiteral<"decision_superseded">;
2841
979
  decisionId: z.ZodString;
2842
980
  replacementDecisionId: z.ZodString;
2843
981
  correctionId: z.ZodString;
2844
982
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2845
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
983
+ kind: z.ZodEnum<{
984
+ source: "source";
985
+ correction: "correction";
986
+ memory: "memory";
987
+ commit: "commit";
988
+ recall_audit: "recall_audit";
989
+ test: "test";
990
+ agent_output: "agent_output";
991
+ approval: "approval";
992
+ }>;
2846
993
  id: z.ZodString;
2847
994
  label: z.ZodString;
2848
995
  locator: z.ZodOptional<z.ZodString>;
2849
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2850
- }, "strict", z.ZodTypeAny, {
2851
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2852
- label: string;
2853
- id: string;
2854
- capture: "at_action" | "historical_lookup" | "fixture";
2855
- locator?: string | undefined;
2856
- }, {
2857
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2858
- label: string;
2859
- id: string;
2860
- capture: "at_action" | "historical_lookup" | "fixture";
2861
- locator?: string | undefined;
2862
- }>, "many">>;
2863
- }, "strict", z.ZodTypeAny, {
2864
- kind: "decision_superseded";
2865
- evidence: {
2866
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2867
- label: string;
2868
- id: string;
2869
- capture: "at_action" | "historical_lookup" | "fixture";
2870
- locator?: string | undefined;
2871
- }[];
2872
- decisionId: string;
2873
- correctionId: string;
2874
- replacementDecisionId: string;
2875
- }, {
2876
- kind: "decision_superseded";
2877
- decisionId: string;
2878
- correctionId: string;
2879
- replacementDecisionId: string;
2880
- evidence?: {
2881
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2882
- label: string;
2883
- id: string;
2884
- capture: "at_action" | "historical_lookup" | "fixture";
2885
- locator?: string | undefined;
2886
- }[] | undefined;
2887
- }>, z.ZodObject<{
996
+ capture: z.ZodEnum<{
997
+ at_action: "at_action";
998
+ historical_lookup: "historical_lookup";
999
+ fixture: "fixture";
1000
+ }>;
1001
+ }, z.core.$strict>>>;
1002
+ }, z.core.$strict>, z.ZodObject<{
2888
1003
  recallReceiptId: z.ZodString;
2889
1004
  decisionId: z.ZodString;
2890
1005
  query: z.ZodString;
2891
1006
  capturedAtAction: z.ZodBoolean;
2892
1007
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2893
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1008
+ kind: z.ZodEnum<{
1009
+ source: "source";
1010
+ correction: "correction";
1011
+ memory: "memory";
1012
+ commit: "commit";
1013
+ recall_audit: "recall_audit";
1014
+ test: "test";
1015
+ agent_output: "agent_output";
1016
+ approval: "approval";
1017
+ }>;
2894
1018
  id: z.ZodString;
2895
1019
  label: z.ZodString;
2896
1020
  locator: z.ZodOptional<z.ZodString>;
2897
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2898
- }, "strict", z.ZodTypeAny, {
2899
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2900
- label: string;
2901
- id: string;
2902
- capture: "at_action" | "historical_lookup" | "fixture";
2903
- locator?: string | undefined;
2904
- }, {
2905
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2906
- label: string;
2907
- id: string;
2908
- capture: "at_action" | "historical_lookup" | "fixture";
2909
- locator?: string | undefined;
2910
- }>, "many">>;
1021
+ capture: z.ZodEnum<{
1022
+ at_action: "at_action";
1023
+ historical_lookup: "historical_lookup";
1024
+ fixture: "fixture";
1025
+ }>;
1026
+ }, z.core.$strict>>>;
2911
1027
  agentId: z.ZodString;
2912
1028
  sessionId: z.ZodString;
2913
1029
  kind: z.ZodLiteral<"recall_observed">;
2914
- }, "strict", z.ZodTypeAny, {
2915
- kind: "recall_observed";
2916
- agentId: string;
2917
- query: string;
2918
- sessionId: string;
2919
- evidence: {
2920
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2921
- label: string;
2922
- id: string;
2923
- capture: "at_action" | "historical_lookup" | "fixture";
2924
- locator?: string | undefined;
2925
- }[];
2926
- decisionId: string;
2927
- recallReceiptId: string;
2928
- capturedAtAction: boolean;
2929
- }, {
2930
- kind: "recall_observed";
2931
- agentId: string;
2932
- query: string;
2933
- sessionId: string;
2934
- decisionId: string;
2935
- recallReceiptId: string;
2936
- capturedAtAction: boolean;
2937
- evidence?: {
2938
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2939
- label: string;
2940
- id: string;
2941
- capture: "at_action" | "historical_lookup" | "fixture";
2942
- locator?: string | undefined;
2943
- }[] | undefined;
2944
- }>, z.ZodObject<{
1030
+ }, z.core.$strict>, z.ZodObject<{
2945
1031
  correctionId: z.ZodString;
2946
1032
  decisionId: z.ZodString;
2947
1033
  recallReceiptId: z.ZodString;
2948
1034
  staleDecisionAbsent: z.ZodBoolean;
2949
1035
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2950
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1036
+ kind: z.ZodEnum<{
1037
+ source: "source";
1038
+ correction: "correction";
1039
+ memory: "memory";
1040
+ commit: "commit";
1041
+ recall_audit: "recall_audit";
1042
+ test: "test";
1043
+ agent_output: "agent_output";
1044
+ approval: "approval";
1045
+ }>;
2951
1046
  id: z.ZodString;
2952
1047
  label: z.ZodString;
2953
1048
  locator: z.ZodOptional<z.ZodString>;
2954
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2955
- }, "strict", z.ZodTypeAny, {
2956
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2957
- label: string;
2958
- id: string;
2959
- capture: "at_action" | "historical_lookup" | "fixture";
2960
- locator?: string | undefined;
2961
- }, {
2962
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
- label: string;
2964
- id: string;
2965
- capture: "at_action" | "historical_lookup" | "fixture";
2966
- locator?: string | undefined;
2967
- }>, "many">>;
1049
+ capture: z.ZodEnum<{
1050
+ at_action: "at_action";
1051
+ historical_lookup: "historical_lookup";
1052
+ fixture: "fixture";
1053
+ }>;
1054
+ }, z.core.$strict>>>;
2968
1055
  agentId: z.ZodString;
2969
1056
  sessionId: z.ZodString;
2970
1057
  kind: z.ZodLiteral<"propagation_verified">;
2971
- }, "strict", z.ZodTypeAny, {
2972
- kind: "propagation_verified";
2973
- agentId: string;
2974
- sessionId: string;
2975
- evidence: {
2976
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2977
- label: string;
2978
- id: string;
2979
- capture: "at_action" | "historical_lookup" | "fixture";
2980
- locator?: string | undefined;
2981
- }[];
2982
- decisionId: string;
2983
- correctionId: string;
2984
- recallReceiptId: string;
2985
- staleDecisionAbsent: boolean;
2986
- }, {
2987
- kind: "propagation_verified";
2988
- agentId: string;
2989
- sessionId: string;
2990
- decisionId: string;
2991
- correctionId: string;
2992
- recallReceiptId: string;
2993
- staleDecisionAbsent: boolean;
2994
- evidence?: {
2995
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2996
- label: string;
2997
- id: string;
2998
- capture: "at_action" | "historical_lookup" | "fixture";
2999
- locator?: string | undefined;
3000
- }[] | undefined;
3001
- }>, z.ZodObject<{
1058
+ }, z.core.$strict>, z.ZodObject<{
3002
1059
  kind: z.ZodLiteral<"mission_completed">;
3003
- outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
1060
+ outcome: z.ZodEnum<{
1061
+ failed: "failed";
1062
+ inconclusive: "inconclusive";
1063
+ recovered: "recovered";
1064
+ }>;
3004
1065
  summary: z.ZodString;
3005
1066
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3006
- kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1067
+ kind: z.ZodEnum<{
1068
+ source: "source";
1069
+ correction: "correction";
1070
+ memory: "memory";
1071
+ commit: "commit";
1072
+ recall_audit: "recall_audit";
1073
+ test: "test";
1074
+ agent_output: "agent_output";
1075
+ approval: "approval";
1076
+ }>;
3007
1077
  id: z.ZodString;
3008
1078
  label: z.ZodString;
3009
1079
  locator: z.ZodOptional<z.ZodString>;
3010
- capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3011
- }, "strict", z.ZodTypeAny, {
3012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3013
- label: string;
3014
- id: string;
3015
- capture: "at_action" | "historical_lookup" | "fixture";
3016
- locator?: string | undefined;
3017
- }, {
3018
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3019
- label: string;
3020
- id: string;
3021
- capture: "at_action" | "historical_lookup" | "fixture";
3022
- locator?: string | undefined;
3023
- }>, "many">>;
3024
- }, "strict", z.ZodTypeAny, {
3025
- kind: "mission_completed";
3026
- summary: string;
3027
- outcome: "failed" | "inconclusive" | "recovered";
3028
- evidence: {
3029
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3030
- label: string;
3031
- id: string;
3032
- capture: "at_action" | "historical_lookup" | "fixture";
3033
- locator?: string | undefined;
3034
- }[];
3035
- }, {
3036
- kind: "mission_completed";
3037
- summary: string;
3038
- outcome: "failed" | "inconclusive" | "recovered";
3039
- evidence?: {
3040
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3041
- label: string;
3042
- id: string;
3043
- capture: "at_action" | "historical_lookup" | "fixture";
3044
- locator?: string | undefined;
3045
- }[] | undefined;
3046
- }>]>, {
3047
- kind: "mission_started";
3048
- title: string;
3049
- evidence: {
3050
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3051
- label: string;
3052
- id: string;
3053
- capture: "at_action" | "historical_lookup" | "fixture";
3054
- locator?: string | undefined;
3055
- }[];
3056
- objective: string;
3057
- runMode: "replay" | "fixture" | "live";
3058
- } | {
3059
- kind: "agent_status";
3060
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3061
- label: string;
3062
- role: string;
3063
- agentId: string;
3064
- sessionId: string;
3065
- evidence: {
3066
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3067
- label: string;
3068
- id: string;
3069
- capture: "at_action" | "historical_lookup" | "fixture";
3070
- locator?: string | undefined;
3071
- }[];
3072
- detail?: string | undefined;
3073
- } | {
3074
- kind: "agent_output";
3075
- summary: string;
3076
- agentId: string;
3077
- sessionId: string;
3078
- evidence: {
3079
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3080
- label: string;
3081
- id: string;
3082
- capture: "at_action" | "historical_lookup" | "fixture";
3083
- locator?: string | undefined;
3084
- }[];
3085
- outputId: string;
3086
- } | {
3087
- kind: "belief_observed";
3088
- agentId: string;
3089
- statement: string;
3090
- sessionId: string;
3091
- evidence: {
3092
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3093
- label: string;
3094
- id: string;
3095
- capture: "at_action" | "historical_lookup" | "fixture";
3096
- locator?: string | undefined;
3097
- }[];
3098
- beliefId: string;
3099
- decisionId: string;
3100
- confidence?: number | undefined;
3101
- } | {
3102
- kind: "conflict_detected";
3103
- summary: string;
3104
- evidence: {
3105
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3106
- label: string;
3107
- id: string;
3108
- capture: "at_action" | "historical_lookup" | "fixture";
3109
- locator?: string | undefined;
3110
- }[];
3111
- conflictId: string;
3112
- decisionIds: string[];
3113
- agentIds: string[];
3114
- } | {
3115
- kind: "test_result";
3116
- summary: string;
3117
- status: "error" | "failed" | "passed";
3118
- command: string;
3119
- evidence: {
3120
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3121
- label: string;
3122
- id: string;
3123
- capture: "at_action" | "historical_lookup" | "fixture";
3124
- locator?: string | undefined;
3125
- }[];
3126
- decisionId: string;
3127
- testId: string;
3128
- durationMs?: number | undefined;
3129
- correctionId?: string | undefined;
3130
- } | {
3131
- kind: "correction_proposed";
3132
- statement: string;
3133
- rationale: string;
3134
- evidence: {
3135
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3136
- label: string;
3137
- id: string;
3138
- capture: "at_action" | "historical_lookup" | "fixture";
3139
- locator?: string | undefined;
3140
- }[];
3141
- conflictId: string;
3142
- correctionId: string;
3143
- proposedDecisionId: string;
3144
- supersedesDecisionIds: string[];
3145
- proposedBy: string;
3146
- } | {
3147
- kind: "correction_approved";
3148
- evidence: {
3149
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3150
- label: string;
3151
- id: string;
3152
- capture: "at_action" | "historical_lookup" | "fixture";
3153
- locator?: string | undefined;
3154
- }[];
3155
- correctionId: string;
3156
- approvedBy: {
3157
- kind: "agent" | "human";
3158
- label: string;
3159
- id: string;
3160
- };
3161
- note?: string | undefined;
3162
- } | {
3163
- kind: "decision_superseded";
3164
- evidence: {
3165
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3166
- label: string;
3167
- id: string;
3168
- capture: "at_action" | "historical_lookup" | "fixture";
3169
- locator?: string | undefined;
3170
- }[];
3171
- decisionId: string;
3172
- correctionId: string;
3173
- replacementDecisionId: string;
3174
- } | {
3175
- kind: "recall_observed";
3176
- agentId: string;
3177
- query: string;
3178
- sessionId: string;
3179
- evidence: {
3180
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3181
- label: string;
3182
- id: string;
3183
- capture: "at_action" | "historical_lookup" | "fixture";
3184
- locator?: string | undefined;
3185
- }[];
3186
- decisionId: string;
3187
- recallReceiptId: string;
3188
- capturedAtAction: boolean;
3189
- } | {
3190
- kind: "propagation_verified";
3191
- agentId: string;
3192
- sessionId: string;
3193
- evidence: {
3194
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3195
- label: string;
3196
- id: string;
3197
- capture: "at_action" | "historical_lookup" | "fixture";
3198
- locator?: string | undefined;
3199
- }[];
3200
- decisionId: string;
3201
- correctionId: string;
3202
- recallReceiptId: string;
3203
- staleDecisionAbsent: boolean;
3204
- } | {
3205
- kind: "mission_completed";
3206
- summary: string;
3207
- outcome: "failed" | "inconclusive" | "recovered";
3208
- evidence: {
3209
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3210
- label: string;
3211
- id: string;
3212
- capture: "at_action" | "historical_lookup" | "fixture";
3213
- locator?: string | undefined;
3214
- }[];
3215
- }, {
3216
- kind: "mission_started";
3217
- title: string;
3218
- objective: string;
3219
- runMode: "replay" | "fixture" | "live";
3220
- evidence?: {
3221
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3222
- label: string;
3223
- id: string;
3224
- capture: "at_action" | "historical_lookup" | "fixture";
3225
- locator?: string | undefined;
3226
- }[] | undefined;
3227
- } | {
3228
- kind: "agent_status";
3229
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3230
- label: string;
3231
- role: string;
3232
- agentId: string;
3233
- sessionId: string;
3234
- detail?: string | undefined;
3235
- evidence?: {
3236
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3237
- label: string;
3238
- id: string;
3239
- capture: "at_action" | "historical_lookup" | "fixture";
3240
- locator?: string | undefined;
3241
- }[] | undefined;
3242
- } | {
3243
- kind: "agent_output";
3244
- summary: string;
3245
- agentId: string;
3246
- sessionId: string;
3247
- outputId: string;
3248
- evidence?: {
3249
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3250
- label: string;
3251
- id: string;
3252
- capture: "at_action" | "historical_lookup" | "fixture";
3253
- locator?: string | undefined;
3254
- }[] | undefined;
3255
- } | {
3256
- kind: "belief_observed";
3257
- agentId: string;
3258
- statement: string;
3259
- sessionId: string;
3260
- beliefId: string;
3261
- decisionId: string;
3262
- confidence?: number | undefined;
3263
- evidence?: {
3264
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3265
- label: string;
3266
- id: string;
3267
- capture: "at_action" | "historical_lookup" | "fixture";
3268
- locator?: string | undefined;
3269
- }[] | undefined;
3270
- } | {
3271
- kind: "conflict_detected";
3272
- summary: string;
3273
- conflictId: string;
3274
- decisionIds: string[];
3275
- agentIds: string[];
3276
- evidence?: {
3277
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3278
- label: string;
3279
- id: string;
3280
- capture: "at_action" | "historical_lookup" | "fixture";
3281
- locator?: string | undefined;
3282
- }[] | undefined;
3283
- } | {
3284
- kind: "test_result";
3285
- summary: string;
3286
- status: "error" | "failed" | "passed";
3287
- command: string;
3288
- decisionId: string;
3289
- testId: string;
3290
- durationMs?: number | undefined;
3291
- evidence?: {
3292
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3293
- label: string;
3294
- id: string;
3295
- capture: "at_action" | "historical_lookup" | "fixture";
3296
- locator?: string | undefined;
3297
- }[] | undefined;
3298
- correctionId?: string | undefined;
3299
- } | {
3300
- kind: "correction_proposed";
3301
- statement: string;
3302
- rationale: string;
3303
- conflictId: string;
3304
- correctionId: string;
3305
- proposedDecisionId: string;
3306
- supersedesDecisionIds: string[];
3307
- proposedBy: string;
3308
- evidence?: {
3309
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3310
- label: string;
3311
- id: string;
3312
- capture: "at_action" | "historical_lookup" | "fixture";
3313
- locator?: string | undefined;
3314
- }[] | undefined;
3315
- } | {
3316
- kind: "correction_approved";
3317
- correctionId: string;
3318
- approvedBy: {
3319
- kind: "agent" | "human";
3320
- label: string;
3321
- id: string;
3322
- };
3323
- note?: string | undefined;
3324
- evidence?: {
3325
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3326
- label: string;
3327
- id: string;
3328
- capture: "at_action" | "historical_lookup" | "fixture";
3329
- locator?: string | undefined;
3330
- }[] | undefined;
3331
- } | {
3332
- kind: "decision_superseded";
3333
- decisionId: string;
3334
- correctionId: string;
3335
- replacementDecisionId: string;
3336
- evidence?: {
3337
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3338
- label: string;
3339
- id: string;
3340
- capture: "at_action" | "historical_lookup" | "fixture";
3341
- locator?: string | undefined;
3342
- }[] | undefined;
3343
- } | {
3344
- kind: "recall_observed";
3345
- agentId: string;
3346
- query: string;
3347
- sessionId: string;
3348
- decisionId: string;
3349
- recallReceiptId: string;
3350
- capturedAtAction: boolean;
3351
- evidence?: {
3352
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3353
- label: string;
3354
- id: string;
3355
- capture: "at_action" | "historical_lookup" | "fixture";
3356
- locator?: string | undefined;
3357
- }[] | undefined;
3358
- } | {
3359
- kind: "propagation_verified";
3360
- agentId: string;
3361
- sessionId: string;
3362
- decisionId: string;
3363
- correctionId: string;
3364
- recallReceiptId: string;
3365
- staleDecisionAbsent: boolean;
3366
- evidence?: {
3367
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3368
- label: string;
3369
- id: string;
3370
- capture: "at_action" | "historical_lookup" | "fixture";
3371
- locator?: string | undefined;
3372
- }[] | undefined;
3373
- } | {
3374
- kind: "mission_completed";
3375
- summary: string;
3376
- outcome: "failed" | "inconclusive" | "recovered";
3377
- evidence?: {
3378
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3379
- label: string;
3380
- id: string;
3381
- capture: "at_action" | "historical_lookup" | "fixture";
3382
- locator?: string | undefined;
3383
- }[] | undefined;
3384
- }>;
3385
- }, "strict", z.ZodTypeAny, {
3386
- recordedAt: string;
3387
- schemaVersion: "1";
3388
- payload: {
3389
- kind: "mission_started";
3390
- title: string;
3391
- evidence: {
3392
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3393
- label: string;
3394
- id: string;
3395
- capture: "at_action" | "historical_lookup" | "fixture";
3396
- locator?: string | undefined;
3397
- }[];
3398
- objective: string;
3399
- runMode: "replay" | "fixture" | "live";
3400
- } | {
3401
- kind: "agent_status";
3402
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3403
- label: string;
3404
- role: string;
3405
- agentId: string;
3406
- sessionId: string;
3407
- evidence: {
3408
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3409
- label: string;
3410
- id: string;
3411
- capture: "at_action" | "historical_lookup" | "fixture";
3412
- locator?: string | undefined;
3413
- }[];
3414
- detail?: string | undefined;
3415
- } | {
3416
- kind: "agent_output";
3417
- summary: string;
3418
- agentId: string;
3419
- sessionId: string;
3420
- evidence: {
3421
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3422
- label: string;
3423
- id: string;
3424
- capture: "at_action" | "historical_lookup" | "fixture";
3425
- locator?: string | undefined;
3426
- }[];
3427
- outputId: string;
3428
- } | {
3429
- kind: "belief_observed";
3430
- agentId: string;
3431
- statement: string;
3432
- sessionId: string;
3433
- evidence: {
3434
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3435
- label: string;
3436
- id: string;
3437
- capture: "at_action" | "historical_lookup" | "fixture";
3438
- locator?: string | undefined;
3439
- }[];
3440
- beliefId: string;
3441
- decisionId: string;
3442
- confidence?: number | undefined;
3443
- } | {
3444
- kind: "conflict_detected";
3445
- summary: string;
3446
- evidence: {
3447
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3448
- label: string;
3449
- id: string;
3450
- capture: "at_action" | "historical_lookup" | "fixture";
3451
- locator?: string | undefined;
3452
- }[];
3453
- conflictId: string;
3454
- decisionIds: string[];
3455
- agentIds: string[];
3456
- } | {
3457
- kind: "test_result";
3458
- summary: string;
3459
- status: "error" | "failed" | "passed";
3460
- command: string;
3461
- evidence: {
3462
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3463
- label: string;
3464
- id: string;
3465
- capture: "at_action" | "historical_lookup" | "fixture";
3466
- locator?: string | undefined;
3467
- }[];
3468
- decisionId: string;
3469
- testId: string;
3470
- durationMs?: number | undefined;
3471
- correctionId?: string | undefined;
3472
- } | {
3473
- kind: "correction_proposed";
3474
- statement: string;
3475
- rationale: string;
3476
- evidence: {
3477
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3478
- label: string;
3479
- id: string;
3480
- capture: "at_action" | "historical_lookup" | "fixture";
3481
- locator?: string | undefined;
3482
- }[];
3483
- conflictId: string;
3484
- correctionId: string;
3485
- proposedDecisionId: string;
3486
- supersedesDecisionIds: string[];
3487
- proposedBy: string;
3488
- } | {
3489
- kind: "correction_approved";
3490
- evidence: {
3491
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3492
- label: string;
3493
- id: string;
3494
- capture: "at_action" | "historical_lookup" | "fixture";
3495
- locator?: string | undefined;
3496
- }[];
3497
- correctionId: string;
3498
- approvedBy: {
3499
- kind: "agent" | "human";
3500
- label: string;
3501
- id: string;
3502
- };
3503
- note?: string | undefined;
3504
- } | {
3505
- kind: "decision_superseded";
3506
- evidence: {
3507
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3508
- label: string;
3509
- id: string;
3510
- capture: "at_action" | "historical_lookup" | "fixture";
3511
- locator?: string | undefined;
3512
- }[];
3513
- decisionId: string;
3514
- correctionId: string;
3515
- replacementDecisionId: string;
3516
- } | {
3517
- kind: "recall_observed";
3518
- agentId: string;
3519
- query: string;
3520
- sessionId: string;
3521
- evidence: {
3522
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3523
- label: string;
3524
- id: string;
3525
- capture: "at_action" | "historical_lookup" | "fixture";
3526
- locator?: string | undefined;
3527
- }[];
3528
- decisionId: string;
3529
- recallReceiptId: string;
3530
- capturedAtAction: boolean;
3531
- } | {
3532
- kind: "propagation_verified";
3533
- agentId: string;
3534
- sessionId: string;
3535
- evidence: {
3536
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3537
- label: string;
3538
- id: string;
3539
- capture: "at_action" | "historical_lookup" | "fixture";
3540
- locator?: string | undefined;
3541
- }[];
3542
- decisionId: string;
3543
- correctionId: string;
3544
- recallReceiptId: string;
3545
- staleDecisionAbsent: boolean;
3546
- } | {
3547
- kind: "mission_completed";
3548
- summary: string;
3549
- outcome: "failed" | "inconclusive" | "recovered";
3550
- evidence: {
3551
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3552
- label: string;
3553
- id: string;
3554
- capture: "at_action" | "historical_lookup" | "fixture";
3555
- locator?: string | undefined;
3556
- }[];
3557
- };
3558
- namespace: string;
3559
- eventId: string;
3560
- occurredAt: string;
3561
- missionId: string;
3562
- idempotencyKey?: string | undefined;
3563
- authenticatedPrincipal?: string | undefined;
3564
- }, {
3565
- recordedAt: string;
3566
- schemaVersion: "1";
3567
- payload: {
3568
- kind: "mission_started";
3569
- title: string;
3570
- objective: string;
3571
- runMode: "replay" | "fixture" | "live";
3572
- evidence?: {
3573
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3574
- label: string;
3575
- id: string;
3576
- capture: "at_action" | "historical_lookup" | "fixture";
3577
- locator?: string | undefined;
3578
- }[] | undefined;
3579
- } | {
3580
- kind: "agent_status";
3581
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3582
- label: string;
3583
- role: string;
3584
- agentId: string;
3585
- sessionId: string;
3586
- detail?: string | undefined;
3587
- evidence?: {
3588
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3589
- label: string;
3590
- id: string;
3591
- capture: "at_action" | "historical_lookup" | "fixture";
3592
- locator?: string | undefined;
3593
- }[] | undefined;
3594
- } | {
3595
- kind: "agent_output";
3596
- summary: string;
3597
- agentId: string;
3598
- sessionId: string;
3599
- outputId: string;
3600
- evidence?: {
3601
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3602
- label: string;
3603
- id: string;
3604
- capture: "at_action" | "historical_lookup" | "fixture";
3605
- locator?: string | undefined;
3606
- }[] | undefined;
3607
- } | {
3608
- kind: "belief_observed";
3609
- agentId: string;
3610
- statement: string;
3611
- sessionId: string;
3612
- beliefId: string;
3613
- decisionId: string;
3614
- confidence?: number | undefined;
3615
- evidence?: {
3616
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3617
- label: string;
3618
- id: string;
3619
- capture: "at_action" | "historical_lookup" | "fixture";
3620
- locator?: string | undefined;
3621
- }[] | undefined;
3622
- } | {
3623
- kind: "conflict_detected";
3624
- summary: string;
3625
- conflictId: string;
3626
- decisionIds: string[];
3627
- agentIds: string[];
3628
- evidence?: {
3629
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3630
- label: string;
3631
- id: string;
3632
- capture: "at_action" | "historical_lookup" | "fixture";
3633
- locator?: string | undefined;
3634
- }[] | undefined;
3635
- } | {
3636
- kind: "test_result";
3637
- summary: string;
3638
- status: "error" | "failed" | "passed";
3639
- command: string;
3640
- decisionId: string;
3641
- testId: string;
3642
- durationMs?: number | undefined;
3643
- evidence?: {
3644
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3645
- label: string;
3646
- id: string;
3647
- capture: "at_action" | "historical_lookup" | "fixture";
3648
- locator?: string | undefined;
3649
- }[] | undefined;
3650
- correctionId?: string | undefined;
3651
- } | {
3652
- kind: "correction_proposed";
3653
- statement: string;
3654
- rationale: string;
3655
- conflictId: string;
3656
- correctionId: string;
3657
- proposedDecisionId: string;
3658
- supersedesDecisionIds: string[];
3659
- proposedBy: string;
3660
- evidence?: {
3661
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3662
- label: string;
3663
- id: string;
3664
- capture: "at_action" | "historical_lookup" | "fixture";
3665
- locator?: string | undefined;
3666
- }[] | undefined;
3667
- } | {
3668
- kind: "correction_approved";
3669
- correctionId: string;
3670
- approvedBy: {
3671
- kind: "agent" | "human";
3672
- label: string;
3673
- id: string;
3674
- };
3675
- note?: string | undefined;
3676
- evidence?: {
3677
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3678
- label: string;
3679
- id: string;
3680
- capture: "at_action" | "historical_lookup" | "fixture";
3681
- locator?: string | undefined;
3682
- }[] | undefined;
3683
- } | {
3684
- kind: "decision_superseded";
3685
- decisionId: string;
3686
- correctionId: string;
3687
- replacementDecisionId: string;
3688
- evidence?: {
3689
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3690
- label: string;
3691
- id: string;
3692
- capture: "at_action" | "historical_lookup" | "fixture";
3693
- locator?: string | undefined;
3694
- }[] | undefined;
3695
- } | {
3696
- kind: "recall_observed";
3697
- agentId: string;
3698
- query: string;
3699
- sessionId: string;
3700
- decisionId: string;
3701
- recallReceiptId: string;
3702
- capturedAtAction: boolean;
3703
- evidence?: {
3704
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3705
- label: string;
3706
- id: string;
3707
- capture: "at_action" | "historical_lookup" | "fixture";
3708
- locator?: string | undefined;
3709
- }[] | undefined;
3710
- } | {
3711
- kind: "propagation_verified";
3712
- agentId: string;
3713
- sessionId: string;
3714
- decisionId: string;
3715
- correctionId: string;
3716
- recallReceiptId: string;
3717
- staleDecisionAbsent: boolean;
3718
- evidence?: {
3719
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3720
- label: string;
3721
- id: string;
3722
- capture: "at_action" | "historical_lookup" | "fixture";
3723
- locator?: string | undefined;
3724
- }[] | undefined;
3725
- } | {
3726
- kind: "mission_completed";
3727
- summary: string;
3728
- outcome: "failed" | "inconclusive" | "recovered";
3729
- evidence?: {
3730
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3731
- label: string;
3732
- id: string;
3733
- capture: "at_action" | "historical_lookup" | "fixture";
3734
- locator?: string | undefined;
3735
- }[] | undefined;
3736
- };
3737
- namespace: string;
3738
- eventId: string;
3739
- occurredAt: string;
3740
- missionId: string;
3741
- idempotencyKey?: string | undefined;
3742
- authenticatedPrincipal?: string | undefined;
3743
- }>;
1080
+ capture: z.ZodEnum<{
1081
+ at_action: "at_action";
1082
+ historical_lookup: "historical_lookup";
1083
+ fixture: "fixture";
1084
+ }>;
1085
+ }, z.core.$strict>>>;
1086
+ }, z.core.$strict>], "kind">;
1087
+ }, z.core.$strict>;
3744
1088
  export type RelayMissionEvent = z.infer<typeof RelayMissionEventSchema>;
3745
- export declare const RelayMissionReadOptionsSchema: z.ZodEffects<z.ZodObject<{
3746
- since: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3747
- until: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1089
+ export declare const RelayMissionReadOptionsSchema: z.ZodObject<{
1090
+ since: z.ZodOptional<z.ZodString>;
1091
+ until: z.ZodOptional<z.ZodString>;
3748
1092
  limit: z.ZodDefault<z.ZodNumber>;
3749
- }, "strict", z.ZodTypeAny, {
3750
- limit: number;
3751
- until?: string | undefined;
3752
- since?: string | undefined;
3753
- }, {
3754
- limit?: number | undefined;
3755
- until?: string | undefined;
3756
- since?: string | undefined;
3757
- }>, {
3758
- limit: number;
3759
- until?: string | undefined;
3760
- since?: string | undefined;
3761
- }, {
3762
- limit?: number | undefined;
3763
- until?: string | undefined;
3764
- since?: string | undefined;
3765
- }>;
1093
+ }, z.core.$strict>;
3766
1094
  export type RelayMissionReadOptions = z.input<typeof RelayMissionReadOptionsSchema>;
3767
1095
  export type RelayMissionStatus = "not_started" | "active" | "awaiting_approval" | "correcting" | "verified" | "completed" | "failed";
3768
1096
  export interface RelayAgentOutputSnapshot {