@remnic/core 9.16.0 → 9.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -862,15 +862,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
862
862
  locator: z.ZodOptional<z.ZodString>;
863
863
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
864
864
  }, "strict", z.ZodTypeAny, {
865
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
865
866
  id: string;
866
867
  label: string;
867
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
868
868
  capture: "at_action" | "historical_lookup" | "fixture";
869
869
  locator?: string | undefined;
870
870
  }, {
871
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
871
872
  id: string;
872
873
  label: string;
873
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
874
874
  capture: "at_action" | "historical_lookup" | "fixture";
875
875
  locator?: string | undefined;
876
876
  }>;
@@ -887,15 +887,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
887
887
  locator: z.ZodOptional<z.ZodString>;
888
888
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
889
889
  }, "strict", z.ZodTypeAny, {
890
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
890
891
  id: string;
891
892
  label: string;
892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
893
893
  capture: "at_action" | "historical_lookup" | "fixture";
894
894
  locator?: string | undefined;
895
895
  }, {
896
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
896
897
  id: string;
897
898
  label: string;
898
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
899
899
  capture: "at_action" | "historical_lookup" | "fixture";
900
900
  locator?: string | undefined;
901
901
  }>, "many">>;
@@ -903,9 +903,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
903
903
  kind: "mission_started";
904
904
  title: string;
905
905
  evidence: {
906
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
906
907
  id: string;
907
908
  label: string;
908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
909
909
  capture: "at_action" | "historical_lookup" | "fixture";
910
910
  locator?: string | undefined;
911
911
  }[];
@@ -917,9 +917,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
917
917
  objective: string;
918
918
  runMode: "replay" | "fixture" | "live";
919
919
  evidence?: {
920
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
920
921
  id: string;
921
922
  label: string;
922
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
923
923
  capture: "at_action" | "historical_lookup" | "fixture";
924
924
  locator?: string | undefined;
925
925
  }[] | undefined;
@@ -935,15 +935,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
935
935
  locator: z.ZodOptional<z.ZodString>;
936
936
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
937
937
  }, "strict", z.ZodTypeAny, {
938
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
938
939
  id: string;
939
940
  label: string;
940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
941
941
  capture: "at_action" | "historical_lookup" | "fixture";
942
942
  locator?: string | undefined;
943
943
  }, {
944
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
944
945
  id: string;
945
946
  label: string;
946
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
947
947
  capture: "at_action" | "historical_lookup" | "fixture";
948
948
  locator?: string | undefined;
949
949
  }>, "many">>;
@@ -951,32 +951,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
951
951
  sessionId: z.ZodString;
952
952
  kind: z.ZodLiteral<"agent_status">;
953
953
  }, "strict", z.ZodTypeAny, {
954
- label: string;
955
- status: "failed" | "blocked" | "working" | "complete" | "idle";
956
954
  kind: "agent_status";
957
955
  role: string;
956
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
957
+ label: string;
958
958
  agentId: string;
959
959
  sessionId: string;
960
960
  evidence: {
961
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
961
962
  id: string;
962
963
  label: string;
963
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
964
964
  capture: "at_action" | "historical_lookup" | "fixture";
965
965
  locator?: string | undefined;
966
966
  }[];
967
967
  detail?: string | undefined;
968
968
  }, {
969
- label: string;
970
- status: "failed" | "blocked" | "working" | "complete" | "idle";
971
969
  kind: "agent_status";
972
970
  role: string;
971
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
972
+ label: string;
973
973
  agentId: string;
974
974
  sessionId: string;
975
975
  detail?: string | undefined;
976
976
  evidence?: {
977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
977
978
  id: string;
978
979
  label: string;
979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
980
980
  capture: "at_action" | "historical_lookup" | "fixture";
981
981
  locator?: string | undefined;
982
982
  }[] | undefined;
@@ -990,15 +990,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
990
990
  locator: z.ZodOptional<z.ZodString>;
991
991
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
992
992
  }, "strict", z.ZodTypeAny, {
993
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
993
994
  id: string;
994
995
  label: string;
995
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
996
996
  capture: "at_action" | "historical_lookup" | "fixture";
997
997
  locator?: string | undefined;
998
998
  }, {
999
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
999
1000
  id: string;
1000
1001
  label: string;
1001
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1002
1002
  capture: "at_action" | "historical_lookup" | "fixture";
1003
1003
  locator?: string | undefined;
1004
1004
  }>, "many">>;
@@ -1006,28 +1006,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1006
1006
  sessionId: z.ZodString;
1007
1007
  kind: z.ZodLiteral<"agent_output">;
1008
1008
  }, "strict", z.ZodTypeAny, {
1009
- summary: string;
1010
1009
  kind: "agent_output";
1010
+ summary: string;
1011
1011
  agentId: string;
1012
1012
  sessionId: string;
1013
1013
  evidence: {
1014
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1014
1015
  id: string;
1015
1016
  label: string;
1016
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1017
1017
  capture: "at_action" | "historical_lookup" | "fixture";
1018
1018
  locator?: string | undefined;
1019
1019
  }[];
1020
1020
  outputId: string;
1021
1021
  }, {
1022
- summary: string;
1023
1022
  kind: "agent_output";
1023
+ summary: string;
1024
1024
  agentId: string;
1025
1025
  sessionId: string;
1026
1026
  outputId: string;
1027
1027
  evidence?: {
1028
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1028
1029
  id: string;
1029
1030
  label: string;
1030
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1031
1031
  capture: "at_action" | "historical_lookup" | "fixture";
1032
1032
  locator?: string | undefined;
1033
1033
  }[] | undefined;
@@ -1043,15 +1043,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1043
1043
  locator: z.ZodOptional<z.ZodString>;
1044
1044
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1045
1045
  }, "strict", z.ZodTypeAny, {
1046
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1046
1047
  id: string;
1047
1048
  label: string;
1048
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1049
1049
  capture: "at_action" | "historical_lookup" | "fixture";
1050
1050
  locator?: string | undefined;
1051
1051
  }, {
1052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1052
1053
  id: string;
1053
1054
  label: string;
1054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1055
1055
  capture: "at_action" | "historical_lookup" | "fixture";
1056
1056
  locator?: string | undefined;
1057
1057
  }>, "many">>;
@@ -1064,9 +1064,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1064
1064
  statement: string;
1065
1065
  sessionId: string;
1066
1066
  evidence: {
1067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1067
1068
  id: string;
1068
1069
  label: string;
1069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1070
1070
  capture: "at_action" | "historical_lookup" | "fixture";
1071
1071
  locator?: string | undefined;
1072
1072
  }[];
@@ -1082,9 +1082,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1082
1082
  decisionId: string;
1083
1083
  confidence?: number | undefined;
1084
1084
  evidence?: {
1085
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1085
1086
  id: string;
1086
1087
  label: string;
1087
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1088
1088
  capture: "at_action" | "historical_lookup" | "fixture";
1089
1089
  locator?: string | undefined;
1090
1090
  }[] | undefined;
@@ -1101,25 +1101,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1101
1101
  locator: z.ZodOptional<z.ZodString>;
1102
1102
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1103
1103
  }, "strict", z.ZodTypeAny, {
1104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1104
1105
  id: string;
1105
1106
  label: string;
1106
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1107
1107
  capture: "at_action" | "historical_lookup" | "fixture";
1108
1108
  locator?: string | undefined;
1109
1109
  }, {
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
  }>, "many">>;
1116
1116
  }, "strict", z.ZodTypeAny, {
1117
- summary: string;
1118
1117
  kind: "conflict_detected";
1118
+ summary: string;
1119
1119
  evidence: {
1120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1120
1121
  id: string;
1121
1122
  label: string;
1122
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1123
1123
  capture: "at_action" | "historical_lookup" | "fixture";
1124
1124
  locator?: string | undefined;
1125
1125
  }[];
@@ -1127,15 +1127,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1127
1127
  decisionIds: string[];
1128
1128
  agentIds: string[];
1129
1129
  }, {
1130
- summary: string;
1131
1130
  kind: "conflict_detected";
1131
+ summary: string;
1132
1132
  conflictId: string;
1133
1133
  decisionIds: string[];
1134
1134
  agentIds: string[];
1135
1135
  evidence?: {
1136
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1136
1137
  id: string;
1137
1138
  label: string;
1138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1139
1139
  capture: "at_action" | "historical_lookup" | "fixture";
1140
1140
  locator?: string | undefined;
1141
1141
  }[] | undefined;
@@ -1155,27 +1155,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1155
1155
  locator: z.ZodOptional<z.ZodString>;
1156
1156
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1157
1157
  }, "strict", z.ZodTypeAny, {
1158
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1158
1159
  id: string;
1159
1160
  label: string;
1160
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1161
1161
  capture: "at_action" | "historical_lookup" | "fixture";
1162
1162
  locator?: string | undefined;
1163
1163
  }, {
1164
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1164
1165
  id: string;
1165
1166
  label: string;
1166
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1167
1167
  capture: "at_action" | "historical_lookup" | "fixture";
1168
1168
  locator?: string | undefined;
1169
1169
  }>, "many">>;
1170
1170
  }, "strict", z.ZodTypeAny, {
1171
- summary: string;
1172
- status: "error" | "failed" | "passed";
1173
1171
  kind: "test_result";
1172
+ summary: string;
1174
1173
  command: string;
1174
+ status: "error" | "failed" | "passed";
1175
1175
  evidence: {
1176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1176
1177
  id: string;
1177
1178
  label: string;
1178
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1179
1179
  capture: "at_action" | "historical_lookup" | "fixture";
1180
1180
  locator?: string | undefined;
1181
1181
  }[];
@@ -1184,17 +1184,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1184
1184
  durationMs?: number | undefined;
1185
1185
  correctionId?: string | undefined;
1186
1186
  }, {
1187
- summary: string;
1188
- status: "error" | "failed" | "passed";
1189
1187
  kind: "test_result";
1188
+ summary: string;
1190
1189
  command: string;
1190
+ status: "error" | "failed" | "passed";
1191
1191
  decisionId: string;
1192
1192
  testId: string;
1193
1193
  durationMs?: number | undefined;
1194
1194
  evidence?: {
1195
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1195
1196
  id: string;
1196
1197
  label: string;
1197
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1198
1198
  capture: "at_action" | "historical_lookup" | "fixture";
1199
1199
  locator?: string | undefined;
1200
1200
  }[] | undefined;
@@ -1215,15 +1215,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1215
1215
  locator: z.ZodOptional<z.ZodString>;
1216
1216
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1217
1217
  }, "strict", z.ZodTypeAny, {
1218
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1218
1219
  id: string;
1219
1220
  label: string;
1220
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1221
1221
  capture: "at_action" | "historical_lookup" | "fixture";
1222
1222
  locator?: string | undefined;
1223
1223
  }, {
1224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1224
1225
  id: string;
1225
1226
  label: string;
1226
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1227
1227
  capture: "at_action" | "historical_lookup" | "fixture";
1228
1228
  locator?: string | undefined;
1229
1229
  }>, "many">>;
@@ -1232,9 +1232,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1232
1232
  rationale: string;
1233
1233
  statement: string;
1234
1234
  evidence: {
1235
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1235
1236
  id: string;
1236
1237
  label: string;
1237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1238
1238
  capture: "at_action" | "historical_lookup" | "fixture";
1239
1239
  locator?: string | undefined;
1240
1240
  }[];
@@ -1253,9 +1253,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1253
1253
  supersedesDecisionIds: string[];
1254
1254
  proposedBy: string;
1255
1255
  evidence?: {
1256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1256
1257
  id: string;
1257
1258
  label: string;
1258
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1259
1259
  capture: "at_action" | "historical_lookup" | "fixture";
1260
1260
  locator?: string | undefined;
1261
1261
  }[] | undefined;
@@ -1267,13 +1267,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1267
1267
  id: z.ZodString;
1268
1268
  label: z.ZodString;
1269
1269
  }, "strict", z.ZodTypeAny, {
1270
+ kind: "agent" | "human";
1270
1271
  id: string;
1271
1272
  label: string;
1272
- kind: "agent" | "human";
1273
1273
  }, {
1274
+ kind: "agent" | "human";
1274
1275
  id: string;
1275
1276
  label: string;
1276
- kind: "agent" | "human";
1277
1277
  }>;
1278
1278
  note: z.ZodOptional<z.ZodString>;
1279
1279
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1283,47 +1283,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1283
1283
  locator: z.ZodOptional<z.ZodString>;
1284
1284
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1285
1285
  }, "strict", z.ZodTypeAny, {
1286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1286
1287
  id: string;
1287
1288
  label: string;
1288
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1289
1289
  capture: "at_action" | "historical_lookup" | "fixture";
1290
1290
  locator?: string | undefined;
1291
1291
  }, {
1292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1292
1293
  id: string;
1293
1294
  label: string;
1294
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1295
1295
  capture: "at_action" | "historical_lookup" | "fixture";
1296
1296
  locator?: string | undefined;
1297
1297
  }>, "many">>;
1298
1298
  }, "strict", z.ZodTypeAny, {
1299
1299
  kind: "correction_approved";
1300
1300
  evidence: {
1301
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1301
1302
  id: string;
1302
1303
  label: string;
1303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1304
1304
  capture: "at_action" | "historical_lookup" | "fixture";
1305
1305
  locator?: string | undefined;
1306
1306
  }[];
1307
1307
  correctionId: string;
1308
1308
  approvedBy: {
1309
+ kind: "agent" | "human";
1309
1310
  id: string;
1310
1311
  label: string;
1311
- kind: "agent" | "human";
1312
1312
  };
1313
1313
  note?: string | undefined;
1314
1314
  }, {
1315
1315
  kind: "correction_approved";
1316
1316
  correctionId: string;
1317
1317
  approvedBy: {
1318
+ kind: "agent" | "human";
1318
1319
  id: string;
1319
1320
  label: string;
1320
- kind: "agent" | "human";
1321
1321
  };
1322
1322
  note?: string | undefined;
1323
1323
  evidence?: {
1324
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1324
1325
  id: string;
1325
1326
  label: string;
1326
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1327
1327
  capture: "at_action" | "historical_lookup" | "fixture";
1328
1328
  locator?: string | undefined;
1329
1329
  }[] | undefined;
@@ -1339,24 +1339,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1339
1339
  locator: z.ZodOptional<z.ZodString>;
1340
1340
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1341
1341
  }, "strict", z.ZodTypeAny, {
1342
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1342
1343
  id: string;
1343
1344
  label: string;
1344
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1345
1345
  capture: "at_action" | "historical_lookup" | "fixture";
1346
1346
  locator?: string | undefined;
1347
1347
  }, {
1348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1348
1349
  id: string;
1349
1350
  label: string;
1350
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1351
1351
  capture: "at_action" | "historical_lookup" | "fixture";
1352
1352
  locator?: string | undefined;
1353
1353
  }>, "many">>;
