@remnic/core 9.24.0 → 9.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/access-admin-ops-surface.js +21 -21
  2. package/dist/access-authorization-probe.d.ts +122 -0
  3. package/dist/access-authorization-probe.js +154 -0
  4. package/dist/access-authorization-probe.js.map +1 -0
  5. package/dist/access-boundary.js +21 -21
  6. package/dist/access-cli.js +68 -67
  7. package/dist/access-cli.js.map +1 -1
  8. package/dist/access-http.js +28 -27
  9. package/dist/access-identity-continuity-surface.js +21 -21
  10. package/dist/access-lcm-surface.js +21 -21
  11. package/dist/access-mcp.js +26 -26
  12. package/dist/access-namespace-preflight.js +21 -21
  13. package/dist/access-observe-write-surface.js +21 -21
  14. package/dist/access-operations-batch.js +23 -23
  15. package/dist/access-operations.d.ts +3 -3
  16. package/dist/access-operations.js +24 -24
  17. package/dist/access-recall-concurrency.js +21 -21
  18. package/dist/access-recall-response.js +21 -21
  19. package/dist/access-recall-surface.js +21 -21
  20. package/dist/access-schema.d.ts +76 -76
  21. package/dist/access-service.js +21 -21
  22. package/dist/access-token-capabilities.d.ts +15 -1
  23. package/dist/access-token-capabilities.js +3 -1
  24. package/dist/active-recall.js +5 -5
  25. package/dist/auto-sync-5OE5QOZB.js +1 -1
  26. package/dist/briefing.js +7 -7
  27. package/dist/causal-consolidation.js +8 -8
  28. package/dist/{chunk-34RC5RT7.js → chunk-2SA56WMI.js} +4 -4
  29. package/dist/{chunk-NM7SKDZM.js → chunk-3CDMIR3C.js} +2 -2
  30. package/dist/{chunk-V4MAO2Y4.js → chunk-3I35RLJW.js} +17 -5
  31. package/dist/chunk-3I35RLJW.js.map +1 -0
  32. package/dist/{chunk-XBRPEGXF.js → chunk-3UOSVTFR.js} +5 -5
  33. package/dist/{chunk-7IECFM4E.js → chunk-5ZGWA4AG.js} +10 -10
  34. package/dist/{chunk-WNSQOXWS.js → chunk-6LRTGCRV.js} +6 -6
  35. package/dist/{chunk-2NAFR36N.js → chunk-AGR7MGUX.js} +2 -2
  36. package/dist/{chunk-ZLNOX7B2.js → chunk-AL4TZWI3.js} +2 -2
  37. package/dist/{chunk-ECG64R7B.js → chunk-AT6DNUCM.js} +2 -2
  38. package/dist/{chunk-WO7KBATL.js → chunk-CKMO4RDY.js} +2 -2
  39. package/dist/{chunk-DFTCJVXI.js → chunk-DPYYSG6F.js} +8 -8
  40. package/dist/{chunk-MX4TUDMB.js → chunk-FIGDB2HR.js} +2 -2
  41. package/dist/{chunk-NHPROHJD.js → chunk-GNFZFJBJ.js} +2 -2
  42. package/dist/{chunk-TBJV4BZE.js → chunk-IE4HB6O5.js} +10 -10
  43. package/dist/chunk-JMDZDT24.js +38 -0
  44. package/dist/chunk-JMDZDT24.js.map +1 -0
  45. package/dist/{chunk-TGHUJC64.js → chunk-LARPWF3S.js} +3 -3
  46. package/dist/{chunk-M6ZJR6HU.js → chunk-LFHMUWA2.js} +67 -67
  47. package/dist/{chunk-L7DTBRTI.js → chunk-LXKJNUND.js} +2 -2
  48. package/dist/{chunk-BHKDCWGH.js → chunk-MNLZGCM2.js} +7 -7
  49. package/dist/{chunk-3FLPLDIL.js → chunk-MPDX5QMH.js} +2 -2
  50. package/dist/{chunk-7AMFUATK.js → chunk-MZWSOLMT.js} +14 -1
  51. package/dist/chunk-MZWSOLMT.js.map +1 -0
  52. package/dist/{chunk-SGMORUEU.js → chunk-NMGO2HAZ.js} +2 -2
  53. package/dist/{chunk-XHYCPA5C.js → chunk-NVYCTASB.js} +2 -2
  54. package/dist/{chunk-ONHRRJZM.js → chunk-QJAQNXWI.js} +6 -6
  55. package/dist/{chunk-GCKIDUHE.js → chunk-RROMWDDC.js} +22 -33
  56. package/dist/{chunk-GCKIDUHE.js.map → chunk-RROMWDDC.js.map} +1 -1
  57. package/dist/{chunk-4KAIGQVU.js → chunk-SZN6XVFC.js} +2 -2
  58. package/dist/{chunk-RENY3AIW.js → chunk-TG2DJFH7.js} +51 -51
  59. package/dist/{chunk-Z3B4V4YI.js → chunk-THHPDPMS.js} +5 -5
  60. package/dist/{chunk-WMR5WPZU.js → chunk-U37RGPJT.js} +2 -2
  61. package/dist/{chunk-FHH6R3QI.js → chunk-UGH6VPPO.js} +2 -2
  62. package/dist/{chunk-EFYACT2X.js → chunk-VY6SDKWZ.js} +2 -2
  63. package/dist/{chunk-NQ7E27HN.js → chunk-W4ZDTHWZ.js} +3 -3
  64. package/dist/{chunk-2WSX7U2N.js → chunk-X6ROIHFE.js} +2 -2
  65. package/dist/{chunk-AVPXXV6J.js → chunk-XKGPIWGI.js} +4 -4
  66. package/dist/{chunk-7CP7SO32.js → chunk-XTAAG4SQ.js} +11 -11
  67. package/dist/{chunk-A5N6ISRK.js → chunk-ZN4UZWMT.js} +2 -2
  68. package/dist/cli.js +48 -47
  69. package/dist/compounding/engine.js +7 -7
  70. package/dist/config.js +2 -2
  71. package/dist/connectors/codex-materialize-runner.js +7 -7
  72. package/dist/connectors/index.js +10 -10
  73. package/dist/consolidation-provenance-check.js +2 -2
  74. package/dist/contradiction/index.js +1 -1
  75. package/dist/corpus-watermark.js +16 -16
  76. package/dist/entity-retrieval.js +7 -7
  77. package/dist/explicit-capture.js +1 -1
  78. package/dist/extraction.js +1 -1
  79. package/dist/index.d.ts +388 -388
  80. package/dist/index.js +113 -112
  81. package/dist/lcm/index.js +3 -3
  82. package/dist/maintenance/memory-governance.js +7 -7
  83. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -7
  84. package/dist/maintenance/rebuild-memory-projection.js +8 -8
  85. package/dist/namespaces/migrate.js +14 -14
  86. package/dist/namespaces/search.js +6 -6
  87. package/dist/namespaces/storage.js +7 -7
  88. package/dist/offline-sync-impression-drain.js +4 -4
  89. package/dist/operator-doctor-corpus.js +17 -17
  90. package/dist/operator-toolkit.js +22 -22
  91. package/dist/orchestration/maintenance.js +13 -13
  92. package/dist/orchestrator.js +68 -67
  93. package/dist/qmd.js +4 -4
  94. package/dist/resolution-3K27T4VO.js +1 -1
  95. package/dist/resume-bundles.js +2 -2
  96. package/dist/salvage-envelope.js +1 -1
  97. package/dist/schemas.d.ts +76 -76
  98. package/dist/search/factory.js +5 -5
  99. package/dist/search/index.js +9 -9
  100. package/dist/semantic-consolidation.js +12 -12
  101. package/dist/semantic-rule-promotion.js +7 -7
  102. package/dist/semantic-rule-verifier.js +7 -7
  103. package/dist/shared-context/manager.d.ts +8 -8
  104. package/dist/storage.js +6 -6
  105. package/dist/tokens.js +2 -2
  106. package/dist/transfer/types.d.ts +66 -66
  107. package/dist/verified-recall.js +7 -7
  108. package/dist/write-envelope.js +1 -1
  109. package/package.json +2 -2
  110. package/src/access-authorization-probe.ts +43 -0
  111. package/src/access-boundary.ts +2 -31
  112. package/src/access-http.test.ts +76 -0
  113. package/src/access-http.ts +11 -0
  114. package/src/access-surface-catalog.test.ts +4 -3
  115. package/src/access-token-capabilities.ts +31 -0
  116. package/dist/chunk-7AMFUATK.js.map +0 -1
  117. package/dist/chunk-V4MAO2Y4.js.map +0 -1
  118. /package/dist/{chunk-34RC5RT7.js.map → chunk-2SA56WMI.js.map} +0 -0
  119. /package/dist/{chunk-NM7SKDZM.js.map → chunk-3CDMIR3C.js.map} +0 -0
  120. /package/dist/{chunk-XBRPEGXF.js.map → chunk-3UOSVTFR.js.map} +0 -0
  121. /package/dist/{chunk-7IECFM4E.js.map → chunk-5ZGWA4AG.js.map} +0 -0
  122. /package/dist/{chunk-WNSQOXWS.js.map → chunk-6LRTGCRV.js.map} +0 -0
  123. /package/dist/{chunk-2NAFR36N.js.map → chunk-AGR7MGUX.js.map} +0 -0
  124. /package/dist/{chunk-ZLNOX7B2.js.map → chunk-AL4TZWI3.js.map} +0 -0
  125. /package/dist/{chunk-ECG64R7B.js.map → chunk-AT6DNUCM.js.map} +0 -0
  126. /package/dist/{chunk-WO7KBATL.js.map → chunk-CKMO4RDY.js.map} +0 -0
  127. /package/dist/{chunk-DFTCJVXI.js.map → chunk-DPYYSG6F.js.map} +0 -0
  128. /package/dist/{chunk-MX4TUDMB.js.map → chunk-FIGDB2HR.js.map} +0 -0
  129. /package/dist/{chunk-NHPROHJD.js.map → chunk-GNFZFJBJ.js.map} +0 -0
  130. /package/dist/{chunk-TBJV4BZE.js.map → chunk-IE4HB6O5.js.map} +0 -0
  131. /package/dist/{chunk-TGHUJC64.js.map → chunk-LARPWF3S.js.map} +0 -0
  132. /package/dist/{chunk-M6ZJR6HU.js.map → chunk-LFHMUWA2.js.map} +0 -0
  133. /package/dist/{chunk-L7DTBRTI.js.map → chunk-LXKJNUND.js.map} +0 -0
  134. /package/dist/{chunk-BHKDCWGH.js.map → chunk-MNLZGCM2.js.map} +0 -0
  135. /package/dist/{chunk-3FLPLDIL.js.map → chunk-MPDX5QMH.js.map} +0 -0
  136. /package/dist/{chunk-SGMORUEU.js.map → chunk-NMGO2HAZ.js.map} +0 -0
  137. /package/dist/{chunk-XHYCPA5C.js.map → chunk-NVYCTASB.js.map} +0 -0
  138. /package/dist/{chunk-ONHRRJZM.js.map → chunk-QJAQNXWI.js.map} +0 -0
  139. /package/dist/{chunk-4KAIGQVU.js.map → chunk-SZN6XVFC.js.map} +0 -0
  140. /package/dist/{chunk-RENY3AIW.js.map → chunk-TG2DJFH7.js.map} +0 -0
  141. /package/dist/{chunk-Z3B4V4YI.js.map → chunk-THHPDPMS.js.map} +0 -0
  142. /package/dist/{chunk-WMR5WPZU.js.map → chunk-U37RGPJT.js.map} +0 -0
  143. /package/dist/{chunk-FHH6R3QI.js.map → chunk-UGH6VPPO.js.map} +0 -0
  144. /package/dist/{chunk-EFYACT2X.js.map → chunk-VY6SDKWZ.js.map} +0 -0
  145. /package/dist/{chunk-NQ7E27HN.js.map → chunk-W4ZDTHWZ.js.map} +0 -0
  146. /package/dist/{chunk-2WSX7U2N.js.map → chunk-X6ROIHFE.js.map} +0 -0
  147. /package/dist/{chunk-AVPXXV6J.js.map → chunk-XKGPIWGI.js.map} +0 -0
  148. /package/dist/{chunk-7CP7SO32.js.map → chunk-XTAAG4SQ.js.map} +0 -0
  149. /package/dist/{chunk-A5N6ISRK.js.map → chunk-ZN4UZWMT.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -871,15 +871,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
871
871
  locator: z.ZodOptional<z.ZodString>;
872
872
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
873
873
  }, "strict", z.ZodTypeAny, {
874
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
874
875
  id: string;
875
876
  label: string;
876
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
877
877
  capture: "at_action" | "historical_lookup" | "fixture";
878
878
  locator?: string | undefined;
879
879
  }, {
880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
880
881
  id: string;
881
882
  label: string;
882
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
883
883
  capture: "at_action" | "historical_lookup" | "fixture";
884
884
  locator?: string | undefined;
885
885
  }>;
@@ -896,15 +896,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
896
896
  locator: z.ZodOptional<z.ZodString>;
897
897
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
898
898
  }, "strict", z.ZodTypeAny, {
899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
899
900
  id: string;
900
901
  label: string;
901
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
902
902
  capture: "at_action" | "historical_lookup" | "fixture";
903
903
  locator?: string | undefined;
904
904
  }, {
905
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
905
906
  id: string;
906
907
  label: string;
907
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
908
908
  capture: "at_action" | "historical_lookup" | "fixture";
909
909
  locator?: string | undefined;
910
910
  }>, "many">>;
@@ -912,9 +912,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
912
912
  kind: "mission_started";
913
913
  title: string;
914
914
  evidence: {
915
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
915
916
  id: string;
916
917
  label: string;
917
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
918
918
  capture: "at_action" | "historical_lookup" | "fixture";
919
919
  locator?: string | undefined;
920
920
  }[];
@@ -926,9 +926,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
926
926
  objective: string;
927
927
  runMode: "replay" | "fixture" | "live";
928
928
  evidence?: {
929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
929
930
  id: string;
930
931
  label: string;
931
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
932
932
  capture: "at_action" | "historical_lookup" | "fixture";
933
933
  locator?: string | undefined;
934
934
  }[] | undefined;
@@ -944,15 +944,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
944
944
  locator: z.ZodOptional<z.ZodString>;
945
945
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
946
946
  }, "strict", z.ZodTypeAny, {
947
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
947
948
  id: string;
948
949
  label: string;
949
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
950
950
  capture: "at_action" | "historical_lookup" | "fixture";
951
951
  locator?: string | undefined;
952
952
  }, {
953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
953
954
  id: string;
954
955
  label: string;
955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
956
956
  capture: "at_action" | "historical_lookup" | "fixture";
957
957
  locator?: string | undefined;
958
958
  }>, "many">>;
@@ -960,32 +960,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
960
960
  sessionId: z.ZodString;
961
961
  kind: z.ZodLiteral<"agent_status">;
962
962
  }, "strict", z.ZodTypeAny, {
963
- label: string;
964
- status: "failed" | "blocked" | "working" | "complete" | "idle";
965
963
  kind: "agent_status";
964
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
966
965
  role: string;
966
+ label: string;
967
967
  agentId: string;
968
968
  sessionId: string;
969
969
  evidence: {
970
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
970
971
  id: string;
971
972
  label: string;
972
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
973
973
  capture: "at_action" | "historical_lookup" | "fixture";
974
974
  locator?: string | undefined;
975
975
  }[];
976
976
  detail?: string | undefined;
977
977
  }, {
978
- label: string;
979
- status: "failed" | "blocked" | "working" | "complete" | "idle";
980
978
  kind: "agent_status";
979
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
981
980
  role: string;
981
+ label: string;
982
982
  agentId: string;
983
983
  sessionId: string;
984
984
  detail?: string | undefined;
985
985
  evidence?: {
986
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
986
987
  id: string;
987
988
  label: string;
988
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
989
989
  capture: "at_action" | "historical_lookup" | "fixture";
990
990
  locator?: string | undefined;
991
991
  }[] | undefined;
@@ -999,15 +999,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
999
999
  locator: z.ZodOptional<z.ZodString>;
1000
1000
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1001
1001
  }, "strict", z.ZodTypeAny, {
1002
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1002
1003
  id: string;
1003
1004
  label: string;
1004
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1005
1005
  capture: "at_action" | "historical_lookup" | "fixture";
1006
1006
  locator?: string | undefined;
1007
1007
  }, {
1008
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1008
1009
  id: string;
1009
1010
  label: string;
1010
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1011
1011
  capture: "at_action" | "historical_lookup" | "fixture";
1012
1012
  locator?: string | undefined;
1013
1013
  }>, "many">>;
