@remnic/core 9.7.12 → 9.7.13

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.
package/dist/index.d.ts CHANGED
@@ -852,15 +852,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
852
852
  locator: z.ZodOptional<z.ZodString>;
853
853
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
854
854
  }, "strict", z.ZodTypeAny, {
855
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
855
856
  id: string;
856
857
  label: string;
857
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
858
858
  capture: "at_action" | "historical_lookup" | "fixture";
859
859
  locator?: string | undefined;
860
860
  }, {
861
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
861
862
  id: string;
862
863
  label: string;
863
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
864
864
  capture: "at_action" | "historical_lookup" | "fixture";
865
865
  locator?: string | undefined;
866
866
  }>;
@@ -877,15 +877,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
877
877
  locator: z.ZodOptional<z.ZodString>;
878
878
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
879
879
  }, "strict", z.ZodTypeAny, {
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
  }, {
886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
886
887
  id: string;
887
888
  label: string;
888
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
889
889
  capture: "at_action" | "historical_lookup" | "fixture";
890
890
  locator?: string | undefined;
891
891
  }>, "many">>;
@@ -895,9 +895,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
895
895
  objective: string;
896
896
  runMode: "replay" | "fixture" | "live";
897
897
  evidence: {
898
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
898
899
  id: string;
899
900
  label: string;
900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
901
901
  capture: "at_action" | "historical_lookup" | "fixture";
902
902
  locator?: string | undefined;
903
903
  }[];
@@ -907,9 +907,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
907
907
  objective: string;
908
908
  runMode: "replay" | "fixture" | "live";
909
909
  evidence?: {
910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
910
911
  id: string;
911
912
  label: string;
912
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
913
913
  capture: "at_action" | "historical_lookup" | "fixture";
914
914
  locator?: string | undefined;
915
915
  }[] | undefined;
@@ -925,15 +925,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
925
925
  locator: z.ZodOptional<z.ZodString>;
926
926
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
927
927
  }, "strict", z.ZodTypeAny, {
928
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
928
929
  id: string;
929
930
  label: string;
930
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
931
931
  capture: "at_action" | "historical_lookup" | "fixture";
932
932
  locator?: string | undefined;
933
933
  }, {
934
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
934
935
  id: string;
935
936
  label: string;
936
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
937
937
  capture: "at_action" | "historical_lookup" | "fixture";
938
938
  locator?: string | undefined;
939
939
  }>, "many">>;
@@ -941,32 +941,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
941
941
  sessionId: z.ZodString;
942
942
  kind: z.ZodLiteral<"agent_status">;
943
943
  }, "strict", z.ZodTypeAny, {
944
- label: string;
945
944
  kind: "agent_status";
946
945
  role: string;
947
946
  status: "failed" | "complete" | "working" | "blocked" | "idle";
947
+ label: string;
948
948
  agentId: string;
949
949
  sessionId: string;
950
950
  evidence: {
951
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
951
952
  id: string;
952
953
  label: string;
953
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
954
  capture: "at_action" | "historical_lookup" | "fixture";
955
955
  locator?: string | undefined;
956
956
  }[];
957
957
  detail?: string | undefined;
958
958
  }, {
959
- label: string;
960
959
  kind: "agent_status";
961
960
  role: string;
962
961
  status: "failed" | "complete" | "working" | "blocked" | "idle";
962
+ label: string;
963
963
  agentId: string;
964
964
  sessionId: string;
965
965
  detail?: string | undefined;
966
966
  evidence?: {
967
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
967
968
  id: string;
968
969
  label: string;
969
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
970
970
  capture: "at_action" | "historical_lookup" | "fixture";
971
971
  locator?: string | undefined;
972
972
  }[] | undefined;
@@ -980,15 +980,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
980
980
  locator: z.ZodOptional<z.ZodString>;
981
981
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
982
982
  }, "strict", z.ZodTypeAny, {
983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
983
984
  id: string;
984
985
  label: string;
985
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
986
986
  capture: "at_action" | "historical_lookup" | "fixture";
987
987
  locator?: string | undefined;
988
988
  }, {
989
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
989
990
  id: string;
990
991
  label: string;
991
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
992
992
  capture: "at_action" | "historical_lookup" | "fixture";
993
993
  locator?: string | undefined;
994
994
  }>, "many">>;
@@ -996,28 +996,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
996
996
  sessionId: z.ZodString;
997
997
  kind: z.ZodLiteral<"agent_output">;
998
998
  }, "strict", z.ZodTypeAny, {
999
- summary: string;
1000
999
  kind: "agent_output";
1000
+ summary: string;
1001
1001
  agentId: string;
1002
1002
  sessionId: string;
1003
1003
  evidence: {
1004
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1004
1005
  id: string;
1005
1006
  label: string;
1006
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1007
1007
  capture: "at_action" | "historical_lookup" | "fixture";
1008
1008
  locator?: string | undefined;
1009
1009
  }[];
1010
1010
  outputId: string;
1011
1011
  }, {
1012
- summary: string;
1013
1012
  kind: "agent_output";
1013
+ summary: string;
1014
1014
  agentId: string;
1015
1015
  sessionId: string;
1016
1016
  outputId: string;
1017
1017
  evidence?: {
1018
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1018
1019
  id: string;
1019
1020
  label: string;
1020
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1021
1021
  capture: "at_action" | "historical_lookup" | "fixture";
1022
1022
  locator?: string | undefined;
1023
1023
  }[] | undefined;
@@ -1033,15 +1033,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1033
1033
  locator: z.ZodOptional<z.ZodString>;
1034
1034
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1035
1035
  }, "strict", z.ZodTypeAny, {
1036
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1036
1037
  id: string;
1037
1038
  label: string;
1038
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1039
1039
  capture: "at_action" | "historical_lookup" | "fixture";
1040
1040
  locator?: string | undefined;
1041
1041
  }, {
1042
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1042
1043
  id: string;
1043
1044
  label: string;
1044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1045
1045
  capture: "at_action" | "historical_lookup" | "fixture";
1046
1046
  locator?: string | undefined;
1047
1047
  }>, "many">>;
@@ -1054,9 +1054,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1054
1054
  sessionId: string;
1055
1055
  statement: string;
1056
1056
  evidence: {
1057
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1057
1058
  id: string;
1058
1059
  label: string;
1059
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1060
1060
  capture: "at_action" | "historical_lookup" | "fixture";
1061
1061
  locator?: string | undefined;
1062
1062
  }[];
@@ -1072,9 +1072,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1072
1072
  decisionId: string;
1073
1073
  confidence?: number | undefined;
1074
1074
  evidence?: {
1075
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1075
1076
  id: string;
1076
1077
  label: string;
1077
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1078
1078
  capture: "at_action" | "historical_lookup" | "fixture";
1079
1079
  locator?: string | undefined;
1080
1080
  }[] | undefined;
@@ -1091,25 +1091,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1091
1091
  locator: z.ZodOptional<z.ZodString>;
1092
1092
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1093
1093
  }, "strict", z.ZodTypeAny, {
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
  }, {
1100
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1100
1101
  id: string;
1101
1102
  label: string;
1102
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1103
1103
  capture: "at_action" | "historical_lookup" | "fixture";
1104
1104
  locator?: string | undefined;
1105
1105
  }>, "many">>;
1106
1106
  }, "strict", z.ZodTypeAny, {
1107
- summary: string;
1108
1107
  kind: "conflict_detected";
1108
+ summary: string;
1109
1109
  evidence: {
1110
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1110
1111
  id: string;
1111
1112
  label: string;
1112
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1113
1113
  capture: "at_action" | "historical_lookup" | "fixture";
1114
1114
  locator?: string | undefined;
1115
1115
  }[];
@@ -1117,15 +1117,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1117
1117
  decisionIds: string[];
1118
1118
  agentIds: string[];
1119
1119
  }, {
1120
- summary: string;
1121
1120
  kind: "conflict_detected";
1121
+ summary: string;
1122
1122
  conflictId: string;
1123
1123
  decisionIds: string[];
1124
1124
  agentIds: string[];
1125
1125
  evidence?: {
1126
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1126
1127
  id: string;
1127
1128
  label: string;
1128
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1129
1129
  capture: "at_action" | "historical_lookup" | "fixture";
1130
1130
  locator?: string | undefined;
1131
1131
  }[] | undefined;
@@ -1145,27 +1145,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1145
1145
  locator: z.ZodOptional<z.ZodString>;
1146
1146
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1147
1147
  }, "strict", z.ZodTypeAny, {
1148
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1148
1149
  id: string;
1149
1150
  label: string;
1150
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1151
1151
  capture: "at_action" | "historical_lookup" | "fixture";
1152
1152
  locator?: string | undefined;
1153
1153
  }, {
1154
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1154
1155
  id: string;
1155
1156
  label: string;
1156
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1157
1157
  capture: "at_action" | "historical_lookup" | "fixture";
1158
1158
  locator?: string | undefined;
1159
1159
  }>, "many">>;
1160
1160
  }, "strict", z.ZodTypeAny, {
1161
- summary: string;
1162
1161
  kind: "test_result";
1162
+ summary: string;
1163
1163
  command: string;
1164
1164
  status: "error" | "failed" | "passed";
1165
1165
  evidence: {
1166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1166
1167
  id: string;
1167
1168
  label: string;
1168
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1169
1169
  capture: "at_action" | "historical_lookup" | "fixture";
1170
1170
  locator?: string | undefined;
1171
1171
  }[];
@@ -1174,17 +1174,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1174
1174
  durationMs?: number | undefined;
1175
1175
  correctionId?: string | undefined;
1176
1176
  }, {
1177
- summary: string;
1178
1177
  kind: "test_result";
1178
+ summary: string;
1179
1179
  command: string;
1180
1180
  status: "error" | "failed" | "passed";
1181
1181
  decisionId: string;
1182
1182
  testId: string;
1183
1183
  durationMs?: number | undefined;
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
  }[] | undefined;
@@ -1205,15 +1205,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1205
1205
  locator: z.ZodOptional<z.ZodString>;
1206
1206
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1207
1207
  }, "strict", z.ZodTypeAny, {
1208
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1208
1209
  id: string;
1209
1210
  label: string;
1210
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1211
1211
  capture: "at_action" | "historical_lookup" | "fixture";
1212
1212
  locator?: string | undefined;
1213
1213
  }, {
1214
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1214
1215
  id: string;
1215
1216
  label: string;
1216
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1217
1217
  capture: "at_action" | "historical_lookup" | "fixture";
1218
1218
  locator?: string | undefined;
1219
1219
  }>, "many">>;
@@ -1222,9 +1222,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1222
1222
  rationale: string;
1223
1223
  statement: string;
1224
1224
  evidence: {
1225
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1225
1226
  id: string;
1226
1227
  label: string;
1227
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1228
1228
  capture: "at_action" | "historical_lookup" | "fixture";
1229
1229
  locator?: string | undefined;
1230
1230
  }[];
@@ -1243,9 +1243,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1243
1243
  supersedesDecisionIds: string[];
1244
1244
  proposedBy: string;
1245
1245
  evidence?: {
1246
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1246
1247
  id: string;
1247
1248
  label: string;
1248
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1249
1249
  capture: "at_action" | "historical_lookup" | "fixture";
1250
1250
  locator?: string | undefined;
1251
1251
  }[] | undefined;
@@ -1257,13 +1257,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1257
1257
  id: z.ZodString;
1258
1258
  label: z.ZodString;
1259
1259
  }, "strict", z.ZodTypeAny, {
1260
+ kind: "agent" | "human";
1260
1261
  id: string;
1261
1262
  label: string;
1262
- kind: "agent" | "human";
1263
1263
  }, {
1264
+ kind: "agent" | "human";
1264
1265
  id: string;
1265
1266
  label: string;
1266
- kind: "agent" | "human";
1267
1267
  }>;
1268
1268
  note: z.ZodOptional<z.ZodString>;
1269
1269
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1273,47 +1273,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1273
1273
  locator: z.ZodOptional<z.ZodString>;
1274
1274
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1275
1275
  }, "strict", z.ZodTypeAny, {
1276
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1276
1277
  id: string;
1277
1278
  label: string;
1278
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1279
1279
  capture: "at_action" | "historical_lookup" | "fixture";
1280
1280
  locator?: string | undefined;
1281
1281
  }, {
1282
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1282
1283
  id: string;
1283
1284
  label: string;
1284
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1285
1285
  capture: "at_action" | "historical_lookup" | "fixture";
1286
1286
  locator?: string | undefined;
1287
1287
  }>, "many">>;
1288
1288
  }, "strict", z.ZodTypeAny, {
1289
1289
  kind: "correction_approved";
1290
1290
  evidence: {
1291
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1291
1292
  id: string;
1292
1293
  label: string;
1293
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1294
1294
  capture: "at_action" | "historical_lookup" | "fixture";
1295
1295
  locator?: string | undefined;
1296
1296
  }[];
1297
1297
  correctionId: string;
1298
1298
  approvedBy: {
1299
+ kind: "agent" | "human";
1299
1300
  id: string;
1300
1301
  label: string;
1301
- kind: "agent" | "human";
1302
1302
  };
1303
1303
  note?: string | undefined;
1304
1304
  }, {
1305
1305
  kind: "correction_approved";
1306
1306
  correctionId: string;
1307
1307
  approvedBy: {
1308
+ kind: "agent" | "human";
1308
1309
  id: string;
1309
1310
  label: string;
1310
- kind: "agent" | "human";
1311
1311
  };
1312
1312
  note?: string | undefined;
1313
1313
  evidence?: {
1314
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1314
1315
  id: string;
1315
1316
  label: string;
1316
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
1317
  capture: "at_action" | "historical_lookup" | "fixture";
1318
1318
  locator?: string | undefined;
1319
1319
  }[] | undefined;
@@ -1329,24 +1329,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1329
1329
  locator: z.ZodOptional<z.ZodString>;
1330
1330
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1331
1331
  }, "strict", z.ZodTypeAny, {
1332
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1332
1333
  id: string;
1333
1334
  label: string;
1334
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1335
1335
  capture: "at_action" | "historical_lookup" | "fixture";
1336
1336
  locator?: string | undefined;
1337
1337
  }, {
1338
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1338
1339
  id: string;
1339
1340
  label: string;
1340
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1341
1341
  capture: "at_action" | "historical_lookup" | "fixture";
1342
1342
  locator?: string | undefined;
1343
1343
  }>, "many">>;