1354
1354
  }, "strict", z.ZodTypeAny, {
1355
1355
  kind: "decision_superseded";
1356
1356
  evidence: {
1357
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1357
1358
  id: string;
1358
1359
  label: string;
1359
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1360
1360
  capture: "at_action" | "historical_lookup" | "fixture";
1361
1361
  locator?: string | undefined;
1362
1362
  }[];
@@ -1369,9 +1369,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1369
1369
  correctionId: string;
1370
1370
  replacementDecisionId: string;
1371
1371
  evidence?: {
1372
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1372
1373
  id: string;
1373
1374
  label: string;
1374
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1375
1375
  capture: "at_action" | "historical_lookup" | "fixture";
1376
1376
  locator?: string | undefined;
1377
1377
  }[] | undefined;
@@ -1387,15 +1387,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1387
1387
  locator: z.ZodOptional<z.ZodString>;
1388
1388
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1389
1389
  }, "strict", z.ZodTypeAny, {
1390
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1390
1391
  id: string;
1391
1392
  label: string;
1392
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1393
1393
  capture: "at_action" | "historical_lookup" | "fixture";
1394
1394
  locator?: string | undefined;
1395
1395
  }, {
1396
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1396
1397
  id: string;
1397
1398
  label: string;
1398
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1399
1399
  capture: "at_action" | "historical_lookup" | "fixture";
1400
1400
  locator?: string | undefined;
1401
1401
  }>, "many">>;
@@ -1408,9 +1408,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1408
1408
  agentId: string;
1409
1409
  sessionId: string;
1410
1410
  evidence: {
1411
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1411
1412
  id: string;
1412
1413
  label: string;
1413
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1414
1414
  capture: "at_action" | "historical_lookup" | "fixture";
1415
1415
  locator?: string | undefined;
1416
1416
  }[];
@@ -1426,9 +1426,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1426
1426
  recallReceiptId: string;
1427
1427
  capturedAtAction: boolean;
1428
1428
  evidence?: {
1429
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1429
1430
  id: string;
1430
1431
  label: string;
1431
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1432
1432
  capture: "at_action" | "historical_lookup" | "fixture";
1433
1433
  locator?: string | undefined;
1434
1434
  }[] | undefined;
@@ -1444,15 +1444,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1444
1444
  locator: z.ZodOptional<z.ZodString>;
1445
1445
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1446
1446
  }, "strict", z.ZodTypeAny, {
1447
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1447
1448
  id: string;
1448
1449
  label: string;
1449
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1450
1450
  capture: "at_action" | "historical_lookup" | "fixture";
1451
1451
  locator?: string | undefined;
1452
1452
  }, {
1453
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1453
1454
  id: string;
1454
1455
  label: string;
1455
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
1456
  capture: "at_action" | "historical_lookup" | "fixture";
1457
1457
  locator?: string | undefined;
1458
1458
  }>, "many">>;
@@ -1464,9 +1464,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1464
1464
  agentId: string;
1465
1465
  sessionId: string;
1466
1466
  evidence: {
1467
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1467
1468
  id: string;
1468
1469
  label: string;
1469
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1470
1470
  capture: "at_action" | "historical_lookup" | "fixture";
1471
1471
  locator?: string | undefined;
1472
1472
  }[];
@@ -1483,9 +1483,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1483
1483
  recallReceiptId: string;
1484
1484
  staleDecisionAbsent: boolean;
1485
1485
  evidence?: {
1486
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1486
1487
  id: string;
1487
1488
  label: string;
1488
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1489
1489
  capture: "at_action" | "historical_lookup" | "fixture";
1490
1490
  locator?: string | undefined;
1491
1491
  }[] | undefined;
@@ -1500,37 +1500,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1500
1500
  locator: z.ZodOptional<z.ZodString>;
1501
1501
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1502
1502
  }, "strict", z.ZodTypeAny, {
1503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1503
1504
  id: string;
1504
1505
  label: string;
1505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1506
1506
  capture: "at_action" | "historical_lookup" | "fixture";
1507
1507
  locator?: string | undefined;
1508
1508
  }, {
1509
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1509
1510
  id: string;
1510
1511
  label: string;
1511
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
1512
  capture: "at_action" | "historical_lookup" | "fixture";
1513
1513
  locator?: string | undefined;
1514
1514
  }>, "many">>;
1515
1515
  }, "strict", z.ZodTypeAny, {
1516
- summary: string;
1517
1516
  kind: "mission_completed";
1517
+ summary: string;
1518
1518
  outcome: "failed" | "recovered" | "inconclusive";
1519
1519
  evidence: {
1520
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1520
1521
  id: string;
1521
1522
  label: string;
1522
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1523
1523
  capture: "at_action" | "historical_lookup" | "fixture";
1524
1524
  locator?: string | undefined;
1525
1525
  }[];
1526
1526
  }, {
1527
- summary: string;
1528
1527
  kind: "mission_completed";
1528
+ summary: string;
1529
1529
  outcome: "failed" | "recovered" | "inconclusive";
1530
1530
  evidence?: {
1531
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1531
1532
  id: string;
1532
1533
  label: string;
1533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1534
1534
  capture: "at_action" | "historical_lookup" | "fixture";
1535
1535
  locator?: string | undefined;
1536
1536
  }[] | undefined;
@@ -1538,38 +1538,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1538
1538
  kind: "mission_started";
1539
1539
  title: string;
1540
1540
  evidence: {
1541
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
1542
  id: string;
1542
1543
  label: string;
1543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1544
1544
  capture: "at_action" | "historical_lookup" | "fixture";
1545
1545
  locator?: string | undefined;
1546
1546
  }[];
1547
1547
  objective: string;
1548
1548
  runMode: "replay" | "fixture" | "live";
1549
1549
  } | {
1550
- label: string;
1551
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1552
1550
  kind: "agent_status";
1553
1551
  role: string;
1552
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1553
+ label: string;
1554
1554
  agentId: string;
1555
1555
  sessionId: string;
1556
1556
  evidence: {
1557
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1557
1558
  id: string;
1558
1559
  label: string;
1559
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1560
1560
  capture: "at_action" | "historical_lookup" | "fixture";
1561
1561
  locator?: string | undefined;
1562
1562
  }[];
1563
1563
  detail?: string | undefined;
1564
1564
  } | {
1565
- summary: string;
1566
1565
  kind: "agent_output";
1566
+ summary: string;
1567
1567
  agentId: string;
1568
1568
  sessionId: string;
1569
1569
  evidence: {
1570
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1570
1571
  id: string;
1571
1572
  label: string;
1572
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1573
1573
  capture: "at_action" | "historical_lookup" | "fixture";
1574
1574
  locator?: string | undefined;
1575
1575
  }[];
@@ -1580,9 +1580,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1580
1580
  statement: string;
1581
1581
  sessionId: string;
1582
1582
  evidence: {
1583
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1583
1584
  id: string;
1584
1585
  label: string;
1585
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1586
1586
  capture: "at_action" | "historical_lookup" | "fixture";
1587
1587
  locator?: string | undefined;
1588
1588
  }[];
@@ -1590,12 +1590,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1590
1590
  decisionId: string;
1591
1591
  confidence?: number | undefined;
1592
1592
  } | {
1593
- summary: string;
1594
1593
  kind: "conflict_detected";
1594
+ summary: string;
1595
1595
  evidence: {
1596
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
1597
  id: string;
1597
1598
  label: string;
1598
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1599
1599
  capture: "at_action" | "historical_lookup" | "fixture";
1600
1600
  locator?: string | undefined;
1601
1601
  }[];
@@ -1603,14 +1603,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1603
1603
  decisionIds: string[];
1604
1604
  agentIds: string[];
1605
1605
  } | {
1606
- summary: string;
1607
- status: "error" | "failed" | "passed";
1608
1606
  kind: "test_result";
1607
+ summary: string;
1609
1608
  command: string;
1609
+ status: "error" | "failed" | "passed";
1610
1610
  evidence: {
1611
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1611
1612
  id: string;
1612
1613
  label: string;
1613
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1614
1614
  capture: "at_action" | "historical_lookup" | "fixture";
1615
1615
  locator?: string | undefined;
1616
1616
  }[];
@@ -1623,9 +1623,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1623
1623
  rationale: string;
1624
1624
  statement: string;
1625
1625
  evidence: {
1626
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1626
1627
  id: string;
1627
1628
  label: string;
1628
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1629
1629
  capture: "at_action" | "historical_lookup" | "fixture";
1630
1630
  locator?: string | undefined;
1631
1631
  }[];
@@ -1637,25 +1637,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1637
1637
  } | {
1638
1638
  kind: "correction_approved";
1639
1639
  evidence: {
1640
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1640
1641
  id: string;
1641
1642
  label: string;
1642
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1643
1643
  capture: "at_action" | "historical_lookup" | "fixture";
1644
1644
  locator?: string | undefined;
1645
1645
  }[];
1646
1646
  correctionId: string;
1647
1647
  approvedBy: {
1648
+ kind: "agent" | "human";
1648
1649
  id: string;
1649
1650
  label: string;
1650
- kind: "agent" | "human";
1651
1651
  };
1652
1652
  note?: string | undefined;
1653
1653
  } | {
1654
1654
  kind: "decision_superseded";
1655
1655
  evidence: {
1656
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1656
1657
  id: string;
1657
1658
  label: string;
1658
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1659
1659
  capture: "at_action" | "historical_lookup" | "fixture";
1660
1660
  locator?: string | undefined;
1661
1661
  }[];
@@ -1668,9 +1668,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1668
1668
  agentId: string;
1669
1669
  sessionId: string;
1670
1670
  evidence: {
1671
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1671
1672
  id: string;
1672
1673
  label: string;
1673
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1674
1674
  capture: "at_action" | "historical_lookup" | "fixture";
1675
1675
  locator?: string | undefined;
1676
1676
  }[];
@@ -1682,9 +1682,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1682
1682
  agentId: string;
1683
1683
  sessionId: string;
1684
1684
  evidence: {
1685
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1685
1686
  id: string;
1686
1687
  label: string;
1687
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1688
1688
  capture: "at_action" | "historical_lookup" | "fixture";
1689
1689
  locator?: string | undefined;
1690
1690
  }[];
@@ -1693,13 +1693,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1693
1693
  recallReceiptId: string;
1694
1694
  staleDecisionAbsent: boolean;
1695
1695
  } | {
1696
- summary: string;
1697
1696
  kind: "mission_completed";
1697
+ summary: string;
1698
1698
  outcome: "failed" | "recovered" | "inconclusive";
1699
1699
  evidence: {
1700
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1700
1701
  id: string;
1701
1702
  label: string;
1702
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1703
1703
  capture: "at_action" | "historical_lookup" | "fixture";
1704
1704
  locator?: string | undefined;
1705
1705
  }[];
@@ -1709,37 +1709,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1709
1709
  objective: string;
1710
1710
  runMode: "replay" | "fixture" | "live";
1711
1711
  evidence?: {
1712
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1712
1713
  id: string;
1713
1714
  label: string;
1714
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1715
1715
  capture: "at_action" | "historical_lookup" | "fixture";
1716
1716
  locator?: string | undefined;
1717
1717
  }[] | undefined;
1718
1718
  } | {
1719
- label: string;
1720
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1721
1719
  kind: "agent_status";
1722
1720
  role: string;
1721
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1722
+ label: string;
1723
1723
  agentId: string;
1724
1724
  sessionId: string;
1725
1725
  detail?: string | undefined;
1726
1726
  evidence?: {
1727
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1727
1728
  id: string;
1728
1729
  label: string;
1729
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1730
1730
  capture: "at_action" | "historical_lookup" | "fixture";
1731
1731
  locator?: string | undefined;
1732
1732
  }[] | undefined;
1733
1733
  } | {
1734
- summary: string;
1735
1734
  kind: "agent_output";
1735
+ summary: string;
1736
1736
  agentId: string;
1737
1737
  sessionId: string;
1738
1738
  outputId: string;
1739
1739
  evidence?: {
1740
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1740
1741
  id: string;
1741
1742
  label: string;
1742
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1743
1743
  capture: "at_action" | "historical_lookup" | "fixture";
1744
1744
  locator?: string | undefined;
1745
1745
  }[] | undefined;
@@ -1752,37 +1752,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1752
1752
  decisionId: string;
1753
1753
  confidence?: number | undefined;
1754
1754
  evidence?: {
1755
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1755
1756
  id: string;
1756
1757
  label: string;
1757
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1758
1758
  capture: "at_action" | "historical_lookup" | "fixture";
1759
1759
  locator?: string | undefined;
1760
1760
  }[] | undefined;
1761
1761
  } | {
1762
- summary: string;
1763
1762
  kind: "conflict_detected";
1763
+ summary: string;
1764
1764
  conflictId: string;
1765
1765
  decisionIds: string[];
1766
1766
  agentIds: string[];
1767
1767
  evidence?: {
1768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1768
1769
  id: string;
1769
1770
  label: string;
1770
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1771
1771
  capture: "at_action" | "historical_lookup" | "fixture";
1772
1772
  locator?: string | undefined;
1773
1773
  }[] | undefined;
1774
1774
  } | {
1775
- summary: string;
1776
- status: "error" | "failed" | "passed";
1777
1775
  kind: "test_result";
1776
+ summary: string;
1778
1777
  command: string;
1778
+ status: "error" | "failed" | "passed";
1779
1779
  decisionId: string;
1780
1780
  testId: string;
1781
1781
  durationMs?: number | undefined;
1782
1782
  evidence?: {
1783
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1783
1784
  id: string;
1784
1785
  label: string;
1785
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1786
1786
  capture: "at_action" | "historical_lookup" | "fixture";
1787
1787
  locator?: string | undefined;
1788
1788
  }[] | undefined;
@@ -1797,9 +1797,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1797
1797
  supersedesDecisionIds: string[];
1798
1798
  proposedBy: string;
1799
1799
  evidence?: {
1800
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1800
1801
  id: string;
1801
1802
  label: string;
1802
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1803
1803
  capture: "at_action" | "historical_lookup" | "fixture";
1804
1804
  locator?: string | undefined;
1805
1805
  }[] | undefined;
@@ -1807,15 +1807,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1807
1807
  kind: "correction_approved";
1808
1808
  correctionId: string;
1809
1809
  approvedBy: {
1810
+ kind: "agent" | "human";
1810
1811
  id: string;
1811
1812
  label: string;
1812
- kind: "agent" | "human";
1813
1813
  };
1814
1814
  note?: string | undefined;
1815
1815
  evidence?: {
1816
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1816
1817
  id: string;
1817
1818
  label: string;
1818
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1819
1819
  capture: "at_action" | "historical_lookup" | "fixture";
1820
1820
  locator?: string | undefined;
1821
1821
  }[] | undefined;
@@ -1825,9 +1825,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1825
1825
  correctionId: string;
1826
1826
  replacementDecisionId: string;
1827
1827
  evidence?: {
1828
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1828
1829
  id: string;
1829
1830
  label: string;
1830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1831
1831
  capture: "at_action" | "historical_lookup" | "fixture";
1832
1832
  locator?: string | undefined;
1833
1833
  }[] | undefined;
@@ -1840,9 +1840,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1840
1840
  recallReceiptId: string;
1841
1841
  capturedAtAction: boolean;
1842
1842
  evidence?: {
1843
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1843
1844
  id: string;
1844
1845
  label: string;
1845
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1846
1846
  capture: "at_action" | "historical_lookup" | "fixture";
1847
1847
  locator?: string | undefined;
1848
1848
  }[] | undefined;
@@ -1855,20 +1855,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1855
1855
  recallReceiptId: string;
1856
1856
  staleDecisionAbsent: boolean;
1857
1857
  evidence?: {
1858
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1858
1859
  id: string;
1859
1860
  label: string;
1860
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1861
1861
  capture: "at_action" | "historical_lookup" | "fixture";
1862
1862
  locator?: string | undefined;
1863
1863
  }[] | undefined;
1864
1864
  } | {
1865
- summary: string;
1866
1865
  kind: "mission_completed";
1866
+ summary: string;
1867
1867
  outcome: "failed" | "recovered" | "inconclusive";
1868
1868
  evidence?: {
1869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1869
1870
  id: string;
1870
1871
  label: string;
1871
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1872
1872
  capture: "at_action" | "historical_lookup" | "fixture";
1873
1873
  locator?: string | undefined;
1874
1874
  }[] | undefined;
@@ -1889,15 +1889,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1889
1889
  locator: z.ZodOptional<z.ZodString>;
1890
1890
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1891
1891
  }, "strict", z.ZodTypeAny, {
1892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1892
1893
  id: string;
1893
1894
  label: string;
1894
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1895
1895
  capture: "at_action" | "historical_lookup" | "fixture";
1896
1896
  locator?: string | undefined;
1897
1897
  }, {
1898
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1898
1899
  id: string;
1899
1900
  label: string;
1900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1901
1901
  capture: "at_action" | "historical_lookup" | "fixture";
1902
1902
  locator?: string | undefined;
1903
1903
  }>, "many">>;