@@ -1015,28 +1015,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1015
1015
  sessionId: z.ZodString;
1016
1016
  kind: z.ZodLiteral<"agent_output">;
1017
1017
  }, "strict", z.ZodTypeAny, {
1018
- summary: string;
1019
1018
  kind: "agent_output";
1019
+ summary: string;
1020
1020
  agentId: string;
1021
1021
  sessionId: string;
1022
1022
  evidence: {
1023
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1023
1024
  id: string;
1024
1025
  label: string;
1025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1026
1026
  capture: "at_action" | "historical_lookup" | "fixture";
1027
1027
  locator?: string | undefined;
1028
1028
  }[];
1029
1029
  outputId: string;
1030
1030
  }, {
1031
- summary: string;
1032
1031
  kind: "agent_output";
1032
+ summary: string;
1033
1033
  agentId: string;
1034
1034
  sessionId: string;
1035
1035
  outputId: string;
1036
1036
  evidence?: {
1037
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1037
1038
  id: string;
1038
1039
  label: string;
1039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1040
1040
  capture: "at_action" | "historical_lookup" | "fixture";
1041
1041
  locator?: string | undefined;
1042
1042
  }[] | undefined;
@@ -1052,15 +1052,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1052
1052
  locator: z.ZodOptional<z.ZodString>;
1053
1053
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1054
1054
  }, "strict", z.ZodTypeAny, {
1055
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1055
1056
  id: string;
1056
1057
  label: string;
1057
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1058
1058
  capture: "at_action" | "historical_lookup" | "fixture";
1059
1059
  locator?: string | undefined;
1060
1060
  }, {
1061
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1061
1062
  id: string;
1062
1063
  label: string;
1063
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1064
1064
  capture: "at_action" | "historical_lookup" | "fixture";
1065
1065
  locator?: string | undefined;
1066
1066
  }>, "many">>;
@@ -1073,9 +1073,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1073
1073
  statement: string;
1074
1074
  sessionId: string;
1075
1075
  evidence: {
1076
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1076
1077
  id: string;
1077
1078
  label: string;
1078
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1079
1079
  capture: "at_action" | "historical_lookup" | "fixture";
1080
1080
  locator?: string | undefined;
1081
1081
  }[];
@@ -1091,9 +1091,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1091
1091
  decisionId: string;
1092
1092
  confidence?: number | undefined;
1093
1093
  evidence?: {
1094
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1094
1095
  id: string;
1095
1096
  label: string;
1096
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1097
1097
  capture: "at_action" | "historical_lookup" | "fixture";
1098
1098
  locator?: string | undefined;
1099
1099
  }[] | undefined;
@@ -1110,25 +1110,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1110
1110
  locator: z.ZodOptional<z.ZodString>;
1111
1111
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1112
1112
  }, "strict", z.ZodTypeAny, {
1113
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1113
1114
  id: string;
1114
1115
  label: string;
1115
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1116
1116
  capture: "at_action" | "historical_lookup" | "fixture";
1117
1117
  locator?: string | undefined;
1118
1118
  }, {
1119
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1119
1120
  id: string;
1120
1121
  label: string;
1121
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1122
1122
  capture: "at_action" | "historical_lookup" | "fixture";
1123
1123
  locator?: string | undefined;
1124
1124
  }>, "many">>;
1125
1125
  }, "strict", z.ZodTypeAny, {
1126
- summary: string;
1127
1126
  kind: "conflict_detected";
1127
+ summary: string;
1128
1128
  evidence: {
1129
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1129
1130
  id: string;
1130
1131
  label: string;
1131
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1132
1132
  capture: "at_action" | "historical_lookup" | "fixture";
1133
1133
  locator?: string | undefined;
1134
1134
  }[];
@@ -1136,15 +1136,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1136
1136
  decisionIds: string[];
1137
1137
  agentIds: string[];
1138
1138
  }, {
1139
- summary: string;
1140
1139
  kind: "conflict_detected";
1140
+ summary: string;
1141
1141
  conflictId: string;
1142
1142
  decisionIds: string[];
1143
1143
  agentIds: string[];
1144
1144
  evidence?: {
1145
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1145
1146
  id: string;
1146
1147
  label: string;
1147
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1148
1148
  capture: "at_action" | "historical_lookup" | "fixture";
1149
1149
  locator?: string | undefined;
1150
1150
  }[] | undefined;
@@ -1164,27 +1164,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1164
1164
  locator: z.ZodOptional<z.ZodString>;
1165
1165
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1166
1166
  }, "strict", z.ZodTypeAny, {
1167
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1167
1168
  id: string;
1168
1169
  label: string;
1169
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1170
1170
  capture: "at_action" | "historical_lookup" | "fixture";
1171
1171
  locator?: string | undefined;
1172
1172
  }, {
1173
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1173
1174
  id: string;
1174
1175
  label: string;
1175
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1176
1176
  capture: "at_action" | "historical_lookup" | "fixture";
1177
1177
  locator?: string | undefined;
1178
1178
  }>, "many">>;
1179
1179
  }, "strict", z.ZodTypeAny, {
1180
+ kind: "test_result";
1180
1181
  summary: string;
1181
1182
  status: "error" | "failed" | "passed";
1182
- kind: "test_result";
1183
1183
  command: string;
1184
1184
  evidence: {
1185
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1185
1186
  id: string;
1186
1187
  label: string;
1187
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1188
1188
  capture: "at_action" | "historical_lookup" | "fixture";
1189
1189
  locator?: string | undefined;
1190
1190
  }[];
@@ -1193,17 +1193,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1193
1193
  durationMs?: number | undefined;
1194
1194
  correctionId?: string | undefined;
1195
1195
  }, {
1196
+ kind: "test_result";
1196
1197
  summary: string;
1197
1198
  status: "error" | "failed" | "passed";
1198
- kind: "test_result";
1199
1199
  command: string;
1200
1200
  decisionId: string;
1201
1201
  testId: string;
1202
1202
  durationMs?: number | undefined;
1203
1203
  evidence?: {
1204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1204
1205
  id: string;
1205
1206
  label: string;
1206
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1207
1207
  capture: "at_action" | "historical_lookup" | "fixture";
1208
1208
  locator?: string | undefined;
1209
1209
  }[] | undefined;
@@ -1224,15 +1224,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1224
1224
  locator: z.ZodOptional<z.ZodString>;
1225
1225
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1226
1226
  }, "strict", z.ZodTypeAny, {
1227
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1227
1228
  id: string;
1228
1229
  label: string;
1229
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1230
1230
  capture: "at_action" | "historical_lookup" | "fixture";
1231
1231
  locator?: string | undefined;
1232
1232
  }, {
1233
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1233
1234
  id: string;
1234
1235
  label: string;
1235
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1236
1236
  capture: "at_action" | "historical_lookup" | "fixture";
1237
1237
  locator?: string | undefined;
1238
1238
  }>, "many">>;
@@ -1241,9 +1241,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1241
1241
  rationale: string;
1242
1242
  statement: string;
1243
1243
  evidence: {
1244
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1244
1245
  id: string;
1245
1246
  label: string;
1246
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1247
1247
  capture: "at_action" | "historical_lookup" | "fixture";
1248
1248
  locator?: string | undefined;
1249
1249
  }[];
@@ -1262,9 +1262,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1262
1262
  supersedesDecisionIds: string[];
1263
1263
  proposedBy: string;
1264
1264
  evidence?: {
1265
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1265
1266
  id: string;
1266
1267
  label: string;
1267
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1268
1268
  capture: "at_action" | "historical_lookup" | "fixture";
1269
1269
  locator?: string | undefined;
1270
1270
  }[] | undefined;
@@ -1276,13 +1276,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1276
1276
  id: z.ZodString;
1277
1277
  label: z.ZodString;
1278
1278
  }, "strict", z.ZodTypeAny, {
1279
+ kind: "agent" | "human";
1279
1280
  id: string;
1280
1281
  label: string;
1281
- kind: "agent" | "human";
1282
1282
  }, {
1283
+ kind: "agent" | "human";
1283
1284
  id: string;
1284
1285
  label: string;
1285
- kind: "agent" | "human";
1286
1286
  }>;
1287
1287
  note: z.ZodOptional<z.ZodString>;
1288
1288
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1292,47 +1292,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1292
1292
  locator: z.ZodOptional<z.ZodString>;
1293
1293
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1294
1294
  }, "strict", z.ZodTypeAny, {
1295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1295
1296
  id: string;
1296
1297
  label: string;
1297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1298
1298
  capture: "at_action" | "historical_lookup" | "fixture";
1299
1299
  locator?: string | undefined;
1300
1300
  }, {
1301
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1301
1302
  id: string;
1302
1303
  label: string;
1303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1304
1304
  capture: "at_action" | "historical_lookup" | "fixture";
1305
1305
  locator?: string | undefined;
1306
1306
  }>, "many">>;
1307
1307
  }, "strict", z.ZodTypeAny, {
1308
1308
  kind: "correction_approved";
1309
1309
  evidence: {
1310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1310
1311
  id: string;
1311
1312
  label: string;
1312
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1313
1313
  capture: "at_action" | "historical_lookup" | "fixture";
1314
1314
  locator?: string | undefined;
1315
1315
  }[];
1316
1316
  correctionId: string;
1317
1317
  approvedBy: {
1318
+ kind: "agent" | "human";
1318
1319
  id: string;
1319
1320
  label: string;
1320
- kind: "agent" | "human";
1321
1321
  };
1322
1322
  note?: string | undefined;
1323
1323
  }, {
1324
1324
  kind: "correction_approved";
1325
1325
  correctionId: string;
1326
1326
  approvedBy: {
1327
+ kind: "agent" | "human";
1327
1328
  id: string;
1328
1329
  label: string;
1329
- kind: "agent" | "human";
1330
1330
  };
1331
1331
  note?: string | undefined;
1332
1332
  evidence?: {
1333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1333
1334
  id: string;
1334
1335
  label: string;
1335
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1336
1336
  capture: "at_action" | "historical_lookup" | "fixture";
1337
1337
  locator?: string | undefined;
1338
1338
  }[] | undefined;
@@ -1348,24 +1348,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1348
1348
  locator: z.ZodOptional<z.ZodString>;
1349
1349
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1350
1350
  }, "strict", z.ZodTypeAny, {
1351
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1351
1352
  id: string;
1352
1353
  label: string;
1353
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1354
1354
  capture: "at_action" | "historical_lookup" | "fixture";
1355
1355
  locator?: string | undefined;
1356
1356
  }, {
1357
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1357
1358
  id: string;
1358
1359
  label: string;
1359
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1360
1360
  capture: "at_action" | "historical_lookup" | "fixture";
1361
1361
  locator?: string | undefined;
1362
1362
  }>, "many">>;
1363
1363
  }, "strict", z.ZodTypeAny, {
1364
1364
  kind: "decision_superseded";
1365
1365
  evidence: {
1366
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1366
1367
  id: string;
1367
1368
  label: string;
1368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1369
1369
  capture: "at_action" | "historical_lookup" | "fixture";
1370
1370
  locator?: string | undefined;
1371
1371
  }[];
@@ -1378,9 +1378,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1378
1378
  correctionId: string;
1379
1379
  replacementDecisionId: string;
1380
1380
  evidence?: {
1381
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1381
1382
  id: string;
1382
1383
  label: string;
1383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1384
1384
  capture: "at_action" | "historical_lookup" | "fixture";
1385
1385
  locator?: string | undefined;
1386
1386
  }[] | undefined;
@@ -1396,15 +1396,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1396
1396
  locator: z.ZodOptional<z.ZodString>;
1397
1397
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1398
1398
  }, "strict", z.ZodTypeAny, {
1399
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1399
1400
  id: string;
1400
1401
  label: string;
1401
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1402
1402
  capture: "at_action" | "historical_lookup" | "fixture";
1403
1403
  locator?: string | undefined;
1404
1404
  }, {
1405
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1405
1406
  id: string;
1406
1407
  label: string;
1407
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1408
1408
  capture: "at_action" | "historical_lookup" | "fixture";
1409
1409
  locator?: string | undefined;
1410
1410
  }>, "many">>;
@@ -1417,9 +1417,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1417
1417
  agentId: string;
1418
1418
  sessionId: string;
1419
1419
  evidence: {
1420
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1420
1421
  id: string;
1421
1422
  label: string;
1422
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1423
1423
  capture: "at_action" | "historical_lookup" | "fixture";
1424
1424
  locator?: string | undefined;
1425
1425
  }[];
@@ -1435,9 +1435,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1435
1435
  recallReceiptId: string;
1436
1436
  capturedAtAction: boolean;
1437
1437
  evidence?: {
1438
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1438
1439
  id: string;
1439
1440
  label: string;
1440
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1441
1441
  capture: "at_action" | "historical_lookup" | "fixture";
1442
1442
  locator?: string | undefined;
1443
1443
  }[] | undefined;
@@ -1453,15 +1453,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1453
1453
  locator: z.ZodOptional<z.ZodString>;
1454
1454
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1455
1455
  }, "strict", z.ZodTypeAny, {
1456
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
1457
  id: string;
1457
1458
  label: string;
1458
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1459
1459
  capture: "at_action" | "historical_lookup" | "fixture";
1460
1460
  locator?: string | undefined;
1461
1461
  }, {
1462
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1462
1463
  id: string;
1463
1464
  label: string;
1464
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1465
1465
  capture: "at_action" | "historical_lookup" | "fixture";
1466
1466
  locator?: string | undefined;
1467
1467
  }>, "many">>;
@@ -1473,9 +1473,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1473
1473
  agentId: string;
1474
1474
  sessionId: string;
1475
1475
  evidence: {
1476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1476
1477
  id: string;
1477
1478
  label: string;
1478
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1479
1479
  capture: "at_action" | "historical_lookup" | "fixture";
1480
1480
  locator?: string | undefined;
1481
1481
  }[];
@@ -1492,9 +1492,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1492
1492
  recallReceiptId: string;
1493
1493
  staleDecisionAbsent: boolean;
1494
1494
  evidence?: {
1495
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1495
1496
  id: string;
1496
1497
  label: string;
1497
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1498
1498
  capture: "at_action" | "historical_lookup" | "fixture";
1499
1499
  locator?: string | undefined;
1500
1500
  }[] | undefined;
@@ -1509,37 +1509,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1509
1509
  locator: z.ZodOptional<z.ZodString>;
1510
1510
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1511
1511
  }, "strict", z.ZodTypeAny, {
1512
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
1513
  id: string;
1513
1514
  label: string;
1514
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1515
1515
  capture: "at_action" | "historical_lookup" | "fixture";
1516
1516
  locator?: string | undefined;
1517
1517
  }, {
1518
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1518
1519
  id: string;
1519
1520
  label: string;
1520
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1521
1521
  capture: "at_action" | "historical_lookup" | "fixture";
1522
1522
  locator?: string | undefined;
1523
1523
  }>, "many">>;