1344
1344
  }, "strict", z.ZodTypeAny, {
1345
1345
  kind: "decision_superseded";
1346
1346
  evidence: {
1347
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1347
1348
  id: string;
1348
1349
  label: string;
1349
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
1350
  capture: "at_action" | "historical_lookup" | "fixture";
1351
1351
  locator?: string | undefined;
1352
1352
  }[];
@@ -1359,9 +1359,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1359
1359
  correctionId: string;
1360
1360
  replacementDecisionId: string;
1361
1361
  evidence?: {
1362
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1362
1363
  id: string;
1363
1364
  label: string;
1364
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1365
1365
  capture: "at_action" | "historical_lookup" | "fixture";
1366
1366
  locator?: string | undefined;
1367
1367
  }[] | undefined;
@@ -1377,15 +1377,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1377
1377
  locator: z.ZodOptional<z.ZodString>;
1378
1378
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1379
1379
  }, "strict", z.ZodTypeAny, {
1380
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1380
1381
  id: string;
1381
1382
  label: string;
1382
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
1383
  capture: "at_action" | "historical_lookup" | "fixture";
1384
1384
  locator?: string | undefined;
1385
1385
  }, {
1386
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1386
1387
  id: string;
1387
1388
  label: string;
1388
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1389
1389
  capture: "at_action" | "historical_lookup" | "fixture";
1390
1390
  locator?: string | undefined;
1391
1391
  }>, "many">>;
@@ -1398,9 +1398,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1398
1398
  agentId: string;
1399
1399
  sessionId: string;
1400
1400
  evidence: {
1401
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1401
1402
  id: string;
1402
1403
  label: string;
1403
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1404
1404
  capture: "at_action" | "historical_lookup" | "fixture";
1405
1405
  locator?: string | undefined;
1406
1406
  }[];
@@ -1416,9 +1416,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1416
1416
  recallReceiptId: string;
1417
1417
  capturedAtAction: boolean;
1418
1418
  evidence?: {
1419
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1419
1420
  id: string;
1420
1421
  label: string;
1421
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1422
1422
  capture: "at_action" | "historical_lookup" | "fixture";
1423
1423
  locator?: string | undefined;
1424
1424
  }[] | undefined;
@@ -1434,15 +1434,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1434
1434
  locator: z.ZodOptional<z.ZodString>;
1435
1435
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1436
1436
  }, "strict", z.ZodTypeAny, {
1437
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1437
1438
  id: string;
1438
1439
  label: string;
1439
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1440
1440
  capture: "at_action" | "historical_lookup" | "fixture";
1441
1441
  locator?: string | undefined;
1442
1442
  }, {
1443
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1443
1444
  id: string;
1444
1445
  label: string;
1445
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1446
1446
  capture: "at_action" | "historical_lookup" | "fixture";
1447
1447
  locator?: string | undefined;
1448
1448
  }>, "many">>;
@@ -1454,9 +1454,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1454
1454
  agentId: string;
1455
1455
  sessionId: string;
1456
1456
  evidence: {
1457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1457
1458
  id: string;
1458
1459
  label: string;
1459
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1460
1460
  capture: "at_action" | "historical_lookup" | "fixture";
1461
1461
  locator?: string | undefined;
1462
1462
  }[];
@@ -1473,9 +1473,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1473
1473
  recallReceiptId: string;
1474
1474
  staleDecisionAbsent: boolean;
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
  }[] | undefined;
@@ -1490,37 +1490,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1490
1490
  locator: z.ZodOptional<z.ZodString>;
1491
1491
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1492
1492
  }, "strict", z.ZodTypeAny, {
1493
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1493
1494
  id: string;
1494
1495
  label: string;
1495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1496
1496
  capture: "at_action" | "historical_lookup" | "fixture";
1497
1497
  locator?: string | undefined;
1498
1498
  }, {
1499
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1499
1500
  id: string;
1500
1501
  label: string;
1501
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1502
1502
  capture: "at_action" | "historical_lookup" | "fixture";
1503
1503
  locator?: string | undefined;
1504
1504
  }>, "many">>;
1505
1505
  }, "strict", z.ZodTypeAny, {
1506
- summary: string;
1507
1506
  kind: "mission_completed";
1507
+ summary: string;
1508
1508
  outcome: "failed" | "recovered" | "inconclusive";
1509
1509
  evidence: {
1510
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1510
1511
  id: string;
1511
1512
  label: string;
1512
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
1513
  capture: "at_action" | "historical_lookup" | "fixture";
1514
1514
  locator?: string | undefined;
1515
1515
  }[];
1516
1516
  }, {
1517
- summary: string;
1518
1517
  kind: "mission_completed";
1518
+ summary: string;
1519
1519
  outcome: "failed" | "recovered" | "inconclusive";
1520
1520
  evidence?: {
1521
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1521
1522
  id: string;
1522
1523
  label: string;
1523
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1524
1524
  capture: "at_action" | "historical_lookup" | "fixture";
1525
1525
  locator?: string | undefined;
1526
1526
  }[] | undefined;
@@ -1530,36 +1530,36 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1530
1530
  objective: string;
1531
1531
  runMode: "replay" | "fixture" | "live";
1532
1532
  evidence: {
1533
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1533
1534
  id: string;
1534
1535
  label: string;
1535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1536
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1537
1537
  locator?: string | undefined;
1538
1538
  }[];
1539
1539
  } | {
1540
- label: string;
1541
1540
  kind: "agent_status";
1542
1541
  role: string;
1543
1542
  status: "failed" | "complete" | "working" | "blocked" | "idle";
1543
+ label: string;
1544
1544
  agentId: string;
1545
1545
  sessionId: string;
1546
1546
  evidence: {
1547
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1547
1548
  id: string;
1548
1549
  label: string;
1549
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1550
1550
  capture: "at_action" | "historical_lookup" | "fixture";
1551
1551
  locator?: string | undefined;
1552
1552
  }[];
1553
1553
  detail?: string | undefined;
1554
1554
  } | {
1555
- summary: string;
1556
1555
  kind: "agent_output";
1556
+ summary: string;
1557
1557
  agentId: string;
1558
1558
  sessionId: string;
1559
1559
  evidence: {
1560
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1560
1561
  id: string;
1561
1562
  label: string;
1562
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1563
1563
  capture: "at_action" | "historical_lookup" | "fixture";
1564
1564
  locator?: string | undefined;
1565
1565
  }[];
@@ -1570,9 +1570,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1570
1570
  sessionId: string;
1571
1571
  statement: string;
1572
1572
  evidence: {
1573
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1573
1574
  id: string;
1574
1575
  label: string;
1575
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1576
1576
  capture: "at_action" | "historical_lookup" | "fixture";
1577
1577
  locator?: string | undefined;
1578
1578
  }[];
@@ -1580,12 +1580,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1580
1580
  decisionId: string;
1581
1581
  confidence?: number | undefined;
1582
1582
  } | {
1583
- summary: string;
1584
1583
  kind: "conflict_detected";
1584
+ summary: string;
1585
1585
  evidence: {
1586
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1586
1587
  id: string;
1587
1588
  label: string;
1588
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1589
1589
  capture: "at_action" | "historical_lookup" | "fixture";
1590
1590
  locator?: string | undefined;
1591
1591
  }[];
@@ -1593,14 +1593,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1593
1593
  decisionIds: string[];
1594
1594
  agentIds: string[];
1595
1595
  } | {
1596
- summary: string;
1597
1596
  kind: "test_result";
1597
+ summary: string;
1598
1598
  command: string;
1599
1599
  status: "error" | "failed" | "passed";
1600
1600
  evidence: {
1601
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1601
1602
  id: string;
1602
1603
  label: string;
1603
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1604
1604
  capture: "at_action" | "historical_lookup" | "fixture";
1605
1605
  locator?: string | undefined;
1606
1606
  }[];
@@ -1613,9 +1613,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1613
1613
  rationale: string;
1614
1614
  statement: string;
1615
1615
  evidence: {
1616
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1616
1617
  id: string;
1617
1618
  label: string;
1618
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1619
1619
  capture: "at_action" | "historical_lookup" | "fixture";
1620
1620
  locator?: string | undefined;
1621
1621
  }[];
@@ -1627,25 +1627,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1627
1627
  } | {
1628
1628
  kind: "correction_approved";
1629
1629
  evidence: {
1630
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1630
1631
  id: string;
1631
1632
  label: string;
1632
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1633
1633
  capture: "at_action" | "historical_lookup" | "fixture";
1634
1634
  locator?: string | undefined;
1635
1635
  }[];
1636
1636
  correctionId: string;
1637
1637
  approvedBy: {
1638
+ kind: "agent" | "human";
1638
1639
  id: string;
1639
1640
  label: string;
1640
- kind: "agent" | "human";
1641
1641
  };
1642
1642
  note?: string | undefined;
1643
1643
  } | {
1644
1644
  kind: "decision_superseded";
1645
1645
  evidence: {
1646
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1646
1647
  id: string;
1647
1648
  label: string;
1648
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1649
1649
  capture: "at_action" | "historical_lookup" | "fixture";
1650
1650
  locator?: string | undefined;
1651
1651
  }[];
@@ -1658,9 +1658,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1658
1658
  agentId: string;
1659
1659
  sessionId: string;
1660
1660
  evidence: {
1661
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1661
1662
  id: string;
1662
1663
  label: string;
1663
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
1664
  capture: "at_action" | "historical_lookup" | "fixture";
1665
1665
  locator?: string | undefined;
1666
1666
  }[];
@@ -1672,9 +1672,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1672
1672
  agentId: string;
1673
1673
  sessionId: string;
1674
1674
  evidence: {
1675
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1675
1676
  id: string;
1676
1677
  label: string;
1677
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1678
1678
  capture: "at_action" | "historical_lookup" | "fixture";
1679
1679
  locator?: string | undefined;
1680
1680
  }[];
@@ -1683,13 +1683,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1683
1683
  recallReceiptId: string;
1684
1684
  staleDecisionAbsent: boolean;
1685
1685
  } | {
1686
- summary: string;
1687
1686
  kind: "mission_completed";
1687
+ summary: string;
1688
1688
  outcome: "failed" | "recovered" | "inconclusive";
1689
1689
  evidence: {
1690
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1690
1691
  id: string;
1691
1692
  label: string;
1692
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1693
1693
  capture: "at_action" | "historical_lookup" | "fixture";
1694
1694
  locator?: string | undefined;
1695
1695
  }[];
@@ -1699,37 +1699,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1699
1699
  objective: string;
1700
1700
  runMode: "replay" | "fixture" | "live";
1701
1701
  evidence?: {
1702
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1702
1703
  id: string;
1703
1704
  label: string;
1704
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1705
1705
  capture: "at_action" | "historical_lookup" | "fixture";
1706
1706
  locator?: string | undefined;
1707
1707
  }[] | undefined;
1708
1708
  } | {
1709
- label: string;
1710
1709
  kind: "agent_status";
1711
1710
  role: string;
1712
1711
  status: "failed" | "complete" | "working" | "blocked" | "idle";
1712
+ label: string;
1713
1713
  agentId: string;
1714
1714
  sessionId: string;
1715
1715
  detail?: string | undefined;
1716
1716
  evidence?: {
1717
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1717
1718
  id: string;
1718
1719
  label: string;
1719
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1720
1720
  capture: "at_action" | "historical_lookup" | "fixture";
1721
1721
  locator?: string | undefined;
1722
1722
  }[] | undefined;
1723
1723
  } | {
1724
- summary: string;
1725
1724
  kind: "agent_output";
1725
+ summary: string;
1726
1726
  agentId: string;
1727
1727
  sessionId: string;
1728
1728
  outputId: string;
1729
1729
  evidence?: {
1730
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1730
1731
  id: string;
1731
1732
  label: string;
1732
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1733
1733
  capture: "at_action" | "historical_lookup" | "fixture";
1734
1734
  locator?: string | undefined;
1735
1735
  }[] | undefined;
@@ -1742,37 +1742,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1742
1742
  decisionId: string;
1743
1743
  confidence?: number | undefined;
1744
1744
  evidence?: {
1745
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1745
1746
  id: string;
1746
1747
  label: string;
1747
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1748
1748
  capture: "at_action" | "historical_lookup" | "fixture";
1749
1749
  locator?: string | undefined;
1750
1750
  }[] | undefined;
1751
1751
  } | {
1752
- summary: string;
1753
1752
  kind: "conflict_detected";
1753
+ summary: string;
1754
1754
  conflictId: string;
1755
1755
  decisionIds: string[];
1756
1756
  agentIds: string[];
1757
1757
  evidence?: {
1758
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1758
1759
  id: string;
1759
1760
  label: string;
1760
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1761
1761
  capture: "at_action" | "historical_lookup" | "fixture";
1762
1762
  locator?: string | undefined;
1763
1763
  }[] | undefined;
1764
1764
  } | {
1765
- summary: string;
1766
1765
  kind: "test_result";
1766
+ summary: string;
1767
1767
  command: string;
1768
1768
  status: "error" | "failed" | "passed";
1769
1769
  decisionId: string;
1770
1770
  testId: string;
1771
1771
  durationMs?: number | undefined;
1772
1772
  evidence?: {
1773
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1773
1774
  id: string;
1774
1775
  label: string;
1775
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1776
1776
  capture: "at_action" | "historical_lookup" | "fixture";
1777
1777
  locator?: string | undefined;
1778
1778
  }[] | undefined;
@@ -1787,9 +1787,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1787
1787
  supersedesDecisionIds: string[];
1788
1788
  proposedBy: string;
1789
1789
  evidence?: {
1790
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1790
1791
  id: string;
1791
1792
  label: string;
1792
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
1793
  capture: "at_action" | "historical_lookup" | "fixture";
1794
1794
  locator?: string | undefined;
1795
1795
  }[] | undefined;
@@ -1797,15 +1797,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1797
1797
  kind: "correction_approved";
1798
1798
  correctionId: string;
1799
1799
  approvedBy: {
1800
+ kind: "agent" | "human";
1800
1801
  id: string;
1801
1802
  label: string;
1802
- kind: "agent" | "human";
1803
1803
  };
1804
1804
  note?: string | undefined;
1805
1805
  evidence?: {
1806
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1806
1807
  id: string;
1807
1808
  label: string;
1808
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1809
1809
  capture: "at_action" | "historical_lookup" | "fixture";
1810
1810
  locator?: string | undefined;
1811
1811
  }[] | undefined;
@@ -1815,9 +1815,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1815
1815
  correctionId: string;
1816
1816
  replacementDecisionId: string;
1817
1817
  evidence?: {
1818
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1818
1819
  id: string;
1819
1820
  label: string;
1820
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1821
1821
  capture: "at_action" | "historical_lookup" | "fixture";
1822
1822
  locator?: string | undefined;
1823
1823
  }[] | undefined;
@@ -1830,9 +1830,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1830
1830
  recallReceiptId: string;
1831
1831
  capturedAtAction: boolean;
1832
1832
  evidence?: {
1833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1833
1834
  id: string;
1834
1835
  label: string;
1835
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1836
1836
  capture: "at_action" | "historical_lookup" | "fixture";
1837
1837
  locator?: string | undefined;
1838
1838
  }[] | undefined;
@@ -1845,20 +1845,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1845
1845
  recallReceiptId: string;
1846
1846
  staleDecisionAbsent: boolean;
1847
1847
  evidence?: {
1848
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1848
1849
  id: string;
1849
1850
  label: string;
1850
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1851
1851
  capture: "at_action" | "historical_lookup" | "fixture";
1852
1852
  locator?: string | undefined;
1853
1853
  }[] | undefined;
1854
1854
  } | {
1855
- summary: string;
1856
1855
  kind: "mission_completed";
1856
+ summary: string;
1857
1857
  outcome: "failed" | "recovered" | "inconclusive";
1858
1858
  evidence?: {
1859
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1859
1860
  id: string;
1860
1861
  label: string;
1861
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1862
1862
  capture: "at_action" | "historical_lookup" | "fixture";
1863
1863
  locator?: string | undefined;
1864
1864
  }[] | undefined;
@@ -1879,15 +1879,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1879
1879
  locator: z.ZodOptional<z.ZodString>;
1880
1880
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1881
1881
  }, "strict", z.ZodTypeAny, {
1882
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1882
1883
  id: string;
1883
1884
  label: string;
1884
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1885
1885
  capture: "at_action" | "historical_lookup" | "fixture";
1886
1886
  locator?: string | undefined;
1887
1887
  }, {
1888
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1888
1889
  id: string;
1889
1890
  label: string;
1890
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1891
1891
  capture: "at_action" | "historical_lookup" | "fixture";
1892
1892
  locator?: string | undefined;
1893
1893
  }>, "many">>;