@@ -1905,9 +1905,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1905
1905
  kind: "mission_started";
1906
1906
  title: string;
1907
1907
  evidence: {
1908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
1909
  id: string;
1909
1910
  label: string;
1910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1911
1911
  capture: "at_action" | "historical_lookup" | "fixture";
1912
1912
  locator?: string | undefined;
1913
1913
  }[];
@@ -1919,9 +1919,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1919
1919
  objective: string;
1920
1920
  runMode: "replay" | "fixture" | "live";
1921
1921
  evidence?: {
1922
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1922
1923
  id: string;
1923
1924
  label: string;
1924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1925
1925
  capture: "at_action" | "historical_lookup" | "fixture";
1926
1926
  locator?: string | undefined;
1927
1927
  }[] | undefined;
@@ -1937,15 +1937,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1937
1937
  locator: z.ZodOptional<z.ZodString>;
1938
1938
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1939
1939
  }, "strict", z.ZodTypeAny, {
1940
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1940
1941
  id: string;
1941
1942
  label: string;
1942
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1943
1943
  capture: "at_action" | "historical_lookup" | "fixture";
1944
1944
  locator?: string | undefined;
1945
1945
  }, {
1946
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1946
1947
  id: string;
1947
1948
  label: string;
1948
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1949
1949
  capture: "at_action" | "historical_lookup" | "fixture";
1950
1950
  locator?: string | undefined;
1951
1951
  }>, "many">>;
@@ -1953,32 +1953,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1953
1953
  sessionId: z.ZodString;
1954
1954
  kind: z.ZodLiteral<"agent_status">;
1955
1955
  }, "strict", z.ZodTypeAny, {
1956
- label: string;
1957
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1958
1956
  kind: "agent_status";
1959
1957
  role: string;
1958
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1959
+ label: string;
1960
1960
  agentId: string;
1961
1961
  sessionId: string;
1962
1962
  evidence: {
1963
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1963
1964
  id: string;
1964
1965
  label: string;
1965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1966
1966
  capture: "at_action" | "historical_lookup" | "fixture";
1967
1967
  locator?: string | undefined;
1968
1968
  }[];
1969
1969
  detail?: string | undefined;
1970
1970
  }, {
1971
- label: string;
1972
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1973
1971
  kind: "agent_status";
1974
1972
  role: string;
1973
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1974
+ label: string;
1975
1975
  agentId: string;
1976
1976
  sessionId: string;
1977
1977
  detail?: string | undefined;
1978
1978
  evidence?: {
1979
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1979
1980
  id: string;
1980
1981
  label: string;
1981
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1982
1982
  capture: "at_action" | "historical_lookup" | "fixture";
1983
1983
  locator?: string | undefined;
1984
1984
  }[] | undefined;
@@ -1992,15 +1992,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1992
1992
  locator: z.ZodOptional<z.ZodString>;
1993
1993
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1994
1994
  }, "strict", z.ZodTypeAny, {
1995
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1995
1996
  id: string;
1996
1997
  label: string;
1997
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1998
1998
  capture: "at_action" | "historical_lookup" | "fixture";
1999
1999
  locator?: string | undefined;
2000
2000
  }, {
2001
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2001
2002
  id: string;
2002
2003
  label: string;
2003
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2004
2004
  capture: "at_action" | "historical_lookup" | "fixture";
2005
2005
  locator?: string | undefined;
2006
2006
  }>, "many">>;
@@ -2008,28 +2008,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2008
2008
  sessionId: z.ZodString;
2009
2009
  kind: z.ZodLiteral<"agent_output">;
2010
2010
  }, "strict", z.ZodTypeAny, {
2011
- summary: string;
2012
2011
  kind: "agent_output";
2012
+ summary: string;
2013
2013
  agentId: string;
2014
2014
  sessionId: string;
2015
2015
  evidence: {
2016
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2016
2017
  id: string;
2017
2018
  label: string;
2018
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2019
2019
  capture: "at_action" | "historical_lookup" | "fixture";
2020
2020
  locator?: string | undefined;
2021
2021
  }[];
2022
2022
  outputId: string;
2023
2023
  }, {
2024
- summary: string;
2025
2024
  kind: "agent_output";
2025
+ summary: string;
2026
2026
  agentId: string;
2027
2027
  sessionId: string;
2028
2028
  outputId: string;
2029
2029
  evidence?: {
2030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2030
2031
  id: string;
2031
2032
  label: string;
2032
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
2033
  capture: "at_action" | "historical_lookup" | "fixture";
2034
2034
  locator?: string | undefined;
2035
2035
  }[] | undefined;
@@ -2045,15 +2045,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2045
2045
  locator: z.ZodOptional<z.ZodString>;
2046
2046
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2047
2047
  }, "strict", z.ZodTypeAny, {
2048
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2048
2049
  id: string;
2049
2050
  label: string;
2050
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2051
2051
  capture: "at_action" | "historical_lookup" | "fixture";
2052
2052
  locator?: string | undefined;
2053
2053
  }, {
2054
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2054
2055
  id: string;
2055
2056
  label: string;
2056
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
2057
  capture: "at_action" | "historical_lookup" | "fixture";
2058
2058
  locator?: string | undefined;
2059
2059
  }>, "many">>;
@@ -2066,9 +2066,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2066
2066
  statement: string;
2067
2067
  sessionId: string;
2068
2068
  evidence: {
2069
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2069
2070
  id: string;
2070
2071
  label: string;
2071
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2072
2072
  capture: "at_action" | "historical_lookup" | "fixture";
2073
2073
  locator?: string | undefined;
2074
2074
  }[];
@@ -2084,9 +2084,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2084
2084
  decisionId: string;
2085
2085
  confidence?: number | undefined;
2086
2086
  evidence?: {
2087
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2087
2088
  id: string;
2088
2089
  label: string;
2089
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2090
2090
  capture: "at_action" | "historical_lookup" | "fixture";
2091
2091
  locator?: string | undefined;
2092
2092
  }[] | undefined;
@@ -2103,25 +2103,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2103
2103
  locator: z.ZodOptional<z.ZodString>;
2104
2104
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2105
2105
  }, "strict", z.ZodTypeAny, {
2106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2106
2107
  id: string;
2107
2108
  label: string;
2108
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2109
2109
  capture: "at_action" | "historical_lookup" | "fixture";
2110
2110
  locator?: string | undefined;
2111
2111
  }, {
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
  }>, "many">>;
2118
2118
  }, "strict", z.ZodTypeAny, {
2119
- summary: string;
2120
2119
  kind: "conflict_detected";
2120
+ summary: string;
2121
2121
  evidence: {
2122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2122
2123
  id: string;
2123
2124
  label: string;
2124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2125
2125
  capture: "at_action" | "historical_lookup" | "fixture";
2126
2126
  locator?: string | undefined;
2127
2127
  }[];
@@ -2129,15 +2129,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2129
2129
  decisionIds: string[];
2130
2130
  agentIds: string[];
2131
2131
  }, {
2132
- summary: string;
2133
2132
  kind: "conflict_detected";
2133
+ summary: string;
2134
2134
  conflictId: string;
2135
2135
  decisionIds: string[];
2136
2136
  agentIds: string[];
2137
2137
  evidence?: {
2138
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2138
2139
  id: string;
2139
2140
  label: string;
2140
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2141
2141
  capture: "at_action" | "historical_lookup" | "fixture";
2142
2142
  locator?: string | undefined;
2143
2143
  }[] | undefined;
@@ -2157,27 +2157,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2157
2157
  locator: z.ZodOptional<z.ZodString>;
2158
2158
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2159
2159
  }, "strict", z.ZodTypeAny, {
2160
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2160
2161
  id: string;
2161
2162
  label: string;
2162
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2163
2163
  capture: "at_action" | "historical_lookup" | "fixture";
2164
2164
  locator?: string | undefined;
2165
2165
  }, {
2166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2166
2167
  id: string;
2167
2168
  label: string;
2168
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2169
2169
  capture: "at_action" | "historical_lookup" | "fixture";
2170
2170
  locator?: string | undefined;
2171
2171
  }>, "many">>;
2172
2172
  }, "strict", z.ZodTypeAny, {
2173
- summary: string;
2174
- status: "error" | "failed" | "passed";
2175
2173
  kind: "test_result";
2174
+ summary: string;
2176
2175
  command: string;
2176
+ status: "error" | "failed" | "passed";
2177
2177
  evidence: {
2178
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2178
2179
  id: string;
2179
2180
  label: string;
2180
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2181
2181
  capture: "at_action" | "historical_lookup" | "fixture";
2182
2182
  locator?: string | undefined;
2183
2183
  }[];
@@ -2186,17 +2186,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2186
2186
  durationMs?: number | undefined;
2187
2187
  correctionId?: string | undefined;
2188
2188
  }, {
2189
- summary: string;
2190
- status: "error" | "failed" | "passed";
2191
2189
  kind: "test_result";
2190
+ summary: string;
2192
2191
  command: string;
2192
+ status: "error" | "failed" | "passed";
2193
2193
  decisionId: string;
2194
2194
  testId: string;
2195
2195
  durationMs?: number | undefined;
2196
2196
  evidence?: {
2197
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2197
2198
  id: string;
2198
2199
  label: string;
2199
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2200
  capture: "at_action" | "historical_lookup" | "fixture";
2201
2201
  locator?: string | undefined;
2202
2202
  }[] | undefined;
@@ -2217,15 +2217,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2217
2217
  locator: z.ZodOptional<z.ZodString>;
2218
2218
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2219
2219
  }, "strict", z.ZodTypeAny, {
2220
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2220
2221
  id: string;
2221
2222
  label: string;
2222
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2223
2223
  capture: "at_action" | "historical_lookup" | "fixture";
2224
2224
  locator?: string | undefined;
2225
2225
  }, {
2226
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2226
2227
  id: string;
2227
2228
  label: string;
2228
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
2229
  capture: "at_action" | "historical_lookup" | "fixture";
2230
2230
  locator?: string | undefined;
2231
2231
  }>, "many">>;
@@ -2234,9 +2234,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2234
2234
  rationale: string;
2235
2235
  statement: string;
2236
2236
  evidence: {
2237
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2237
2238
  id: string;
2238
2239
  label: string;
2239
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2240
2240
  capture: "at_action" | "historical_lookup" | "fixture";
2241
2241
  locator?: string | undefined;
2242
2242
  }[];
@@ -2255,9 +2255,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2255
2255
  supersedesDecisionIds: string[];
2256
2256
  proposedBy: string;
2257
2257
  evidence?: {
2258
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2258
2259
  id: string;
2259
2260
  label: string;
2260
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2261
2261
  capture: "at_action" | "historical_lookup" | "fixture";
2262
2262
  locator?: string | undefined;
2263
2263
  }[] | undefined;
@@ -2269,13 +2269,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2269
2269
  id: z.ZodString;
2270
2270
  label: z.ZodString;
2271
2271
  }, "strict", z.ZodTypeAny, {
2272
+ kind: "agent" | "human";
2272
2273
  id: string;
2273
2274
  label: string;
2274
- kind: "agent" | "human";
2275
2275
  }, {
2276
+ kind: "agent" | "human";
2276
2277
  id: string;
2277
2278
  label: string;
2278
- kind: "agent" | "human";
2279
2279
  }>;
2280
2280
  note: z.ZodOptional<z.ZodString>;
2281
2281
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2285,47 +2285,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2285
2285
  locator: z.ZodOptional<z.ZodString>;
2286
2286
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2287
2287
  }, "strict", z.ZodTypeAny, {
2288
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2288
2289
  id: string;
2289
2290
  label: string;
2290
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2291
2291
  capture: "at_action" | "historical_lookup" | "fixture";
2292
2292
  locator?: string | undefined;
2293
2293
  }, {
2294
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2294
2295
  id: string;
2295
2296
  label: string;
2296
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2297
2297
  capture: "at_action" | "historical_lookup" | "fixture";
2298
2298
  locator?: string | undefined;
2299
2299
  }>, "many">>;