1524
1524
  }, "strict", z.ZodTypeAny, {
1525
- summary: string;
1526
1525
  kind: "mission_completed";
1526
+ summary: string;
1527
1527
  outcome: "failed" | "recovered" | "inconclusive";
1528
1528
  evidence: {
1529
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1529
1530
  id: string;
1530
1531
  label: string;
1531
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1532
1532
  capture: "at_action" | "historical_lookup" | "fixture";
1533
1533
  locator?: string | undefined;
1534
1534
  }[];
1535
1535
  }, {
1536
- summary: string;
1537
1536
  kind: "mission_completed";
1537
+ summary: string;
1538
1538
  outcome: "failed" | "recovered" | "inconclusive";
1539
1539
  evidence?: {
1540
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1540
1541
  id: string;
1541
1542
  label: string;
1542
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1543
1543
  capture: "at_action" | "historical_lookup" | "fixture";
1544
1544
  locator?: string | undefined;
1545
1545
  }[] | undefined;
@@ -1547,38 +1547,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1547
1547
  kind: "mission_started";
1548
1548
  title: string;
1549
1549
  evidence: {
1550
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1550
1551
  id: string;
1551
1552
  label: string;
1552
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1553
1553
  capture: "at_action" | "historical_lookup" | "fixture";
1554
1554
  locator?: string | undefined;
1555
1555
  }[];
1556
1556
  objective: string;
1557
1557
  runMode: "replay" | "fixture" | "live";
1558
1558
  } | {
1559
- label: string;
1560
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1561
1559
  kind: "agent_status";
1560
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1562
1561
  role: string;
1562
+ label: string;
1563
1563
  agentId: string;
1564
1564
  sessionId: string;
1565
1565
  evidence: {
1566
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1566
1567
  id: string;
1567
1568
  label: string;
1568
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1569
1569
  capture: "at_action" | "historical_lookup" | "fixture";
1570
1570
  locator?: string | undefined;
1571
1571
  }[];
1572
1572
  detail?: string | undefined;
1573
1573
  } | {
1574
- summary: string;
1575
1574
  kind: "agent_output";
1575
+ summary: string;
1576
1576
  agentId: string;
1577
1577
  sessionId: string;
1578
1578
  evidence: {
1579
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1579
1580
  id: string;
1580
1581
  label: string;
1581
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1582
1582
  capture: "at_action" | "historical_lookup" | "fixture";
1583
1583
  locator?: string | undefined;
1584
1584
  }[];
@@ -1589,9 +1589,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1589
1589
  statement: string;
1590
1590
  sessionId: string;
1591
1591
  evidence: {
1592
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1592
1593
  id: string;
1593
1594
  label: string;
1594
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
1595
  capture: "at_action" | "historical_lookup" | "fixture";
1596
1596
  locator?: string | undefined;
1597
1597
  }[];
@@ -1599,12 +1599,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1599
1599
  decisionId: string;
1600
1600
  confidence?: number | undefined;
1601
1601
  } | {
1602
- summary: string;
1603
1602
  kind: "conflict_detected";
1603
+ summary: string;
1604
1604
  evidence: {
1605
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1605
1606
  id: string;
1606
1607
  label: string;
1607
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1608
1608
  capture: "at_action" | "historical_lookup" | "fixture";
1609
1609
  locator?: string | undefined;
1610
1610
  }[];
@@ -1612,14 +1612,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1612
1612
  decisionIds: string[];
1613
1613
  agentIds: string[];
1614
1614
  } | {
1615
+ kind: "test_result";
1615
1616
  summary: string;
1616
1617
  status: "error" | "failed" | "passed";
1617
- kind: "test_result";
1618
1618
  command: string;
1619
1619
  evidence: {
1620
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1620
1621
  id: string;
1621
1622
  label: string;
1622
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1623
1623
  capture: "at_action" | "historical_lookup" | "fixture";
1624
1624
  locator?: string | undefined;
1625
1625
  }[];
@@ -1632,9 +1632,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1632
1632
  rationale: string;
1633
1633
  statement: string;
1634
1634
  evidence: {
1635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1635
1636
  id: string;
1636
1637
  label: string;
1637
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1638
1638
  capture: "at_action" | "historical_lookup" | "fixture";
1639
1639
  locator?: string | undefined;
1640
1640
  }[];
@@ -1646,25 +1646,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1646
1646
  } | {
1647
1647
  kind: "correction_approved";
1648
1648
  evidence: {
1649
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1649
1650
  id: string;
1650
1651
  label: string;
1651
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1652
1652
  capture: "at_action" | "historical_lookup" | "fixture";
1653
1653
  locator?: string | undefined;
1654
1654
  }[];
1655
1655
  correctionId: string;
1656
1656
  approvedBy: {
1657
+ kind: "agent" | "human";
1657
1658
  id: string;
1658
1659
  label: string;
1659
- kind: "agent" | "human";
1660
1660
  };
1661
1661
  note?: string | undefined;
1662
1662
  } | {
1663
1663
  kind: "decision_superseded";
1664
1664
  evidence: {
1665
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1665
1666
  id: string;
1666
1667
  label: string;
1667
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1668
1668
  capture: "at_action" | "historical_lookup" | "fixture";
1669
1669
  locator?: string | undefined;
1670
1670
  }[];
@@ -1677,9 +1677,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1677
1677
  agentId: string;
1678
1678
  sessionId: string;
1679
1679
  evidence: {
1680
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1680
1681
  id: string;
1681
1682
  label: string;
1682
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1683
1683
  capture: "at_action" | "historical_lookup" | "fixture";
1684
1684
  locator?: string | undefined;
1685
1685
  }[];
@@ -1691,9 +1691,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1691
1691
  agentId: string;
1692
1692
  sessionId: string;
1693
1693
  evidence: {
1694
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1694
1695
  id: string;
1695
1696
  label: string;
1696
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1697
1697
  capture: "at_action" | "historical_lookup" | "fixture";
1698
1698
  locator?: string | undefined;
1699
1699
  }[];
@@ -1702,13 +1702,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1702
1702
  recallReceiptId: string;
1703
1703
  staleDecisionAbsent: boolean;
1704
1704
  } | {
1705
- summary: string;
1706
1705
  kind: "mission_completed";
1706
+ summary: string;
1707
1707
  outcome: "failed" | "recovered" | "inconclusive";
1708
1708
  evidence: {
1709
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1709
1710
  id: string;
1710
1711
  label: string;
1711
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1712
1712
  capture: "at_action" | "historical_lookup" | "fixture";
1713
1713
  locator?: string | undefined;
1714
1714
  }[];
@@ -1718,37 +1718,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1718
1718
  objective: string;
1719
1719
  runMode: "replay" | "fixture" | "live";
1720
1720
  evidence?: {
1721
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1721
1722
  id: string;
1722
1723
  label: string;
1723
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1724
1724
  capture: "at_action" | "historical_lookup" | "fixture";
1725
1725
  locator?: string | undefined;
1726
1726
  }[] | undefined;
1727
1727
  } | {
1728
- label: string;
1729
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1730
1728
  kind: "agent_status";
1729
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1731
1730
  role: string;
1731
+ label: string;
1732
1732
  agentId: string;
1733
1733
  sessionId: string;
1734
1734
  detail?: string | undefined;
1735
1735
  evidence?: {
1736
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1736
1737
  id: string;
1737
1738
  label: string;
1738
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1739
1739
  capture: "at_action" | "historical_lookup" | "fixture";
1740
1740
  locator?: string | undefined;
1741
1741
  }[] | undefined;
1742
1742
  } | {
1743
- summary: string;
1744
1743
  kind: "agent_output";
1744
+ summary: string;
1745
1745
  agentId: string;
1746
1746
  sessionId: string;
1747
1747
  outputId: string;
1748
1748
  evidence?: {
1749
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1749
1750
  id: string;
1750
1751
  label: string;
1751
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1752
1752
  capture: "at_action" | "historical_lookup" | "fixture";
1753
1753
  locator?: string | undefined;
1754
1754
  }[] | undefined;
@@ -1761,37 +1761,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1761
1761
  decisionId: string;
1762
1762
  confidence?: number | undefined;
1763
1763
  evidence?: {
1764
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1764
1765
  id: string;
1765
1766
  label: string;
1766
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1767
1767
  capture: "at_action" | "historical_lookup" | "fixture";
1768
1768
  locator?: string | undefined;
1769
1769
  }[] | undefined;
1770
1770
  } | {
1771
- summary: string;
1772
1771
  kind: "conflict_detected";
1772
+ summary: string;
1773
1773
  conflictId: string;
1774
1774
  decisionIds: string[];
1775
1775
  agentIds: string[];
1776
1776
  evidence?: {
1777
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1777
1778
  id: string;
1778
1779
  label: string;
1779
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1780
1780
  capture: "at_action" | "historical_lookup" | "fixture";
1781
1781
  locator?: string | undefined;
1782
1782
  }[] | undefined;
1783
1783
  } | {
1784
+ kind: "test_result";
1784
1785
  summary: string;
1785
1786
  status: "error" | "failed" | "passed";
1786
- kind: "test_result";
1787
1787
  command: string;
1788
1788
  decisionId: string;
1789
1789
  testId: string;
1790
1790
  durationMs?: number | undefined;
1791
1791
  evidence?: {
1792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1792
1793
  id: string;
1793
1794
  label: string;
1794
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1795
1795
  capture: "at_action" | "historical_lookup" | "fixture";
1796
1796
  locator?: string | undefined;
1797
1797
  }[] | undefined;
@@ -1806,9 +1806,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1806
1806
  supersedesDecisionIds: string[];
1807
1807
  proposedBy: string;
1808
1808
  evidence?: {
1809
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1809
1810
  id: string;
1810
1811
  label: string;
1811
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1812
1812
  capture: "at_action" | "historical_lookup" | "fixture";
1813
1813
  locator?: string | undefined;
1814
1814
  }[] | undefined;
@@ -1816,15 +1816,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1816
1816
  kind: "correction_approved";
1817
1817
  correctionId: string;
1818
1818
  approvedBy: {
1819
+ kind: "agent" | "human";
1819
1820
  id: string;
1820
1821
  label: string;
1821
- kind: "agent" | "human";
1822
1822
  };
1823
1823
  note?: string | undefined;
1824
1824
  evidence?: {
1825
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1825
1826
  id: string;
1826
1827
  label: string;
1827
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1828
1828
  capture: "at_action" | "historical_lookup" | "fixture";
1829
1829
  locator?: string | undefined;
1830
1830
  }[] | undefined;
@@ -1834,9 +1834,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1834
1834
  correctionId: string;
1835
1835
  replacementDecisionId: string;
1836
1836
  evidence?: {
1837
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1837
1838
  id: string;
1838
1839
  label: string;
1839
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1840
1840
  capture: "at_action" | "historical_lookup" | "fixture";
1841
1841
  locator?: string | undefined;
1842
1842
  }[] | undefined;
@@ -1849,9 +1849,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1849
1849
  recallReceiptId: string;
1850
1850
  capturedAtAction: boolean;
1851
1851
  evidence?: {
1852
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1852
1853
  id: string;
1853
1854
  label: string;
1854
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1855
1855
  capture: "at_action" | "historical_lookup" | "fixture";
1856
1856
  locator?: string | undefined;
1857
1857
  }[] | undefined;
@@ -1864,20 +1864,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1864
1864
  recallReceiptId: string;
1865
1865
  staleDecisionAbsent: boolean;
1866
1866
  evidence?: {
1867
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1867
1868
  id: string;
1868
1869
  label: string;
1869
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1870
1870
  capture: "at_action" | "historical_lookup" | "fixture";
1871
1871
  locator?: string | undefined;
1872
1872
  }[] | undefined;
1873
1873
  } | {
1874
- summary: string;
1875
1874
  kind: "mission_completed";
1875
+ summary: string;
1876
1876
  outcome: "failed" | "recovered" | "inconclusive";
1877
1877
  evidence?: {
1878
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1878
1879
  id: string;
1879
1880
  label: string;
1880
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1881
1881
  capture: "at_action" | "historical_lookup" | "fixture";
1882
1882
  locator?: string | undefined;
1883
1883
  }[] | undefined;
@@ -1898,15 +1898,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1898
1898
  locator: z.ZodOptional<z.ZodString>;
1899
1899
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1900
1900
  }, "strict", z.ZodTypeAny, {
1901
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1901
1902
  id: string;
1902
1903
  label: string;
1903
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1904
1904
  capture: "at_action" | "historical_lookup" | "fixture";
1905
1905
  locator?: string | undefined;
1906
1906
  }, {
1907
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1907
1908
  id: string;
1908
1909
  label: string;
1909
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1910
1910
  capture: "at_action" | "historical_lookup" | "fixture";
1911
1911
  locator?: string | undefined;
1912
1912
  }>, "many">>;
@@ -1914,9 +1914,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1914
1914
  kind: "mission_started";
1915
1915
  title: string;
1916
1916
  evidence: {
1917
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1917
1918
  id: string;
1918
1919
  label: string;
1919
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1920
1920
  capture: "at_action" | "historical_lookup" | "fixture";
1921
1921
  locator?: string | undefined;
1922
1922
  }[];
@@ -1928,9 +1928,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1928
1928
  objective: string;
1929
1929
  runMode: "replay" | "fixture" | "live";
1930
1930
  evidence?: {
1931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1931
1932
  id: string;
1932
1933
  label: string;
1933
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1934
1934
  capture: "at_action" | "historical_lookup" | "fixture";
1935
1935
  locator?: string | undefined;
1936
1936
  }[] | undefined;
@@ -1946,15 +1946,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1946
1946
  locator: z.ZodOptional<z.ZodString>;
1947
1947
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1948
1948
  }, "strict", z.ZodTypeAny, {
1949
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1949
1950
  id: string;
1950
1951
  label: string;
1951
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1952
1952
  capture: "at_action" | "historical_lookup" | "fixture";
1953
1953
  locator?: string | undefined;
1954
1954
  }, {
1955
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1955
1956
  id: string;
1956
1957
  label: string;
1957
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1958
1958
  capture: "at_action" | "historical_lookup" | "fixture";
1959
1959
  locator?: string | undefined;
1960
1960
  }>, "many">>;
@@ -1962,32 +1962,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1962
1962
  sessionId: z.ZodString;
1963
1963
  kind: z.ZodLiteral<"agent_status">;
1964
1964
  }, "strict", z.ZodTypeAny, {
1965
- label: string;
1966
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1967
1965
  kind: "agent_status";
1966
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1968
1967
  role: string;
1968
+ label: string;
1969
1969
  agentId: string;
1970
1970
  sessionId: string;
1971
1971
  evidence: {
1972
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
1973
  id: string;
1973
1974
  label: string;
1974
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1975
1975
  capture: "at_action" | "historical_lookup" | "fixture";
1976
1976
  locator?: string | undefined;
1977
1977
  }[];
1978
1978
  detail?: string | undefined;
1979
1979
  }, {
1980
- label: string;
1981
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1982
1980
  kind: "agent_status";
1981
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1983
1982
  role: string;
1983
+ label: string;
1984
1984
  agentId: string;
1985
1985
  sessionId: string;
1986
1986
  detail?: string | undefined;
1987
1987
  evidence?: {
1988
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1988
1989
  id: string;
1989
1990
  label: string;
1990
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1991
1991
  capture: "at_action" | "historical_lookup" | "fixture";
1992
1992
  locator?: string | undefined;
1993
1993
  }[] | undefined;
@@ -2001,15 +2001,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2001
2001
  locator: z.ZodOptional<z.ZodString>;
2002
2002
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2003
2003
  }, "strict", z.ZodTypeAny, {
2004
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2004
2005
  id: string;
2005
2006
  label: string;
2006
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2007
2007
  capture: "at_action" | "historical_lookup" | "fixture";
2008
2008
  locator?: string | undefined;
2009
2009
  }, {
2010
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2010
2011
  id: string;
2011
2012
  label: string;
2012
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2013
2013
  capture: "at_action" | "historical_lookup" | "fixture";
2014
2014
  locator?: string | undefined;
2015
2015
  }>, "many">>;
@@ -2017,28 +2017,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2017
2017
  sessionId: z.ZodString;
2018
2018
  kind: z.ZodLiteral<"agent_output">;