@@ -1897,9 +1897,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1897
1897
  objective: string;
1898
1898
  runMode: "replay" | "fixture" | "live";
1899
1899
  evidence: {
1900
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1900
1901
  id: string;
1901
1902
  label: string;
1902
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1903
1903
  capture: "at_action" | "historical_lookup" | "fixture";
1904
1904
  locator?: string | undefined;
1905
1905
  }[];
@@ -1909,9 +1909,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1909
1909
  objective: string;
1910
1910
  runMode: "replay" | "fixture" | "live";
1911
1911
  evidence?: {
1912
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1912
1913
  id: string;
1913
1914
  label: string;
1914
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1915
1915
  capture: "at_action" | "historical_lookup" | "fixture";
1916
1916
  locator?: string | undefined;
1917
1917
  }[] | undefined;
@@ -1927,15 +1927,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1927
1927
  locator: z.ZodOptional<z.ZodString>;
1928
1928
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1929
1929
  }, "strict", z.ZodTypeAny, {
1930
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1930
1931
  id: string;
1931
1932
  label: string;
1932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1933
1933
  capture: "at_action" | "historical_lookup" | "fixture";
1934
1934
  locator?: string | undefined;
1935
1935
  }, {
1936
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1936
1937
  id: string;
1937
1938
  label: string;
1938
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1939
1939
  capture: "at_action" | "historical_lookup" | "fixture";
1940
1940
  locator?: string | undefined;
1941
1941
  }>, "many">>;
@@ -1943,32 +1943,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1943
1943
  sessionId: z.ZodString;
1944
1944
  kind: z.ZodLiteral<"agent_status">;
1945
1945
  }, "strict", z.ZodTypeAny, {
1946
- label: string;
1947
1946
  kind: "agent_status";
1948
1947
  role: string;
1949
1948
  status: "failed" | "complete" | "working" | "blocked" | "idle";
1949
+ label: string;
1950
1950
  agentId: string;
1951
1951
  sessionId: string;
1952
1952
  evidence: {
1953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1953
1954
  id: string;
1954
1955
  label: string;
1955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
1956
  capture: "at_action" | "historical_lookup" | "fixture";
1957
1957
  locator?: string | undefined;
1958
1958
  }[];
1959
1959
  detail?: string | undefined;
1960
1960
  }, {
1961
- label: string;
1962
1961
  kind: "agent_status";
1963
1962
  role: string;
1964
1963
  status: "failed" | "complete" | "working" | "blocked" | "idle";
1964
+ label: string;
1965
1965
  agentId: string;
1966
1966
  sessionId: string;
1967
1967
  detail?: string | undefined;
1968
1968
  evidence?: {
1969
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1969
1970
  id: string;
1970
1971
  label: string;
1971
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
1972
  capture: "at_action" | "historical_lookup" | "fixture";
1973
1973
  locator?: string | undefined;
1974
1974
  }[] | undefined;
@@ -1982,15 +1982,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1982
1982
  locator: z.ZodOptional<z.ZodString>;
1983
1983
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1984
1984
  }, "strict", z.ZodTypeAny, {
1985
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1985
1986
  id: string;
1986
1987
  label: string;
1987
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1988
1988
  capture: "at_action" | "historical_lookup" | "fixture";
1989
1989
  locator?: string | undefined;
1990
1990
  }, {
1991
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1991
1992
  id: string;
1992
1993
  label: string;
1993
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1994
1994
  capture: "at_action" | "historical_lookup" | "fixture";
1995
1995
  locator?: string | undefined;
1996
1996
  }>, "many">>;
@@ -1998,28 +1998,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1998
1998
  sessionId: z.ZodString;
1999
1999
  kind: z.ZodLiteral<"agent_output">;
2000
2000
  }, "strict", z.ZodTypeAny, {
2001
- summary: string;
2002
2001
  kind: "agent_output";
2002
+ summary: string;
2003
2003
  agentId: string;
2004
2004
  sessionId: string;
2005
2005
  evidence: {
2006
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2006
2007
  id: string;
2007
2008
  label: string;
2008
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2009
2009
  capture: "at_action" | "historical_lookup" | "fixture";
2010
2010
  locator?: string | undefined;
2011
2011
  }[];
2012
2012
  outputId: string;
2013
2013
  }, {
2014
- summary: string;
2015
2014
  kind: "agent_output";
2015
+ summary: string;
2016
2016
  agentId: string;
2017
2017
  sessionId: string;
2018
2018
  outputId: string;
2019
2019
  evidence?: {
2020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2020
2021
  id: string;
2021
2022
  label: string;
2022
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2023
2023
  capture: "at_action" | "historical_lookup" | "fixture";
2024
2024
  locator?: string | undefined;
2025
2025
  }[] | undefined;
@@ -2035,15 +2035,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2035
2035
  locator: z.ZodOptional<z.ZodString>;
2036
2036
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2037
2037
  }, "strict", z.ZodTypeAny, {
2038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2038
2039
  id: string;
2039
2040
  label: string;
2040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2041
2041
  capture: "at_action" | "historical_lookup" | "fixture";
2042
2042
  locator?: string | undefined;
2043
2043
  }, {
2044
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2044
2045
  id: string;
2045
2046
  label: string;
2046
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2047
2047
  capture: "at_action" | "historical_lookup" | "fixture";
2048
2048
  locator?: string | undefined;
2049
2049
  }>, "many">>;
@@ -2056,9 +2056,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2056
2056
  sessionId: string;
2057
2057
  statement: string;
2058
2058
  evidence: {
2059
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2059
2060
  id: string;
2060
2061
  label: string;
2061
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2062
2062
  capture: "at_action" | "historical_lookup" | "fixture";
2063
2063
  locator?: string | undefined;
2064
2064
  }[];
@@ -2074,9 +2074,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2074
2074
  decisionId: string;
2075
2075
  confidence?: number | undefined;
2076
2076
  evidence?: {
2077
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2077
2078
  id: string;
2078
2079
  label: string;
2079
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2080
2080
  capture: "at_action" | "historical_lookup" | "fixture";
2081
2081
  locator?: string | undefined;
2082
2082
  }[] | undefined;
@@ -2093,25 +2093,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2093
2093
  locator: z.ZodOptional<z.ZodString>;
2094
2094
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2095
2095
  }, "strict", z.ZodTypeAny, {
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
  }, {
2102
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2102
2103
  id: string;
2103
2104
  label: string;
2104
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2105
2105
  capture: "at_action" | "historical_lookup" | "fixture";
2106
2106
  locator?: string | undefined;
2107
2107
  }>, "many">>;
2108
2108
  }, "strict", z.ZodTypeAny, {
2109
- summary: string;
2110
2109
  kind: "conflict_detected";
2110
+ summary: string;
2111
2111
  evidence: {
2112
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2112
2113
  id: string;
2113
2114
  label: string;
2114
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2115
2115
  capture: "at_action" | "historical_lookup" | "fixture";
2116
2116
  locator?: string | undefined;
2117
2117
  }[];
@@ -2119,15 +2119,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2119
2119
  decisionIds: string[];
2120
2120
  agentIds: string[];
2121
2121
  }, {
2122
- summary: string;
2123
2122
  kind: "conflict_detected";
2123
+ summary: string;
2124
2124
  conflictId: string;
2125
2125
  decisionIds: string[];
2126
2126
  agentIds: string[];
2127
2127
  evidence?: {
2128
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2128
2129
  id: string;
2129
2130
  label: string;
2130
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2131
2131
  capture: "at_action" | "historical_lookup" | "fixture";
2132
2132
  locator?: string | undefined;
2133
2133
  }[] | undefined;
@@ -2147,27 +2147,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2147
2147
  locator: z.ZodOptional<z.ZodString>;
2148
2148
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2149
2149
  }, "strict", z.ZodTypeAny, {
2150
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2150
2151
  id: string;
2151
2152
  label: string;
2152
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2153
2153
  capture: "at_action" | "historical_lookup" | "fixture";
2154
2154
  locator?: string | undefined;
2155
2155
  }, {
2156
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2156
2157
  id: string;
2157
2158
  label: string;
2158
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2159
2159
  capture: "at_action" | "historical_lookup" | "fixture";
2160
2160
  locator?: string | undefined;
2161
2161
  }>, "many">>;
2162
2162
  }, "strict", z.ZodTypeAny, {
2163
- summary: string;
2164
2163
  kind: "test_result";
2164
+ summary: string;
2165
2165
  command: string;
2166
2166
  status: "error" | "failed" | "passed";
2167
2167
  evidence: {
2168
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2168
2169
  id: string;
2169
2170
  label: string;
2170
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2171
2171
  capture: "at_action" | "historical_lookup" | "fixture";
2172
2172
  locator?: string | undefined;
2173
2173
  }[];
@@ -2176,17 +2176,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2176
2176
  durationMs?: number | undefined;
2177
2177
  correctionId?: string | undefined;
2178
2178
  }, {
2179
- summary: string;
2180
2179
  kind: "test_result";
2180
+ summary: string;
2181
2181
  command: string;
2182
2182
  status: "error" | "failed" | "passed";
2183
2183
  decisionId: string;
2184
2184
  testId: string;
2185
2185
  durationMs?: number | undefined;
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
  }[] | undefined;
@@ -2207,15 +2207,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2207
2207
  locator: z.ZodOptional<z.ZodString>;
2208
2208
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2209
2209
  }, "strict", z.ZodTypeAny, {
2210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2210
2211
  id: string;
2211
2212
  label: string;
2212
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2213
2213
  capture: "at_action" | "historical_lookup" | "fixture";
2214
2214
  locator?: string | undefined;
2215
2215
  }, {
2216
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2216
2217
  id: string;
2217
2218
  label: string;
2218
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2219
2219
  capture: "at_action" | "historical_lookup" | "fixture";
2220
2220
  locator?: string | undefined;
2221
2221
  }>, "many">>;
@@ -2224,9 +2224,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2224
2224
  rationale: string;
2225
2225
  statement: string;
2226
2226
  evidence: {
2227
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2227
2228
  id: string;
2228
2229
  label: string;
2229
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
2230
  capture: "at_action" | "historical_lookup" | "fixture";
2231
2231
  locator?: string | undefined;
2232
2232
  }[];
@@ -2245,9 +2245,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2245
2245
  supersedesDecisionIds: string[];
2246
2246
  proposedBy: string;
2247
2247
  evidence?: {
2248
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2248
2249
  id: string;
2249
2250
  label: string;
2250
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2251
2251
  capture: "at_action" | "historical_lookup" | "fixture";
2252
2252
  locator?: string | undefined;
2253
2253
  }[] | undefined;
@@ -2259,13 +2259,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2259
2259
  id: z.ZodString;
2260
2260
  label: z.ZodString;
2261
2261
  }, "strict", z.ZodTypeAny, {
2262
+ kind: "agent" | "human";
2262
2263
  id: string;
2263
2264
  label: string;
2264
- kind: "agent" | "human";
2265
2265
  }, {
2266
+ kind: "agent" | "human";
2266
2267
  id: string;
2267
2268
  label: string;
2268
- kind: "agent" | "human";
2269
2269
  }>;
2270
2270
  note: z.ZodOptional<z.ZodString>;
2271
2271
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2275,47 +2275,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2275
2275
  locator: z.ZodOptional<z.ZodString>;
2276
2276
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2277
2277
  }, "strict", z.ZodTypeAny, {
2278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2278
2279
  id: string;
2279
2280
  label: string;
2280
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2281
2281
  capture: "at_action" | "historical_lookup" | "fixture";
2282
2282
  locator?: string | undefined;
2283
2283
  }, {
2284
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2284
2285
  id: string;
2285
2286
  label: string;
2286
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2287
2287
  capture: "at_action" | "historical_lookup" | "fixture";
2288
2288
  locator?: string | undefined;
2289
2289
  }>, "many">>;