2300
2300
  }, "strict", z.ZodTypeAny, {
2301
2301
  kind: "correction_approved";
2302
2302
  evidence: {
2303
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2303
2304
  id: string;
2304
2305
  label: string;
2305
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2306
2306
  capture: "at_action" | "historical_lookup" | "fixture";
2307
2307
  locator?: string | undefined;
2308
2308
  }[];
2309
2309
  correctionId: string;
2310
2310
  approvedBy: {
2311
+ kind: "agent" | "human";
2311
2312
  id: string;
2312
2313
  label: string;
2313
- kind: "agent" | "human";
2314
2314
  };
2315
2315
  note?: string | undefined;
2316
2316
  }, {
2317
2317
  kind: "correction_approved";
2318
2318
  correctionId: string;
2319
2319
  approvedBy: {
2320
+ kind: "agent" | "human";
2320
2321
  id: string;
2321
2322
  label: string;
2322
- kind: "agent" | "human";
2323
2323
  };
2324
2324
  note?: string | undefined;
2325
2325
  evidence?: {
2326
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2326
2327
  id: string;
2327
2328
  label: string;
2328
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2329
2329
  capture: "at_action" | "historical_lookup" | "fixture";
2330
2330
  locator?: string | undefined;
2331
2331
  }[] | undefined;
@@ -2341,24 +2341,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2341
2341
  locator: z.ZodOptional<z.ZodString>;
2342
2342
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2343
2343
  }, "strict", z.ZodTypeAny, {
2344
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2344
2345
  id: string;
2345
2346
  label: string;
2346
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2347
2347
  capture: "at_action" | "historical_lookup" | "fixture";
2348
2348
  locator?: string | undefined;
2349
2349
  }, {
2350
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2350
2351
  id: string;
2351
2352
  label: string;
2352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2353
2353
  capture: "at_action" | "historical_lookup" | "fixture";
2354
2354
  locator?: string | undefined;
2355
2355
  }>, "many">>;
2356
2356
  }, "strict", z.ZodTypeAny, {
2357
2357
  kind: "decision_superseded";
2358
2358
  evidence: {
2359
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2359
2360
  id: string;
2360
2361
  label: string;
2361
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2362
2362
  capture: "at_action" | "historical_lookup" | "fixture";
2363
2363
  locator?: string | undefined;
2364
2364
  }[];
@@ -2371,9 +2371,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2371
2371
  correctionId: string;
2372
2372
  replacementDecisionId: string;
2373
2373
  evidence?: {
2374
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2374
2375
  id: string;
2375
2376
  label: string;
2376
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2377
2377
  capture: "at_action" | "historical_lookup" | "fixture";
2378
2378
  locator?: string | undefined;
2379
2379
  }[] | undefined;
@@ -2389,15 +2389,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2389
2389
  locator: z.ZodOptional<z.ZodString>;
2390
2390
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2391
2391
  }, "strict", z.ZodTypeAny, {
2392
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2392
2393
  id: string;
2393
2394
  label: string;
2394
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2395
2395
  capture: "at_action" | "historical_lookup" | "fixture";
2396
2396
  locator?: string | undefined;
2397
2397
  }, {
2398
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2398
2399
  id: string;
2399
2400
  label: string;
2400
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2401
2401
  capture: "at_action" | "historical_lookup" | "fixture";
2402
2402
  locator?: string | undefined;
2403
2403
  }>, "many">>;
@@ -2410,9 +2410,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2410
2410
  agentId: string;
2411
2411
  sessionId: string;
2412
2412
  evidence: {
2413
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2413
2414
  id: string;
2414
2415
  label: string;
2415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2416
2416
  capture: "at_action" | "historical_lookup" | "fixture";
2417
2417
  locator?: string | undefined;
2418
2418
  }[];
@@ -2428,9 +2428,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2428
2428
  recallReceiptId: string;
2429
2429
  capturedAtAction: boolean;
2430
2430
  evidence?: {
2431
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2431
2432
  id: string;
2432
2433
  label: string;
2433
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2434
2434
  capture: "at_action" | "historical_lookup" | "fixture";
2435
2435
  locator?: string | undefined;
2436
2436
  }[] | undefined;
@@ -2446,15 +2446,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2446
2446
  locator: z.ZodOptional<z.ZodString>;
2447
2447
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2448
2448
  }, "strict", z.ZodTypeAny, {
2449
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2449
2450
  id: string;
2450
2451
  label: string;
2451
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2452
2452
  capture: "at_action" | "historical_lookup" | "fixture";
2453
2453
  locator?: string | undefined;
2454
2454
  }, {
2455
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2455
2456
  id: string;
2456
2457
  label: string;
2457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2458
2458
  capture: "at_action" | "historical_lookup" | "fixture";
2459
2459
  locator?: string | undefined;
2460
2460
  }>, "many">>;
@@ -2466,9 +2466,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2466
2466
  agentId: string;
2467
2467
  sessionId: string;
2468
2468
  evidence: {
2469
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2469
2470
  id: string;
2470
2471
  label: string;
2471
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2472
2472
  capture: "at_action" | "historical_lookup" | "fixture";
2473
2473
  locator?: string | undefined;
2474
2474
  }[];
@@ -2485,9 +2485,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2485
2485
  recallReceiptId: string;
2486
2486
  staleDecisionAbsent: boolean;
2487
2487
  evidence?: {
2488
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2488
2489
  id: string;
2489
2490
  label: string;
2490
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2491
2491
  capture: "at_action" | "historical_lookup" | "fixture";
2492
2492
  locator?: string | undefined;
2493
2493
  }[] | undefined;
@@ -2502,37 +2502,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2502
2502
  locator: z.ZodOptional<z.ZodString>;
2503
2503
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2504
2504
  }, "strict", z.ZodTypeAny, {
2505
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2505
2506
  id: string;
2506
2507
  label: string;
2507
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2508
2508
  capture: "at_action" | "historical_lookup" | "fixture";
2509
2509
  locator?: string | undefined;
2510
2510
  }, {
2511
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2511
2512
  id: string;
2512
2513
  label: string;
2513
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2514
2514
  capture: "at_action" | "historical_lookup" | "fixture";
2515
2515
  locator?: string | undefined;
2516
2516
  }>, "many">>;