2019
2019
  }, "strict", z.ZodTypeAny, {
2020
- summary: string;
2021
2020
  kind: "agent_output";
2021
+ summary: string;
2022
2022
  agentId: string;
2023
2023
  sessionId: string;
2024
2024
  evidence: {
2025
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2025
2026
  id: string;
2026
2027
  label: string;
2027
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2028
2028
  capture: "at_action" | "historical_lookup" | "fixture";
2029
2029
  locator?: string | undefined;
2030
2030
  }[];
2031
2031
  outputId: string;
2032
2032
  }, {
2033
- summary: string;
2034
2033
  kind: "agent_output";
2034
+ summary: string;
2035
2035
  agentId: string;
2036
2036
  sessionId: string;
2037
2037
  outputId: string;
2038
2038
  evidence?: {
2039
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2039
2040
  id: string;
2040
2041
  label: string;
2041
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2042
2042
  capture: "at_action" | "historical_lookup" | "fixture";
2043
2043
  locator?: string | undefined;
2044
2044
  }[] | undefined;
@@ -2054,15 +2054,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2054
2054
  locator: z.ZodOptional<z.ZodString>;
2055
2055
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2056
2056
  }, "strict", z.ZodTypeAny, {
2057
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
2058
  id: string;
2058
2059
  label: string;
2059
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2060
2060
  capture: "at_action" | "historical_lookup" | "fixture";
2061
2061
  locator?: string | undefined;
2062
2062
  }, {
2063
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2063
2064
  id: string;
2064
2065
  label: string;
2065
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2066
2066
  capture: "at_action" | "historical_lookup" | "fixture";
2067
2067
  locator?: string | undefined;
2068
2068
  }>, "many">>;
@@ -2075,9 +2075,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2075
2075
  statement: string;
2076
2076
  sessionId: string;
2077
2077
  evidence: {
2078
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2078
2079
  id: string;
2079
2080
  label: string;
2080
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2081
2081
  capture: "at_action" | "historical_lookup" | "fixture";
2082
2082
  locator?: string | undefined;
2083
2083
  }[];
@@ -2093,9 +2093,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2093
2093
  decisionId: string;
2094
2094
  confidence?: number | undefined;
2095
2095
  evidence?: {
2096
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2096
2097
  id: string;
2097
2098
  label: string;
2098
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2099
2099
  capture: "at_action" | "historical_lookup" | "fixture";
2100
2100
  locator?: string | undefined;
2101
2101
  }[] | undefined;
@@ -2112,25 +2112,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2112
2112
  locator: z.ZodOptional<z.ZodString>;
2113
2113
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2114
2114
  }, "strict", z.ZodTypeAny, {
2115
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2115
2116
  id: string;
2116
2117
  label: string;
2117
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2118
2118
  capture: "at_action" | "historical_lookup" | "fixture";
2119
2119
  locator?: string | undefined;
2120
2120
  }, {
2121
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2121
2122
  id: string;
2122
2123
  label: string;
2123
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2124
2124
  capture: "at_action" | "historical_lookup" | "fixture";
2125
2125
  locator?: string | undefined;
2126
2126
  }>, "many">>;
2127
2127
  }, "strict", z.ZodTypeAny, {
2128
- summary: string;
2129
2128
  kind: "conflict_detected";
2129
+ summary: string;
2130
2130
  evidence: {
2131
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2131
2132
  id: string;
2132
2133
  label: string;
2133
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2134
2134
  capture: "at_action" | "historical_lookup" | "fixture";
2135
2135
  locator?: string | undefined;
2136
2136
  }[];
@@ -2138,15 +2138,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2138
2138
  decisionIds: string[];
2139
2139
  agentIds: string[];
2140
2140
  }, {
2141
- summary: string;
2142
2141
  kind: "conflict_detected";
2142
+ summary: string;
2143
2143
  conflictId: string;
2144
2144
  decisionIds: string[];
2145
2145
  agentIds: string[];
2146
2146
  evidence?: {
2147
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2147
2148
  id: string;
2148
2149
  label: string;
2149
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2150
2150
  capture: "at_action" | "historical_lookup" | "fixture";
2151
2151
  locator?: string | undefined;
2152
2152
  }[] | undefined;
@@ -2166,27 +2166,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2166
2166
  locator: z.ZodOptional<z.ZodString>;
2167
2167
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2168
2168
  }, "strict", z.ZodTypeAny, {
2169
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2169
2170
  id: string;
2170
2171
  label: string;
2171
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2172
2172
  capture: "at_action" | "historical_lookup" | "fixture";
2173
2173
  locator?: string | undefined;
2174
2174
  }, {
2175
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2175
2176
  id: string;
2176
2177
  label: string;
2177
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2178
2178
  capture: "at_action" | "historical_lookup" | "fixture";
2179
2179
  locator?: string | undefined;
2180
2180
  }>, "many">>;
2181
2181
  }, "strict", z.ZodTypeAny, {
2182
+ kind: "test_result";
2182
2183
  summary: string;
2183
2184
  status: "error" | "failed" | "passed";
2184
- kind: "test_result";
2185
2185
  command: string;
2186
2186
  evidence: {
2187
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2187
2188
  id: string;
2188
2189
  label: string;
2189
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2190
2190
  capture: "at_action" | "historical_lookup" | "fixture";
2191
2191
  locator?: string | undefined;
2192
2192
  }[];
@@ -2195,17 +2195,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2195
2195
  durationMs?: number | undefined;
2196
2196
  correctionId?: string | undefined;
2197
2197
  }, {
2198
+ kind: "test_result";
2198
2199
  summary: string;
2199
2200
  status: "error" | "failed" | "passed";
2200
- kind: "test_result";
2201
2201
  command: string;
2202
2202
  decisionId: string;
2203
2203
  testId: string;
2204
2204
  durationMs?: number | undefined;
2205
2205
  evidence?: {
2206
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2206
2207
  id: string;
2207
2208
  label: string;
2208
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2209
2209
  capture: "at_action" | "historical_lookup" | "fixture";
2210
2210
  locator?: string | undefined;
2211
2211
  }[] | undefined;
@@ -2226,15 +2226,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2226
2226
  locator: z.ZodOptional<z.ZodString>;
2227
2227
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2228
2228
  }, "strict", z.ZodTypeAny, {
2229
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
2230
  id: string;
2230
2231
  label: string;
2231
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2232
2232
  capture: "at_action" | "historical_lookup" | "fixture";
2233
2233
  locator?: string | undefined;
2234
2234
  }, {
2235
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2235
2236
  id: string;
2236
2237
  label: string;
2237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2238
2238
  capture: "at_action" | "historical_lookup" | "fixture";
2239
2239
  locator?: string | undefined;
2240
2240
  }>, "many">>;
@@ -2243,9 +2243,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2243
2243
  rationale: string;
2244
2244
  statement: string;
2245
2245
  evidence: {
2246
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2246
2247
  id: string;
2247
2248
  label: string;
2248
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2249
2249
  capture: "at_action" | "historical_lookup" | "fixture";
2250
2250
  locator?: string | undefined;
2251
2251
  }[];
@@ -2264,9 +2264,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2264
2264
  supersedesDecisionIds: string[];
2265
2265
  proposedBy: string;
2266
2266
  evidence?: {
2267
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2267
2268
  id: string;
2268
2269
  label: string;
2269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2270
2270
  capture: "at_action" | "historical_lookup" | "fixture";
2271
2271
  locator?: string | undefined;
2272
2272
  }[] | undefined;
@@ -2278,13 +2278,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2278
2278
  id: z.ZodString;
2279
2279
  label: z.ZodString;
2280
2280
  }, "strict", z.ZodTypeAny, {
2281
+ kind: "agent" | "human";
2281
2282
  id: string;
2282
2283
  label: string;
2283
- kind: "agent" | "human";
2284
2284
  }, {
2285
+ kind: "agent" | "human";
2285
2286
  id: string;
2286
2287
  label: string;
2287
- kind: "agent" | "human";
2288
2288
  }>;
2289
2289
  note: z.ZodOptional<z.ZodString>;
2290
2290
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2294,47 +2294,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2294
2294
  locator: z.ZodOptional<z.ZodString>;
2295
2295
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2296
2296
  }, "strict", z.ZodTypeAny, {
2297
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2297
2298
  id: string;
2298
2299
  label: string;
2299
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2300
2300
  capture: "at_action" | "historical_lookup" | "fixture";
2301
2301
  locator?: string | undefined;
2302
2302
  }, {
2303
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2303
2304
  id: string;
2304
2305
  label: string;
2305
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2306
2306
  capture: "at_action" | "historical_lookup" | "fixture";
2307
2307
  locator?: string | undefined;
2308
2308
  }>, "many">>;
2309
2309
  }, "strict", z.ZodTypeAny, {
2310
2310
  kind: "correction_approved";
2311
2311
  evidence: {
2312
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2312
2313
  id: string;
2313
2314
  label: string;
2314
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2315
2315
  capture: "at_action" | "historical_lookup" | "fixture";
2316
2316
  locator?: string | undefined;
2317
2317
  }[];
2318
2318
  correctionId: string;
2319
2319
  approvedBy: {
2320
+ kind: "agent" | "human";
2320
2321
  id: string;
2321
2322
  label: string;
2322
- kind: "agent" | "human";
2323
2323
  };
2324
2324
  note?: string | undefined;
2325
2325
  }, {
2326
2326
  kind: "correction_approved";
2327
2327
  correctionId: string;
2328
2328
  approvedBy: {
2329
+ kind: "agent" | "human";
2329
2330
  id: string;
2330
2331
  label: string;
2331
- kind: "agent" | "human";
2332
2332
  };
2333
2333
  note?: string | undefined;
2334
2334
  evidence?: {
2335
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2335
2336
  id: string;
2336
2337
  label: string;
2337
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2338
2338
  capture: "at_action" | "historical_lookup" | "fixture";
2339
2339
  locator?: string | undefined;
2340
2340
  }[] | undefined;
@@ -2350,24 +2350,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2350
2350
  locator: z.ZodOptional<z.ZodString>;
2351
2351
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2352
2352
  }, "strict", z.ZodTypeAny, {
2353
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2353
2354
  id: string;
2354
2355
  label: string;
2355
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2356
2356
  capture: "at_action" | "historical_lookup" | "fixture";
2357
2357
  locator?: string | undefined;
2358
2358
  }, {
2359
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2359
2360
  id: string;
2360
2361
  label: string;
2361
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2362
2362
  capture: "at_action" | "historical_lookup" | "fixture";
2363
2363
  locator?: string | undefined;
2364
2364
  }>, "many">>;
2365
2365
  }, "strict", z.ZodTypeAny, {
2366
2366
  kind: "decision_superseded";
2367
2367
  evidence: {
2368
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2368
2369
  id: string;
2369
2370
  label: string;
2370
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2371
2371
  capture: "at_action" | "historical_lookup" | "fixture";
2372
2372
  locator?: string | undefined;
2373
2373
  }[];
@@ -2380,9 +2380,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2380
2380
  correctionId: string;
2381
2381
  replacementDecisionId: string;
2382
2382
  evidence?: {
2383
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2383
2384
  id: string;
2384
2385
  label: string;
2385
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2386
2386
  capture: "at_action" | "historical_lookup" | "fixture";
2387
2387
  locator?: string | undefined;
2388
2388
  }[] | undefined;
@@ -2398,15 +2398,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2398
2398
  locator: z.ZodOptional<z.ZodString>;
2399
2399
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2400
2400
  }, "strict", z.ZodTypeAny, {
2401
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2401
2402
  id: string;
2402
2403
  label: string;
2403
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2404
2404
  capture: "at_action" | "historical_lookup" | "fixture";
2405
2405
  locator?: string | undefined;
2406
2406
  }, {
2407
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2407
2408
  id: string;
2408
2409
  label: string;
2409
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2410
2410
  capture: "at_action" | "historical_lookup" | "fixture";
2411
2411
  locator?: string | undefined;
2412
2412
  }>, "many">>;
@@ -2419,9 +2419,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2419
2419
  agentId: string;
2420
2420
  sessionId: string;
2421
2421
  evidence: {
2422
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2422
2423
  id: string;
2423
2424
  label: string;
2424
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2425
2425
  capture: "at_action" | "historical_lookup" | "fixture";
2426
2426
  locator?: string | undefined;
2427
2427
  }[];
@@ -2437,9 +2437,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2437
2437
  recallReceiptId: string;
2438
2438
  capturedAtAction: boolean;
2439
2439
  evidence?: {
2440
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2440
2441
  id: string;
2441
2442
  label: string;
2442
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2443
2443
  capture: "at_action" | "historical_lookup" | "fixture";
2444
2444
  locator?: string | undefined;
2445
2445
  }[] | undefined;
@@ -2455,15 +2455,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2455
2455
  locator: z.ZodOptional<z.ZodString>;
2456
2456
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2457
2457
  }, "strict", z.ZodTypeAny, {
2458
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2458
2459
  id: string;
2459
2460
  label: string;
2460
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2461
2461
  capture: "at_action" | "historical_lookup" | "fixture";
2462
2462
  locator?: string | undefined;
2463
2463
  }, {
2464
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2464
2465
  id: string;
2465
2466
  label: string;
2466
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2467
2467
  capture: "at_action" | "historical_lookup" | "fixture";
2468
2468
  locator?: string | undefined;
2469
2469
  }>, "many">>;
@@ -2475,9 +2475,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2475
2475
  agentId: string;
2476
2476
  sessionId: string;
2477
2477
  evidence: {
2478
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2478
2479
  id: string;
2479
2480
  label: string;
2480
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2481
2481
  capture: "at_action" | "historical_lookup" | "fixture";
2482
2482
  locator?: string | undefined;
2483
2483
  }[];
@@ -2494,9 +2494,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2494
2494
  recallReceiptId: string;
2495
2495
  staleDecisionAbsent: boolean;
2496
2496
  evidence?: {
2497
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2497
2498
  id: string;
2498
2499
  label: string;
2499
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2500
2500
  capture: "at_action" | "historical_lookup" | "fixture";
2501
2501
  locator?: string | undefined;
2502
2502
  }[] | undefined;
@@ -2511,37 +2511,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2511
2511
  locator: z.ZodOptional<z.ZodString>;
2512
2512
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2513
2513
  }, "strict", z.ZodTypeAny, {
2514
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2514
2515
  id: string;
2515
2516
  label: string;
2516
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2517
2517
  capture: "at_action" | "historical_lookup" | "fixture";
2518
2518
  locator?: string | undefined;
2519
2519
  }, {
2520
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2520
2521
  id: string;
2521
2522
  label: string;
2522
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2523
2523
  capture: "at_action" | "historical_lookup" | "fixture";
2524
2524
  locator?: string | undefined;
2525
2525
  }>, "many">>;