2290
2290
  }, "strict", z.ZodTypeAny, {
2291
2291
  kind: "correction_approved";
2292
2292
  evidence: {
2293
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2293
2294
  id: string;
2294
2295
  label: string;
2295
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2296
2296
  capture: "at_action" | "historical_lookup" | "fixture";
2297
2297
  locator?: string | undefined;
2298
2298
  }[];
2299
2299
  correctionId: string;
2300
2300
  approvedBy: {
2301
+ kind: "agent" | "human";
2301
2302
  id: string;
2302
2303
  label: string;
2303
- kind: "agent" | "human";
2304
2304
  };
2305
2305
  note?: string | undefined;
2306
2306
  }, {
2307
2307
  kind: "correction_approved";
2308
2308
  correctionId: string;
2309
2309
  approvedBy: {
2310
+ kind: "agent" | "human";
2310
2311
  id: string;
2311
2312
  label: string;
2312
- kind: "agent" | "human";
2313
2313
  };
2314
2314
  note?: string | undefined;
2315
2315
  evidence?: {
2316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2316
2317
  id: string;
2317
2318
  label: string;
2318
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
2319
  capture: "at_action" | "historical_lookup" | "fixture";
2320
2320
  locator?: string | undefined;
2321
2321
  }[] | undefined;
@@ -2331,24 +2331,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2331
2331
  locator: z.ZodOptional<z.ZodString>;
2332
2332
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2333
2333
  }, "strict", z.ZodTypeAny, {
2334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2334
2335
  id: string;
2335
2336
  label: string;
2336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2337
2337
  capture: "at_action" | "historical_lookup" | "fixture";
2338
2338
  locator?: string | undefined;
2339
2339
  }, {
2340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2340
2341
  id: string;
2341
2342
  label: string;
2342
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2343
2343
  capture: "at_action" | "historical_lookup" | "fixture";
2344
2344
  locator?: string | undefined;
2345
2345
  }>, "many">>;
2346
2346
  }, "strict", z.ZodTypeAny, {
2347
2347
  kind: "decision_superseded";
2348
2348
  evidence: {
2349
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2349
2350
  id: string;
2350
2351
  label: string;
2351
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2352
2352
  capture: "at_action" | "historical_lookup" | "fixture";
2353
2353
  locator?: string | undefined;
2354
2354
  }[];
@@ -2361,9 +2361,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2361
2361
  correctionId: string;
2362
2362
  replacementDecisionId: string;
2363
2363
  evidence?: {
2364
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2364
2365
  id: string;
2365
2366
  label: string;
2366
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2367
2367
  capture: "at_action" | "historical_lookup" | "fixture";
2368
2368
  locator?: string | undefined;
2369
2369
  }[] | undefined;
@@ -2379,15 +2379,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2379
2379
  locator: z.ZodOptional<z.ZodString>;
2380
2380
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2381
2381
  }, "strict", z.ZodTypeAny, {
2382
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2382
2383
  id: string;
2383
2384
  label: string;
2384
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
2385
  capture: "at_action" | "historical_lookup" | "fixture";
2386
2386
  locator?: string | undefined;
2387
2387
  }, {
2388
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2388
2389
  id: string;
2389
2390
  label: string;
2390
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2391
2391
  capture: "at_action" | "historical_lookup" | "fixture";
2392
2392
  locator?: string | undefined;
2393
2393
  }>, "many">>;
@@ -2400,9 +2400,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2400
2400
  agentId: string;
2401
2401
  sessionId: string;
2402
2402
  evidence: {
2403
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2403
2404
  id: string;
2404
2405
  label: string;
2405
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2406
2406
  capture: "at_action" | "historical_lookup" | "fixture";
2407
2407
  locator?: string | undefined;
2408
2408
  }[];
@@ -2418,9 +2418,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2418
2418
  recallReceiptId: string;
2419
2419
  capturedAtAction: boolean;
2420
2420
  evidence?: {
2421
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2421
2422
  id: string;
2422
2423
  label: string;
2423
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2424
2424
  capture: "at_action" | "historical_lookup" | "fixture";
2425
2425
  locator?: string | undefined;
2426
2426
  }[] | undefined;
@@ -2436,15 +2436,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2436
2436
  locator: z.ZodOptional<z.ZodString>;
2437
2437
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2438
2438
  }, "strict", z.ZodTypeAny, {
2439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2439
2440
  id: string;
2440
2441
  label: string;
2441
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2442
2442
  capture: "at_action" | "historical_lookup" | "fixture";
2443
2443
  locator?: string | undefined;
2444
2444
  }, {
2445
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2445
2446
  id: string;
2446
2447
  label: string;
2447
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2448
2448
  capture: "at_action" | "historical_lookup" | "fixture";
2449
2449
  locator?: string | undefined;
2450
2450
  }>, "many">>;
@@ -2456,9 +2456,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2456
2456
  agentId: string;
2457
2457
  sessionId: string;
2458
2458
  evidence: {
2459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2459
2460
  id: string;
2460
2461
  label: string;
2461
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2462
2462
  capture: "at_action" | "historical_lookup" | "fixture";
2463
2463
  locator?: string | undefined;
2464
2464
  }[];
@@ -2475,9 +2475,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2475
2475
  recallReceiptId: string;
2476
2476
  staleDecisionAbsent: boolean;
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
  }[] | undefined;
@@ -2492,37 +2492,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2492
2492
  locator: z.ZodOptional<z.ZodString>;
2493
2493
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2494
2494
  }, "strict", z.ZodTypeAny, {
2495
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2495
2496
  id: string;
2496
2497
  label: string;
2497
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2498
2498
  capture: "at_action" | "historical_lookup" | "fixture";
2499
2499
  locator?: string | undefined;
2500
2500
  }, {
2501
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2501
2502
  id: string;
2502
2503
  label: string;
2503
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2504
2504
  capture: "at_action" | "historical_lookup" | "fixture";
2505
2505
  locator?: string | undefined;
2506
2506
  }>, "many">>;