2517
2517
  }, "strict", z.ZodTypeAny, {
2518
- summary: string;
2519
2518
  kind: "mission_completed";
2519
+ summary: string;
2520
2520
  outcome: "failed" | "recovered" | "inconclusive";
2521
2521
  evidence: {
2522
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2522
2523
  id: string;
2523
2524
  label: string;
2524
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2525
2525
  capture: "at_action" | "historical_lookup" | "fixture";
2526
2526
  locator?: string | undefined;
2527
2527
  }[];
2528
2528
  }, {
2529
- summary: string;
2530
2529
  kind: "mission_completed";
2530
+ summary: string;
2531
2531
  outcome: "failed" | "recovered" | "inconclusive";
2532
2532
  evidence?: {
2533
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2533
2534
  id: string;
2534
2535
  label: string;
2535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2536
2536
  capture: "at_action" | "historical_lookup" | "fixture";
2537
2537
  locator?: string | undefined;
2538
2538
  }[] | undefined;
@@ -2540,38 +2540,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2540
2540
  kind: "mission_started";
2541
2541
  title: string;
2542
2542
  evidence: {
2543
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
2544
  id: string;
2544
2545
  label: string;
2545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2546
2546
  capture: "at_action" | "historical_lookup" | "fixture";
2547
2547
  locator?: string | undefined;
2548
2548
  }[];
2549
2549
  objective: string;
2550
2550
  runMode: "replay" | "fixture" | "live";
2551
2551
  } | {
2552
- label: string;
2553
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2554
2552
  kind: "agent_status";
2555
2553
  role: string;
2554
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2555
+ label: string;
2556
2556
  agentId: string;
2557
2557
  sessionId: string;
2558
2558
  evidence: {
2559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2559
2560
  id: string;
2560
2561
  label: string;
2561
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
2562
  capture: "at_action" | "historical_lookup" | "fixture";
2563
2563
  locator?: string | undefined;
2564
2564
  }[];
2565
2565
  detail?: string | undefined;
2566
2566
  } | {
2567
- summary: string;
2568
2567
  kind: "agent_output";
2568
+ summary: string;
2569
2569
  agentId: string;
2570
2570
  sessionId: string;
2571
2571
  evidence: {
2572
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2572
2573
  id: string;
2573
2574
  label: string;
2574
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2575
2575
  capture: "at_action" | "historical_lookup" | "fixture";
2576
2576
  locator?: string | undefined;
2577
2577
  }[];
@@ -2582,9 +2582,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2582
2582
  statement: string;
2583
2583
  sessionId: string;
2584
2584
  evidence: {
2585
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2585
2586
  id: string;
2586
2587
  label: string;
2587
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2588
2588
  capture: "at_action" | "historical_lookup" | "fixture";
2589
2589
  locator?: string | undefined;
2590
2590
  }[];
@@ -2592,12 +2592,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2592
2592
  decisionId: string;
2593
2593
  confidence?: number | undefined;
2594
2594
  } | {
2595
- summary: string;
2596
2595
  kind: "conflict_detected";
2596
+ summary: string;
2597
2597
  evidence: {
2598
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
2599
  id: string;
2599
2600
  label: string;
2600
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2601
2601
  capture: "at_action" | "historical_lookup" | "fixture";
2602
2602
  locator?: string | undefined;
2603
2603
  }[];
@@ -2605,14 +2605,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2605
2605
  decisionIds: string[];
2606
2606
  agentIds: string[];
2607
2607
  } | {
2608
- summary: string;
2609
- status: "error" | "failed" | "passed";
2610
2608
  kind: "test_result";
2609
+ summary: string;
2611
2610
  command: string;
2611
+ status: "error" | "failed" | "passed";
2612
2612
  evidence: {
2613
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2613
2614
  id: string;
2614
2615
  label: string;
2615
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2616
2616
  capture: "at_action" | "historical_lookup" | "fixture";
2617
2617
  locator?: string | undefined;
2618
2618
  }[];
@@ -2625,9 +2625,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2625
2625
  rationale: string;
2626
2626
  statement: string;
2627
2627
  evidence: {
2628
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2628
2629
  id: string;
2629
2630
  label: string;
2630
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2631
2631
  capture: "at_action" | "historical_lookup" | "fixture";
2632
2632
  locator?: string | undefined;
2633
2633
  }[];
@@ -2639,25 +2639,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2639
2639
  } | {
2640
2640
  kind: "correction_approved";
2641
2641
  evidence: {
2642
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2642
2643
  id: string;
2643
2644
  label: string;
2644
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2645
2645
  capture: "at_action" | "historical_lookup" | "fixture";
2646
2646
  locator?: string | undefined;
2647
2647
  }[];
2648
2648
  correctionId: string;
2649
2649
  approvedBy: {
2650
+ kind: "agent" | "human";
2650
2651
  id: string;
2651
2652
  label: string;
2652
- kind: "agent" | "human";
2653
2653
  };
2654
2654
  note?: string | undefined;
2655
2655
  } | {
2656
2656
  kind: "decision_superseded";
2657
2657
  evidence: {
2658
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2658
2659
  id: string;
2659
2660
  label: string;
2660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2661
2661
  capture: "at_action" | "historical_lookup" | "fixture";
2662
2662
  locator?: string | undefined;
2663
2663
  }[];
@@ -2670,9 +2670,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2670
2670
  agentId: string;
2671
2671
  sessionId: string;
2672
2672
  evidence: {
2673
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2673
2674
  id: string;
2674
2675
  label: string;
2675
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2676
2676
  capture: "at_action" | "historical_lookup" | "fixture";
2677
2677
  locator?: string | undefined;
2678
2678
  }[];
@@ -2684,9 +2684,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2684
2684
  agentId: string;
2685
2685
  sessionId: string;
2686
2686
  evidence: {
2687
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2687
2688
  id: string;
2688
2689
  label: string;
2689
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2690
2690
  capture: "at_action" | "historical_lookup" | "fixture";
2691
2691
  locator?: string | undefined;
2692
2692
  }[];
@@ -2695,13 +2695,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2695
2695
  recallReceiptId: string;
2696
2696
  staleDecisionAbsent: boolean;
2697
2697
  } | {
2698
- summary: string;
2699
2698
  kind: "mission_completed";
2699
+ summary: string;
2700
2700
  outcome: "failed" | "recovered" | "inconclusive";
2701
2701
  evidence: {
2702
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2702
2703
  id: string;
2703
2704
  label: string;
2704
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2705
2705
  capture: "at_action" | "historical_lookup" | "fixture";
2706
2706
  locator?: string | undefined;
2707
2707
  }[];
@@ -2711,37 +2711,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2711
2711
  objective: string;
2712
2712
  runMode: "replay" | "fixture" | "live";
2713
2713
  evidence?: {
2714
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2714
2715
  id: string;
2715
2716
  label: string;
2716
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2717
2717
  capture: "at_action" | "historical_lookup" | "fixture";
2718
2718
  locator?: string | undefined;
2719
2719
  }[] | undefined;
2720
2720
  } | {
2721
- label: string;
2722
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2723
2721
  kind: "agent_status";
2724
2722
  role: string;
2723
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2724
+ label: string;
2725
2725
  agentId: string;
2726
2726
  sessionId: string;
2727
2727
  detail?: string | undefined;
2728
2728
  evidence?: {
2729
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2729
2730
  id: string;
2730
2731
  label: string;
2731
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2732
2732
  capture: "at_action" | "historical_lookup" | "fixture";
2733
2733
  locator?: string | undefined;
2734
2734
  }[] | undefined;
2735
2735
  } | {
2736
- summary: string;
2737
2736
  kind: "agent_output";
2737
+ summary: string;
2738
2738
  agentId: string;
2739
2739
  sessionId: string;
2740
2740
  outputId: string;
2741
2741
  evidence?: {
2742
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2742
2743
  id: string;
2743
2744
  label: string;
2744
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2745
2745
  capture: "at_action" | "historical_lookup" | "fixture";
2746
2746
  locator?: string | undefined;
2747
2747
  }[] | undefined;
@@ -2754,37 +2754,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2754
2754
  decisionId: string;
2755
2755
  confidence?: number | undefined;
2756
2756
  evidence?: {
2757
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2757
2758
  id: string;
2758
2759
  label: string;
2759
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2760
2760
  capture: "at_action" | "historical_lookup" | "fixture";
2761
2761
  locator?: string | undefined;
2762
2762
  }[] | undefined;
2763
2763
  } | {
2764
- summary: string;
2765
2764
  kind: "conflict_detected";
2765
+ summary: string;
2766
2766
  conflictId: string;
2767
2767
  decisionIds: string[];
2768
2768
  agentIds: string[];
2769
2769
  evidence?: {
2770
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2770
2771
  id: string;
2771
2772
  label: string;
2772
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2773
2773
  capture: "at_action" | "historical_lookup" | "fixture";
2774
2774
  locator?: string | undefined;
2775
2775
  }[] | undefined;
2776
2776
  } | {
2777
- summary: string;
2778
- status: "error" | "failed" | "passed";
2779
2777
  kind: "test_result";
2778
+ summary: string;
2780
2779
  command: string;
2780
+ status: "error" | "failed" | "passed";
2781
2781
  decisionId: string;
2782
2782
  testId: string;
2783
2783
  durationMs?: number | undefined;
2784
2784
  evidence?: {
2785
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2785
2786
  id: string;
2786
2787
  label: string;
2787
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2788
2788
  capture: "at_action" | "historical_lookup" | "fixture";
2789
2789
  locator?: string | undefined;
2790
2790
  }[] | undefined;
@@ -2799,9 +2799,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2799
2799
  supersedesDecisionIds: string[];
2800
2800
  proposedBy: string;
2801
2801
  evidence?: {
2802
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2802
2803
  id: string;
2803
2804
  label: string;
2804
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2805
2805
  capture: "at_action" | "historical_lookup" | "fixture";
2806
2806
  locator?: string | undefined;
2807
2807
  }[] | undefined;
@@ -2809,15 +2809,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2809
2809
  kind: "correction_approved";
2810
2810
  correctionId: string;
2811
2811
  approvedBy: {
2812
+ kind: "agent" | "human";
2812
2813
  id: string;
2813
2814
  label: string;
2814
- kind: "agent" | "human";
2815
2815
  };
2816
2816
  note?: string | undefined;
2817
2817
  evidence?: {
2818
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2818
2819
  id: string;
2819
2820
  label: string;
2820
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2821
2821
  capture: "at_action" | "historical_lookup" | "fixture";
2822
2822
  locator?: string | undefined;
2823
2823
  }[] | undefined;
@@ -2827,9 +2827,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2827
2827
  correctionId: string;
2828
2828
  replacementDecisionId: string;
2829
2829
  evidence?: {
2830
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2830
2831
  id: string;
2831
2832
  label: string;
2832
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2833
2833
  capture: "at_action" | "historical_lookup" | "fixture";
2834
2834
  locator?: string | undefined;
2835
2835
  }[] | undefined;
@@ -2842,9 +2842,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2842
2842
  recallReceiptId: string;
2843
2843
  capturedAtAction: boolean;
2844
2844
  evidence?: {
2845
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2845
2846
  id: string;
2846
2847
  label: string;
2847
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2848
2848
  capture: "at_action" | "historical_lookup" | "fixture";
2849
2849
  locator?: string | undefined;
2850
2850
  }[] | undefined;
@@ -2857,20 +2857,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2857
2857
  recallReceiptId: string;
2858
2858
  staleDecisionAbsent: boolean;
2859
2859
  evidence?: {
2860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2860
2861
  id: string;
2861
2862
  label: string;
2862
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2863
2863
  capture: "at_action" | "historical_lookup" | "fixture";
2864
2864
  locator?: string | undefined;
2865
2865
  }[] | undefined;
2866
2866
  } | {
2867
- summary: string;
2868
2867
  kind: "mission_completed";
2868
+ summary: string;
2869
2869
  outcome: "failed" | "recovered" | "inconclusive";
2870
2870
  evidence?: {
2871
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2871
2872
  id: string;
2872
2873
  label: string;
2873
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2874
2874
  capture: "at_action" | "historical_lookup" | "fixture";
2875
2875
  locator?: string | undefined;
2876
2876
  }[] | undefined;
@@ -2880,38 +2880,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2880
2880
  kind: "mission_started";
2881
2881
  title: string;
2882
2882
  evidence: {
2883
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2883
2884
  id: string;
2884
2885
  label: string;
2885
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2886
2886
  capture: "at_action" | "historical_lookup" | "fixture";
2887
2887
  locator?: string | undefined;
2888
2888
  }[];
2889
2889
  objective: string;
2890
2890
  runMode: "replay" | "fixture" | "live";
2891
2891
  } | {
2892
- label: string;
2893
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2894
2892
  kind: "agent_status";
2895
2893
  role: string;
2894
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2895
+ label: string;
2896
2896
  agentId: string;
2897
2897
  sessionId: string;
2898
2898
  evidence: {
2899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2899
2900
  id: string;
2900
2901
  label: string;
2901
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2902
2902
  capture: "at_action" | "historical_lookup" | "fixture";
2903
2903
  locator?: string | undefined;
2904
2904
  }[];
2905
2905
  detail?: string | undefined;
2906
2906
  } | {
2907
- summary: string;
2908
2907
  kind: "agent_output";
2908
+ summary: string;
2909
2909
  agentId: string;
2910
2910
  sessionId: string;
2911
2911
  evidence: {
2912
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
2913
  id: string;
2913
2914
  label: string;
2914
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2915
2915
  capture: "at_action" | "historical_lookup" | "fixture";
2916
2916
  locator?: string | undefined;
2917
2917
  }[];
@@ -2922,9 +2922,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2922
2922
  statement: string;
2923
2923
  sessionId: string;
2924
2924
  evidence: {
2925
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2925
2926
  id: string;
2926
2927
  label: string;
2927
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2928
2928
  capture: "at_action" | "historical_lookup" | "fixture";
2929
2929
  locator?: string | undefined;
2930
2930
  }[];
@@ -2932,12 +2932,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2932
2932
  decisionId: string;
2933
2933
  confidence?: number | undefined;
2934
2934
  } | {
2935
- summary: string;
2936
2935
  kind: "conflict_detected";
2936
+ summary: string;
2937
2937
  evidence: {
2938
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2938
2939
  id: string;
2939
2940
  label: string;
2940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2941
2941
  capture: "at_action" | "historical_lookup" | "fixture";
2942
2942
  locator?: string | undefined;
2943
2943
  }[];
@@ -2945,14 +2945,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2945
2945
  decisionIds: string[];
2946
2946
  agentIds: string[];
2947
2947
  } | {
2948
- summary: string;
2949
- status: "error" | "failed" | "passed";
2950
2948
  kind: "test_result";
2949
+ summary: string;
2951
2950
  command: string;
2951
+ status: "error" | "failed" | "passed";
2952
2952
  evidence: {
2953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2953
2954
  id: string;
2954
2955
  label: string;
2955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2956
2956
  capture: "at_action" | "historical_lookup" | "fixture";
2957
2957
  locator?: string | undefined;
2958
2958
  }[];
@@ -2965,9 +2965,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2965
2965
  rationale: string;
2966
2966
  statement: string;
2967
2967
  evidence: {
2968
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2968
2969
  id: string;
2969
2970
  label: string;
2970
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2971
2971
  capture: "at_action" | "historical_lookup" | "fixture";
2972
2972
  locator?: string | undefined;
2973
2973
  }[];
@@ -2979,25 +2979,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2979
2979
  } | {
2980
2980
  kind: "correction_approved";
2981
2981
  evidence: {
2982
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2982
2983
  id: string;
2983
2984
  label: string;
2984
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2985
2985
  capture: "at_action" | "historical_lookup" | "fixture";
2986
2986
  locator?: string | undefined;
2987
2987
  }[];
2988
2988
  correctionId: string;
2989
2989
  approvedBy: {
2990
+ kind: "agent" | "human";
2990
2991
  id: string;
2991
2992
  label: string;
2992
- kind: "agent" | "human";
2993
2993
  };
2994
2994
  note?: string | undefined;
2995
2995
  } | {
2996
2996
  kind: "decision_superseded";
2997
2997
  evidence: {
2998
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2998
2999
  id: string;
2999
3000
  label: string;
3000
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3001
3001
  capture: "at_action" | "historical_lookup" | "fixture";
3002
3002
  locator?: string | undefined;
3003
3003
  }[];
@@ -3010,9 +3010,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3010
3010
  agentId: string;
3011
3011
  sessionId: string;
3012
3012
  evidence: {
3013
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3013
3014
  id: string;
3014
3015
  label: string;
3015
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3016
3016
  capture: "at_action" | "historical_lookup" | "fixture";
3017
3017
  locator?: string | undefined;
3018
3018
  }[];
@@ -3024,9 +3024,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3024
3024
  agentId: string;
3025
3025
  sessionId: string;
3026
3026
  evidence: {
3027
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3027
3028
  id: string;
3028
3029
  label: string;
3029
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3030
3030
  capture: "at_action" | "historical_lookup" | "fixture";
3031
3031
  locator?: string | undefined;
3032
3032
  }[];
@@ -3035,13 +3035,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3035
3035
  recallReceiptId: string;
3036
3036
  staleDecisionAbsent: boolean;
3037
3037
  } | {
3038
- summary: string;
3039
3038
  kind: "mission_completed";
3039
+ summary: string;
3040
3040
  outcome: "failed" | "recovered" | "inconclusive";
3041
3041
  evidence: {
3042
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3042
3043
  id: string;
3043
3044
  label: string;
3044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3045
3045
  capture: "at_action" | "historical_lookup" | "fixture";
3046
3046
  locator?: string | undefined;
3047
3047
  }[];
@@ -3055,37 +3055,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3055
3055
  objective: string;
3056
3056
  runMode: "replay" | "fixture" | "live";
3057
3057
  evidence?: {
3058
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3058
3059
  id: string;
3059
3060
  label: string;
3060
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3061
3061
  capture: "at_action" | "historical_lookup" | "fixture";
3062
3062
  locator?: string | undefined;
3063
3063
  }[] | undefined;
3064
3064
  } | {
3065
- label: string;
3066
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3067
3065
  kind: "agent_status";
3068
3066
  role: string;
3067
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3068
+ label: string;
3069
3069
  agentId: string;
3070
3070
  sessionId: string;
3071
3071
  detail?: string | undefined;
3072
3072
  evidence?: {
3073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3073
3074
  id: string;
3074
3075
  label: string;
3075
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3076
  capture: "at_action" | "historical_lookup" | "fixture";
3077
3077
  locator?: string | undefined;
3078
3078
  }[] | undefined;
3079
3079
  } | {
3080
- summary: string;
3081
3080
  kind: "agent_output";
3081
+ summary: string;
3082
3082
  agentId: string;
3083
3083
  sessionId: string;
3084
3084
  outputId: string;
3085
3085
  evidence?: {
3086
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3086
3087
  id: string;
3087
3088
  label: string;
3088
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3089
3089
  capture: "at_action" | "historical_lookup" | "fixture";
3090
3090
  locator?: string | undefined;
3091
3091
  }[] | undefined;
@@ -3098,37 +3098,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3098
3098
  decisionId: string;
3099
3099
  confidence?: number | undefined;
3100
3100
  evidence?: {
3101
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3101
3102
  id: string;
3102
3103
  label: string;
3103
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3104
3104
  capture: "at_action" | "historical_lookup" | "fixture";
3105
3105
  locator?: string | undefined;
3106
3106
  }[] | undefined;
3107
3107
  } | {
3108
- summary: string;
3109
3108
  kind: "conflict_detected";
3109
+ summary: string;
3110
3110
  conflictId: string;
3111
3111
  decisionIds: string[];
3112
3112
  agentIds: string[];
3113
3113
  evidence?: {
3114
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3114
3115
  id: string;
3115
3116
  label: string;
3116
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3117
3117
  capture: "at_action" | "historical_lookup" | "fixture";
3118
3118
  locator?: string | undefined;
3119
3119
  }[] | undefined;
3120
3120
  } | {
3121
- summary: string;
3122
- status: "error" | "failed" | "passed";
3123
3121
  kind: "test_result";
3122
+ summary: string;
3124
3123
  command: string;
3124
+ status: "error" | "failed" | "passed";
3125
3125
  decisionId: string;
3126
3126
  testId: string;
3127
3127
  durationMs?: number | undefined;
3128
3128
  evidence?: {
3129
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3129
3130
  id: string;
3130
3131
  label: string;
3131
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3132
3132
  capture: "at_action" | "historical_lookup" | "fixture";
3133
3133
  locator?: string | undefined;
3134
3134
  }[] | undefined;
@@ -3143,9 +3143,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3143
3143
  supersedesDecisionIds: string[];
3144
3144
  proposedBy: string;
3145
3145
  evidence?: {
3146
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3146
3147
  id: string;
3147
3148
  label: string;
3148
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3149
3149
  capture: "at_action" | "historical_lookup" | "fixture";
3150
3150
  locator?: string | undefined;
3151
3151
  }[] | undefined;
@@ -3153,15 +3153,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3153
3153
  kind: "correction_approved";
3154
3154
  correctionId: string;
3155
3155
  approvedBy: {
3156
+ kind: "agent" | "human";
3156
3157
  id: string;
3157
3158
  label: string;
3158
- kind: "agent" | "human";
3159
3159
  };
3160
3160
  note?: string | undefined;
3161
3161
  evidence?: {
3162
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3162
3163
  id: string;
3163
3164
  label: string;
3164
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3165
3165
  capture: "at_action" | "historical_lookup" | "fixture";
3166
3166
  locator?: string | undefined;
3167
3167
  }[] | undefined;
@@ -3171,9 +3171,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3171
3171
  correctionId: string;
3172
3172
  replacementDecisionId: string;
3173
3173
  evidence?: {
3174
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3174
3175
  id: string;
3175
3176
  label: string;
3176
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3177
3177
  capture: "at_action" | "historical_lookup" | "fixture";
3178
3178
  locator?: string | undefined;
3179
3179
  }[] | undefined;
@@ -3186,9 +3186,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3186
3186
  recallReceiptId: string;
3187
3187
  capturedAtAction: boolean;
3188
3188
  evidence?: {
3189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3189
3190
  id: string;
3190
3191
  label: string;
3191
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3192
3192
  capture: "at_action" | "historical_lookup" | "fixture";
3193
3193
  locator?: string | undefined;
3194
3194
  }[] | undefined;
@@ -3201,20 +3201,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3201
3201
  recallReceiptId: string;
3202
3202
  staleDecisionAbsent: boolean;
3203
3203
  evidence?: {
3204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3204
3205
  id: string;
3205
3206
  label: string;
3206
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3207
3207
  capture: "at_action" | "historical_lookup" | "fixture";
3208
3208
  locator?: string | undefined;
3209
3209
  }[] | undefined;
3210
3210
  } | {
3211
- summary: string;
3212
3211
  kind: "mission_completed";
3212
+ summary: string;
3213
3213
  outcome: "failed" | "recovered" | "inconclusive";
3214
3214
  evidence?: {
3215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3215
3216
  id: string;
3216
3217
  label: string;
3217
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3218
3218
  capture: "at_action" | "historical_lookup" | "fixture";
3219
3219
  locator?: string | undefined;
3220
3220
  }[] | undefined;
@@ -3244,15 +3244,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3244
3244
  locator: z.ZodOptional<z.ZodString>;
3245
3245
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3246
3246
  }, "strict", z.ZodTypeAny, {
3247
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3247
3248
  id: string;
3248
3249
  label: string;
3249
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3250
3250
  capture: "at_action" | "historical_lookup" | "fixture";
3251
3251
  locator?: string | undefined;
3252
3252
  }, {
3253
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3253
3254
  id: string;
3254
3255
  label: string;
3255
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3256
3256
  capture: "at_action" | "historical_lookup" | "fixture";
3257
3257
  locator?: string | undefined;
3258
3258
  }>, "many">>;