2526
2526
  }, "strict", z.ZodTypeAny, {
2527
- summary: string;
2528
2527
  kind: "mission_completed";
2528
+ summary: string;
2529
2529
  outcome: "failed" | "recovered" | "inconclusive";
2530
2530
  evidence: {
2531
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2531
2532
  id: string;
2532
2533
  label: string;
2533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2534
2534
  capture: "at_action" | "historical_lookup" | "fixture";
2535
2535
  locator?: string | undefined;
2536
2536
  }[];
2537
2537
  }, {
2538
- summary: string;
2539
2538
  kind: "mission_completed";
2539
+ summary: string;
2540
2540
  outcome: "failed" | "recovered" | "inconclusive";
2541
2541
  evidence?: {
2542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2542
2543
  id: string;
2543
2544
  label: string;
2544
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2545
2545
  capture: "at_action" | "historical_lookup" | "fixture";
2546
2546
  locator?: string | undefined;
2547
2547
  }[] | undefined;
@@ -2549,38 +2549,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2549
2549
  kind: "mission_started";
2550
2550
  title: string;
2551
2551
  evidence: {
2552
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2552
2553
  id: string;
2553
2554
  label: string;
2554
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2555
2555
  capture: "at_action" | "historical_lookup" | "fixture";
2556
2556
  locator?: string | undefined;
2557
2557
  }[];
2558
2558
  objective: string;
2559
2559
  runMode: "replay" | "fixture" | "live";
2560
2560
  } | {
2561
- label: string;
2562
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2563
2561
  kind: "agent_status";
2562
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2564
2563
  role: string;
2564
+ label: string;
2565
2565
  agentId: string;
2566
2566
  sessionId: string;
2567
2567
  evidence: {
2568
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2568
2569
  id: string;
2569
2570
  label: string;
2570
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2571
2571
  capture: "at_action" | "historical_lookup" | "fixture";
2572
2572
  locator?: string | undefined;
2573
2573
  }[];
2574
2574
  detail?: string | undefined;
2575
2575
  } | {
2576
- summary: string;
2577
2576
  kind: "agent_output";
2577
+ summary: string;
2578
2578
  agentId: string;
2579
2579
  sessionId: string;
2580
2580
  evidence: {
2581
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2581
2582
  id: string;
2582
2583
  label: string;
2583
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2584
2584
  capture: "at_action" | "historical_lookup" | "fixture";
2585
2585
  locator?: string | undefined;
2586
2586
  }[];
@@ -2591,9 +2591,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2591
2591
  statement: string;
2592
2592
  sessionId: string;
2593
2593
  evidence: {
2594
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2594
2595
  id: string;
2595
2596
  label: string;
2596
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
2597
  capture: "at_action" | "historical_lookup" | "fixture";
2598
2598
  locator?: string | undefined;
2599
2599
  }[];
@@ -2601,12 +2601,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2601
2601
  decisionId: string;
2602
2602
  confidence?: number | undefined;
2603
2603
  } | {
2604
- summary: string;
2605
2604
  kind: "conflict_detected";
2605
+ summary: string;
2606
2606
  evidence: {
2607
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2607
2608
  id: string;
2608
2609
  label: string;
2609
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2610
2610
  capture: "at_action" | "historical_lookup" | "fixture";
2611
2611
  locator?: string | undefined;
2612
2612
  }[];
@@ -2614,14 +2614,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2614
2614
  decisionIds: string[];
2615
2615
  agentIds: string[];
2616
2616
  } | {
2617
+ kind: "test_result";
2617
2618
  summary: string;
2618
2619
  status: "error" | "failed" | "passed";
2619
- kind: "test_result";
2620
2620
  command: string;
2621
2621
  evidence: {
2622
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2622
2623
  id: string;
2623
2624
  label: string;
2624
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2625
2625
  capture: "at_action" | "historical_lookup" | "fixture";
2626
2626
  locator?: string | undefined;
2627
2627
  }[];
@@ -2634,9 +2634,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2634
2634
  rationale: string;
2635
2635
  statement: string;
2636
2636
  evidence: {
2637
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2637
2638
  id: string;
2638
2639
  label: string;
2639
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2640
2640
  capture: "at_action" | "historical_lookup" | "fixture";
2641
2641
  locator?: string | undefined;
2642
2642
  }[];
@@ -2648,25 +2648,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2648
2648
  } | {
2649
2649
  kind: "correction_approved";
2650
2650
  evidence: {
2651
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2651
2652
  id: string;
2652
2653
  label: string;
2653
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2654
2654
  capture: "at_action" | "historical_lookup" | "fixture";
2655
2655
  locator?: string | undefined;
2656
2656
  }[];
2657
2657
  correctionId: string;
2658
2658
  approvedBy: {
2659
+ kind: "agent" | "human";
2659
2660
  id: string;
2660
2661
  label: string;
2661
- kind: "agent" | "human";
2662
2662
  };
2663
2663
  note?: string | undefined;
2664
2664
  } | {
2665
2665
  kind: "decision_superseded";
2666
2666
  evidence: {
2667
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2667
2668
  id: string;
2668
2669
  label: string;
2669
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2670
2670
  capture: "at_action" | "historical_lookup" | "fixture";
2671
2671
  locator?: string | undefined;
2672
2672
  }[];
@@ -2679,9 +2679,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2679
2679
  agentId: string;
2680
2680
  sessionId: string;
2681
2681
  evidence: {
2682
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2682
2683
  id: string;
2683
2684
  label: string;
2684
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2685
2685
  capture: "at_action" | "historical_lookup" | "fixture";
2686
2686
  locator?: string | undefined;
2687
2687
  }[];
@@ -2693,9 +2693,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2693
2693
  agentId: string;
2694
2694
  sessionId: string;
2695
2695
  evidence: {
2696
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2696
2697
  id: string;
2697
2698
  label: string;
2698
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2699
2699
  capture: "at_action" | "historical_lookup" | "fixture";
2700
2700
  locator?: string | undefined;
2701
2701
  }[];
@@ -2704,13 +2704,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2704
2704
  recallReceiptId: string;
2705
2705
  staleDecisionAbsent: boolean;
2706
2706
  } | {
2707
- summary: string;
2708
2707
  kind: "mission_completed";
2708
+ summary: string;
2709
2709
  outcome: "failed" | "recovered" | "inconclusive";
2710
2710
  evidence: {
2711
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2711
2712
  id: string;
2712
2713
  label: string;
2713
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2714
2714
  capture: "at_action" | "historical_lookup" | "fixture";
2715
2715
  locator?: string | undefined;
2716
2716
  }[];
@@ -2720,37 +2720,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2720
2720
  objective: string;
2721
2721
  runMode: "replay" | "fixture" | "live";
2722
2722
  evidence?: {
2723
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2723
2724
  id: string;
2724
2725
  label: string;
2725
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2726
2726
  capture: "at_action" | "historical_lookup" | "fixture";
2727
2727
  locator?: string | undefined;
2728
2728
  }[] | undefined;
2729
2729
  } | {
2730
- label: string;
2731
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2732
2730
  kind: "agent_status";
2731
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2733
2732
  role: string;
2733
+ label: string;
2734
2734
  agentId: string;
2735
2735
  sessionId: string;
2736
2736
  detail?: string | undefined;
2737
2737
  evidence?: {
2738
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2738
2739
  id: string;
2739
2740
  label: string;
2740
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2741
2741
  capture: "at_action" | "historical_lookup" | "fixture";
2742
2742
  locator?: string | undefined;
2743
2743
  }[] | undefined;
2744
2744
  } | {
2745
- summary: string;
2746
2745
  kind: "agent_output";
2746
+ summary: string;
2747
2747
  agentId: string;
2748
2748
  sessionId: string;
2749
2749
  outputId: string;
2750
2750
  evidence?: {
2751
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2751
2752
  id: string;
2752
2753
  label: string;
2753
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2754
2754
  capture: "at_action" | "historical_lookup" | "fixture";
2755
2755
  locator?: string | undefined;
2756
2756
  }[] | undefined;
@@ -2763,37 +2763,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2763
2763
  decisionId: string;
2764
2764
  confidence?: number | undefined;
2765
2765
  evidence?: {
2766
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2766
2767
  id: string;
2767
2768
  label: string;
2768
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2769
2769
  capture: "at_action" | "historical_lookup" | "fixture";
2770
2770
  locator?: string | undefined;
2771
2771
  }[] | undefined;
2772
2772
  } | {
2773
- summary: string;
2774
2773
  kind: "conflict_detected";
2774
+ summary: string;
2775
2775
  conflictId: string;
2776
2776
  decisionIds: string[];
2777
2777
  agentIds: string[];
2778
2778
  evidence?: {
2779
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2779
2780
  id: string;
2780
2781
  label: string;
2781
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2782
2782
  capture: "at_action" | "historical_lookup" | "fixture";
2783
2783
  locator?: string | undefined;
2784
2784
  }[] | undefined;
2785
2785
  } | {
2786
+ kind: "test_result";
2786
2787
  summary: string;
2787
2788
  status: "error" | "failed" | "passed";
2788
- kind: "test_result";
2789
2789
  command: string;
2790
2790
  decisionId: string;
2791
2791
  testId: string;
2792
2792
  durationMs?: number | undefined;
2793
2793
  evidence?: {
2794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2794
2795
  id: string;
2795
2796
  label: string;
2796
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2797
2797
  capture: "at_action" | "historical_lookup" | "fixture";
2798
2798
  locator?: string | undefined;
2799
2799
  }[] | undefined;
@@ -2808,9 +2808,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2808
2808
  supersedesDecisionIds: string[];
2809
2809
  proposedBy: string;
2810
2810
  evidence?: {
2811
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
2812
  id: string;
2812
2813
  label: string;
2813
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2814
2814
  capture: "at_action" | "historical_lookup" | "fixture";
2815
2815
  locator?: string | undefined;
2816
2816
  }[] | undefined;
@@ -2818,15 +2818,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2818
2818
  kind: "correction_approved";
2819
2819
  correctionId: string;
2820
2820
  approvedBy: {
2821
+ kind: "agent" | "human";
2821
2822
  id: string;
2822
2823
  label: string;
2823
- kind: "agent" | "human";
2824
2824
  };
2825
2825
  note?: string | undefined;
2826
2826
  evidence?: {
2827
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2827
2828
  id: string;
2828
2829
  label: string;
2829
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2830
2830
  capture: "at_action" | "historical_lookup" | "fixture";
2831
2831
  locator?: string | undefined;
2832
2832
  }[] | undefined;
@@ -2836,9 +2836,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2836
2836
  correctionId: string;
2837
2837
  replacementDecisionId: string;
2838
2838
  evidence?: {
2839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2839
2840
  id: string;
2840
2841
  label: string;
2841
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2842
2842
  capture: "at_action" | "historical_lookup" | "fixture";
2843
2843
  locator?: string | undefined;
2844
2844
  }[] | undefined;
@@ -2851,9 +2851,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2851
2851
  recallReceiptId: string;
2852
2852
  capturedAtAction: boolean;
2853
2853
  evidence?: {
2854
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2854
2855
  id: string;
2855
2856
  label: string;
2856
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2857
2857
  capture: "at_action" | "historical_lookup" | "fixture";
2858
2858
  locator?: string | undefined;
2859
2859
  }[] | undefined;
@@ -2866,20 +2866,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2866
2866
  recallReceiptId: string;
2867
2867
  staleDecisionAbsent: boolean;
2868
2868
  evidence?: {
2869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2869
2870
  id: string;
2870
2871
  label: string;
2871
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2872
2872
  capture: "at_action" | "historical_lookup" | "fixture";
2873
2873
  locator?: string | undefined;
2874
2874
  }[] | undefined;
2875
2875
  } | {
2876
- summary: string;
2877
2876
  kind: "mission_completed";
2877
+ summary: string;
2878
2878
  outcome: "failed" | "recovered" | "inconclusive";
2879
2879
  evidence?: {
2880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2880
2881
  id: string;
2881
2882
  label: string;
2882
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2883
2883
  capture: "at_action" | "historical_lookup" | "fixture";
2884
2884
  locator?: string | undefined;
2885
2885
  }[] | undefined;
@@ -2889,38 +2889,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2889
2889
  kind: "mission_started";
2890
2890
  title: string;
2891
2891
  evidence: {
2892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2892
2893
  id: string;
2893
2894
  label: string;
2894
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2895
2895
  capture: "at_action" | "historical_lookup" | "fixture";
2896
2896
  locator?: string | undefined;
2897
2897
  }[];
2898
2898
  objective: string;
2899
2899
  runMode: "replay" | "fixture" | "live";
2900
2900
  } | {
2901
- label: string;
2902
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2903
2901
  kind: "agent_status";
2902
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2904
2903
  role: string;
2904
+ label: string;
2905
2905
  agentId: string;
2906
2906
  sessionId: string;
2907
2907
  evidence: {
2908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2908
2909
  id: string;
2909
2910
  label: string;
2910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2911
2911
  capture: "at_action" | "historical_lookup" | "fixture";
2912
2912
  locator?: string | undefined;
2913
2913
  }[];
2914
2914
  detail?: string | undefined;
2915
2915
  } | {
2916
- summary: string;
2917
2916
  kind: "agent_output";
2917
+ summary: string;
2918
2918
  agentId: string;
2919
2919
  sessionId: string;
2920
2920
  evidence: {
2921
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2921
2922
  id: string;
2922
2923
  label: string;
2923
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2924
2924
  capture: "at_action" | "historical_lookup" | "fixture";
2925
2925
  locator?: string | undefined;
2926
2926
  }[];
@@ -2931,9 +2931,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2931
2931
  statement: string;
2932
2932
  sessionId: string;
2933
2933
  evidence: {
2934
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2934
2935
  id: string;
2935
2936
  label: string;
2936
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2937
2937
  capture: "at_action" | "historical_lookup" | "fixture";
2938
2938
  locator?: string | undefined;
2939
2939
  }[];
@@ -2941,12 +2941,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2941
2941
  decisionId: string;
2942
2942
  confidence?: number | undefined;
2943
2943
  } | {
2944
- summary: string;
2945
2944
  kind: "conflict_detected";
2945
+ summary: string;
2946
2946
  evidence: {
2947
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2947
2948
  id: string;
2948
2949
  label: string;
2949
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2950
2950
  capture: "at_action" | "historical_lookup" | "fixture";
2951
2951
  locator?: string | undefined;
2952
2952
  }[];
@@ -2954,14 +2954,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2954
2954
  decisionIds: string[];
2955
2955
  agentIds: string[];
2956
2956
  } | {
2957
+ kind: "test_result";
2957
2958
  summary: string;
2958
2959
  status: "error" | "failed" | "passed";
2959
- kind: "test_result";
2960
2960
  command: string;
2961
2961
  evidence: {
2962
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2962
2963
  id: string;
2963
2964
  label: string;
2964
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2965
2965
  capture: "at_action" | "historical_lookup" | "fixture";
2966
2966
  locator?: string | undefined;
2967
2967
  }[];
@@ -2974,9 +2974,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2974
2974
  rationale: string;
2975
2975
  statement: string;
2976
2976
  evidence: {
2977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2977
2978
  id: string;
2978
2979
  label: string;
2979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2980
2980
  capture: "at_action" | "historical_lookup" | "fixture";
2981
2981
  locator?: string | undefined;
2982
2982
  }[];
@@ -2988,25 +2988,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2988
2988
  } | {
2989
2989
  kind: "correction_approved";
2990
2990
  evidence: {
2991
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2991
2992
  id: string;
2992
2993
  label: string;
2993
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2994
2994
  capture: "at_action" | "historical_lookup" | "fixture";
2995
2995
  locator?: string | undefined;
2996
2996
  }[];
2997
2997
  correctionId: string;
2998
2998
  approvedBy: {
2999
+ kind: "agent" | "human";
2999
3000
  id: string;
3000
3001
  label: string;
3001
- kind: "agent" | "human";
3002
3002
  };
3003
3003
  note?: string | undefined;
3004
3004
  } | {
3005
3005
  kind: "decision_superseded";
3006
3006
  evidence: {
3007
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3007
3008
  id: string;
3008
3009
  label: string;
3009
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3010
3010
  capture: "at_action" | "historical_lookup" | "fixture";
3011
3011
  locator?: string | undefined;
3012
3012
  }[];
@@ -3019,9 +3019,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3019
3019
  agentId: string;
3020
3020
  sessionId: string;
3021
3021
  evidence: {
3022
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3022
3023
  id: string;
3023
3024
  label: string;
3024
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3025
3025
  capture: "at_action" | "historical_lookup" | "fixture";
3026
3026
  locator?: string | undefined;
3027
3027
  }[];
@@ -3033,9 +3033,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3033
3033
  agentId: string;
3034
3034
  sessionId: string;
3035
3035
  evidence: {
3036
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3036
3037
  id: string;
3037
3038
  label: string;
3038
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3039
3039
  capture: "at_action" | "historical_lookup" | "fixture";
3040
3040
  locator?: string | undefined;
3041
3041
  }[];
@@ -3044,13 +3044,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3044
3044
  recallReceiptId: string;
3045
3045
  staleDecisionAbsent: boolean;
3046
3046
  } | {
3047
- summary: string;
3048
3047
  kind: "mission_completed";
3048
+ summary: string;
3049
3049
  outcome: "failed" | "recovered" | "inconclusive";
3050
3050
  evidence: {
3051
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3051
3052
  id: string;
3052
3053
  label: string;
3053
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3054
3054
  capture: "at_action" | "historical_lookup" | "fixture";
3055
3055
  locator?: string | undefined;
3056
3056
  }[];
@@ -3064,37 +3064,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3064
3064
  objective: string;
3065
3065
  runMode: "replay" | "fixture" | "live";
3066
3066
  evidence?: {
3067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3067
3068
  id: string;
3068
3069
  label: string;
3069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3070
3070
  capture: "at_action" | "historical_lookup" | "fixture";
3071
3071
  locator?: string | undefined;
3072
3072
  }[] | undefined;
3073
3073
  } | {
3074
- label: string;
3075
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3076
3074
  kind: "agent_status";
3075
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3077
3076
  role: string;
3077
+ label: string;
3078
3078
  agentId: string;
3079
3079
  sessionId: string;
3080
3080
  detail?: string | undefined;
3081
3081
  evidence?: {
3082
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3082
3083
  id: string;
3083
3084
  label: string;
3084
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3085
3085
  capture: "at_action" | "historical_lookup" | "fixture";
3086
3086
  locator?: string | undefined;
3087
3087
  }[] | undefined;
3088
3088
  } | {
3089
- summary: string;
3090
3089
  kind: "agent_output";
3090
+ summary: string;
3091
3091
  agentId: string;
3092
3092
  sessionId: string;
3093
3093
  outputId: string;
3094
3094
  evidence?: {
3095
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3095
3096
  id: string;
3096
3097
  label: string;
3097
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3098
3098
  capture: "at_action" | "historical_lookup" | "fixture";
3099
3099
  locator?: string | undefined;
3100
3100
  }[] | undefined;
@@ -3107,37 +3107,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3107
3107
  decisionId: string;
3108
3108
  confidence?: number | undefined;
3109
3109
  evidence?: {
3110
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3110
3111
  id: string;
3111
3112
  label: string;
3112
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3113
3113
  capture: "at_action" | "historical_lookup" | "fixture";
3114
3114
  locator?: string | undefined;
3115
3115
  }[] | undefined;
3116
3116
  } | {
3117
- summary: string;
3118
3117
  kind: "conflict_detected";
3118
+ summary: string;
3119
3119
  conflictId: string;
3120
3120
  decisionIds: string[];
3121
3121
  agentIds: string[];
3122
3122
  evidence?: {
3123
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3123
3124
  id: string;
3124
3125
  label: string;
3125
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3126
3126
  capture: "at_action" | "historical_lookup" | "fixture";
3127
3127
  locator?: string | undefined;
3128
3128
  }[] | undefined;
3129
3129
  } | {
3130
+ kind: "test_result";
3130
3131
  summary: string;
3131
3132
  status: "error" | "failed" | "passed";
3132
- kind: "test_result";
3133
3133
  command: string;
3134
3134
  decisionId: string;
3135
3135
  testId: string;
3136
3136
  durationMs?: number | undefined;
3137
3137
  evidence?: {
3138
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3138
3139
  id: string;
3139
3140
  label: string;
3140
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3141
3141
  capture: "at_action" | "historical_lookup" | "fixture";
3142
3142
  locator?: string | undefined;
3143
3143
  }[] | undefined;
@@ -3152,9 +3152,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3152
3152
  supersedesDecisionIds: string[];
3153
3153
  proposedBy: string;
3154
3154
  evidence?: {
3155
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3155
3156
  id: string;
3156
3157
  label: string;
3157
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3158
3158
  capture: "at_action" | "historical_lookup" | "fixture";
3159
3159
  locator?: string | undefined;
3160
3160
  }[] | undefined;
@@ -3162,15 +3162,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3162
3162
  kind: "correction_approved";
3163
3163
  correctionId: string;
3164
3164
  approvedBy: {
3165
+ kind: "agent" | "human";
3165
3166
  id: string;
3166
3167
  label: string;
3167
- kind: "agent" | "human";
3168
3168
  };
3169
3169
  note?: string | undefined;
3170
3170
  evidence?: {
3171
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3171
3172
  id: string;
3172
3173
  label: string;
3173
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3174
3174
  capture: "at_action" | "historical_lookup" | "fixture";
3175
3175
  locator?: string | undefined;
3176
3176
  }[] | undefined;
@@ -3180,9 +3180,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3180
3180
  correctionId: string;
3181
3181
  replacementDecisionId: string;
3182
3182
  evidence?: {
3183
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3183
3184
  id: string;
3184
3185
  label: string;
3185
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3186
3186
  capture: "at_action" | "historical_lookup" | "fixture";
3187
3187
  locator?: string | undefined;
3188
3188
  }[] | undefined;
@@ -3195,9 +3195,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3195
3195
  recallReceiptId: string;
3196
3196
  capturedAtAction: boolean;
3197
3197
  evidence?: {
3198
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3198
3199
  id: string;
3199
3200
  label: string;
3200
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3201
3201
  capture: "at_action" | "historical_lookup" | "fixture";
3202
3202
  locator?: string | undefined;
3203
3203
  }[] | undefined;
@@ -3210,20 +3210,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3210
3210
  recallReceiptId: string;
3211
3211
  staleDecisionAbsent: boolean;
3212
3212
  evidence?: {
3213
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3213
3214
  id: string;
3214
3215
  label: string;
3215
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3216
3216
  capture: "at_action" | "historical_lookup" | "fixture";
3217
3217
  locator?: string | undefined;
3218
3218
  }[] | undefined;
3219
3219
  } | {
3220
- summary: string;
3221
3220
  kind: "mission_completed";
3221
+ summary: string;
3222
3222
  outcome: "failed" | "recovered" | "inconclusive";
3223
3223
  evidence?: {
3224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3224
3225
  id: string;
3225
3226
  label: string;
3226
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3227
3227
  capture: "at_action" | "historical_lookup" | "fixture";
3228
3228
  locator?: string | undefined;
3229
3229
  }[] | undefined;
@@ -3253,15 +3253,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3253
3253
  locator: z.ZodOptional<z.ZodString>;
3254
3254
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3255
3255
  }, "strict", z.ZodTypeAny, {
3256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3256
3257
  id: string;
3257
3258
  label: string;
3258
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3259
3259
  capture: "at_action" | "historical_lookup" | "fixture";
3260
3260
  locator?: string | undefined;
3261
3261
  }, {
3262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3262
3263
  id: string;
3263
3264
  label: string;
3264
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3265
3265
  capture: "at_action" | "historical_lookup" | "fixture";
3266
3266
  locator?: string | undefined;
3267
3267
  }>, "many">>;