2507
2507
  }, "strict", z.ZodTypeAny, {
2508
- summary: string;
2509
2508
  kind: "mission_completed";
2509
+ summary: string;
2510
2510
  outcome: "failed" | "recovered" | "inconclusive";
2511
2511
  evidence: {
2512
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2512
2513
  id: string;
2513
2514
  label: string;
2514
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
2515
  capture: "at_action" | "historical_lookup" | "fixture";
2516
2516
  locator?: string | undefined;
2517
2517
  }[];
2518
2518
  }, {
2519
- summary: string;
2520
2519
  kind: "mission_completed";
2520
+ summary: string;
2521
2521
  outcome: "failed" | "recovered" | "inconclusive";
2522
2522
  evidence?: {
2523
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2523
2524
  id: string;
2524
2525
  label: string;
2525
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2526
2526
  capture: "at_action" | "historical_lookup" | "fixture";
2527
2527
  locator?: string | undefined;
2528
2528
  }[] | undefined;
@@ -2532,36 +2532,36 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2532
2532
  objective: string;
2533
2533
  runMode: "replay" | "fixture" | "live";
2534
2534
  evidence: {
2535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2535
2536
  id: string;
2536
2537
  label: string;
2537
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2539
2539
  locator?: string | undefined;
2540
2540
  }[];
2541
2541
  } | {
2542
- label: string;
2543
2542
  kind: "agent_status";
2544
2543
  role: string;
2545
2544
  status: "failed" | "complete" | "working" | "blocked" | "idle";
2545
+ label: string;
2546
2546
  agentId: string;
2547
2547
  sessionId: string;
2548
2548
  evidence: {
2549
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2549
2550
  id: string;
2550
2551
  label: string;
2551
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2552
2552
  capture: "at_action" | "historical_lookup" | "fixture";
2553
2553
  locator?: string | undefined;
2554
2554
  }[];
2555
2555
  detail?: string | undefined;
2556
2556
  } | {
2557
- summary: string;
2558
2557
  kind: "agent_output";
2558
+ summary: string;
2559
2559
  agentId: string;
2560
2560
  sessionId: string;
2561
2561
  evidence: {
2562
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
2563
  id: string;
2563
2564
  label: string;
2564
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2565
2565
  capture: "at_action" | "historical_lookup" | "fixture";
2566
2566
  locator?: string | undefined;
2567
2567
  }[];
@@ -2572,9 +2572,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2572
2572
  sessionId: string;
2573
2573
  statement: string;
2574
2574
  evidence: {
2575
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2575
2576
  id: string;
2576
2577
  label: string;
2577
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2578
2578
  capture: "at_action" | "historical_lookup" | "fixture";
2579
2579
  locator?: string | undefined;
2580
2580
  }[];
@@ -2582,12 +2582,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2582
2582
  decisionId: string;
2583
2583
  confidence?: number | undefined;
2584
2584
  } | {
2585
- summary: string;
2586
2585
  kind: "conflict_detected";
2586
+ summary: string;
2587
2587
  evidence: {
2588
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2588
2589
  id: string;
2589
2590
  label: string;
2590
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2591
2591
  capture: "at_action" | "historical_lookup" | "fixture";
2592
2592
  locator?: string | undefined;
2593
2593
  }[];
@@ -2595,14 +2595,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2595
2595
  decisionIds: string[];
2596
2596
  agentIds: string[];
2597
2597
  } | {
2598
- summary: string;
2599
2598
  kind: "test_result";
2599
+ summary: string;
2600
2600
  command: string;
2601
2601
  status: "error" | "failed" | "passed";
2602
2602
  evidence: {
2603
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2603
2604
  id: string;
2604
2605
  label: string;
2605
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2606
2606
  capture: "at_action" | "historical_lookup" | "fixture";
2607
2607
  locator?: string | undefined;
2608
2608
  }[];
@@ -2615,9 +2615,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2615
2615
  rationale: string;
2616
2616
  statement: string;
2617
2617
  evidence: {
2618
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2618
2619
  id: string;
2619
2620
  label: string;
2620
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2621
2621
  capture: "at_action" | "historical_lookup" | "fixture";
2622
2622
  locator?: string | undefined;
2623
2623
  }[];
@@ -2629,25 +2629,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2629
2629
  } | {
2630
2630
  kind: "correction_approved";
2631
2631
  evidence: {
2632
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2632
2633
  id: string;
2633
2634
  label: string;
2634
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2635
2635
  capture: "at_action" | "historical_lookup" | "fixture";
2636
2636
  locator?: string | undefined;
2637
2637
  }[];
2638
2638
  correctionId: string;
2639
2639
  approvedBy: {
2640
+ kind: "agent" | "human";
2640
2641
  id: string;
2641
2642
  label: string;
2642
- kind: "agent" | "human";
2643
2643
  };
2644
2644
  note?: string | undefined;
2645
2645
  } | {
2646
2646
  kind: "decision_superseded";
2647
2647
  evidence: {
2648
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2648
2649
  id: string;
2649
2650
  label: string;
2650
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2651
2651
  capture: "at_action" | "historical_lookup" | "fixture";
2652
2652
  locator?: string | undefined;
2653
2653
  }[];
@@ -2660,9 +2660,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2660
2660
  agentId: string;
2661
2661
  sessionId: string;
2662
2662
  evidence: {
2663
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2663
2664
  id: string;
2664
2665
  label: string;
2665
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2666
2666
  capture: "at_action" | "historical_lookup" | "fixture";
2667
2667
  locator?: string | undefined;
2668
2668
  }[];
@@ -2674,9 +2674,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2674
2674
  agentId: string;
2675
2675
  sessionId: string;
2676
2676
  evidence: {
2677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2677
2678
  id: string;
2678
2679
  label: string;
2679
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2680
2680
  capture: "at_action" | "historical_lookup" | "fixture";
2681
2681
  locator?: string | undefined;
2682
2682
  }[];
@@ -2685,13 +2685,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2685
2685
  recallReceiptId: string;
2686
2686
  staleDecisionAbsent: boolean;
2687
2687
  } | {
2688
- summary: string;
2689
2688
  kind: "mission_completed";
2689
+ summary: string;
2690
2690
  outcome: "failed" | "recovered" | "inconclusive";
2691
2691
  evidence: {
2692
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2692
2693
  id: string;
2693
2694
  label: string;
2694
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2695
2695
  capture: "at_action" | "historical_lookup" | "fixture";
2696
2696
  locator?: string | undefined;
2697
2697
  }[];
@@ -2701,37 +2701,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2701
2701
  objective: string;
2702
2702
  runMode: "replay" | "fixture" | "live";
2703
2703
  evidence?: {
2704
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2704
2705
  id: string;
2705
2706
  label: string;
2706
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2707
2707
  capture: "at_action" | "historical_lookup" | "fixture";
2708
2708
  locator?: string | undefined;
2709
2709
  }[] | undefined;
2710
2710
  } | {
2711
- label: string;
2712
2711
  kind: "agent_status";
2713
2712
  role: string;
2714
2713
  status: "failed" | "complete" | "working" | "blocked" | "idle";
2714
+ label: string;
2715
2715
  agentId: string;
2716
2716
  sessionId: string;
2717
2717
  detail?: string | undefined;
2718
2718
  evidence?: {
2719
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2719
2720
  id: string;
2720
2721
  label: string;
2721
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2722
2722
  capture: "at_action" | "historical_lookup" | "fixture";
2723
2723
  locator?: string | undefined;
2724
2724
  }[] | undefined;
2725
2725
  } | {
2726
- summary: string;
2727
2726
  kind: "agent_output";
2727
+ summary: string;
2728
2728
  agentId: string;
2729
2729
  sessionId: string;
2730
2730
  outputId: string;
2731
2731
  evidence?: {
2732
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2732
2733
  id: string;
2733
2734
  label: string;
2734
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2735
2735
  capture: "at_action" | "historical_lookup" | "fixture";
2736
2736
  locator?: string | undefined;
2737
2737
  }[] | undefined;
@@ -2744,37 +2744,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2744
2744
  decisionId: string;
2745
2745
  confidence?: number | undefined;
2746
2746
  evidence?: {
2747
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2747
2748
  id: string;
2748
2749
  label: string;
2749
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2750
2750
  capture: "at_action" | "historical_lookup" | "fixture";
2751
2751
  locator?: string | undefined;
2752
2752
  }[] | undefined;
2753
2753
  } | {
2754
- summary: string;
2755
2754
  kind: "conflict_detected";
2755
+ summary: string;
2756
2756
  conflictId: string;
2757
2757
  decisionIds: string[];
2758
2758
  agentIds: string[];
2759
2759
  evidence?: {
2760
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2760
2761
  id: string;
2761
2762
  label: string;
2762
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2763
2763
  capture: "at_action" | "historical_lookup" | "fixture";
2764
2764
  locator?: string | undefined;
2765
2765
  }[] | undefined;
2766
2766
  } | {
2767
- summary: string;
2768
2767
  kind: "test_result";
2768
+ summary: string;
2769
2769
  command: string;
2770
2770
  status: "error" | "failed" | "passed";
2771
2771
  decisionId: string;
2772
2772
  testId: string;
2773
2773
  durationMs?: number | undefined;
2774
2774
  evidence?: {
2775
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2775
2776
  id: string;
2776
2777
  label: string;
2777
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2778
2778
  capture: "at_action" | "historical_lookup" | "fixture";
2779
2779
  locator?: string | undefined;
2780
2780
  }[] | undefined;
@@ -2789,9 +2789,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2789
2789
  supersedesDecisionIds: string[];
2790
2790
  proposedBy: string;
2791
2791
  evidence?: {
2792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2792
2793
  id: string;
2793
2794
  label: string;
2794
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
2795
  capture: "at_action" | "historical_lookup" | "fixture";
2796
2796
  locator?: string | undefined;
2797
2797
  }[] | undefined;
@@ -2799,15 +2799,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2799
2799
  kind: "correction_approved";
2800
2800
  correctionId: string;
2801
2801
  approvedBy: {
2802
+ kind: "agent" | "human";
2802
2803
  id: string;
2803
2804
  label: string;
2804
- kind: "agent" | "human";
2805
2805
  };
2806
2806
  note?: string | undefined;
2807
2807
  evidence?: {
2808
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2808
2809
  id: string;
2809
2810
  label: string;
2810
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
2811
  capture: "at_action" | "historical_lookup" | "fixture";
2812
2812
  locator?: string | undefined;
2813
2813
  }[] | undefined;
@@ -2817,9 +2817,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2817
2817
  correctionId: string;
2818
2818
  replacementDecisionId: string;
2819
2819
  evidence?: {
2820
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2820
2821
  id: string;
2821
2822
  label: string;
2822
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2823
2823
  capture: "at_action" | "historical_lookup" | "fixture";
2824
2824
  locator?: string | undefined;
2825
2825
  }[] | undefined;
@@ -2832,9 +2832,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2832
2832
  recallReceiptId: string;
2833
2833
  capturedAtAction: boolean;
2834
2834
  evidence?: {
2835
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2835
2836
  id: string;
2836
2837
  label: string;
2837
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2838
2838
  capture: "at_action" | "historical_lookup" | "fixture";
2839
2839
  locator?: string | undefined;
2840
2840
  }[] | undefined;
@@ -2847,20 +2847,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2847
2847
  recallReceiptId: string;
2848
2848
  staleDecisionAbsent: boolean;
2849
2849
  evidence?: {
2850
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2850
2851
  id: string;
2851
2852
  label: string;
2852
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2853
2853
  capture: "at_action" | "historical_lookup" | "fixture";
2854
2854
  locator?: string | undefined;
2855
2855
  }[] | undefined;
2856
2856
  } | {
2857
- summary: string;
2858
2857
  kind: "mission_completed";
2858
+ summary: string;
2859
2859
  outcome: "failed" | "recovered" | "inconclusive";
2860
2860
  evidence?: {
2861
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2861
2862
  id: string;
2862
2863
  label: string;
2863
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2864
2864
  capture: "at_action" | "historical_lookup" | "fixture";
2865
2865
  locator?: string | undefined;
2866
2866
  }[] | undefined;
@@ -2872,36 +2872,36 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2872
2872
  objective: string;
2873
2873
  runMode: "replay" | "fixture" | "live";
2874
2874
  evidence: {
2875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2875
2876
  id: string;
2876
2877
  label: string;
2877
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2878
2878
  capture: "at_action" | "historical_lookup" | "fixture";
2879
2879
  locator?: string | undefined;
2880
2880
  }[];
2881
2881
  } | {
2882
- label: string;
2883
2882
  kind: "agent_status";
2884
2883
  role: string;
2885
2884
  status: "failed" | "complete" | "working" | "blocked" | "idle";
2885
+ label: string;
2886
2886
  agentId: string;
2887
2887
  sessionId: string;
2888
2888
  evidence: {
2889
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2889
2890
  id: string;
2890
2891
  label: string;
2891
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2892
2892
  capture: "at_action" | "historical_lookup" | "fixture";
2893
2893
  locator?: string | undefined;
2894
2894
  }[];
2895
2895
  detail?: string | undefined;
2896
2896
  } | {
2897
- summary: string;
2898
2897
  kind: "agent_output";
2898
+ summary: string;
2899
2899
  agentId: string;
2900
2900
  sessionId: string;
2901
2901
  evidence: {
2902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2902
2903
  id: string;
2903
2904
  label: string;
2904
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2905
2905
  capture: "at_action" | "historical_lookup" | "fixture";
2906
2906
  locator?: string | undefined;
2907
2907
  }[];
@@ -2912,9 +2912,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2912
2912
  sessionId: string;
2913
2913
  statement: string;
2914
2914
  evidence: {
2915
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2915
2916
  id: string;
2916
2917
  label: string;
2917
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2918
2918
  capture: "at_action" | "historical_lookup" | "fixture";
2919
2919
  locator?: string | undefined;
2920
2920
  }[];
@@ -2922,12 +2922,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2922
2922
  decisionId: string;
2923
2923
  confidence?: number | undefined;
2924
2924
  } | {
2925
- summary: string;
2926
2925
  kind: "conflict_detected";
2926
+ summary: string;
2927
2927
  evidence: {
2928
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2928
2929
  id: string;
2929
2930
  label: string;
2930
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2931
2931
  capture: "at_action" | "historical_lookup" | "fixture";
2932
2932
  locator?: string | undefined;
2933
2933
  }[];
@@ -2935,14 +2935,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2935
2935
  decisionIds: string[];
2936
2936
  agentIds: string[];
2937
2937
  } | {
2938
- summary: string;
2939
2938
  kind: "test_result";
2939
+ summary: string;
2940
2940
  command: string;
2941
2941
  status: "error" | "failed" | "passed";
2942
2942
  evidence: {
2943
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2943
2944
  id: string;
2944
2945
  label: string;
2945
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2946
2946
  capture: "at_action" | "historical_lookup" | "fixture";
2947
2947
  locator?: string | undefined;
2948
2948
  }[];
@@ -2955,9 +2955,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2955
2955
  rationale: string;
2956
2956
  statement: string;
2957
2957
  evidence: {
2958
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2958
2959
  id: string;
2959
2960
  label: string;
2960
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2961
2961
  capture: "at_action" | "historical_lookup" | "fixture";
2962
2962
  locator?: string | undefined;
2963
2963
  }[];
@@ -2969,25 +2969,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2969
2969
  } | {
2970
2970
  kind: "correction_approved";
2971
2971
  evidence: {
2972
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2972
2973
  id: string;
2973
2974
  label: string;
2974
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2975
2975
  capture: "at_action" | "historical_lookup" | "fixture";
2976
2976
  locator?: string | undefined;
2977
2977
  }[];
2978
2978
  correctionId: string;
2979
2979
  approvedBy: {
2980
+ kind: "agent" | "human";
2980
2981
  id: string;
2981
2982
  label: string;
2982
- kind: "agent" | "human";
2983
2983
  };
2984
2984
  note?: string | undefined;
2985
2985
  } | {
2986
2986
  kind: "decision_superseded";
2987
2987
  evidence: {
2988
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2988
2989
  id: string;
2989
2990
  label: string;
2990
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2991
2991
  capture: "at_action" | "historical_lookup" | "fixture";
2992
2992
  locator?: string | undefined;
2993
2993
  }[];
@@ -3000,9 +3000,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3000
3000
  agentId: string;
3001
3001
  sessionId: string;
3002
3002
  evidence: {
3003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3003
3004
  id: string;
3004
3005
  label: string;
3005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3006
3006
  capture: "at_action" | "historical_lookup" | "fixture";
3007
3007
  locator?: string | undefined;
3008
3008
  }[];
@@ -3014,9 +3014,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3014
3014
  agentId: string;
3015
3015
  sessionId: string;
3016
3016
  evidence: {
3017
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3017
3018
  id: string;
3018
3019
  label: string;
3019
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3020
3020
  capture: "at_action" | "historical_lookup" | "fixture";
3021
3021
  locator?: string | undefined;
3022
3022
  }[];
@@ -3025,13 +3025,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3025
3025
  recallReceiptId: string;
3026
3026
  staleDecisionAbsent: boolean;
3027
3027
  } | {
3028
- summary: string;
3029
3028
  kind: "mission_completed";
3029
+ summary: string;
3030
3030
  outcome: "failed" | "recovered" | "inconclusive";
3031
3031
  evidence: {
3032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3032
3033
  id: string;
3033
3034
  label: string;
3034
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3035
3035
  capture: "at_action" | "historical_lookup" | "fixture";
3036
3036
  locator?: string | undefined;
3037
3037
  }[];
@@ -3045,37 +3045,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3045
3045
  objective: string;
3046
3046
  runMode: "replay" | "fixture" | "live";
3047
3047
  evidence?: {
3048
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3048
3049
  id: string;
3049
3050
  label: string;
3050
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3051
3051
  capture: "at_action" | "historical_lookup" | "fixture";
3052
3052
  locator?: string | undefined;
3053
3053
  }[] | undefined;
3054
3054
  } | {
3055
- label: string;
3056
3055
  kind: "agent_status";
3057
3056
  role: string;
3058
3057
  status: "failed" | "complete" | "working" | "blocked" | "idle";
3058
+ label: string;
3059
3059
  agentId: string;
3060
3060
  sessionId: string;
3061
3061
  detail?: string | undefined;
3062
3062
  evidence?: {
3063
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3063
3064
  id: string;
3064
3065
  label: string;
3065
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3066
3066
  capture: "at_action" | "historical_lookup" | "fixture";
3067
3067
  locator?: string | undefined;
3068
3068
  }[] | undefined;
3069
3069
  } | {
3070
- summary: string;
3071
3070
  kind: "agent_output";
3071
+ summary: string;
3072
3072
  agentId: string;
3073
3073
  sessionId: string;
3074
3074
  outputId: string;
3075
3075
  evidence?: {
3076
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3077
  id: string;
3077
3078
  label: string;
3078
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3079
3079
  capture: "at_action" | "historical_lookup" | "fixture";
3080
3080
  locator?: string | undefined;
3081
3081
  }[] | undefined;
@@ -3088,37 +3088,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3088
3088
  decisionId: string;
3089
3089
  confidence?: number | undefined;
3090
3090
  evidence?: {
3091
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3091
3092
  id: string;
3092
3093
  label: string;
3093
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3094
3094
  capture: "at_action" | "historical_lookup" | "fixture";
3095
3095
  locator?: string | undefined;
3096
3096
  }[] | undefined;
3097
3097
  } | {
3098
- summary: string;
3099
3098
  kind: "conflict_detected";
3099
+ summary: string;
3100
3100
  conflictId: string;
3101
3101
  decisionIds: string[];
3102
3102
  agentIds: string[];
3103
3103
  evidence?: {
3104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3104
3105
  id: string;
3105
3106
  label: string;
3106
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3107
3107
  capture: "at_action" | "historical_lookup" | "fixture";
3108
3108
  locator?: string | undefined;
3109
3109
  }[] | undefined;
3110
3110
  } | {
3111
- summary: string;
3112
3111
  kind: "test_result";
3112
+ summary: string;
3113
3113
  command: string;
3114
3114
  status: "error" | "failed" | "passed";
3115
3115
  decisionId: string;
3116
3116
  testId: string;
3117
3117
  durationMs?: number | undefined;
3118
3118
  evidence?: {
3119
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3119
3120
  id: string;
3120
3121
  label: string;
3121
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3122
3122
  capture: "at_action" | "historical_lookup" | "fixture";
3123
3123
  locator?: string | undefined;
3124
3124
  }[] | undefined;
@@ -3133,9 +3133,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3133
3133
  supersedesDecisionIds: string[];
3134
3134
  proposedBy: string;
3135
3135
  evidence?: {
3136
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3136
3137
  id: string;
3137
3138
  label: string;
3138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
3139
  capture: "at_action" | "historical_lookup" | "fixture";
3140
3140
  locator?: string | undefined;
3141
3141
  }[] | undefined;
@@ -3143,15 +3143,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3143
3143
  kind: "correction_approved";
3144
3144
  correctionId: string;
3145
3145
  approvedBy: {
3146
+ kind: "agent" | "human";
3146
3147
  id: string;
3147
3148
  label: string;
3148
- kind: "agent" | "human";
3149
3149
  };
3150
3150
  note?: string | undefined;
3151
3151
  evidence?: {
3152
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3152
3153
  id: string;
3153
3154
  label: string;
3154
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3155
3155
  capture: "at_action" | "historical_lookup" | "fixture";
3156
3156
  locator?: string | undefined;
3157
3157
  }[] | undefined;
@@ -3161,9 +3161,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3161
3161
  correctionId: string;
3162
3162
  replacementDecisionId: string;
3163
3163
  evidence?: {
3164
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3164
3165
  id: string;
3165
3166
  label: string;
3166
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3167
3167
  capture: "at_action" | "historical_lookup" | "fixture";
3168
3168
  locator?: string | undefined;
3169
3169
  }[] | undefined;
@@ -3176,9 +3176,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3176
3176
  recallReceiptId: string;
3177
3177
  capturedAtAction: boolean;
3178
3178
  evidence?: {
3179
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3179
3180
  id: string;
3180
3181
  label: string;
3181
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3182
3182
  capture: "at_action" | "historical_lookup" | "fixture";
3183
3183
  locator?: string | undefined;
3184
3184
  }[] | undefined;
@@ -3191,20 +3191,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3191
3191
  recallReceiptId: string;
3192
3192
  staleDecisionAbsent: boolean;
3193
3193
  evidence?: {
3194
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3194
3195
  id: string;
3195
3196
  label: string;
3196
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3197
3197
  capture: "at_action" | "historical_lookup" | "fixture";
3198
3198
  locator?: string | undefined;
3199
3199
  }[] | undefined;
3200
3200
  } | {
3201
- summary: string;
3202
3201
  kind: "mission_completed";
3202
+ summary: string;
3203
3203
  outcome: "failed" | "recovered" | "inconclusive";
3204
3204
  evidence?: {
3205
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3205
3206
  id: string;
3206
3207
  label: string;
3207
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3208
3208
  capture: "at_action" | "historical_lookup" | "fixture";
3209
3209
  locator?: string | undefined;
3210
3210
  }[] | undefined;
@@ -3234,15 +3234,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3234
3234
  locator: z.ZodOptional<z.ZodString>;
3235
3235
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3236
3236
  }, "strict", z.ZodTypeAny, {
3237
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3237
3238
  id: string;
3238
3239
  label: string;
3239
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3240
3240
  capture: "at_action" | "historical_lookup" | "fixture";
3241
3241
  locator?: string | undefined;
3242
3242
  }, {
3243
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3243
3244
  id: string;
3244
3245
  label: string;
3245
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3246
3246
  capture: "at_action" | "historical_lookup" | "fixture";
3247
3247
  locator?: string | undefined;
3248
3248
  }>, "many">>;