@@ -3260,9 +3260,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3260
3260
  kind: "mission_started";
3261
3261
  title: string;
3262
3262
  evidence: {
3263
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3263
3264
  id: string;
3264
3265
  label: string;
3265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3266
3266
  capture: "at_action" | "historical_lookup" | "fixture";
3267
3267
  locator?: string | undefined;
3268
3268
  }[];
@@ -3274,9 +3274,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3274
3274
  objective: string;
3275
3275
  runMode: "replay" | "fixture" | "live";
3276
3276
  evidence?: {
3277
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3277
3278
  id: string;
3278
3279
  label: string;
3279
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3280
3280
  capture: "at_action" | "historical_lookup" | "fixture";
3281
3281
  locator?: string | undefined;
3282
3282
  }[] | undefined;
@@ -3292,15 +3292,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3292
3292
  locator: z.ZodOptional<z.ZodString>;
3293
3293
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3294
3294
  }, "strict", z.ZodTypeAny, {
3295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3295
3296
  id: string;
3296
3297
  label: string;
3297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3298
3298
  capture: "at_action" | "historical_lookup" | "fixture";
3299
3299
  locator?: string | undefined;
3300
3300
  }, {
3301
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3301
3302
  id: string;
3302
3303
  label: string;
3303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3304
3304
  capture: "at_action" | "historical_lookup" | "fixture";
3305
3305
  locator?: string | undefined;
3306
3306
  }>, "many">>;
@@ -3308,32 +3308,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3308
3308
  sessionId: z.ZodString;
3309
3309
  kind: z.ZodLiteral<"agent_status">;
3310
3310
  }, "strict", z.ZodTypeAny, {
3311
- label: string;
3312
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3313
3311
  kind: "agent_status";
3314
3312
  role: string;
3313
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3314
+ label: string;
3315
3315
  agentId: string;
3316
3316
  sessionId: string;
3317
3317
  evidence: {
3318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3318
3319
  id: string;
3319
3320
  label: string;
3320
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3321
3321
  capture: "at_action" | "historical_lookup" | "fixture";
3322
3322
  locator?: string | undefined;
3323
3323
  }[];
3324
3324
  detail?: string | undefined;
3325
3325
  }, {
3326
- label: string;
3327
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3328
3326
  kind: "agent_status";
3329
3327
  role: string;
3328
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3329
+ label: string;
3330
3330
  agentId: string;
3331
3331
  sessionId: string;
3332
3332
  detail?: string | undefined;
3333
3333
  evidence?: {
3334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3334
3335
  id: string;
3335
3336
  label: string;
3336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3337
3337
  capture: "at_action" | "historical_lookup" | "fixture";
3338
3338
  locator?: string | undefined;
3339
3339
  }[] | undefined;
@@ -3347,15 +3347,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3347
3347
  locator: z.ZodOptional<z.ZodString>;
3348
3348
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3349
3349
  }, "strict", z.ZodTypeAny, {
3350
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3350
3351
  id: string;
3351
3352
  label: string;
3352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3353
3353
  capture: "at_action" | "historical_lookup" | "fixture";
3354
3354
  locator?: string | undefined;
3355
3355
  }, {
3356
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3356
3357
  id: string;
3357
3358
  label: string;
3358
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3359
3359
  capture: "at_action" | "historical_lookup" | "fixture";
3360
3360
  locator?: string | undefined;
3361
3361
  }>, "many">>;
@@ -3363,28 +3363,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3363
3363
  sessionId: z.ZodString;
3364
3364
  kind: z.ZodLiteral<"agent_output">;
3365
3365
  }, "strict", z.ZodTypeAny, {
3366
- summary: string;
3367
3366
  kind: "agent_output";
3367
+ summary: string;
3368
3368
  agentId: string;
3369
3369
  sessionId: string;
3370
3370
  evidence: {
3371
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3371
3372
  id: string;
3372
3373
  label: string;
3373
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3374
3374
  capture: "at_action" | "historical_lookup" | "fixture";
3375
3375
  locator?: string | undefined;
3376
3376
  }[];
3377
3377
  outputId: string;
3378
3378
  }, {
3379
- summary: string;
3380
3379
  kind: "agent_output";
3380
+ summary: string;
3381
3381
  agentId: string;
3382
3382
  sessionId: string;
3383
3383
  outputId: string;
3384
3384
  evidence?: {
3385
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3385
3386
  id: string;
3386
3387
  label: string;
3387
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3388
3388
  capture: "at_action" | "historical_lookup" | "fixture";
3389
3389
  locator?: string | undefined;
3390
3390
  }[] | undefined;
@@ -3400,15 +3400,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3400
3400
  locator: z.ZodOptional<z.ZodString>;
3401
3401
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3402
3402
  }, "strict", z.ZodTypeAny, {
3403
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3403
3404
  id: string;
3404
3405
  label: string;
3405
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3406
3406
  capture: "at_action" | "historical_lookup" | "fixture";
3407
3407
  locator?: string | undefined;
3408
3408
  }, {
3409
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3409
3410
  id: string;
3410
3411
  label: string;
3411
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3412
3412
  capture: "at_action" | "historical_lookup" | "fixture";
3413
3413
  locator?: string | undefined;
3414
3414
  }>, "many">>;
@@ -3421,9 +3421,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3421
3421
  statement: string;
3422
3422
  sessionId: string;
3423
3423
  evidence: {
3424
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3424
3425
  id: string;
3425
3426
  label: string;
3426
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3427
3427
  capture: "at_action" | "historical_lookup" | "fixture";
3428
3428
  locator?: string | undefined;
3429
3429
  }[];
@@ -3439,9 +3439,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3439
3439
  decisionId: string;
3440
3440
  confidence?: number | undefined;
3441
3441
  evidence?: {
3442
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3442
3443
  id: string;
3443
3444
  label: string;
3444
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3445
3445
  capture: "at_action" | "historical_lookup" | "fixture";
3446
3446
  locator?: string | undefined;
3447
3447
  }[] | undefined;
@@ -3458,25 +3458,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3458
3458
  locator: z.ZodOptional<z.ZodString>;
3459
3459
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3460
3460
  }, "strict", z.ZodTypeAny, {
3461
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3461
3462
  id: string;
3462
3463
  label: string;
3463
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3464
3464
  capture: "at_action" | "historical_lookup" | "fixture";
3465
3465
  locator?: string | undefined;
3466
3466
  }, {
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
  }>, "many">>;
3473
3473
  }, "strict", z.ZodTypeAny, {
3474
- summary: string;
3475
3474
  kind: "conflict_detected";
3475
+ summary: string;
3476
3476
  evidence: {
3477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
3478
  id: string;
3478
3479
  label: string;
3479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3480
3480
  capture: "at_action" | "historical_lookup" | "fixture";
3481
3481
  locator?: string | undefined;
3482
3482
  }[];
@@ -3484,15 +3484,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3484
3484
  decisionIds: string[];
3485
3485
  agentIds: string[];
3486
3486
  }, {
3487
- summary: string;
3488
3487
  kind: "conflict_detected";
3488
+ summary: string;
3489
3489
  conflictId: string;
3490
3490
  decisionIds: string[];
3491
3491
  agentIds: string[];
3492
3492
  evidence?: {
3493
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3493
3494
  id: string;
3494
3495
  label: string;
3495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3496
3496
  capture: "at_action" | "historical_lookup" | "fixture";
3497
3497
  locator?: string | undefined;
3498
3498
  }[] | undefined;
@@ -3512,27 +3512,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3512
3512
  locator: z.ZodOptional<z.ZodString>;
3513
3513
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3514
3514
  }, "strict", z.ZodTypeAny, {
3515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3515
3516
  id: string;
3516
3517
  label: string;
3517
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3518
3518
  capture: "at_action" | "historical_lookup" | "fixture";
3519
3519
  locator?: string | undefined;
3520
3520
  }, {
3521
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3521
3522
  id: string;
3522
3523
  label: string;
3523
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3524
3524
  capture: "at_action" | "historical_lookup" | "fixture";
3525
3525
  locator?: string | undefined;
3526
3526
  }>, "many">>;
3527
3527
  }, "strict", z.ZodTypeAny, {
3528
- summary: string;
3529
- status: "error" | "failed" | "passed";
3530
3528
  kind: "test_result";
3529
+ summary: string;
3531
3530
  command: string;
3531
+ status: "error" | "failed" | "passed";
3532
3532
  evidence: {
3533
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3533
3534
  id: string;
3534
3535
  label: string;
3535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3536
3536
  capture: "at_action" | "historical_lookup" | "fixture";
3537
3537
  locator?: string | undefined;
3538
3538
  }[];
@@ -3541,17 +3541,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3541
3541
  durationMs?: number | undefined;
3542
3542
  correctionId?: string | undefined;
3543
3543
  }, {
3544
- summary: string;
3545
- status: "error" | "failed" | "passed";
3546
3544
  kind: "test_result";
3545
+ summary: string;
3547
3546
  command: string;
3547
+ status: "error" | "failed" | "passed";
3548
3548
  decisionId: string;
3549
3549
  testId: string;
3550
3550
  durationMs?: number | undefined;
3551
3551
  evidence?: {
3552
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3552
3553
  id: string;
3553
3554
  label: string;
3554
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3555
3555
  capture: "at_action" | "historical_lookup" | "fixture";
3556
3556
  locator?: string | undefined;
3557
3557
  }[] | undefined;
@@ -3572,15 +3572,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3572
3572
  locator: z.ZodOptional<z.ZodString>;
3573
3573
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3574
3574
  }, "strict", z.ZodTypeAny, {
3575
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3575
3576
  id: string;
3576
3577
  label: string;
3577
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3578
3578
  capture: "at_action" | "historical_lookup" | "fixture";
3579
3579
  locator?: string | undefined;
3580
3580
  }, {
3581
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3581
3582
  id: string;
3582
3583
  label: string;
3583
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3584
3584
  capture: "at_action" | "historical_lookup" | "fixture";
3585
3585
  locator?: string | undefined;
3586
3586
  }>, "many">>;
@@ -3589,9 +3589,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3589
3589
  rationale: string;
3590
3590
  statement: string;
3591
3591
  evidence: {
3592
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3592
3593
  id: string;
3593
3594
  label: string;
3594
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3595
3595
  capture: "at_action" | "historical_lookup" | "fixture";
3596
3596
  locator?: string | undefined;
3597
3597
  }[];
@@ -3610,9 +3610,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3610
3610
  supersedesDecisionIds: string[];
3611
3611
  proposedBy: string;
3612
3612
  evidence?: {
3613
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3613
3614
  id: string;
3614
3615
  label: string;
3615
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3616
3616
  capture: "at_action" | "historical_lookup" | "fixture";
3617
3617
  locator?: string | undefined;
3618
3618
  }[] | undefined;
@@ -3624,13 +3624,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3624
3624
  id: z.ZodString;
3625
3625
  label: z.ZodString;
3626
3626
  }, "strict", z.ZodTypeAny, {
3627
+ kind: "agent" | "human";
3627
3628
  id: string;
3628
3629
  label: string;
3629
- kind: "agent" | "human";
3630
3630
  }, {
3631
+ kind: "agent" | "human";
3631
3632
  id: string;
3632
3633
  label: string;
3633
- kind: "agent" | "human";
3634
3634
  }>;
3635
3635
  note: z.ZodOptional<z.ZodString>;
3636
3636
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3640,47 +3640,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3640
3640
  locator: z.ZodOptional<z.ZodString>;
3641
3641
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3642
3642
  }, "strict", z.ZodTypeAny, {
3643
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3643
3644
  id: string;
3644
3645
  label: string;
3645
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3646
3646
  capture: "at_action" | "historical_lookup" | "fixture";
3647
3647
  locator?: string | undefined;
3648
3648
  }, {
3649
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3649
3650
  id: string;
3650
3651
  label: string;
3651
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3652
3652
  capture: "at_action" | "historical_lookup" | "fixture";
3653
3653
  locator?: string | undefined;
3654
3654
  }>, "many">>;
3655
3655
  }, "strict", z.ZodTypeAny, {
3656
3656
  kind: "correction_approved";
3657
3657
  evidence: {
3658
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3658
3659
  id: string;
3659
3660
  label: string;
3660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3661
3661
  capture: "at_action" | "historical_lookup" | "fixture";
3662
3662
  locator?: string | undefined;
3663
3663
  }[];
3664
3664
  correctionId: string;
3665
3665
  approvedBy: {
3666
+ kind: "agent" | "human";
3666
3667
  id: string;
3667
3668
  label: string;
3668
- kind: "agent" | "human";
3669
3669
  };
3670
3670
  note?: string | undefined;
3671
3671
  }, {
3672
3672
  kind: "correction_approved";
3673
3673
  correctionId: string;
3674
3674
  approvedBy: {
3675
+ kind: "agent" | "human";
3675
3676
  id: string;
3676
3677
  label: string;
3677
- kind: "agent" | "human";
3678
3678
  };
3679
3679
  note?: string | undefined;
3680
3680
  evidence?: {
3681
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3681
3682
  id: string;
3682
3683
  label: string;
3683
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3684
3684
  capture: "at_action" | "historical_lookup" | "fixture";
3685
3685
  locator?: string | undefined;
3686
3686
  }[] | undefined;
@@ -3696,24 +3696,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3696
3696
  locator: z.ZodOptional<z.ZodString>;
3697
3697
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3698
3698
  }, "strict", z.ZodTypeAny, {
3699
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3699
3700
  id: string;
3700
3701
  label: string;
3701
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3702
3702
  capture: "at_action" | "historical_lookup" | "fixture";
3703
3703
  locator?: string | undefined;
3704
3704
  }, {
3705
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3705
3706
  id: string;
3706
3707
  label: string;
3707
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3708
3708
  capture: "at_action" | "historical_lookup" | "fixture";
3709
3709
  locator?: string | undefined;
3710
3710
  }>, "many">>;