@@ -3269,9 +3269,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3269
3269
  kind: "mission_started";
3270
3270
  title: string;
3271
3271
  evidence: {
3272
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3272
3273
  id: string;
3273
3274
  label: string;
3274
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3275
3275
  capture: "at_action" | "historical_lookup" | "fixture";
3276
3276
  locator?: string | undefined;
3277
3277
  }[];
@@ -3283,9 +3283,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3283
3283
  objective: string;
3284
3284
  runMode: "replay" | "fixture" | "live";
3285
3285
  evidence?: {
3286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3286
3287
  id: string;
3287
3288
  label: string;
3288
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3289
3289
  capture: "at_action" | "historical_lookup" | "fixture";
3290
3290
  locator?: string | undefined;
3291
3291
  }[] | undefined;
@@ -3301,15 +3301,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3301
3301
  locator: z.ZodOptional<z.ZodString>;
3302
3302
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3303
3303
  }, "strict", z.ZodTypeAny, {
3304
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3304
3305
  id: string;
3305
3306
  label: string;
3306
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3307
3307
  capture: "at_action" | "historical_lookup" | "fixture";
3308
3308
  locator?: string | undefined;
3309
3309
  }, {
3310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3310
3311
  id: string;
3311
3312
  label: string;
3312
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3313
3313
  capture: "at_action" | "historical_lookup" | "fixture";
3314
3314
  locator?: string | undefined;
3315
3315
  }>, "many">>;
@@ -3317,32 +3317,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3317
3317
  sessionId: z.ZodString;
3318
3318
  kind: z.ZodLiteral<"agent_status">;
3319
3319
  }, "strict", z.ZodTypeAny, {
3320
- label: string;
3321
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3322
3320
  kind: "agent_status";
3321
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3323
3322
  role: string;
3323
+ label: string;
3324
3324
  agentId: string;
3325
3325
  sessionId: string;
3326
3326
  evidence: {
3327
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3327
3328
  id: string;
3328
3329
  label: string;
3329
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3330
3330
  capture: "at_action" | "historical_lookup" | "fixture";
3331
3331
  locator?: string | undefined;
3332
3332
  }[];
3333
3333
  detail?: string | undefined;
3334
3334
  }, {
3335
- label: string;
3336
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3337
3335
  kind: "agent_status";
3336
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3338
3337
  role: string;
3338
+ label: string;
3339
3339
  agentId: string;
3340
3340
  sessionId: string;
3341
3341
  detail?: string | undefined;
3342
3342
  evidence?: {
3343
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3343
3344
  id: string;
3344
3345
  label: string;
3345
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3346
3346
  capture: "at_action" | "historical_lookup" | "fixture";
3347
3347
  locator?: string | undefined;
3348
3348
  }[] | undefined;
@@ -3356,15 +3356,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3356
3356
  locator: z.ZodOptional<z.ZodString>;
3357
3357
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3358
3358
  }, "strict", z.ZodTypeAny, {
3359
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3359
3360
  id: string;
3360
3361
  label: string;
3361
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3362
3362
  capture: "at_action" | "historical_lookup" | "fixture";
3363
3363
  locator?: string | undefined;
3364
3364
  }, {
3365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3365
3366
  id: string;
3366
3367
  label: string;
3367
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3368
3368
  capture: "at_action" | "historical_lookup" | "fixture";
3369
3369
  locator?: string | undefined;
3370
3370
  }>, "many">>;
@@ -3372,28 +3372,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3372
3372
  sessionId: z.ZodString;
3373
3373
  kind: z.ZodLiteral<"agent_output">;
3374
3374
  }, "strict", z.ZodTypeAny, {
3375
- summary: string;
3376
3375
  kind: "agent_output";
3376
+ summary: string;
3377
3377
  agentId: string;
3378
3378
  sessionId: string;
3379
3379
  evidence: {
3380
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3380
3381
  id: string;
3381
3382
  label: string;
3382
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3383
3383
  capture: "at_action" | "historical_lookup" | "fixture";
3384
3384
  locator?: string | undefined;
3385
3385
  }[];
3386
3386
  outputId: string;
3387
3387
  }, {
3388
- summary: string;
3389
3388
  kind: "agent_output";
3389
+ summary: string;
3390
3390
  agentId: string;
3391
3391
  sessionId: string;
3392
3392
  outputId: string;
3393
3393
  evidence?: {
3394
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3394
3395
  id: string;
3395
3396
  label: string;
3396
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3397
3397
  capture: "at_action" | "historical_lookup" | "fixture";
3398
3398
  locator?: string | undefined;
3399
3399
  }[] | undefined;
@@ -3409,15 +3409,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3409
3409
  locator: z.ZodOptional<z.ZodString>;
3410
3410
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3411
3411
  }, "strict", z.ZodTypeAny, {
3412
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3412
3413
  id: string;
3413
3414
  label: string;
3414
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3415
3415
  capture: "at_action" | "historical_lookup" | "fixture";
3416
3416
  locator?: string | undefined;
3417
3417
  }, {
3418
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3418
3419
  id: string;
3419
3420
  label: string;
3420
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3421
3421
  capture: "at_action" | "historical_lookup" | "fixture";
3422
3422
  locator?: string | undefined;
3423
3423
  }>, "many">>;
@@ -3430,9 +3430,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3430
3430
  statement: string;
3431
3431
  sessionId: string;
3432
3432
  evidence: {
3433
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3433
3434
  id: string;
3434
3435
  label: string;
3435
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3436
3436
  capture: "at_action" | "historical_lookup" | "fixture";
3437
3437
  locator?: string | undefined;
3438
3438
  }[];
@@ -3448,9 +3448,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3448
3448
  decisionId: string;
3449
3449
  confidence?: number | undefined;
3450
3450
  evidence?: {
3451
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3451
3452
  id: string;
3452
3453
  label: string;
3453
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3454
3454
  capture: "at_action" | "historical_lookup" | "fixture";
3455
3455
  locator?: string | undefined;
3456
3456
  }[] | undefined;
@@ -3467,25 +3467,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3467
3467
  locator: z.ZodOptional<z.ZodString>;
3468
3468
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3469
3469
  }, "strict", z.ZodTypeAny, {
3470
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3470
3471
  id: string;
3471
3472
  label: string;
3472
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3473
3473
  capture: "at_action" | "historical_lookup" | "fixture";
3474
3474
  locator?: string | undefined;
3475
3475
  }, {
3476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3476
3477
  id: string;
3477
3478
  label: string;
3478
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3479
3479
  capture: "at_action" | "historical_lookup" | "fixture";
3480
3480
  locator?: string | undefined;
3481
3481
  }>, "many">>;
3482
3482
  }, "strict", z.ZodTypeAny, {
3483
- summary: string;
3484
3483
  kind: "conflict_detected";
3484
+ summary: string;
3485
3485
  evidence: {
3486
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3486
3487
  id: string;
3487
3488
  label: string;
3488
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3489
3489
  capture: "at_action" | "historical_lookup" | "fixture";
3490
3490
  locator?: string | undefined;
3491
3491
  }[];
@@ -3493,15 +3493,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3493
3493
  decisionIds: string[];
3494
3494
  agentIds: string[];
3495
3495
  }, {
3496
- summary: string;
3497
3496
  kind: "conflict_detected";
3497
+ summary: string;
3498
3498
  conflictId: string;
3499
3499
  decisionIds: string[];
3500
3500
  agentIds: string[];
3501
3501
  evidence?: {
3502
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3502
3503
  id: string;
3503
3504
  label: string;
3504
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3505
3505
  capture: "at_action" | "historical_lookup" | "fixture";
3506
3506
  locator?: string | undefined;
3507
3507
  }[] | undefined;
@@ -3521,27 +3521,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3521
3521
  locator: z.ZodOptional<z.ZodString>;
3522
3522
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3523
3523
  }, "strict", z.ZodTypeAny, {
3524
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3524
3525
  id: string;
3525
3526
  label: string;
3526
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3527
3527
  capture: "at_action" | "historical_lookup" | "fixture";
3528
3528
  locator?: string | undefined;
3529
3529
  }, {
3530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3530
3531
  id: string;
3531
3532
  label: string;
3532
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3533
3533
  capture: "at_action" | "historical_lookup" | "fixture";
3534
3534
  locator?: string | undefined;
3535
3535
  }>, "many">>;
3536
3536
  }, "strict", z.ZodTypeAny, {
3537
+ kind: "test_result";
3537
3538
  summary: string;
3538
3539
  status: "error" | "failed" | "passed";
3539
- kind: "test_result";
3540
3540
  command: string;
3541
3541
  evidence: {
3542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3542
3543
  id: string;
3543
3544
  label: string;
3544
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3545
3545
  capture: "at_action" | "historical_lookup" | "fixture";
3546
3546
  locator?: string | undefined;
3547
3547
  }[];
@@ -3550,17 +3550,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3550
3550
  durationMs?: number | undefined;
3551
3551
  correctionId?: string | undefined;
3552
3552
  }, {
3553
+ kind: "test_result";
3553
3554
  summary: string;
3554
3555
  status: "error" | "failed" | "passed";
3555
- kind: "test_result";
3556
3556
  command: string;
3557
3557
  decisionId: string;
3558
3558
  testId: string;
3559
3559
  durationMs?: number | undefined;
3560
3560
  evidence?: {
3561
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3561
3562
  id: string;
3562
3563
  label: string;
3563
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3564
3564
  capture: "at_action" | "historical_lookup" | "fixture";
3565
3565
  locator?: string | undefined;
3566
3566
  }[] | undefined;
@@ -3581,15 +3581,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3581
3581
  locator: z.ZodOptional<z.ZodString>;
3582
3582
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3583
3583
  }, "strict", z.ZodTypeAny, {
3584
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3584
3585
  id: string;
3585
3586
  label: string;
3586
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3587
3587
  capture: "at_action" | "historical_lookup" | "fixture";
3588
3588
  locator?: string | undefined;
3589
3589
  }, {
3590
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3590
3591
  id: string;
3591
3592
  label: string;
3592
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3593
3593
  capture: "at_action" | "historical_lookup" | "fixture";
3594
3594
  locator?: string | undefined;
3595
3595
  }>, "many">>;
@@ -3598,9 +3598,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3598
3598
  rationale: string;