@@ -3252,9 +3252,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3252
3252
  objective: string;
3253
3253
  runMode: "replay" | "fixture" | "live";
3254
3254
  evidence: {
3255
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3255
3256
  id: string;
3256
3257
  label: string;
3257
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3258
3258
  capture: "at_action" | "historical_lookup" | "fixture";
3259
3259
  locator?: string | undefined;
3260
3260
  }[];
@@ -3264,9 +3264,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3264
3264
  objective: string;
3265
3265
  runMode: "replay" | "fixture" | "live";
3266
3266
  evidence?: {
3267
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3267
3268
  id: string;
3268
3269
  label: string;
3269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3270
3270
  capture: "at_action" | "historical_lookup" | "fixture";
3271
3271
  locator?: string | undefined;
3272
3272
  }[] | undefined;
@@ -3282,15 +3282,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3282
3282
  locator: z.ZodOptional<z.ZodString>;
3283
3283
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3284
3284
  }, "strict", z.ZodTypeAny, {
3285
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3285
3286
  id: string;
3286
3287
  label: string;
3287
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3288
3288
  capture: "at_action" | "historical_lookup" | "fixture";
3289
3289
  locator?: string | undefined;
3290
3290
  }, {
3291
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3291
3292
  id: string;
3292
3293
  label: string;
3293
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3294
3294
  capture: "at_action" | "historical_lookup" | "fixture";
3295
3295
  locator?: string | undefined;
3296
3296
  }>, "many">>;
@@ -3298,32 +3298,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3298
3298
  sessionId: z.ZodString;
3299
3299
  kind: z.ZodLiteral<"agent_status">;
3300
3300
  }, "strict", z.ZodTypeAny, {
3301
- label: string;
3302
3301
  kind: "agent_status";
3303
3302
  role: string;
3304
3303
  status: "failed" | "complete" | "working" | "blocked" | "idle";
3304
+ label: string;
3305
3305
  agentId: string;
3306
3306
  sessionId: string;
3307
3307
  evidence: {
3308
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3308
3309
  id: string;
3309
3310
  label: string;
3310
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
3311
  capture: "at_action" | "historical_lookup" | "fixture";
3312
3312
  locator?: string | undefined;
3313
3313
  }[];
3314
3314
  detail?: string | undefined;
3315
3315
  }, {
3316
- label: string;
3317
3316
  kind: "agent_status";
3318
3317
  role: string;
3319
3318
  status: "failed" | "complete" | "working" | "blocked" | "idle";
3319
+ label: string;
3320
3320
  agentId: string;
3321
3321
  sessionId: string;
3322
3322
  detail?: string | undefined;
3323
3323
  evidence?: {
3324
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3324
3325
  id: string;
3325
3326
  label: string;
3326
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3327
3327
  capture: "at_action" | "historical_lookup" | "fixture";
3328
3328
  locator?: string | undefined;
3329
3329
  }[] | undefined;
@@ -3337,15 +3337,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3337
3337
  locator: z.ZodOptional<z.ZodString>;
3338
3338
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3339
3339
  }, "strict", z.ZodTypeAny, {
3340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3340
3341
  id: string;
3341
3342
  label: string;
3342
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3343
3343
  capture: "at_action" | "historical_lookup" | "fixture";
3344
3344
  locator?: string | undefined;
3345
3345
  }, {
3346
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3346
3347
  id: string;
3347
3348
  label: string;
3348
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3349
3349
  capture: "at_action" | "historical_lookup" | "fixture";
3350
3350
  locator?: string | undefined;
3351
3351
  }>, "many">>;
@@ -3353,28 +3353,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3353
3353
  sessionId: z.ZodString;
3354
3354
  kind: z.ZodLiteral<"agent_output">;
3355
3355
  }, "strict", z.ZodTypeAny, {
3356
- summary: string;
3357
3356
  kind: "agent_output";
3357
+ summary: string;
3358
3358
  agentId: string;
3359
3359
  sessionId: string;
3360
3360
  evidence: {
3361
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3361
3362
  id: string;
3362
3363
  label: string;
3363
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3364
3364
  capture: "at_action" | "historical_lookup" | "fixture";
3365
3365
  locator?: string | undefined;
3366
3366
  }[];
3367
3367
  outputId: string;
3368
3368
  }, {
3369
- summary: string;
3370
3369
  kind: "agent_output";
3370
+ summary: string;
3371
3371
  agentId: string;
3372
3372
  sessionId: string;
3373
3373
  outputId: string;
3374
3374
  evidence?: {
3375
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3375
3376
  id: string;
3376
3377
  label: string;
3377
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3378
3378
  capture: "at_action" | "historical_lookup" | "fixture";
3379
3379
  locator?: string | undefined;
3380
3380
  }[] | undefined;
@@ -3390,15 +3390,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3390
3390
  locator: z.ZodOptional<z.ZodString>;
3391
3391
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3392
3392
  }, "strict", z.ZodTypeAny, {
3393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3393
3394
  id: string;
3394
3395
  label: string;
3395
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3396
3396
  capture: "at_action" | "historical_lookup" | "fixture";
3397
3397
  locator?: string | undefined;
3398
3398
  }, {
3399
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3399
3400
  id: string;
3400
3401
  label: string;
3401
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3402
3402
  capture: "at_action" | "historical_lookup" | "fixture";
3403
3403
  locator?: string | undefined;
3404
3404
  }>, "many">>;
@@ -3411,9 +3411,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3411
3411
  sessionId: string;
3412
3412
  statement: string;
3413
3413
  evidence: {
3414
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3414
3415
  id: string;
3415
3416
  label: string;
3416
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3417
3417
  capture: "at_action" | "historical_lookup" | "fixture";
3418
3418
  locator?: string | undefined;
3419
3419
  }[];
@@ -3429,9 +3429,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3429
3429
  decisionId: string;
3430
3430
  confidence?: number | undefined;
3431
3431
  evidence?: {
3432
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3432
3433
  id: string;
3433
3434
  label: string;
3434
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3435
3435
  capture: "at_action" | "historical_lookup" | "fixture";
3436
3436
  locator?: string | undefined;
3437
3437
  }[] | undefined;
@@ -3448,25 +3448,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3448
3448
  locator: z.ZodOptional<z.ZodString>;
3449
3449
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3450
3450
  }, "strict", z.ZodTypeAny, {
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
  }, {
3457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3457
3458
  id: string;
3458
3459
  label: string;
3459
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3460
3460
  capture: "at_action" | "historical_lookup" | "fixture";
3461
3461
  locator?: string | undefined;
3462
3462
  }>, "many">>;
3463
3463
  }, "strict", z.ZodTypeAny, {
3464
- summary: string;
3465
3464
  kind: "conflict_detected";
3465
+ summary: string;
3466
3466
  evidence: {
3467
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3467
3468
  id: string;
3468
3469
  label: string;
3469
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3470
3470
  capture: "at_action" | "historical_lookup" | "fixture";
3471
3471
  locator?: string | undefined;
3472
3472
  }[];
@@ -3474,15 +3474,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3474
3474
  decisionIds: string[];
3475
3475
  agentIds: string[];
3476
3476
  }, {
3477
- summary: string;
3478
3477
  kind: "conflict_detected";
3478
+ summary: string;
3479
3479
  conflictId: string;
3480
3480
  decisionIds: string[];
3481
3481
  agentIds: string[];
3482
3482
  evidence?: {
3483
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3483
3484
  id: string;
3484
3485
  label: string;
3485
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3486
3486
  capture: "at_action" | "historical_lookup" | "fixture";
3487
3487
  locator?: string | undefined;
3488
3488
  }[] | undefined;
@@ -3502,27 +3502,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3502
3502
  locator: z.ZodOptional<z.ZodString>;
3503
3503
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3504
3504
  }, "strict", z.ZodTypeAny, {
3505
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3505
3506
  id: string;
3506
3507
  label: string;
3507
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3508
3508
  capture: "at_action" | "historical_lookup" | "fixture";
3509
3509
  locator?: string | undefined;
3510
3510
  }, {
3511
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3511
3512
  id: string;
3512
3513
  label: string;
3513
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3514
3514
  capture: "at_action" | "historical_lookup" | "fixture";
3515
3515
  locator?: string | undefined;
3516
3516
  }>, "many">>;
3517
3517
  }, "strict", z.ZodTypeAny, {
3518
- summary: string;
3519
3518
  kind: "test_result";
3519
+ summary: string;
3520
3520
  command: string;
3521
3521
  status: "error" | "failed" | "passed";
3522
3522
  evidence: {
3523
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3523
3524
  id: string;
3524
3525
  label: string;
3525
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3526
3526
  capture: "at_action" | "historical_lookup" | "fixture";
3527
3527
  locator?: string | undefined;
3528
3528
  }[];
@@ -3531,17 +3531,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3531
3531
  durationMs?: number | undefined;
3532
3532
  correctionId?: string | undefined;
3533
3533
  }, {
3534
- summary: string;
3535
3534
  kind: "test_result";
3535
+ summary: string;
3536
3536
  command: string;
3537
3537
  status: "error" | "failed" | "passed";
3538
3538
  decisionId: string;
3539
3539
  testId: string;
3540
3540
  durationMs?: number | undefined;
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
  }[] | undefined;
@@ -3562,15 +3562,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3562
3562
  locator: z.ZodOptional<z.ZodString>;
3563
3563
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3564
3564
  }, "strict", z.ZodTypeAny, {
3565
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3565
3566
  id: string;
3566
3567
  label: string;
3567
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3568
3568
  capture: "at_action" | "historical_lookup" | "fixture";
3569
3569
  locator?: string | undefined;
3570
3570
  }, {
3571
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3571
3572
  id: string;
3572
3573
  label: string;
3573
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3574
3574
  capture: "at_action" | "historical_lookup" | "fixture";
3575
3575
  locator?: string | undefined;
3576
3576
  }>, "many">>;
@@ -3579,9 +3579,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3579
3579
  rationale: string;
3580
3580
  statement: string;
3581
3581
  evidence: {
3582
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3582
3583
  id: string;
3583
3584
  label: string;
3584
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3585
3585
  capture: "at_action" | "historical_lookup" | "fixture";
3586
3586
  locator?: string | undefined;
3587
3587
  }[];
@@ -3600,9 +3600,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3600
3600
  supersedesDecisionIds: string[];
3601
3601
  proposedBy: string;
3602
3602
  evidence?: {
3603
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3603
3604
  id: string;
3604
3605
  label: string;
3605
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3606
3606
  capture: "at_action" | "historical_lookup" | "fixture";
3607
3607
  locator?: string | undefined;
3608
3608
  }[] | undefined;
@@ -3614,13 +3614,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3614
3614
  id: z.ZodString;
3615
3615
  label: z.ZodString;
3616
3616
  }, "strict", z.ZodTypeAny, {
3617
+ kind: "agent" | "human";
3617
3618
  id: string;
3618
3619
  label: string;
3619
- kind: "agent" | "human";
3620
3620
  }, {
3621
+ kind: "agent" | "human";
3621
3622
  id: string;
3622
3623
  label: string;
3623
- kind: "agent" | "human";
3624
3624
  }>;
3625
3625
  note: z.ZodOptional<z.ZodString>;
3626
3626
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3630,47 +3630,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3630
3630
  locator: z.ZodOptional<z.ZodString>;
3631
3631
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3632
3632
  }, "strict", z.ZodTypeAny, {
3633
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3633
3634
  id: string;
3634
3635
  label: string;
3635
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3636
3636
  capture: "at_action" | "historical_lookup" | "fixture";
3637
3637
  locator?: string | undefined;
3638
3638
  }, {
3639
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3639
3640
  id: string;
3640
3641
  label: string;
3641
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3642
3642
  capture: "at_action" | "historical_lookup" | "fixture";
3643
3643
  locator?: string | undefined;
3644
3644
  }>, "many">>;
3645
3645
  }, "strict", z.ZodTypeAny, {
3646
3646
  kind: "correction_approved";
3647
3647
  evidence: {
3648
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3648
3649
  id: string;
3649
3650
  label: string;
3650
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3651
3651
  capture: "at_action" | "historical_lookup" | "fixture";
3652
3652
  locator?: string | undefined;
3653
3653
  }[];
3654
3654
  correctionId: string;
3655
3655
  approvedBy: {
3656
+ kind: "agent" | "human";
3656
3657
  id: string;
3657
3658
  label: string;
3658
- kind: "agent" | "human";
3659
3659
  };
3660
3660
  note?: string | undefined;
3661
3661
  }, {
3662
3662
  kind: "correction_approved";
3663
3663
  correctionId: string;
3664
3664
  approvedBy: {
3665
+ kind: "agent" | "human";
3665
3666
  id: string;
3666
3667
  label: string;
3667
- kind: "agent" | "human";
3668
3668
  };
3669
3669
  note?: string | undefined;
3670
3670
  evidence?: {
3671
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3671
3672
  id: string;
3672
3673
  label: string;
3673
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
3674
  capture: "at_action" | "historical_lookup" | "fixture";
3675
3675
  locator?: string | undefined;
3676
3676
  }[] | undefined;
@@ -3686,24 +3686,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3686
3686
  locator: z.ZodOptional<z.ZodString>;
3687
3687
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3688
3688
  }, "strict", z.ZodTypeAny, {
3689
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3689
3690
  id: string;
3690
3691
  label: string;
3691
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3692
3692
  capture: "at_action" | "historical_lookup" | "fixture";
3693
3693
  locator?: string | undefined;
3694
3694
  }, {
3695
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3695
3696
  id: string;
3696
3697
  label: string;
3697
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3698
3698
  capture: "at_action" | "historical_lookup" | "fixture";
3699
3699
  locator?: string | undefined;
3700
3700
  }>, "many">>;