3711
3711
  }, "strict", z.ZodTypeAny, {
3712
3712
  kind: "decision_superseded";
3713
3713
  evidence: {
3714
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3714
3715
  id: string;
3715
3716
  label: string;
3716
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3717
3717
  capture: "at_action" | "historical_lookup" | "fixture";
3718
3718
  locator?: string | undefined;
3719
3719
  }[];
@@ -3726,9 +3726,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3726
3726
  correctionId: string;
3727
3727
  replacementDecisionId: string;
3728
3728
  evidence?: {
3729
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3729
3730
  id: string;
3730
3731
  label: string;
3731
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3732
3732
  capture: "at_action" | "historical_lookup" | "fixture";
3733
3733
  locator?: string | undefined;
3734
3734
  }[] | undefined;
@@ -3744,15 +3744,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3744
3744
  locator: z.ZodOptional<z.ZodString>;
3745
3745
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3746
3746
  }, "strict", z.ZodTypeAny, {
3747
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3747
3748
  id: string;
3748
3749
  label: string;
3749
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3750
3750
  capture: "at_action" | "historical_lookup" | "fixture";
3751
3751
  locator?: string | undefined;
3752
3752
  }, {
3753
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3753
3754
  id: string;
3754
3755
  label: string;
3755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3756
3756
  capture: "at_action" | "historical_lookup" | "fixture";
3757
3757
  locator?: string | undefined;
3758
3758
  }>, "many">>;
@@ -3765,9 +3765,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3765
3765
  agentId: string;
3766
3766
  sessionId: string;
3767
3767
  evidence: {
3768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3768
3769
  id: string;
3769
3770
  label: string;
3770
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3771
3771
  capture: "at_action" | "historical_lookup" | "fixture";
3772
3772
  locator?: string | undefined;
3773
3773
  }[];
@@ -3783,9 +3783,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3783
3783
  recallReceiptId: string;
3784
3784
  capturedAtAction: boolean;
3785
3785
  evidence?: {
3786
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3786
3787
  id: string;
3787
3788
  label: string;
3788
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3789
3789
  capture: "at_action" | "historical_lookup" | "fixture";
3790
3790
  locator?: string | undefined;
3791
3791
  }[] | undefined;
@@ -3801,15 +3801,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3801
3801
  locator: z.ZodOptional<z.ZodString>;
3802
3802
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3803
3803
  }, "strict", z.ZodTypeAny, {
3804
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3804
3805
  id: string;
3805
3806
  label: string;
3806
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3807
3807
  capture: "at_action" | "historical_lookup" | "fixture";
3808
3808
  locator?: string | undefined;
3809
3809
  }, {
3810
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3810
3811
  id: string;
3811
3812
  label: string;
3812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3813
3813
  capture: "at_action" | "historical_lookup" | "fixture";
3814
3814
  locator?: string | undefined;
3815
3815
  }>, "many">>;
@@ -3821,9 +3821,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3821
3821
  agentId: string;
3822
3822
  sessionId: string;
3823
3823
  evidence: {
3824
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3824
3825
  id: string;
3825
3826
  label: string;
3826
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3827
3827
  capture: "at_action" | "historical_lookup" | "fixture";
3828
3828
  locator?: string | undefined;
3829
3829
  }[];
@@ -3840,9 +3840,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3840
3840
  recallReceiptId: string;
3841
3841
  staleDecisionAbsent: boolean;
3842
3842
  evidence?: {
3843
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3843
3844
  id: string;
3844
3845
  label: string;
3845
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3846
3846
  capture: "at_action" | "historical_lookup" | "fixture";
3847
3847
  locator?: string | undefined;
3848
3848
  }[] | undefined;
@@ -3857,37 +3857,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3857
3857
  locator: z.ZodOptional<z.ZodString>;
3858
3858
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3859
3859
  }, "strict", z.ZodTypeAny, {
3860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3860
3861
  id: string;
3861
3862
  label: string;
3862
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3863
3863
  capture: "at_action" | "historical_lookup" | "fixture";
3864
3864
  locator?: string | undefined;
3865
3865
  }, {
3866
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3866
3867
  id: string;
3867
3868
  label: string;
3868
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3869
3869
  capture: "at_action" | "historical_lookup" | "fixture";
3870
3870
  locator?: string | undefined;
3871
3871
  }>, "many">>;
3872
3872
  }, "strict", z.ZodTypeAny, {
3873
- summary: string;
3874
3873
  kind: "mission_completed";
3874
+ summary: string;
3875
3875
  outcome: "failed" | "recovered" | "inconclusive";
3876
3876
  evidence: {
3877
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3877
3878
  id: string;
3878
3879
  label: string;
3879
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3880
3880
  capture: "at_action" | "historical_lookup" | "fixture";
3881
3881
  locator?: string | undefined;
3882
3882
  }[];
3883
3883
  }, {
3884
- summary: string;
3885
3884
  kind: "mission_completed";
3885
+ summary: string;
3886
3886
  outcome: "failed" | "recovered" | "inconclusive";
3887
3887
  evidence?: {
3888
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3888
3889
  id: string;
3889
3890
  label: string;
3890
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3891
3891
  capture: "at_action" | "historical_lookup" | "fixture";
3892
3892
  locator?: string | undefined;
3893
3893
  }[] | undefined;
@@ -3895,38 +3895,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3895
3895
  kind: "mission_started";
3896
3896
  title: string;
3897
3897
  evidence: {
3898
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
3899
  id: string;
3899
3900
  label: string;
3900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3901
3901
  capture: "at_action" | "historical_lookup" | "fixture";
3902
3902
  locator?: string | undefined;
3903
3903
  }[];
3904
3904
  objective: string;
3905
3905
  runMode: "replay" | "fixture" | "live";
3906
3906
  } | {
3907
- label: string;
3908
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3909
3907
  kind: "agent_status";
3910
3908
  role: string;
3909
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3910
+ label: string;
3911
3911
  agentId: string;
3912
3912
  sessionId: string;
3913
3913
  evidence: {
3914
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3914
3915
  id: string;
3915
3916
  label: string;
3916
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3917
3917
  capture: "at_action" | "historical_lookup" | "fixture";
3918
3918
  locator?: string | undefined;
3919
3919
  }[];
3920
3920
  detail?: string | undefined;
3921
3921
  } | {
3922
- summary: string;
3923
3922
  kind: "agent_output";
3923
+ summary: string;
3924
3924
  agentId: string;
3925
3925
  sessionId: string;
3926
3926
  evidence: {
3927
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3927
3928
  id: string;
3928
3929
  label: string;
3929
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3930
3930
  capture: "at_action" | "historical_lookup" | "fixture";
3931
3931
  locator?: string | undefined;
3932
3932
  }[];
@@ -3937,9 +3937,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3937
3937
  statement: string;
3938
3938
  sessionId: string;
3939
3939
  evidence: {
3940
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3940
3941
  id: string;
3941
3942
  label: string;
3942
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3943
3943
  capture: "at_action" | "historical_lookup" | "fixture";
3944
3944
  locator?: string | undefined;
3945
3945
  }[];
@@ -3947,12 +3947,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3947
3947
  decisionId: string;
3948
3948
  confidence?: number | undefined;
3949
3949
  } | {
3950
- summary: string;
3951
3950
  kind: "conflict_detected";
3951
+ summary: string;
3952
3952
  evidence: {
3953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
3954
  id: string;
3954
3955
  label: string;
3955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3956
3956
  capture: "at_action" | "historical_lookup" | "fixture";
3957
3957
  locator?: string | undefined;
3958
3958
  }[];
@@ -3960,14 +3960,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3960
3960
  decisionIds: string[];
3961
3961
  agentIds: string[];
3962
3962
  } | {
3963
- summary: string;
3964
- status: "error" | "failed" | "passed";
3965
3963
  kind: "test_result";
3964
+ summary: string;
3966
3965
  command: string;
3966
+ status: "error" | "failed" | "passed";
3967
3967
  evidence: {
3968
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3968
3969
  id: string;
3969
3970
  label: string;
3970
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3971
3971
  capture: "at_action" | "historical_lookup" | "fixture";
3972
3972
  locator?: string | undefined;
3973
3973
  }[];
@@ -3980,9 +3980,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3980
3980
  rationale: string;
3981
3981
  statement: string;
3982
3982
  evidence: {
3983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3983
3984
  id: string;
3984
3985
  label: string;
3985
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3986
3986
  capture: "at_action" | "historical_lookup" | "fixture";
3987
3987
  locator?: string | undefined;
3988
3988
  }[];
@@ -3994,25 +3994,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3994
3994
  } | {
3995
3995
  kind: "correction_approved";
3996
3996
  evidence: {
3997
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3997
3998
  id: string;
3998
3999
  label: string;
3999
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4000
4000
  capture: "at_action" | "historical_lookup" | "fixture";
4001
4001
  locator?: string | undefined;
4002
4002
  }[];
4003
4003
  correctionId: string;
4004
4004
  approvedBy: {
4005
+ kind: "agent" | "human";
4005
4006
  id: string;
4006
4007
  label: string;
4007
- kind: "agent" | "human";
4008
4008
  };
4009
4009
  note?: string | undefined;
4010
4010
  } | {
4011
4011
  kind: "decision_superseded";
4012
4012
  evidence: {
4013
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4013
4014
  id: string;
4014
4015
  label: string;
4015
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4016
4016
  capture: "at_action" | "historical_lookup" | "fixture";
4017
4017
  locator?: string | undefined;
4018
4018
  }[];
@@ -4025,9 +4025,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4025
4025
  agentId: string;
4026
4026
  sessionId: string;
4027
4027
  evidence: {
4028
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4028
4029
  id: string;
4029
4030
  label: string;
4030
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4031
4031
  capture: "at_action" | "historical_lookup" | "fixture";
4032
4032
  locator?: string | undefined;
4033
4033
  }[];
@@ -4039,9 +4039,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4039
4039
  agentId: string;
4040
4040
  sessionId: string;
4041
4041
  evidence: {
4042
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4042
4043
  id: string;
4043
4044
  label: string;
4044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4045
4045
  capture: "at_action" | "historical_lookup" | "fixture";
4046
4046
  locator?: string | undefined;
4047
4047
  }[];
@@ -4050,13 +4050,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4050
4050
  recallReceiptId: string;
4051
4051
  staleDecisionAbsent: boolean;
4052
4052
  } | {
4053
- summary: string;
4054
4053
  kind: "mission_completed";
4054
+ summary: string;
4055
4055
  outcome: "failed" | "recovered" | "inconclusive";
4056
4056
  evidence: {
4057
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4057
4058
  id: string;
4058
4059
  label: string;
4059
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4060
4060
  capture: "at_action" | "historical_lookup" | "fixture";
4061
4061
  locator?: string | undefined;
4062
4062
  }[];
@@ -4066,37 +4066,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4066
4066
  objective: string;
4067
4067
  runMode: "replay" | "fixture" | "live";
4068
4068
  evidence?: {
4069
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4069
4070
  id: string;
4070
4071
  label: string;
4071
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4072
4072
  capture: "at_action" | "historical_lookup" | "fixture";
4073
4073
  locator?: string | undefined;
4074
4074
  }[] | undefined;
4075
4075
  } | {
4076
- label: string;
4077
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4078
4076
  kind: "agent_status";
4079
4077
  role: string;
4078
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4079
+ label: string;
4080
4080
  agentId: string;
4081
4081
  sessionId: string;
4082
4082
  detail?: string | undefined;
4083
4083
  evidence?: {
4084
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4084
4085
  id: string;
4085
4086
  label: string;
4086
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4087
4087
  capture: "at_action" | "historical_lookup" | "fixture";
4088
4088
  locator?: string | undefined;
4089
4089
  }[] | undefined;
4090
4090
  } | {
4091
- summary: string;
4092
4091
  kind: "agent_output";
4092
+ summary: string;
4093
4093
  agentId: string;
4094
4094
  sessionId: string;
4095
4095
  outputId: string;
4096
4096
  evidence?: {
4097
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4097
4098
  id: string;
4098
4099
  label: string;
4099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4100
4100
  capture: "at_action" | "historical_lookup" | "fixture";
4101
4101
  locator?: string | undefined;
4102
4102
  }[] | undefined;
@@ -4109,37 +4109,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4109
4109
  decisionId: string;
4110
4110
  confidence?: number | undefined;
4111
4111
  evidence?: {
4112
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4112
4113
  id: string;
4113
4114
  label: string;
4114
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4115
4115
  capture: "at_action" | "historical_lookup" | "fixture";
4116
4116
  locator?: string | undefined;
4117
4117
  }[] | undefined;
4118
4118
  } | {
4119
- summary: string;
4120
4119
  kind: "conflict_detected";
4120
+ summary: string;
4121
4121
  conflictId: string;
4122
4122
  decisionIds: string[];
4123
4123
  agentIds: string[];
4124
4124
  evidence?: {
4125
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4125
4126
  id: string;
4126
4127
  label: string;
4127
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4128
4128
  capture: "at_action" | "historical_lookup" | "fixture";
4129
4129
  locator?: string | undefined;
4130
4130
  }[] | undefined;
4131
4131
  } | {
4132
- summary: string;
4133
- status: "error" | "failed" | "passed";
4134
4132
  kind: "test_result";
4133
+ summary: string;
4135
4134
  command: string;
4135
+ status: "error" | "failed" | "passed";
4136
4136
  decisionId: string;
4137
4137
  testId: string;
4138
4138
  durationMs?: number | undefined;
4139
4139
  evidence?: {
4140
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4140
4141
  id: string;
4141
4142
  label: string;
4142
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4143
4143
  capture: "at_action" | "historical_lookup" | "fixture";
4144
4144
  locator?: string | undefined;
4145
4145
  }[] | undefined;
@@ -4154,9 +4154,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4154
4154
  supersedesDecisionIds: string[];
4155
4155
  proposedBy: string;
4156
4156
  evidence?: {
4157
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4157
4158
  id: string;
4158
4159
  label: string;
4159
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4160
4160
  capture: "at_action" | "historical_lookup" | "fixture";
4161
4161
  locator?: string | undefined;
4162
4162
  }[] | undefined;
@@ -4164,15 +4164,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4164
4164
  kind: "correction_approved";
4165
4165
  correctionId: string;
4166
4166
  approvedBy: {
4167
+ kind: "agent" | "human";
4167
4168
  id: string;
4168
4169
  label: string;
4169
- kind: "agent" | "human";
4170
4170
  };
4171
4171
  note?: string | undefined;
4172
4172
  evidence?: {
4173
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4173
4174
  id: string;
4174
4175
  label: string;
4175
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4176
4176
  capture: "at_action" | "historical_lookup" | "fixture";
4177
4177
  locator?: string | undefined;
4178
4178
  }[] | undefined;
@@ -4182,9 +4182,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4182
4182
  correctionId: string;
4183
4183
  replacementDecisionId: string;
4184
4184
  evidence?: {
4185
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4185
4186
  id: string;
4186
4187
  label: string;
4187
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4188
4188
  capture: "at_action" | "historical_lookup" | "fixture";
4189
4189
  locator?: string | undefined;
4190
4190
  }[] | undefined;
@@ -4197,9 +4197,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4197
4197
  recallReceiptId: string;
4198
4198
  capturedAtAction: boolean;
4199
4199
  evidence?: {
4200
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4200
4201
  id: string;
4201
4202
  label: string;
4202
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4203
4203
  capture: "at_action" | "historical_lookup" | "fixture";
4204
4204
  locator?: string | undefined;
4205
4205
  }[] | undefined;
@@ -4212,64 +4212,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4212
4212
  recallReceiptId: string;
4213
4213
  staleDecisionAbsent: boolean;
4214
4214
  evidence?: {
4215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4215
4216
  id: string;
4216
4217
  label: string;
4217
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4218
4218
  capture: "at_action" | "historical_lookup" | "fixture";
4219
4219
  locator?: string | undefined;
4220
4220
  }[] | undefined;
4221
4221
  } | {
4222
- summary: string;
4223
4222
  kind: "mission_completed";
4223
+ summary: string;
4224
4224
  outcome: "failed" | "recovered" | "inconclusive";
4225
4225
  evidence?: {
4226
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4226
4227
  id: string;
4227
4228
  label: string;
4228
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4229
4229
  capture: "at_action" | "historical_lookup" | "fixture";
4230
4230
  locator?: string | undefined;
4231
4231
  }[] | undefined;
4232
4232
  }>;