3599
3599
  statement: string;
3600
3600
  evidence: {
3601
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3601
3602
  id: string;
3602
3603
  label: string;
3603
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3604
3604
  capture: "at_action" | "historical_lookup" | "fixture";
3605
3605
  locator?: string | undefined;
3606
3606
  }[];
@@ -3619,9 +3619,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3619
3619
  supersedesDecisionIds: string[];
3620
3620
  proposedBy: string;
3621
3621
  evidence?: {
3622
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3622
3623
  id: string;
3623
3624
  label: string;
3624
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3625
3625
  capture: "at_action" | "historical_lookup" | "fixture";
3626
3626
  locator?: string | undefined;
3627
3627
  }[] | undefined;
@@ -3633,13 +3633,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3633
3633
  id: z.ZodString;
3634
3634
  label: z.ZodString;
3635
3635
  }, "strict", z.ZodTypeAny, {
3636
+ kind: "agent" | "human";
3636
3637
  id: string;
3637
3638
  label: string;
3638
- kind: "agent" | "human";
3639
3639
  }, {
3640
+ kind: "agent" | "human";
3640
3641
  id: string;
3641
3642
  label: string;
3642
- kind: "agent" | "human";
3643
3643
  }>;
3644
3644
  note: z.ZodOptional<z.ZodString>;
3645
3645
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3649,47 +3649,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3649
3649
  locator: z.ZodOptional<z.ZodString>;
3650
3650
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3651
3651
  }, "strict", z.ZodTypeAny, {
3652
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3652
3653
  id: string;
3653
3654
  label: string;
3654
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3655
3655
  capture: "at_action" | "historical_lookup" | "fixture";
3656
3656
  locator?: string | undefined;
3657
3657
  }, {
3658
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3658
3659
  id: string;
3659
3660
  label: string;
3660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3661
3661
  capture: "at_action" | "historical_lookup" | "fixture";
3662
3662
  locator?: string | undefined;
3663
3663
  }>, "many">>;
3664
3664
  }, "strict", z.ZodTypeAny, {
3665
3665
  kind: "correction_approved";
3666
3666
  evidence: {
3667
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3667
3668
  id: string;
3668
3669
  label: string;
3669
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3670
3670
  capture: "at_action" | "historical_lookup" | "fixture";
3671
3671
  locator?: string | undefined;
3672
3672
  }[];
3673
3673
  correctionId: string;
3674
3674
  approvedBy: {
3675
+ kind: "agent" | "human";
3675
3676
  id: string;
3676
3677
  label: string;
3677
- kind: "agent" | "human";
3678
3678
  };
3679
3679
  note?: string | undefined;
3680
3680
  }, {
3681
3681
  kind: "correction_approved";
3682
3682
  correctionId: string;
3683
3683
  approvedBy: {
3684
+ kind: "agent" | "human";
3684
3685
  id: string;
3685
3686
  label: string;
3686
- kind: "agent" | "human";
3687
3687
  };
3688
3688
  note?: string | undefined;
3689
3689
  evidence?: {
3690
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3690
3691
  id: string;
3691
3692
  label: string;
3692
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3693
3693
  capture: "at_action" | "historical_lookup" | "fixture";
3694
3694
  locator?: string | undefined;
3695
3695
  }[] | undefined;
@@ -3705,24 +3705,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3705
3705
  locator: z.ZodOptional<z.ZodString>;
3706
3706
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3707
3707
  }, "strict", z.ZodTypeAny, {
3708
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3708
3709
  id: string;
3709
3710
  label: string;
3710
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3711
3711
  capture: "at_action" | "historical_lookup" | "fixture";
3712
3712
  locator?: string | undefined;
3713
3713
  }, {
3714
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3714
3715
  id: string;
3715
3716
  label: string;
3716
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3717
3717
  capture: "at_action" | "historical_lookup" | "fixture";
3718
3718
  locator?: string | undefined;
3719
3719
  }>, "many">>;
3720
3720
  }, "strict", z.ZodTypeAny, {
3721
3721
  kind: "decision_superseded";
3722
3722
  evidence: {
3723
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3723
3724
  id: string;
3724
3725
  label: string;
3725
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3726
3726
  capture: "at_action" | "historical_lookup" | "fixture";
3727
3727
  locator?: string | undefined;
3728
3728
  }[];
@@ -3735,9 +3735,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3735
3735
  correctionId: string;
3736
3736
  replacementDecisionId: string;
3737
3737
  evidence?: {
3738
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3738
3739
  id: string;
3739
3740
  label: string;
3740
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3741
3741
  capture: "at_action" | "historical_lookup" | "fixture";
3742
3742
  locator?: string | undefined;
3743
3743
  }[] | undefined;
@@ -3753,15 +3753,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3753
3753
  locator: z.ZodOptional<z.ZodString>;
3754
3754
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3755
3755
  }, "strict", z.ZodTypeAny, {
3756
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3756
3757
  id: string;
3757
3758
  label: string;
3758
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3759
3759
  capture: "at_action" | "historical_lookup" | "fixture";
3760
3760
  locator?: string | undefined;
3761
3761
  }, {
3762
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3762
3763
  id: string;
3763
3764
  label: string;
3764
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3765
3765
  capture: "at_action" | "historical_lookup" | "fixture";
3766
3766
  locator?: string | undefined;
3767
3767
  }>, "many">>;
@@ -3774,9 +3774,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3774
3774
  agentId: string;
3775
3775
  sessionId: string;
3776
3776
  evidence: {
3777
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3777
3778
  id: string;
3778
3779
  label: string;
3779
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3780
3780
  capture: "at_action" | "historical_lookup" | "fixture";
3781
3781
  locator?: string | undefined;
3782
3782
  }[];
@@ -3792,9 +3792,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3792
3792
  recallReceiptId: string;
3793
3793
  capturedAtAction: boolean;
3794
3794
  evidence?: {
3795
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3795
3796
  id: string;
3796
3797
  label: string;
3797
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3798
3798
  capture: "at_action" | "historical_lookup" | "fixture";
3799
3799
  locator?: string | undefined;
3800
3800
  }[] | undefined;
@@ -3810,15 +3810,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3810
3810
  locator: z.ZodOptional<z.ZodString>;
3811
3811
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3812
3812
  }, "strict", z.ZodTypeAny, {
3813
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3813
3814
  id: string;
3814
3815
  label: string;
3815
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3816
3816
  capture: "at_action" | "historical_lookup" | "fixture";
3817
3817
  locator?: string | undefined;
3818
3818
  }, {
3819
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3819
3820
  id: string;
3820
3821
  label: string;
3821
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3822
3822
  capture: "at_action" | "historical_lookup" | "fixture";
3823
3823
  locator?: string | undefined;
3824
3824
  }>, "many">>;
@@ -3830,9 +3830,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3830
3830
  agentId: string;
3831
3831
  sessionId: string;
3832
3832
  evidence: {
3833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3833
3834
  id: string;
3834
3835
  label: string;
3835
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3836
3836
  capture: "at_action" | "historical_lookup" | "fixture";
3837
3837
  locator?: string | undefined;
3838
3838
  }[];
@@ -3849,9 +3849,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3849
3849
  recallReceiptId: string;
3850
3850
  staleDecisionAbsent: boolean;
3851
3851
  evidence?: {
3852
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3852
3853
  id: string;
3853
3854
  label: string;
3854
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3855
3855
  capture: "at_action" | "historical_lookup" | "fixture";
3856
3856
  locator?: string | undefined;
3857
3857
  }[] | undefined;
@@ -3866,37 +3866,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3866
3866
  locator: z.ZodOptional<z.ZodString>;
3867
3867
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3868
3868
  }, "strict", z.ZodTypeAny, {
3869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3869
3870
  id: string;
3870
3871
  label: string;
3871
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3872
3872
  capture: "at_action" | "historical_lookup" | "fixture";
3873
3873
  locator?: string | undefined;
3874
3874
  }, {
3875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3875
3876
  id: string;
3876
3877
  label: string;
3877
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3878
3878
  capture: "at_action" | "historical_lookup" | "fixture";
3879
3879
  locator?: string | undefined;
3880
3880
  }>, "many">>;
3881
3881
  }, "strict", z.ZodTypeAny, {
3882
- summary: string;
3883
3882
  kind: "mission_completed";
3883
+ summary: string;
3884
3884
  outcome: "failed" | "recovered" | "inconclusive";
3885
3885
  evidence: {
3886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3886
3887
  id: string;
3887
3888
  label: string;
3888
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3889
3889
  capture: "at_action" | "historical_lookup" | "fixture";
3890
3890
  locator?: string | undefined;
3891
3891
  }[];
3892
3892
  }, {
3893
- summary: string;
3894
3893
  kind: "mission_completed";
3894
+ summary: string;
3895
3895
  outcome: "failed" | "recovered" | "inconclusive";
3896
3896
  evidence?: {
3897
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3897
3898
  id: string;
3898
3899
  label: string;
3899
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3900
3900
  capture: "at_action" | "historical_lookup" | "fixture";
3901
3901
  locator?: string | undefined;
3902
3902
  }[] | undefined;
@@ -3904,38 +3904,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3904
3904
  kind: "mission_started";
3905
3905
  title: string;
3906
3906
  evidence: {
3907
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3907
3908
  id: string;
3908
3909
  label: string;
3909
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3910
3910
  capture: "at_action" | "historical_lookup" | "fixture";
3911
3911
  locator?: string | undefined;
3912
3912
  }[];
3913
3913
  objective: string;
3914
3914
  runMode: "replay" | "fixture" | "live";
3915
3915
  } | {
3916
- label: string;
3917
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3918
3916
  kind: "agent_status";
3917
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3919
3918
  role: string;
3919
+ label: string;
3920
3920
  agentId: string;
3921
3921
  sessionId: string;
3922
3922
  evidence: {
3923
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3923
3924
  id: string;
3924
3925
  label: string;
3925
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3926
3926
  capture: "at_action" | "historical_lookup" | "fixture";
3927
3927
  locator?: string | undefined;
3928
3928
  }[];
3929
3929
  detail?: string | undefined;
3930
3930
  } | {
3931
- summary: string;
3932
3931
  kind: "agent_output";
3932
+ summary: string;
3933
3933
  agentId: string;
3934
3934
  sessionId: string;
3935
3935
  evidence: {
3936
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3936
3937
  id: string;
3937
3938
  label: string;
3938
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3939
3939
  capture: "at_action" | "historical_lookup" | "fixture";
3940
3940
  locator?: string | undefined;
3941
3941
  }[];
@@ -3946,9 +3946,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3946
3946
  statement: string;
3947
3947
  sessionId: string;
3948
3948
  evidence: {
3949
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3949
3950
  id: string;
3950
3951
  label: string;
3951
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
3952
  capture: "at_action" | "historical_lookup" | "fixture";
3953
3953
  locator?: string | undefined;
3954
3954
  }[];
@@ -3956,12 +3956,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3956
3956
  decisionId: string;
3957
3957
  confidence?: number | undefined;
3958
3958
  } | {
3959
- summary: string;
3960
3959
  kind: "conflict_detected";
3960
+ summary: string;
3961
3961
  evidence: {
3962
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3962
3963
  id: string;
3963
3964
  label: string;
3964
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3965
3965
  capture: "at_action" | "historical_lookup" | "fixture";
3966
3966
  locator?: string | undefined;
3967
3967
  }[];
@@ -3969,14 +3969,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3969
3969
  decisionIds: string[];
3970
3970
  agentIds: string[];
3971
3971
  } | {
3972
+ kind: "test_result";
3972
3973
  summary: string;
3973
3974
  status: "error" | "failed" | "passed";
3974
- kind: "test_result";
3975
3975
  command: string;
3976
3976
  evidence: {
3977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3977
3978
  id: string;
3978
3979
  label: string;
3979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3980
3980
  capture: "at_action" | "historical_lookup" | "fixture";
3981
3981
  locator?: string | undefined;
3982
3982
  }[];
@@ -3989,9 +3989,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3989
3989
  rationale: string;
3990
3990
  statement: string;
3991
3991
  evidence: {
3992
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3992
3993
  id: string;
3993
3994
  label: string;
3994
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3995
3995
  capture: "at_action" | "historical_lookup" | "fixture";
3996
3996
  locator?: string | undefined;
3997
3997
  }[];
@@ -4003,25 +4003,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4003
4003
  } | {
4004
4004
  kind: "correction_approved";
4005
4005
  evidence: {
4006
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4006
4007
  id: string;
4007
4008
  label: string;
4008
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4009
4009
  capture: "at_action" | "historical_lookup" | "fixture";
4010
4010
  locator?: string | undefined;
4011
4011
  }[];
4012
4012
  correctionId: string;
4013
4013
  approvedBy: {
4014
+ kind: "agent" | "human";
4014
4015
  id: string;
4015
4016
  label: string;
4016
- kind: "agent" | "human";
4017
4017
  };
4018
4018
  note?: string | undefined;
4019
4019
  } | {
4020
4020
  kind: "decision_superseded";
4021
4021
  evidence: {
4022
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4022
4023
  id: string;
4023
4024
  label: string;
4024
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4025
4025
  capture: "at_action" | "historical_lookup" | "fixture";
4026
4026
  locator?: string | undefined;
4027
4027
  }[];
@@ -4034,9 +4034,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4034
4034
  agentId: string;
4035
4035
  sessionId: string;
4036
4036
  evidence: {
4037
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4037
4038
  id: string;
4038
4039
  label: string;
4039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4040
4040
  capture: "at_action" | "historical_lookup" | "fixture";
4041
4041
  locator?: string | undefined;
4042
4042
  }[];
@@ -4048,9 +4048,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4048
4048
  agentId: string;
4049
4049
  sessionId: string;
4050
4050
  evidence: {
4051
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4051
4052
  id: string;
4052
4053
  label: string;
4053
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4054
4054
  capture: "at_action" | "historical_lookup" | "fixture";
4055
4055
  locator?: string | undefined;
4056
4056
  }[];
@@ -4059,13 +4059,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4059
4059
  recallReceiptId: string;
4060
4060
  staleDecisionAbsent: boolean;
4061
4061
  } | {
4062
- summary: string;
4063
4062
  kind: "mission_completed";
4063
+ summary: string;
4064
4064
  outcome: "failed" | "recovered" | "inconclusive";
4065
4065
  evidence: {
4066
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4066
4067
  id: string;
4067
4068
  label: string;
4068
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4069
4069
  capture: "at_action" | "historical_lookup" | "fixture";
4070
4070
  locator?: string | undefined;
4071
4071
  }[];
@@ -4075,37 +4075,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4075
4075
  objective: string;
4076
4076
  runMode: "replay" | "fixture" | "live";
4077
4077
  evidence?: {
4078
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4078
4079
  id: string;
4079
4080
  label: string;
4080
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4081
4081
  capture: "at_action" | "historical_lookup" | "fixture";
4082
4082
  locator?: string | undefined;
4083
4083
  }[] | undefined;
4084
4084
  } | {
4085
- label: string;
4086
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4087
4085
  kind: "agent_status";
4086
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4088
4087
  role: string;
4088
+ label: string;
4089
4089
  agentId: string;
4090
4090
  sessionId: string;
4091
4091
  detail?: string | undefined;
4092
4092
  evidence?: {
4093
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4093
4094
  id: string;
4094
4095
  label: string;
4095
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4096
4096
  capture: "at_action" | "historical_lookup" | "fixture";
4097
4097
  locator?: string | undefined;
4098
4098
  }[] | undefined;
4099
4099
  } | {
4100
- summary: string;
4101
4100
  kind: "agent_output";
4101
+ summary: string;
4102
4102
  agentId: string;
4103
4103
  sessionId: string;
4104
4104
  outputId: string;
4105
4105
  evidence?: {
4106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4106
4107
  id: string;
4107
4108
  label: string;
4108
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4109
4109
  capture: "at_action" | "historical_lookup" | "fixture";
4110
4110
  locator?: string | undefined;
4111
4111
  }[] | undefined;
@@ -4118,37 +4118,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4118
4118
  decisionId: string;
4119
4119
  confidence?: number | undefined;
4120
4120
  evidence?: {
4121
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4121
4122
  id: string;
4122
4123
  label: string;
4123
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4124
4124
  capture: "at_action" | "historical_lookup" | "fixture";
4125
4125
  locator?: string | undefined;
4126
4126
  }[] | undefined;
4127
4127
  } | {
4128
- summary: string;
4129
4128
  kind: "conflict_detected";
4129
+ summary: string;
4130
4130
  conflictId: string;
4131
4131
  decisionIds: string[];
4132
4132
  agentIds: string[];
4133
4133
  evidence?: {
4134
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4134
4135
  id: string;
4135
4136
  label: string;
4136
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4137
4137
  capture: "at_action" | "historical_lookup" | "fixture";
4138
4138
  locator?: string | undefined;
4139
4139
  }[] | undefined;
4140
4140
  } | {
4141
+ kind: "test_result";
4141
4142
  summary: string;
4142
4143
  status: "error" | "failed" | "passed";
4143
- kind: "test_result";
4144
4144
  command: string;
4145
4145
  decisionId: string;
4146
4146
  testId: string;
4147
4147
  durationMs?: number | undefined;
4148
4148
  evidence?: {
4149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4149
4150
  id: string;
4150
4151
  label: string;
4151
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4152
4152
  capture: "at_action" | "historical_lookup" | "fixture";
4153
4153
  locator?: string | undefined;
4154
4154
  }[] | undefined;
@@ -4163,9 +4163,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4163
4163
  supersedesDecisionIds: string[];
4164
4164
  proposedBy: string;
4165
4165
  evidence?: {
4166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4166
4167
  id: string;
4167
4168
  label: string;
4168
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4169
4169
  capture: "at_action" | "historical_lookup" | "fixture";
4170
4170
  locator?: string | undefined;
4171
4171
  }[] | undefined;
@@ -4173,15 +4173,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4173
4173
  kind: "correction_approved";
4174
4174
  correctionId: string;
4175
4175
  approvedBy: {
4176
+ kind: "agent" | "human";
4176
4177
  id: string;
4177
4178
  label: string;
4178
- kind: "agent" | "human";
4179
4179
  };
4180
4180
  note?: string | undefined;
4181
4181
  evidence?: {
4182
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4182
4183
  id: string;
4183
4184
  label: string;
4184
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4185
4185
  capture: "at_action" | "historical_lookup" | "fixture";
4186
4186
  locator?: string | undefined;
4187
4187
  }[] | undefined;
@@ -4191,9 +4191,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4191
4191
  correctionId: string;
4192
4192
  replacementDecisionId: string;
4193
4193
  evidence?: {
4194
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4194
4195
  id: string;
4195
4196
  label: string;
4196
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4197
4197
  capture: "at_action" | "historical_lookup" | "fixture";
4198
4198
  locator?: string | undefined;
4199
4199
  }[] | undefined;
@@ -4206,9 +4206,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4206
4206
  recallReceiptId: string;
4207
4207
  capturedAtAction: boolean;
4208
4208
  evidence?: {
4209
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4209
4210
  id: string;
4210
4211
  label: string;
4211
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4212
4212
  capture: "at_action" | "historical_lookup" | "fixture";
4213
4213
  locator?: string | undefined;
4214
4214
  }[] | undefined;
@@ -4221,64 +4221,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4221
4221
  recallReceiptId: string;
4222
4222
  staleDecisionAbsent: boolean;
4223
4223
  evidence?: {
4224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4224
4225
  id: string;
4225
4226
  label: string;
4226
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4227
4227
  capture: "at_action" | "historical_lookup" | "fixture";
4228
4228
  locator?: string | undefined;
4229
4229
  }[] | undefined;
4230
4230
  } | {
4231
- summary: string;
4232
4231
  kind: "mission_completed";
4232
+ summary: string;
4233
4233
  outcome: "failed" | "recovered" | "inconclusive";
4234
4234
  evidence?: {
4235
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4235
4236
  id: string;
4236
4237
  label: string;
4237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4238
4238
  capture: "at_action" | "historical_lookup" | "fixture";
4239
4239
  locator?: string | undefined;
4240
4240
  }[] | undefined;
4241
4241
  }>;