3701
3701
  }, "strict", z.ZodTypeAny, {
3702
3702
  kind: "decision_superseded";
3703
3703
  evidence: {
3704
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3704
3705
  id: string;
3705
3706
  label: string;
3706
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3707
3707
  capture: "at_action" | "historical_lookup" | "fixture";
3708
3708
  locator?: string | undefined;
3709
3709
  }[];
@@ -3716,9 +3716,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3716
3716
  correctionId: string;
3717
3717
  replacementDecisionId: string;
3718
3718
  evidence?: {
3719
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3719
3720
  id: string;
3720
3721
  label: string;
3721
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3722
3722
  capture: "at_action" | "historical_lookup" | "fixture";
3723
3723
  locator?: string | undefined;
3724
3724
  }[] | undefined;
@@ -3734,15 +3734,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3734
3734
  locator: z.ZodOptional<z.ZodString>;
3735
3735
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3736
3736
  }, "strict", z.ZodTypeAny, {
3737
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3737
3738
  id: string;
3738
3739
  label: string;
3739
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
3740
  capture: "at_action" | "historical_lookup" | "fixture";
3741
3741
  locator?: string | undefined;
3742
3742
  }, {
3743
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3743
3744
  id: string;
3744
3745
  label: string;
3745
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3746
3746
  capture: "at_action" | "historical_lookup" | "fixture";
3747
3747
  locator?: string | undefined;
3748
3748
  }>, "many">>;
@@ -3755,9 +3755,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3755
3755
  agentId: string;
3756
3756
  sessionId: string;
3757
3757
  evidence: {
3758
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3758
3759
  id: string;
3759
3760
  label: string;
3760
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3761
3761
  capture: "at_action" | "historical_lookup" | "fixture";
3762
3762
  locator?: string | undefined;
3763
3763
  }[];
@@ -3773,9 +3773,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3773
3773
  recallReceiptId: string;
3774
3774
  capturedAtAction: boolean;
3775
3775
  evidence?: {
3776
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3776
3777
  id: string;
3777
3778
  label: string;
3778
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3779
3779
  capture: "at_action" | "historical_lookup" | "fixture";
3780
3780
  locator?: string | undefined;
3781
3781
  }[] | undefined;
@@ -3791,15 +3791,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3791
3791
  locator: z.ZodOptional<z.ZodString>;
3792
3792
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3793
3793
  }, "strict", z.ZodTypeAny, {
3794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3794
3795
  id: string;
3795
3796
  label: string;
3796
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3797
3797
  capture: "at_action" | "historical_lookup" | "fixture";
3798
3798
  locator?: string | undefined;
3799
3799
  }, {
3800
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3800
3801
  id: string;
3801
3802
  label: string;
3802
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3803
3803
  capture: "at_action" | "historical_lookup" | "fixture";
3804
3804
  locator?: string | undefined;
3805
3805
  }>, "many">>;
@@ -3811,9 +3811,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3811
3811
  agentId: string;
3812
3812
  sessionId: string;
3813
3813
  evidence: {
3814
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3814
3815
  id: string;
3815
3816
  label: string;
3816
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3817
3817
  capture: "at_action" | "historical_lookup" | "fixture";
3818
3818
  locator?: string | undefined;
3819
3819
  }[];
@@ -3830,9 +3830,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3830
3830
  recallReceiptId: string;
3831
3831
  staleDecisionAbsent: boolean;
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
  }[] | undefined;
@@ -3847,37 +3847,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3847
3847
  locator: z.ZodOptional<z.ZodString>;
3848
3848
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3849
3849
  }, "strict", z.ZodTypeAny, {
3850
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3850
3851
  id: string;
3851
3852
  label: string;
3852
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3853
3853
  capture: "at_action" | "historical_lookup" | "fixture";
3854
3854
  locator?: string | undefined;
3855
3855
  }, {
3856
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3856
3857
  id: string;
3857
3858
  label: string;
3858
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3859
3859
  capture: "at_action" | "historical_lookup" | "fixture";
3860
3860
  locator?: string | undefined;
3861
3861
  }>, "many">>;
3862
3862
  }, "strict", z.ZodTypeAny, {
3863
- summary: string;
3864
3863
  kind: "mission_completed";
3864
+ summary: string;
3865
3865
  outcome: "failed" | "recovered" | "inconclusive";
3866
3866
  evidence: {
3867
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3867
3868
  id: string;
3868
3869
  label: string;
3869
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
3870
  capture: "at_action" | "historical_lookup" | "fixture";
3871
3871
  locator?: string | undefined;
3872
3872
  }[];
3873
3873
  }, {
3874
- summary: string;
3875
3874
  kind: "mission_completed";
3875
+ summary: string;
3876
3876
  outcome: "failed" | "recovered" | "inconclusive";
3877
3877
  evidence?: {
3878
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3878
3879
  id: string;
3879
3880
  label: string;
3880
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3881
3881
  capture: "at_action" | "historical_lookup" | "fixture";
3882
3882
  locator?: string | undefined;
3883
3883
  }[] | undefined;
@@ -3887,36 +3887,36 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3887
3887
  objective: string;
3888
3888
  runMode: "replay" | "fixture" | "live";
3889
3889
  evidence: {
3890
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3890
3891
  id: string;
3891
3892
  label: string;
3892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3893
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3894
3894
  locator?: string | undefined;
3895
3895
  }[];
3896
3896
  } | {
3897
- label: string;
3898
3897
  kind: "agent_status";
3899
3898
  role: string;
3900
3899
  status: "failed" | "complete" | "working" | "blocked" | "idle";
3900
+ label: string;
3901
3901
  agentId: string;
3902
3902
  sessionId: string;
3903
3903
  evidence: {
3904
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3904
3905
  id: string;
3905
3906
  label: string;
3906
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3907
3907
  capture: "at_action" | "historical_lookup" | "fixture";
3908
3908
  locator?: string | undefined;
3909
3909
  }[];
3910
3910
  detail?: string | undefined;
3911
3911
  } | {
3912
- summary: string;
3913
3912
  kind: "agent_output";
3913
+ summary: string;
3914
3914
  agentId: string;
3915
3915
  sessionId: string;
3916
3916
  evidence: {
3917
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3917
3918
  id: string;
3918
3919
  label: string;
3919
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3920
3920
  capture: "at_action" | "historical_lookup" | "fixture";
3921
3921
  locator?: string | undefined;
3922
3922
  }[];
@@ -3927,9 +3927,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3927
3927
  sessionId: string;
3928
3928
  statement: string;
3929
3929
  evidence: {
3930
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3930
3931
  id: string;
3931
3932
  label: string;
3932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3933
3933
  capture: "at_action" | "historical_lookup" | "fixture";
3934
3934
  locator?: string | undefined;
3935
3935
  }[];
@@ -3937,12 +3937,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3937
3937
  decisionId: string;
3938
3938
  confidence?: number | undefined;
3939
3939
  } | {
3940
- summary: string;
3941
3940
  kind: "conflict_detected";
3941
+ summary: string;
3942
3942
  evidence: {
3943
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3943
3944
  id: string;
3944
3945
  label: string;
3945
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3946
3946
  capture: "at_action" | "historical_lookup" | "fixture";
3947
3947
  locator?: string | undefined;
3948
3948
  }[];
@@ -3950,14 +3950,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3950
3950
  decisionIds: string[];
3951
3951
  agentIds: string[];
3952
3952
  } | {
3953
- summary: string;
3954
3953
  kind: "test_result";
3954
+ summary: string;
3955
3955
  command: string;
3956
3956
  status: "error" | "failed" | "passed";
3957
3957
  evidence: {
3958
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3958
3959
  id: string;
3959
3960
  label: string;
3960
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3961
3961
  capture: "at_action" | "historical_lookup" | "fixture";
3962
3962
  locator?: string | undefined;
3963
3963
  }[];
@@ -3970,9 +3970,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3970
3970
  rationale: string;
3971
3971
  statement: string;
3972
3972
  evidence: {
3973
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3973
3974
  id: string;
3974
3975
  label: string;
3975
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3976
3976
  capture: "at_action" | "historical_lookup" | "fixture";
3977
3977
  locator?: string | undefined;
3978
3978
  }[];
@@ -3984,25 +3984,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3984
3984
  } | {
3985
3985
  kind: "correction_approved";
3986
3986
  evidence: {
3987
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3987
3988
  id: string;
3988
3989
  label: string;
3989
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3990
3990
  capture: "at_action" | "historical_lookup" | "fixture";
3991
3991
  locator?: string | undefined;
3992
3992
  }[];
3993
3993
  correctionId: string;
3994
3994
  approvedBy: {
3995
+ kind: "agent" | "human";
3995
3996
  id: string;
3996
3997
  label: string;
3997
- kind: "agent" | "human";
3998
3998
  };
3999
3999
  note?: string | undefined;
4000
4000
  } | {
4001
4001
  kind: "decision_superseded";
4002
4002
  evidence: {
4003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4003
4004
  id: string;
4004
4005
  label: string;
4005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4006
4006
  capture: "at_action" | "historical_lookup" | "fixture";
4007
4007
  locator?: string | undefined;
4008
4008
  }[];
@@ -4015,9 +4015,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4015
4015
  agentId: string;
4016
4016
  sessionId: string;
4017
4017
  evidence: {
4018
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4018
4019
  id: string;
4019
4020
  label: string;
4020
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4021
4021
  capture: "at_action" | "historical_lookup" | "fixture";
4022
4022
  locator?: string | undefined;
4023
4023
  }[];
@@ -4029,9 +4029,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4029
4029
  agentId: string;
4030
4030
  sessionId: string;
4031
4031
  evidence: {
4032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4032
4033
  id: string;
4033
4034
  label: string;
4034
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4035
4035
  capture: "at_action" | "historical_lookup" | "fixture";
4036
4036
  locator?: string | undefined;
4037
4037
  }[];
@@ -4040,13 +4040,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4040
4040
  recallReceiptId: string;
4041
4041
  staleDecisionAbsent: boolean;
4042
4042
  } | {
4043
- summary: string;
4044
4043
  kind: "mission_completed";
4044
+ summary: string;
4045
4045
  outcome: "failed" | "recovered" | "inconclusive";
4046
4046
  evidence: {
4047
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4047
4048
  id: string;
4048
4049
  label: string;
4049
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4050
4050
  capture: "at_action" | "historical_lookup" | "fixture";
4051
4051
  locator?: string | undefined;
4052
4052
  }[];
@@ -4056,37 +4056,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4056
4056
  objective: string;
4057
4057
  runMode: "replay" | "fixture" | "live";
4058
4058
  evidence?: {
4059
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4059
4060
  id: string;
4060
4061
  label: string;
4061
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4062
4062
  capture: "at_action" | "historical_lookup" | "fixture";
4063
4063
  locator?: string | undefined;
4064
4064
  }[] | undefined;
4065
4065
  } | {
4066
- label: string;
4067
4066
  kind: "agent_status";
4068
4067
  role: string;
4069
4068
  status: "failed" | "complete" | "working" | "blocked" | "idle";
4069
+ label: string;
4070
4070
  agentId: string;
4071
4071
  sessionId: string;
4072
4072
  detail?: string | undefined;
4073
4073
  evidence?: {
4074
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4074
4075
  id: string;
4075
4076
  label: string;
4076
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4077
4077
  capture: "at_action" | "historical_lookup" | "fixture";
4078
4078
  locator?: string | undefined;
4079
4079
  }[] | undefined;
4080
4080
  } | {
4081
- summary: string;
4082
4081
  kind: "agent_output";
4082
+ summary: string;
4083
4083
  agentId: string;
4084
4084
  sessionId: string;
4085
4085
  outputId: string;
4086
4086
  evidence?: {
4087
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4087
4088
  id: string;
4088
4089
  label: string;
4089
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4090
4090
  capture: "at_action" | "historical_lookup" | "fixture";
4091
4091
  locator?: string | undefined;
4092
4092
  }[] | undefined;
@@ -4099,37 +4099,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4099
4099
  decisionId: string;
4100
4100
  confidence?: number | undefined;
4101
4101
  evidence?: {
4102
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4102
4103
  id: string;
4103
4104
  label: string;
4104
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4105
4105
  capture: "at_action" | "historical_lookup" | "fixture";
4106
4106
  locator?: string | undefined;
4107
4107
  }[] | undefined;
4108
4108
  } | {
4109
- summary: string;
4110
4109
  kind: "conflict_detected";
4110
+ summary: string;
4111
4111
  conflictId: string;
4112
4112
  decisionIds: string[];
4113
4113
  agentIds: string[];
4114
4114
  evidence?: {
4115
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4115
4116
  id: string;
4116
4117
  label: string;
4117
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4118
4118
  capture: "at_action" | "historical_lookup" | "fixture";
4119
4119
  locator?: string | undefined;
4120
4120
  }[] | undefined;
4121
4121
  } | {
4122
- summary: string;
4123
4122
  kind: "test_result";
4123
+ summary: string;
4124
4124
  command: string;
4125
4125
  status: "error" | "failed" | "passed";
4126
4126
  decisionId: string;
4127
4127
  testId: string;
4128
4128
  durationMs?: number | undefined;
4129
4129
  evidence?: {
4130
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4130
4131
  id: string;
4131
4132
  label: string;
4132
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4133
4133
  capture: "at_action" | "historical_lookup" | "fixture";
4134
4134
  locator?: string | undefined;
4135
4135
  }[] | undefined;
@@ -4144,9 +4144,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4144
4144
  supersedesDecisionIds: string[];
4145
4145
  proposedBy: string;
4146
4146
  evidence?: {
4147
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4147
4148
  id: string;
4148
4149
  label: string;
4149
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
4150
  capture: "at_action" | "historical_lookup" | "fixture";
4151
4151
  locator?: string | undefined;
4152
4152
  }[] | undefined;
@@ -4154,15 +4154,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4154
4154
  kind: "correction_approved";
4155
4155
  correctionId: string;
4156
4156
  approvedBy: {
4157
+ kind: "agent" | "human";
4157
4158
  id: string;
4158
4159
  label: string;
4159
- kind: "agent" | "human";
4160
4160
  };
4161
4161
  note?: string | undefined;
4162
4162
  evidence?: {
4163
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4163
4164
  id: string;
4164
4165
  label: string;
4165
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4166
4166
  capture: "at_action" | "historical_lookup" | "fixture";
4167
4167
  locator?: string | undefined;
4168
4168
  }[] | undefined;
@@ -4172,9 +4172,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4172
4172
  correctionId: string;
4173
4173
  replacementDecisionId: string;
4174
4174
  evidence?: {
4175
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4175
4176
  id: string;
4176
4177
  label: string;
4177
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4178
4178
  capture: "at_action" | "historical_lookup" | "fixture";
4179
4179
  locator?: string | undefined;
4180
4180
  }[] | undefined;
@@ -4187,9 +4187,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4187
4187
  recallReceiptId: string;
4188
4188
  capturedAtAction: boolean;
4189
4189
  evidence?: {
4190
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4190
4191
  id: string;
4191
4192
  label: string;
4192
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4193
4193
  capture: "at_action" | "historical_lookup" | "fixture";
4194
4194
  locator?: string | undefined;
4195
4195
  }[] | undefined;
@@ -4202,64 +4202,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4202
4202
  recallReceiptId: string;
4203
4203
  staleDecisionAbsent: boolean;
4204
4204
  evidence?: {
4205
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4205
4206
  id: string;
4206
4207
  label: string;
4207
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4208
4208
  capture: "at_action" | "historical_lookup" | "fixture";
4209
4209
  locator?: string | undefined;
4210
4210
  }[] | undefined;
4211
4211
  } | {
4212
- summary: string;
4213
4212
  kind: "mission_completed";
4213
+ summary: string;
4214
4214
  outcome: "failed" | "recovered" | "inconclusive";
4215
4215
  evidence?: {
4216
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4216
4217
  id: string;
4217
4218
  label: string;
4218
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4219
4219
  capture: "at_action" | "historical_lookup" | "fixture";
4220
4220
  locator?: string | undefined;
4221
4221
  }[] | undefined;
4222
4222
  }>;