4233
4233
  }, "strict", z.ZodTypeAny, {
4234
- namespace: string;
4235
- recordedAt: string;
4236
4234
  schemaVersion: "1";
4235
+ recordedAt: string;
4237
4236
  payload: {
4238
4237
  kind: "mission_started";
4239
4238
  title: string;
4240
4239
  evidence: {
4240
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4241
4241
  id: string;
4242
4242
  label: string;
4243
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4244
4243
  capture: "at_action" | "historical_lookup" | "fixture";
4245
4244
  locator?: string | undefined;
4246
4245
  }[];
4247
4246
  objective: string;
4248
4247
  runMode: "replay" | "fixture" | "live";
4249
4248
  } | {
4250
- label: string;
4251
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4252
4249
  kind: "agent_status";
4253
4250
  role: string;
4251
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4252
+ label: string;
4254
4253
  agentId: string;
4255
4254
  sessionId: string;
4256
4255
  evidence: {
4256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4257
4257
  id: string;
4258
4258
  label: string;
4259
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4260
4259
  capture: "at_action" | "historical_lookup" | "fixture";
4261
4260
  locator?: string | undefined;
4262
4261
  }[];
4263
4262
  detail?: string | undefined;
4264
4263
  } | {
4265
- summary: string;
4266
4264
  kind: "agent_output";
4265
+ summary: string;
4267
4266
  agentId: string;
4268
4267
  sessionId: string;
4269
4268
  evidence: {
4269
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4270
4270
  id: string;
4271
4271
  label: string;
4272
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4273
4272
  capture: "at_action" | "historical_lookup" | "fixture";
4274
4273
  locator?: string | undefined;
4275
4274
  }[];
@@ -4280,9 +4279,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4280
4279
  statement: string;
4281
4280
  sessionId: string;
4282
4281
  evidence: {
4282
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4283
4283
  id: string;
4284
4284
  label: string;
4285
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4286
4285
  capture: "at_action" | "historical_lookup" | "fixture";
4287
4286
  locator?: string | undefined;
4288
4287
  }[];
@@ -4290,12 +4289,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4290
4289
  decisionId: string;
4291
4290
  confidence?: number | undefined;
4292
4291
  } | {
4293
- summary: string;
4294
4292
  kind: "conflict_detected";
4293
+ summary: string;
4295
4294
  evidence: {
4295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4296
4296
  id: string;
4297
4297
  label: string;
4298
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4299
4298
  capture: "at_action" | "historical_lookup" | "fixture";
4300
4299
  locator?: string | undefined;
4301
4300
  }[];
@@ -4303,14 +4302,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4303
4302
  decisionIds: string[];
4304
4303
  agentIds: string[];
4305
4304
  } | {
4306
- summary: string;
4307
- status: "error" | "failed" | "passed";
4308
4305
  kind: "test_result";
4306
+ summary: string;
4309
4307
  command: string;
4308
+ status: "error" | "failed" | "passed";
4310
4309
  evidence: {
4310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4311
4311
  id: string;
4312
4312
  label: string;
4313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4314
4313
  capture: "at_action" | "historical_lookup" | "fixture";
4315
4314
  locator?: string | undefined;
4316
4315
  }[];
@@ -4323,9 +4322,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4323
4322
  rationale: string;
4324
4323
  statement: string;
4325
4324
  evidence: {
4325
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4326
4326
  id: string;
4327
4327
  label: string;
4328
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4329
4328
  capture: "at_action" | "historical_lookup" | "fixture";
4330
4329
  locator?: string | undefined;
4331
4330
  }[];
@@ -4337,25 +4336,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4337
4336
  } | {
4338
4337
  kind: "correction_approved";
4339
4338
  evidence: {
4339
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4340
4340
  id: string;
4341
4341
  label: string;
4342
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4343
4342
  capture: "at_action" | "historical_lookup" | "fixture";
4344
4343
  locator?: string | undefined;
4345
4344
  }[];
4346
4345
  correctionId: string;
4347
4346
  approvedBy: {
4347
+ kind: "agent" | "human";
4348
4348
  id: string;
4349
4349
  label: string;
4350
- kind: "agent" | "human";
4351
4350
  };
4352
4351
  note?: string | undefined;
4353
4352
  } | {
4354
4353
  kind: "decision_superseded";
4355
4354
  evidence: {
4355
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4356
4356
  id: string;
4357
4357
  label: string;
4358
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4359
4358
  capture: "at_action" | "historical_lookup" | "fixture";
4360
4359
  locator?: string | undefined;
4361
4360
  }[];
@@ -4368,9 +4367,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4368
4367
  agentId: string;
4369
4368
  sessionId: string;
4370
4369
  evidence: {
4370
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4371
4371
  id: string;
4372
4372
  label: string;
4373
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4374
4373
  capture: "at_action" | "historical_lookup" | "fixture";
4375
4374
  locator?: string | undefined;
4376
4375
  }[];
@@ -4382,9 +4381,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4382
4381
  agentId: string;
4383
4382
  sessionId: string;
4384
4383
  evidence: {
4384
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4385
4385
  id: string;
4386
4386
  label: string;
4387
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4388
4387
  capture: "at_action" | "historical_lookup" | "fixture";
4389
4388
  locator?: string | undefined;
4390
4389
  }[];
@@ -4393,63 +4392,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4393
4392
  recallReceiptId: string;
4394
4393
  staleDecisionAbsent: boolean;
4395
4394
  } | {
4396
- summary: string;
4397
4395
  kind: "mission_completed";
4396
+ summary: string;
4398
4397
  outcome: "failed" | "recovered" | "inconclusive";
4399
4398
  evidence: {
4399
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4400
4400
  id: string;
4401
4401
  label: string;
4402
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4403
4402
  capture: "at_action" | "historical_lookup" | "fixture";
4404
4403
  locator?: string | undefined;
4405
4404
  }[];
4406
4405
  };
4406
+ namespace: string;
4407
4407
  eventId: string;
4408
4408
  occurredAt: string;
4409
4409
  missionId: string;
4410
4410
  authenticatedPrincipal?: string | undefined;
4411
4411
  idempotencyKey?: string | undefined;
4412
4412
  }, {
4413
- namespace: string;
4414
- recordedAt: string;
4415
4413
  schemaVersion: "1";
4414
+ recordedAt: string;
4416
4415
  payload: {
4417
4416
  kind: "mission_started";
4418
4417
  title: string;
4419
4418
  objective: string;
4420
4419
  runMode: "replay" | "fixture" | "live";
4421
4420
  evidence?: {
4421
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4422
4422
  id: string;
4423
4423
  label: string;
4424
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4425
4424
  capture: "at_action" | "historical_lookup" | "fixture";
4426
4425
  locator?: string | undefined;
4427
4426
  }[] | undefined;
4428
4427
  } | {
4429
- label: string;
4430
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4431
4428
  kind: "agent_status";
4432
4429
  role: string;
4430
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4431
+ label: string;
4433
4432
  agentId: string;
4434
4433
  sessionId: string;
4435
4434
  detail?: string | undefined;
4436
4435
  evidence?: {
4436
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4437
4437
  id: string;
4438
4438
  label: string;
4439
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4440
4439
  capture: "at_action" | "historical_lookup" | "fixture";
4441
4440
  locator?: string | undefined;
4442
4441
  }[] | undefined;
4443
4442
  } | {
4444
- summary: string;
4445
4443
  kind: "agent_output";
4444
+ summary: string;
4446
4445
  agentId: string;
4447
4446
  sessionId: string;
4448
4447
  outputId: string;
4449
4448
  evidence?: {
4449
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4450
4450
  id: string;
4451
4451
  label: string;
4452
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4453
4452
  capture: "at_action" | "historical_lookup" | "fixture";
4454
4453
  locator?: string | undefined;
4455
4454
  }[] | undefined;
@@ -4462,37 +4461,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4462
4461
  decisionId: string;
4463
4462
  confidence?: number | undefined;
4464
4463
  evidence?: {
4464
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4465
4465
  id: string;
4466
4466
  label: string;
4467
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4468
4467
  capture: "at_action" | "historical_lookup" | "fixture";
4469
4468
  locator?: string | undefined;
4470
4469
  }[] | undefined;
4471
4470
  } | {
4472
- summary: string;
4473
4471
  kind: "conflict_detected";
4472
+ summary: string;
4474
4473
  conflictId: string;
4475
4474
  decisionIds: string[];
4476
4475
  agentIds: string[];
4477
4476
  evidence?: {
4477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4478
4478
  id: string;
4479
4479
  label: string;
4480
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4481
4480
  capture: "at_action" | "historical_lookup" | "fixture";
4482
4481
  locator?: string | undefined;
4483
4482
  }[] | undefined;
4484
4483
  } | {
4485
- summary: string;
4486
- status: "error" | "failed" | "passed";
4487
4484
  kind: "test_result";
4485
+ summary: string;
4488
4486
  command: string;
4487
+ status: "error" | "failed" | "passed";
4489
4488
  decisionId: string;
4490
4489
  testId: string;
4491
4490
  durationMs?: number | undefined;
4492
4491
  evidence?: {
4492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4493
4493
  id: string;
4494
4494
  label: string;
4495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4496
4495
  capture: "at_action" | "historical_lookup" | "fixture";
4497
4496
  locator?: string | undefined;
4498
4497
  }[] | undefined;
@@ -4507,9 +4506,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4507
4506
  supersedesDecisionIds: string[];
4508
4507
  proposedBy: string;
4509
4508
  evidence?: {
4509
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4510
4510
  id: string;
4511
4511
  label: string;
4512
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4513
4512
  capture: "at_action" | "historical_lookup" | "fixture";
4514
4513
  locator?: string | undefined;
4515
4514
  }[] | undefined;
@@ -4517,15 +4516,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4517
4516
  kind: "correction_approved";
4518
4517
  correctionId: string;
4519
4518
  approvedBy: {
4519
+ kind: "agent" | "human";
4520
4520
  id: string;
4521
4521
  label: string;
4522
- kind: "agent" | "human";
4523
4522
  };
4524
4523
  note?: string | undefined;
4525
4524
  evidence?: {
4525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4526
4526
  id: string;
4527
4527
  label: string;
4528
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4529
4528
  capture: "at_action" | "historical_lookup" | "fixture";
4530
4529
  locator?: string | undefined;
4531
4530
  }[] | undefined;
@@ -4535,9 +4534,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4535
4534
  correctionId: string;
4536
4535
  replacementDecisionId: string;
4537
4536
  evidence?: {
4537
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4538
4538
  id: string;
4539
4539
  label: string;
4540
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4541
4540
  capture: "at_action" | "historical_lookup" | "fixture";
4542
4541
  locator?: string | undefined;
4543
4542
  }[] | undefined;
@@ -4550,9 +4549,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4550
4549
  recallReceiptId: string;
4551
4550
  capturedAtAction: boolean;
4552
4551
  evidence?: {
4552
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4553
4553
  id: string;
4554
4554
  label: string;
4555
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4556
4555
  capture: "at_action" | "historical_lookup" | "fixture";
4557
4556
  locator?: string | undefined;
4558
4557
  }[] | undefined;
@@ -4565,24 +4564,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4565
4564
  recallReceiptId: string;
4566
4565
  staleDecisionAbsent: boolean;
4567
4566
  evidence?: {
4567
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4568
4568
  id: string;
4569
4569
  label: string;
4570
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4571
4570
  capture: "at_action" | "historical_lookup" | "fixture";
4572
4571
  locator?: string | undefined;
4573
4572
  }[] | undefined;
4574
4573
  } | {
4575
- summary: string;
4576
4574
  kind: "mission_completed";
4575
+ summary: string;
4577
4576
  outcome: "failed" | "recovered" | "inconclusive";
4578
4577
  evidence?: {
4578
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4579
4579
  id: string;
4580
4580
  label: string;
4581
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4582
4581
  capture: "at_action" | "historical_lookup" | "fixture";
4583
4582
  locator?: string | undefined;
4584
4583
  }[] | undefined;
4585
4584
  };
4585
+ namespace: string;
4586
4586
  eventId: string;
4587
4587
  occurredAt: string;
4588
4588
  missionId: string;