4242
4242
  }, "strict", z.ZodTypeAny, {
4243
- namespace: string;
4244
- recordedAt: string;
4245
4243
  schemaVersion: "1";
4244
+ recordedAt: string;
4246
4245
  payload: {
4247
4246
  kind: "mission_started";
4248
4247
  title: string;
4249
4248
  evidence: {
4249
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4250
4250
  id: string;
4251
4251
  label: string;
4252
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4253
4252
  capture: "at_action" | "historical_lookup" | "fixture";
4254
4253
  locator?: string | undefined;
4255
4254
  }[];
4256
4255
  objective: string;
4257
4256
  runMode: "replay" | "fixture" | "live";
4258
4257
  } | {
4259
- label: string;
4260
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4261
4258
  kind: "agent_status";
4259
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4262
4260
  role: string;
4261
+ label: string;
4263
4262
  agentId: string;
4264
4263
  sessionId: string;
4265
4264
  evidence: {
4265
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4266
4266
  id: string;
4267
4267
  label: string;
4268
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4269
4268
  capture: "at_action" | "historical_lookup" | "fixture";
4270
4269
  locator?: string | undefined;
4271
4270
  }[];
4272
4271
  detail?: string | undefined;
4273
4272
  } | {
4274
- summary: string;
4275
4273
  kind: "agent_output";
4274
+ summary: string;
4276
4275
  agentId: string;
4277
4276
  sessionId: string;
4278
4277
  evidence: {
4278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4279
4279
  id: string;
4280
4280
  label: string;
4281
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4282
4281
  capture: "at_action" | "historical_lookup" | "fixture";
4283
4282
  locator?: string | undefined;
4284
4283
  }[];
@@ -4289,9 +4288,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4289
4288
  statement: string;
4290
4289
  sessionId: string;
4291
4290
  evidence: {
4291
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4292
4292
  id: string;
4293
4293
  label: string;
4294
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4295
4294
  capture: "at_action" | "historical_lookup" | "fixture";
4296
4295
  locator?: string | undefined;
4297
4296
  }[];
@@ -4299,12 +4298,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4299
4298
  decisionId: string;
4300
4299
  confidence?: number | undefined;
4301
4300
  } | {
4302
- summary: string;
4303
4301
  kind: "conflict_detected";
4302
+ summary: string;
4304
4303
  evidence: {
4304
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4305
4305
  id: string;
4306
4306
  label: string;
4307
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4308
4307
  capture: "at_action" | "historical_lookup" | "fixture";
4309
4308
  locator?: string | undefined;
4310
4309
  }[];
@@ -4312,14 +4311,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4312
4311
  decisionIds: string[];
4313
4312
  agentIds: string[];
4314
4313
  } | {
4314
+ kind: "test_result";
4315
4315
  summary: string;
4316
4316
  status: "error" | "failed" | "passed";
4317
- kind: "test_result";
4318
4317
  command: string;
4319
4318
  evidence: {
4319
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4320
4320
  id: string;
4321
4321
  label: string;
4322
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4323
4322
  capture: "at_action" | "historical_lookup" | "fixture";
4324
4323
  locator?: string | undefined;
4325
4324
  }[];
@@ -4332,9 +4331,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4332
4331
  rationale: string;
4333
4332
  statement: string;
4334
4333
  evidence: {
4334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4335
4335
  id: string;
4336
4336
  label: string;
4337
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4338
4337
  capture: "at_action" | "historical_lookup" | "fixture";
4339
4338
  locator?: string | undefined;
4340
4339
  }[];
@@ -4346,25 +4345,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4346
4345
  } | {
4347
4346
  kind: "correction_approved";
4348
4347
  evidence: {
4348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4349
4349
  id: string;
4350
4350
  label: string;
4351
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4352
4351
  capture: "at_action" | "historical_lookup" | "fixture";
4353
4352
  locator?: string | undefined;
4354
4353
  }[];
4355
4354
  correctionId: string;
4356
4355
  approvedBy: {
4356
+ kind: "agent" | "human";
4357
4357
  id: string;
4358
4358
  label: string;
4359
- kind: "agent" | "human";
4360
4359
  };
4361
4360
  note?: string | undefined;
4362
4361
  } | {
4363
4362
  kind: "decision_superseded";
4364
4363
  evidence: {
4364
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4365
4365
  id: string;
4366
4366
  label: string;
4367
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4368
4367
  capture: "at_action" | "historical_lookup" | "fixture";
4369
4368
  locator?: string | undefined;
4370
4369
  }[];
@@ -4377,9 +4376,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4377
4376
  agentId: string;
4378
4377
  sessionId: string;
4379
4378
  evidence: {
4379
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4380
4380
  id: string;
4381
4381
  label: string;
4382
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4383
4382
  capture: "at_action" | "historical_lookup" | "fixture";
4384
4383
  locator?: string | undefined;
4385
4384
  }[];
@@ -4391,9 +4390,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4391
4390
  agentId: string;
4392
4391
  sessionId: string;
4393
4392
  evidence: {
4393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4394
4394
  id: string;
4395
4395
  label: string;
4396
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4397
4396
  capture: "at_action" | "historical_lookup" | "fixture";
4398
4397
  locator?: string | undefined;
4399
4398
  }[];
@@ -4402,63 +4401,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4402
4401
  recallReceiptId: string;
4403
4402
  staleDecisionAbsent: boolean;
4404
4403
  } | {
4405
- summary: string;
4406
4404
  kind: "mission_completed";
4405
+ summary: string;
4407
4406
  outcome: "failed" | "recovered" | "inconclusive";
4408
4407
  evidence: {
4408
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4409
4409
  id: string;
4410
4410
  label: string;
4411
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4412
4411
  capture: "at_action" | "historical_lookup" | "fixture";
4413
4412
  locator?: string | undefined;
4414
4413
  }[];
4415
4414
  };
4415
+ namespace: string;
4416
4416
  eventId: string;
4417
4417
  occurredAt: string;
4418
4418
  missionId: string;
4419
4419
  authenticatedPrincipal?: string | undefined;
4420
4420
  idempotencyKey?: string | undefined;
4421
4421
  }, {
4422
- namespace: string;
4423
- recordedAt: string;
4424
4422
  schemaVersion: "1";
4423
+ recordedAt: string;
4425
4424
  payload: {
4426
4425
  kind: "mission_started";
4427
4426
  title: string;
4428
4427
  objective: string;
4429
4428
  runMode: "replay" | "fixture" | "live";
4430
4429
  evidence?: {
4430
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4431
4431
  id: string;
4432
4432
  label: string;
4433
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4434
4433
  capture: "at_action" | "historical_lookup" | "fixture";
4435
4434
  locator?: string | undefined;
4436
4435
  }[] | undefined;
4437
4436
  } | {
4438
- label: string;
4439
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4440
4437
  kind: "agent_status";
4438
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4441
4439
  role: string;
4440
+ label: string;
4442
4441
  agentId: string;
4443
4442
  sessionId: string;
4444
4443
  detail?: string | undefined;
4445
4444
  evidence?: {
4445
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4446
4446
  id: string;
4447
4447
  label: string;
4448
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4449
4448
  capture: "at_action" | "historical_lookup" | "fixture";
4450
4449
  locator?: string | undefined;
4451
4450
  }[] | undefined;
4452
4451
  } | {
4453
- summary: string;
4454
4452
  kind: "agent_output";
4453
+ summary: string;
4455
4454
  agentId: string;
4456
4455
  sessionId: string;
4457
4456
  outputId: string;
4458
4457
  evidence?: {
4458
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4459
4459
  id: string;
4460
4460
  label: string;
4461
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4462
4461
  capture: "at_action" | "historical_lookup" | "fixture";
4463
4462
  locator?: string | undefined;
4464
4463
  }[] | undefined;
@@ -4471,37 +4470,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4471
4470
  decisionId: string;
4472
4471
  confidence?: number | undefined;
4473
4472
  evidence?: {
4473
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4474
4474
  id: string;
4475
4475
  label: string;
4476
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4477
4476
  capture: "at_action" | "historical_lookup" | "fixture";
4478
4477
  locator?: string | undefined;
4479
4478
  }[] | undefined;
4480
4479
  } | {
4481
- summary: string;
4482
4480
  kind: "conflict_detected";
4481
+ summary: string;
4483
4482
  conflictId: string;
4484
4483
  decisionIds: string[];
4485
4484
  agentIds: string[];
4486
4485
  evidence?: {
4486
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4487
4487
  id: string;
4488
4488
  label: string;
4489
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4490
4489
  capture: "at_action" | "historical_lookup" | "fixture";
4491
4490
  locator?: string | undefined;
4492
4491
  }[] | undefined;
4493
4492
  } | {
4493
+ kind: "test_result";
4494
4494
  summary: string;
4495
4495
  status: "error" | "failed" | "passed";
4496
- kind: "test_result";
4497
4496
  command: string;
4498
4497
  decisionId: string;
4499
4498
  testId: string;
4500
4499
  durationMs?: number | undefined;
4501
4500
  evidence?: {
4501
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4502
4502
  id: string;
4503
4503
  label: string;
4504
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4505
4504
  capture: "at_action" | "historical_lookup" | "fixture";
4506
4505
  locator?: string | undefined;
4507
4506
  }[] | undefined;
@@ -4516,9 +4515,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4516
4515
  supersedesDecisionIds: string[];
4517
4516
  proposedBy: string;
4518
4517
  evidence?: {
4518
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4519
4519
  id: string;
4520
4520
  label: string;
4521
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4522
4521
  capture: "at_action" | "historical_lookup" | "fixture";
4523
4522
  locator?: string | undefined;
4524
4523
  }[] | undefined;
@@ -4526,15 +4525,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4526
4525
  kind: "correction_approved";
4527
4526
  correctionId: string;
4528
4527
  approvedBy: {
4528
+ kind: "agent" | "human";
4529
4529
  id: string;
4530
4530
  label: string;
4531
- kind: "agent" | "human";
4532
4531
  };
4533
4532
  note?: string | undefined;
4534
4533
  evidence?: {
4534
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4535
4535
  id: string;
4536
4536
  label: string;
4537
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4538
4537
  capture: "at_action" | "historical_lookup" | "fixture";
4539
4538
  locator?: string | undefined;
4540
4539
  }[] | undefined;
@@ -4544,9 +4543,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4544
4543
  correctionId: string;
4545
4544
  replacementDecisionId: string;
4546
4545
  evidence?: {
4546
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4547
4547
  id: string;
4548
4548
  label: string;
4549
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4550
4549
  capture: "at_action" | "historical_lookup" | "fixture";
4551
4550
  locator?: string | undefined;
4552
4551
  }[] | undefined;
@@ -4559,9 +4558,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4559
4558
  recallReceiptId: string;
4560
4559
  capturedAtAction: boolean;
4561
4560
  evidence?: {
4561
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4562
4562
  id: string;
4563
4563
  label: string;
4564
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4565
4564
  capture: "at_action" | "historical_lookup" | "fixture";
4566
4565
  locator?: string | undefined;
4567
4566
  }[] | undefined;
@@ -4574,24 +4573,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4574
4573
  recallReceiptId: string;
4575
4574
  staleDecisionAbsent: boolean;
4576
4575
  evidence?: {
4576
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4577
4577
  id: string;
4578
4578
  label: string;
4579
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4580
4579
  capture: "at_action" | "historical_lookup" | "fixture";
4581
4580
  locator?: string | undefined;
4582
4581
  }[] | undefined;
4583
4582
  } | {
4584
- summary: string;
4585
4583
  kind: "mission_completed";
4584
+ summary: string;
4586
4585
  outcome: "failed" | "recovered" | "inconclusive";
4587
4586
  evidence?: {
4587
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4588
4588
  id: string;
4589
4589
  label: string;
4590
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4591
4590
  capture: "at_action" | "historical_lookup" | "fixture";
4592
4591
  locator?: string | undefined;
4593
4592
  }[] | undefined;
4594
4593
  };
4594
+ namespace: string;
4595
4595
  eventId: string;
4596
4596
  occurredAt: string;
4597
4597
  missionId: string;