4223
4223
  }, "strict", z.ZodTypeAny, {
4224
- namespace: string;
4225
- recordedAt: string;
4226
4224
  schemaVersion: "1";
4225
+ recordedAt: string;
4227
4226
  payload: {
4228
4227
  kind: "mission_started";
4229
4228
  title: string;
4230
4229
  objective: string;
4231
4230
  runMode: "replay" | "fixture" | "live";
4232
4231
  evidence: {
4232
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4233
4233
  id: string;
4234
4234
  label: string;
4235
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4236
4235
  capture: "at_action" | "historical_lookup" | "fixture";
4237
4236
  locator?: string | undefined;
4238
4237
  }[];
4239
4238
  } | {
4240
- label: string;
4241
4239
  kind: "agent_status";
4242
4240
  role: string;
4243
4241
  status: "failed" | "complete" | "working" | "blocked" | "idle";
4242
+ label: string;
4244
4243
  agentId: string;
4245
4244
  sessionId: string;
4246
4245
  evidence: {
4246
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4247
4247
  id: string;
4248
4248
  label: string;
4249
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4250
4249
  capture: "at_action" | "historical_lookup" | "fixture";
4251
4250
  locator?: string | undefined;
4252
4251
  }[];
4253
4252
  detail?: string | undefined;
4254
4253
  } | {
4255
- summary: string;
4256
4254
  kind: "agent_output";
4255
+ summary: string;
4257
4256
  agentId: string;
4258
4257
  sessionId: string;
4259
4258
  evidence: {
4259
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4260
4260
  id: string;
4261
4261
  label: string;
4262
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4263
4262
  capture: "at_action" | "historical_lookup" | "fixture";
4264
4263
  locator?: string | undefined;
4265
4264
  }[];
@@ -4270,9 +4269,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4270
4269
  sessionId: string;
4271
4270
  statement: string;
4272
4271
  evidence: {
4272
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4273
4273
  id: string;
4274
4274
  label: string;
4275
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4276
4275
  capture: "at_action" | "historical_lookup" | "fixture";
4277
4276
  locator?: string | undefined;
4278
4277
  }[];
@@ -4280,12 +4279,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4280
4279
  decisionId: string;
4281
4280
  confidence?: number | undefined;
4282
4281
  } | {
4283
- summary: string;
4284
4282
  kind: "conflict_detected";
4283
+ summary: string;
4285
4284
  evidence: {
4285
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4286
4286
  id: string;
4287
4287
  label: string;
4288
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4289
4288
  capture: "at_action" | "historical_lookup" | "fixture";
4290
4289
  locator?: string | undefined;
4291
4290
  }[];
@@ -4293,14 +4292,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4293
4292
  decisionIds: string[];
4294
4293
  agentIds: string[];
4295
4294
  } | {
4296
- summary: string;
4297
4295
  kind: "test_result";
4296
+ summary: string;
4298
4297
  command: string;
4299
4298
  status: "error" | "failed" | "passed";
4300
4299
  evidence: {
4300
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4301
4301
  id: string;
4302
4302
  label: string;
4303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4304
4303
  capture: "at_action" | "historical_lookup" | "fixture";
4305
4304
  locator?: string | undefined;
4306
4305
  }[];
@@ -4313,9 +4312,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4313
4312
  rationale: string;
4314
4313
  statement: string;
4315
4314
  evidence: {
4315
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4316
4316
  id: string;
4317
4317
  label: string;
4318
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4319
4318
  capture: "at_action" | "historical_lookup" | "fixture";
4320
4319
  locator?: string | undefined;
4321
4320
  }[];
@@ -4327,25 +4326,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4327
4326
  } | {
4328
4327
  kind: "correction_approved";
4329
4328
  evidence: {
4329
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4330
4330
  id: string;
4331
4331
  label: string;
4332
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4333
4332
  capture: "at_action" | "historical_lookup" | "fixture";
4334
4333
  locator?: string | undefined;
4335
4334
  }[];
4336
4335
  correctionId: string;
4337
4336
  approvedBy: {
4337
+ kind: "agent" | "human";
4338
4338
  id: string;
4339
4339
  label: string;
4340
- kind: "agent" | "human";
4341
4340
  };
4342
4341
  note?: string | undefined;
4343
4342
  } | {
4344
4343
  kind: "decision_superseded";
4345
4344
  evidence: {
4345
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4346
4346
  id: string;
4347
4347
  label: string;
4348
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4349
4348
  capture: "at_action" | "historical_lookup" | "fixture";
4350
4349
  locator?: string | undefined;
4351
4350
  }[];
@@ -4358,9 +4357,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4358
4357
  agentId: string;
4359
4358
  sessionId: string;
4360
4359
  evidence: {
4360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4361
4361
  id: string;
4362
4362
  label: string;
4363
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4364
4363
  capture: "at_action" | "historical_lookup" | "fixture";
4365
4364
  locator?: string | undefined;
4366
4365
  }[];
@@ -4372,9 +4371,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4372
4371
  agentId: string;
4373
4372
  sessionId: string;
4374
4373
  evidence: {
4374
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4375
4375
  id: string;
4376
4376
  label: string;
4377
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4378
4377
  capture: "at_action" | "historical_lookup" | "fixture";
4379
4378
  locator?: string | undefined;
4380
4379
  }[];
@@ -4383,63 +4382,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4383
4382
  recallReceiptId: string;
4384
4383
  staleDecisionAbsent: boolean;
4385
4384
  } | {
4386
- summary: string;
4387
4385
  kind: "mission_completed";
4386
+ summary: string;
4388
4387
  outcome: "failed" | "recovered" | "inconclusive";
4389
4388
  evidence: {
4389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4390
4390
  id: string;
4391
4391
  label: string;
4392
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4393
4392
  capture: "at_action" | "historical_lookup" | "fixture";
4394
4393
  locator?: string | undefined;
4395
4394
  }[];
4396
4395
  };
4396
+ namespace: string;
4397
4397
  eventId: string;
4398
4398
  occurredAt: string;
4399
4399
  missionId: string;
4400
4400
  idempotencyKey?: string | undefined;
4401
4401
  authenticatedPrincipal?: string | undefined;
4402
4402
  }, {
4403
- namespace: string;
4404
- recordedAt: string;
4405
4403
  schemaVersion: "1";
4404
+ recordedAt: string;
4406
4405
  payload: {
4407
4406
  kind: "mission_started";
4408
4407
  title: string;
4409
4408
  objective: string;
4410
4409
  runMode: "replay" | "fixture" | "live";
4411
4410
  evidence?: {
4411
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4412
4412
  id: string;
4413
4413
  label: string;
4414
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4415
4414
  capture: "at_action" | "historical_lookup" | "fixture";
4416
4415
  locator?: string | undefined;
4417
4416
  }[] | undefined;
4418
4417
  } | {
4419
- label: string;
4420
4418
  kind: "agent_status";
4421
4419
  role: string;
4422
4420
  status: "failed" | "complete" | "working" | "blocked" | "idle";
4421
+ label: string;
4423
4422
  agentId: string;
4424
4423
  sessionId: string;
4425
4424
  detail?: string | undefined;
4426
4425
  evidence?: {
4426
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4427
4427
  id: string;
4428
4428
  label: string;
4429
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4430
4429
  capture: "at_action" | "historical_lookup" | "fixture";
4431
4430
  locator?: string | undefined;
4432
4431
  }[] | undefined;
4433
4432
  } | {
4434
- summary: string;
4435
4433
  kind: "agent_output";
4434
+ summary: string;
4436
4435
  agentId: string;
4437
4436
  sessionId: string;
4438
4437
  outputId: string;
4439
4438
  evidence?: {
4439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4440
4440
  id: string;
4441
4441
  label: string;
4442
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4443
4442
  capture: "at_action" | "historical_lookup" | "fixture";
4444
4443
  locator?: string | undefined;
4445
4444
  }[] | undefined;
@@ -4452,37 +4451,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4452
4451
  decisionId: string;
4453
4452
  confidence?: number | undefined;
4454
4453
  evidence?: {
4454
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4455
4455
  id: string;
4456
4456
  label: string;
4457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4458
4457
  capture: "at_action" | "historical_lookup" | "fixture";
4459
4458
  locator?: string | undefined;
4460
4459
  }[] | undefined;
4461
4460
  } | {
4462
- summary: string;
4463
4461
  kind: "conflict_detected";
4462
+ summary: string;
4464
4463
  conflictId: string;
4465
4464
  decisionIds: string[];
4466
4465
  agentIds: string[];
4467
4466
  evidence?: {
4467
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4468
4468
  id: string;
4469
4469
  label: string;
4470
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4471
4470
  capture: "at_action" | "historical_lookup" | "fixture";
4472
4471
  locator?: string | undefined;
4473
4472
  }[] | undefined;
4474
4473
  } | {
4475
- summary: string;
4476
4474
  kind: "test_result";
4475
+ summary: string;
4477
4476
  command: string;
4478
4477
  status: "error" | "failed" | "passed";
4479
4478
  decisionId: string;
4480
4479
  testId: string;
4481
4480
  durationMs?: number | undefined;
4482
4481
  evidence?: {
4482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4483
4483
  id: string;
4484
4484
  label: string;
4485
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4486
4485
  capture: "at_action" | "historical_lookup" | "fixture";
4487
4486
  locator?: string | undefined;
4488
4487
  }[] | undefined;
@@ -4497,9 +4496,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4497
4496
  supersedesDecisionIds: string[];
4498
4497
  proposedBy: string;
4499
4498
  evidence?: {
4499
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4500
4500
  id: string;
4501
4501
  label: string;
4502
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
4502
  capture: "at_action" | "historical_lookup" | "fixture";
4504
4503
  locator?: string | undefined;
4505
4504
  }[] | undefined;
@@ -4507,15 +4506,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4507
4506
  kind: "correction_approved";
4508
4507
  correctionId: string;
4509
4508
  approvedBy: {
4509
+ kind: "agent" | "human";
4510
4510
  id: string;
4511
4511
  label: string;
4512
- kind: "agent" | "human";
4513
4512
  };
4514
4513
  note?: string | undefined;
4515
4514
  evidence?: {
4515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4516
4516
  id: string;
4517
4517
  label: string;
4518
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4519
4518
  capture: "at_action" | "historical_lookup" | "fixture";
4520
4519
  locator?: string | undefined;
4521
4520
  }[] | undefined;
@@ -4525,9 +4524,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4525
4524
  correctionId: string;
4526
4525
  replacementDecisionId: string;
4527
4526
  evidence?: {
4527
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4528
4528
  id: string;
4529
4529
  label: string;
4530
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4531
4530
  capture: "at_action" | "historical_lookup" | "fixture";
4532
4531
  locator?: string | undefined;
4533
4532
  }[] | undefined;
@@ -4540,9 +4539,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4540
4539
  recallReceiptId: string;
4541
4540
  capturedAtAction: boolean;
4542
4541
  evidence?: {
4542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4543
4543
  id: string;
4544
4544
  label: string;
4545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4546
4545
  capture: "at_action" | "historical_lookup" | "fixture";
4547
4546
  locator?: string | undefined;
4548
4547
  }[] | undefined;
@@ -4555,24 +4554,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4555
4554
  recallReceiptId: string;
4556
4555
  staleDecisionAbsent: boolean;
4557
4556
  evidence?: {
4557
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4558
4558
  id: string;
4559
4559
  label: string;
4560
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4561
4560
  capture: "at_action" | "historical_lookup" | "fixture";
4562
4561
  locator?: string | undefined;
4563
4562
  }[] | undefined;
4564
4563
  } | {
4565
- summary: string;
4566
4564
  kind: "mission_completed";
4565
+ summary: string;
4567
4566
  outcome: "failed" | "recovered" | "inconclusive";
4568
4567
  evidence?: {
4568
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4569
4569
  id: string;
4570
4570
  label: string;
4571
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4572
4571
  capture: "at_action" | "historical_lookup" | "fixture";
4573
4572
  locator?: string | undefined;
4574
4573
  }[] | undefined;
4575
4574
  };
4575
+ namespace: string;
4576
4576
  eventId: string;
4577
4577
  occurredAt: string;
4578
4578
  missionId: string;