@remnic/core 9.45.1 → 9.45.2

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
@@ -875,15 +875,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
875
875
  locator: z.ZodOptional<z.ZodString>;
876
876
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
877
877
  }, "strict", z.ZodTypeAny, {
878
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
879
878
  id: string;
880
879
  label: string;
880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
881
881
  capture: "at_action" | "historical_lookup" | "fixture";
882
882
  locator?: string | undefined;
883
883
  }, {
884
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
885
884
  id: string;
886
885
  label: string;
886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
887
887
  capture: "at_action" | "historical_lookup" | "fixture";
888
888
  locator?: string | undefined;
889
889
  }>;
@@ -900,15 +900,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
900
900
  locator: z.ZodOptional<z.ZodString>;
901
901
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
902
902
  }, "strict", z.ZodTypeAny, {
903
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
904
903
  id: string;
905
904
  label: string;
905
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
906
906
  capture: "at_action" | "historical_lookup" | "fixture";
907
907
  locator?: string | undefined;
908
908
  }, {
909
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
910
909
  id: string;
911
910
  label: string;
911
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
912
912
  capture: "at_action" | "historical_lookup" | "fixture";
913
913
  locator?: string | undefined;
914
914
  }>, "many">>;
@@ -916,9 +916,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
916
916
  kind: "mission_started";
917
917
  title: string;
918
918
  evidence: {
919
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
920
919
  id: string;
921
920
  label: string;
921
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
922
922
  capture: "at_action" | "historical_lookup" | "fixture";
923
923
  locator?: string | undefined;
924
924
  }[];
@@ -930,9 +930,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
930
930
  objective: string;
931
931
  runMode: "replay" | "fixture" | "live";
932
932
  evidence?: {
933
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
934
933
  id: string;
935
934
  label: string;
935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
936
936
  capture: "at_action" | "historical_lookup" | "fixture";
937
937
  locator?: string | undefined;
938
938
  }[] | undefined;
@@ -948,15 +948,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
948
948
  locator: z.ZodOptional<z.ZodString>;
949
949
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
950
950
  }, "strict", z.ZodTypeAny, {
951
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
952
951
  id: string;
953
952
  label: string;
953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
954
  capture: "at_action" | "historical_lookup" | "fixture";
955
955
  locator?: string | undefined;
956
956
  }, {
957
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
958
957
  id: string;
959
958
  label: string;
959
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
960
960
  capture: "at_action" | "historical_lookup" | "fixture";
961
961
  locator?: string | undefined;
962
962
  }>, "many">>;
@@ -964,32 +964,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
964
964
  sessionId: z.ZodString;
965
965
  kind: z.ZodLiteral<"agent_status">;
966
966
  }, "strict", z.ZodTypeAny, {
967
- kind: "agent_status";
967
+ label: string;
968
968
  status: "failed" | "complete" | "blocked" | "working" | "idle";
969
+ kind: "agent_status";
969
970
  role: string;
970
- label: string;
971
971
  agentId: string;
972
972
  sessionId: string;
973
973
  evidence: {
974
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
975
974
  id: string;
976
975
  label: string;
976
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
977
977
  capture: "at_action" | "historical_lookup" | "fixture";
978
978
  locator?: string | undefined;
979
979
  }[];
980
980
  detail?: string | undefined;
981
981
  }, {
982
- kind: "agent_status";
982
+ label: string;
983
983
  status: "failed" | "complete" | "blocked" | "working" | "idle";
984
+ kind: "agent_status";
984
985
  role: string;
985
- label: string;
986
986
  agentId: string;
987
987
  sessionId: string;
988
988
  detail?: string | undefined;
989
989
  evidence?: {
990
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
991
990
  id: string;
992
991
  label: string;
992
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
993
993
  capture: "at_action" | "historical_lookup" | "fixture";
994
994
  locator?: string | undefined;
995
995
  }[] | undefined;
@@ -1003,15 +1003,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1003
1003
  locator: z.ZodOptional<z.ZodString>;
1004
1004
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1005
1005
  }, "strict", z.ZodTypeAny, {
1006
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1007
1006
  id: string;
1008
1007
  label: string;
1008
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1009
1009
  capture: "at_action" | "historical_lookup" | "fixture";
1010
1010
  locator?: string | undefined;
1011
1011
  }, {
1012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1013
1012
  id: string;
1014
1013
  label: string;
1014
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1015
1015
  capture: "at_action" | "historical_lookup" | "fixture";
1016
1016
  locator?: string | undefined;
1017
1017
  }>, "many">>;
@@ -1019,28 +1019,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1019
1019
  sessionId: z.ZodString;
1020
1020
  kind: z.ZodLiteral<"agent_output">;
1021
1021
  }, "strict", z.ZodTypeAny, {
1022
- kind: "agent_output";
1023
1022
  summary: string;
1023
+ kind: "agent_output";
1024
1024
  agentId: string;
1025
1025
  sessionId: string;
1026
1026
  evidence: {
1027
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1028
1027
  id: string;
1029
1028
  label: string;
1029
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1030
1030
  capture: "at_action" | "historical_lookup" | "fixture";
1031
1031
  locator?: string | undefined;
1032
1032
  }[];
1033
1033
  outputId: string;
1034
1034
  }, {
1035
- kind: "agent_output";
1036
1035
  summary: string;
1036
+ kind: "agent_output";
1037
1037
  agentId: string;
1038
1038
  sessionId: string;
1039
1039
  outputId: string;
1040
1040
  evidence?: {
1041
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1042
1041
  id: string;
1043
1042
  label: string;
1043
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1044
1044
  capture: "at_action" | "historical_lookup" | "fixture";
1045
1045
  locator?: string | undefined;
1046
1046
  }[] | undefined;
@@ -1056,15 +1056,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1056
1056
  locator: z.ZodOptional<z.ZodString>;
1057
1057
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1058
1058
  }, "strict", z.ZodTypeAny, {
1059
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1060
1059
  id: string;
1061
1060
  label: string;
1061
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1062
1062
  capture: "at_action" | "historical_lookup" | "fixture";
1063
1063
  locator?: string | undefined;
1064
1064
  }, {
1065
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1066
1065
  id: string;
1067
1066
  label: string;
1067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1068
1068
  capture: "at_action" | "historical_lookup" | "fixture";
1069
1069
  locator?: string | undefined;
1070
1070
  }>, "many">>;
@@ -1077,9 +1077,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1077
1077
  statement: string;
1078
1078
  sessionId: string;
1079
1079
  evidence: {
1080
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1081
1080
  id: string;
1082
1081
  label: string;
1082
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1083
1083
  capture: "at_action" | "historical_lookup" | "fixture";
1084
1084
  locator?: string | undefined;
1085
1085
  }[];
@@ -1095,9 +1095,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1095
1095
  decisionId: string;
1096
1096
  confidence?: number | undefined;
1097
1097
  evidence?: {
1098
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1099
1098
  id: string;
1100
1099
  label: string;
1100
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1101
1101
  capture: "at_action" | "historical_lookup" | "fixture";
1102
1102
  locator?: string | undefined;
1103
1103
  }[] | undefined;
@@ -1114,25 +1114,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1114
1114
  locator: z.ZodOptional<z.ZodString>;
1115
1115
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1116
1116
  }, "strict", z.ZodTypeAny, {
1117
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1118
1117
  id: string;
1119
1118
  label: string;
1119
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1120
1120
  capture: "at_action" | "historical_lookup" | "fixture";
1121
1121
  locator?: string | undefined;
1122
1122
  }, {
1123
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1124
1123
  id: string;
1125
1124
  label: string;
1125
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1126
1126
  capture: "at_action" | "historical_lookup" | "fixture";
1127
1127
  locator?: string | undefined;
1128
1128
  }>, "many">>;
1129
1129
  }, "strict", z.ZodTypeAny, {
1130
- kind: "conflict_detected";
1131
1130
  summary: string;
1131
+ kind: "conflict_detected";
1132
1132
  evidence: {
1133
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1134
1133
  id: string;
1135
1134
  label: string;
1135
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1136
1136
  capture: "at_action" | "historical_lookup" | "fixture";
1137
1137
  locator?: string | undefined;
1138
1138
  }[];
@@ -1140,15 +1140,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1140
1140
  decisionIds: string[];
1141
1141
  agentIds: string[];
1142
1142
  }, {
1143
- kind: "conflict_detected";
1144
1143
  summary: string;
1144
+ kind: "conflict_detected";
1145
1145
  conflictId: string;
1146
1146
  decisionIds: string[];
1147
1147
  agentIds: string[];
1148
1148
  evidence?: {
1149
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1150
1149
  id: string;
1151
1150
  label: string;
1151
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1152
1152
  capture: "at_action" | "historical_lookup" | "fixture";
1153
1153
  locator?: string | undefined;
1154
1154
  }[] | undefined;
@@ -1168,27 +1168,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1168
1168
  locator: z.ZodOptional<z.ZodString>;
1169
1169
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1170
1170
  }, "strict", z.ZodTypeAny, {
1171
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1172
1171
  id: string;
1173
1172
  label: string;
1173
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1174
1174
  capture: "at_action" | "historical_lookup" | "fixture";
1175
1175
  locator?: string | undefined;
1176
1176
  }, {
1177
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1178
1177
  id: string;
1179
1178
  label: string;
1179
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1180
1180
  capture: "at_action" | "historical_lookup" | "fixture";
1181
1181
  locator?: string | undefined;
1182
1182
  }>, "many">>;
1183
1183
  }, "strict", z.ZodTypeAny, {
1184
- kind: "test_result";
1185
1184
  summary: string;
1186
1185
  status: "error" | "failed" | "passed";
1186
+ kind: "test_result";
1187
1187
  command: string;
1188
1188
  evidence: {
1189
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1190
1189
  id: string;
1191
1190
  label: string;
1191
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1192
1192
  capture: "at_action" | "historical_lookup" | "fixture";
1193
1193
  locator?: string | undefined;
1194
1194
  }[];
@@ -1197,17 +1197,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1197
1197
  durationMs?: number | undefined;
1198
1198
  correctionId?: string | undefined;
1199
1199
  }, {
1200
- kind: "test_result";
1201
1200
  summary: string;
1202
1201
  status: "error" | "failed" | "passed";
1202
+ kind: "test_result";
1203
1203
  command: string;
1204
1204
  decisionId: string;
1205
1205
  testId: string;
1206
1206
  durationMs?: number | undefined;
1207
1207
  evidence?: {
1208
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1209
1208
  id: string;
1210
1209
  label: string;
1210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1211
1211
  capture: "at_action" | "historical_lookup" | "fixture";
1212
1212
  locator?: string | undefined;
1213
1213
  }[] | undefined;
@@ -1228,15 +1228,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1228
1228
  locator: z.ZodOptional<z.ZodString>;
1229
1229
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1230
1230
  }, "strict", z.ZodTypeAny, {
1231
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1232
1231
  id: string;
1233
1232
  label: string;
1233
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1234
1234
  capture: "at_action" | "historical_lookup" | "fixture";
1235
1235
  locator?: string | undefined;
1236
1236
  }, {
1237
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1238
1237
  id: string;
1239
1238
  label: string;
1239
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1240
1240
  capture: "at_action" | "historical_lookup" | "fixture";
1241
1241
  locator?: string | undefined;
1242
1242
  }>, "many">>;
@@ -1245,9 +1245,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1245
1245
  rationale: string;
1246
1246
  statement: string;
1247
1247
  evidence: {
1248
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1249
1248
  id: string;
1250
1249
  label: string;
1250
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1251
1251
  capture: "at_action" | "historical_lookup" | "fixture";
1252
1252
  locator?: string | undefined;
1253
1253
  }[];
@@ -1266,9 +1266,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1266
1266
  supersedesDecisionIds: string[];
1267
1267
  proposedBy: string;
1268
1268
  evidence?: {
1269
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1270
1269
  id: string;
1271
1270
  label: string;
1271
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1272
1272
  capture: "at_action" | "historical_lookup" | "fixture";
1273
1273
  locator?: string | undefined;
1274
1274
  }[] | undefined;
@@ -1280,13 +1280,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1280
1280
  id: z.ZodString;
1281
1281
  label: z.ZodString;
1282
1282
  }, "strict", z.ZodTypeAny, {
1283
- kind: "agent" | "human";
1284
1283
  id: string;
1285
1284
  label: string;
1286
- }, {
1287
1285
  kind: "agent" | "human";
1286
+ }, {
1288
1287
  id: string;
1289
1288
  label: string;
1289
+ kind: "agent" | "human";
1290
1290
  }>;
1291
1291
  note: z.ZodOptional<z.ZodString>;
1292
1292
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1296,47 +1296,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1296
1296
  locator: z.ZodOptional<z.ZodString>;
1297
1297
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1298
1298
  }, "strict", z.ZodTypeAny, {
1299
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1300
1299
  id: string;
1301
1300
  label: string;
1301
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1302
1302
  capture: "at_action" | "historical_lookup" | "fixture";
1303
1303
  locator?: string | undefined;
1304
1304
  }, {
1305
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1306
1305
  id: string;
1307
1306
  label: string;
1307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1308
1308
  capture: "at_action" | "historical_lookup" | "fixture";
1309
1309
  locator?: string | undefined;
1310
1310
  }>, "many">>;
1311
1311
  }, "strict", z.ZodTypeAny, {
1312
1312
  kind: "correction_approved";
1313
1313
  evidence: {
1314
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1315
1314
  id: string;
1316
1315
  label: string;
1316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
1317
  capture: "at_action" | "historical_lookup" | "fixture";
1318
1318
  locator?: string | undefined;
1319
1319
  }[];
1320
1320
  correctionId: string;
1321
1321
  approvedBy: {
1322
- kind: "agent" | "human";
1323
1322
  id: string;
1324
1323
  label: string;
1324
+ kind: "agent" | "human";
1325
1325
  };
1326
1326
  note?: string | undefined;
1327
1327
  }, {
1328
1328
  kind: "correction_approved";
1329
1329
  correctionId: string;
1330
1330
  approvedBy: {
1331
- kind: "agent" | "human";
1332
1331
  id: string;
1333
1332
  label: string;
1333
+ kind: "agent" | "human";
1334
1334
  };
1335
1335
  note?: string | undefined;
1336
1336
  evidence?: {
1337
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1338
1337
  id: string;
1339
1338
  label: string;
1339
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1340
1340
  capture: "at_action" | "historical_lookup" | "fixture";
1341
1341
  locator?: string | undefined;
1342
1342
  }[] | undefined;
@@ -1352,24 +1352,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1352
1352
  locator: z.ZodOptional<z.ZodString>;
1353
1353
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1354
1354
  }, "strict", z.ZodTypeAny, {
1355
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1356
1355
  id: string;
1357
1356
  label: string;
1357
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1358
1358
  capture: "at_action" | "historical_lookup" | "fixture";
1359
1359
  locator?: string | undefined;
1360
1360
  }, {
1361
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1362
1361
  id: string;
1363
1362
  label: string;
1363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1364
1364
  capture: "at_action" | "historical_lookup" | "fixture";
1365
1365
  locator?: string | undefined;
1366
1366
  }>, "many">>;
1367
1367
  }, "strict", z.ZodTypeAny, {
1368
1368
  kind: "decision_superseded";
1369
1369
  evidence: {
1370
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1371
1370
  id: string;
1372
1371
  label: string;
1372
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1373
1373
  capture: "at_action" | "historical_lookup" | "fixture";
1374
1374
  locator?: string | undefined;
1375
1375
  }[];
@@ -1382,9 +1382,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1382
1382
  correctionId: string;
1383
1383
  replacementDecisionId: string;
1384
1384
  evidence?: {
1385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1386
1385
  id: string;
1387
1386
  label: string;
1387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1388
1388
  capture: "at_action" | "historical_lookup" | "fixture";
1389
1389
  locator?: string | undefined;
1390
1390
  }[] | undefined;
@@ -1400,15 +1400,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1400
1400
  locator: z.ZodOptional<z.ZodString>;
1401
1401
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1402
1402
  }, "strict", z.ZodTypeAny, {
1403
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1404
1403
  id: string;
1405
1404
  label: string;
1405
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1406
1406
  capture: "at_action" | "historical_lookup" | "fixture";
1407
1407
  locator?: string | undefined;
1408
1408
  }, {
1409
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1410
1409
  id: string;
1411
1410
  label: string;
1411
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1412
1412
  capture: "at_action" | "historical_lookup" | "fixture";
1413
1413
  locator?: string | undefined;
1414
1414
  }>, "many">>;
@@ -1421,9 +1421,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1421
1421
  agentId: string;
1422
1422
  sessionId: string;
1423
1423
  evidence: {
1424
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1425
1424
  id: string;
1426
1425
  label: string;
1426
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1427
1427
  capture: "at_action" | "historical_lookup" | "fixture";
1428
1428
  locator?: string | undefined;
1429
1429
  }[];
@@ -1439,9 +1439,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1439
1439
  recallReceiptId: string;
1440
1440
  capturedAtAction: boolean;
1441
1441
  evidence?: {
1442
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1443
1442
  id: string;
1444
1443
  label: string;
1444
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1445
1445
  capture: "at_action" | "historical_lookup" | "fixture";
1446
1446
  locator?: string | undefined;
1447
1447
  }[] | undefined;
@@ -1457,15 +1457,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1457
1457
  locator: z.ZodOptional<z.ZodString>;
1458
1458
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1459
1459
  }, "strict", z.ZodTypeAny, {
1460
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1461
1460
  id: string;
1462
1461
  label: string;
1462
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1463
1463
  capture: "at_action" | "historical_lookup" | "fixture";
1464
1464
  locator?: string | undefined;
1465
1465
  }, {
1466
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1467
1466
  id: string;
1468
1467
  label: string;
1468
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1469
1469
  capture: "at_action" | "historical_lookup" | "fixture";
1470
1470
  locator?: string | undefined;
1471
1471
  }>, "many">>;
@@ -1477,9 +1477,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1477
1477
  agentId: string;
1478
1478
  sessionId: string;
1479
1479
  evidence: {
1480
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1481
1480
  id: string;
1482
1481
  label: string;
1482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1483
1483
  capture: "at_action" | "historical_lookup" | "fixture";
1484
1484
  locator?: string | undefined;
1485
1485
  }[];
@@ -1496,9 +1496,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1496
1496
  recallReceiptId: string;
1497
1497
  staleDecisionAbsent: boolean;
1498
1498
  evidence?: {
1499
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1500
1499
  id: string;
1501
1500
  label: string;
1501
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1502
1502
  capture: "at_action" | "historical_lookup" | "fixture";
1503
1503
  locator?: string | undefined;
1504
1504
  }[] | undefined;
@@ -1513,37 +1513,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1513
1513
  locator: z.ZodOptional<z.ZodString>;
1514
1514
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1515
1515
  }, "strict", z.ZodTypeAny, {
1516
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1517
1516
  id: string;
1518
1517
  label: string;
1518
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1519
1519
  capture: "at_action" | "historical_lookup" | "fixture";
1520
1520
  locator?: string | undefined;
1521
1521
  }, {
1522
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1523
1522
  id: string;
1524
1523
  label: string;
1524
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1525
1525
  capture: "at_action" | "historical_lookup" | "fixture";
1526
1526
  locator?: string | undefined;
1527
1527
  }>, "many">>;
1528
1528
  }, "strict", z.ZodTypeAny, {
1529
- kind: "mission_completed";
1530
1529
  summary: string;
1530
+ kind: "mission_completed";
1531
1531
  outcome: "failed" | "recovered" | "inconclusive";
1532
1532
  evidence: {
1533
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1534
1533
  id: string;
1535
1534
  label: string;
1535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1536
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1537
1537
  locator?: string | undefined;
1538
1538
  }[];
1539
1539
  }, {
1540
- kind: "mission_completed";
1541
1540
  summary: string;
1541
+ kind: "mission_completed";
1542
1542
  outcome: "failed" | "recovered" | "inconclusive";
1543
1543
  evidence?: {
1544
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1545
1544
  id: string;
1546
1545
  label: string;
1546
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1547
1547
  capture: "at_action" | "historical_lookup" | "fixture";
1548
1548
  locator?: string | undefined;
1549
1549
  }[] | undefined;
@@ -1551,38 +1551,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1551
1551
  kind: "mission_started";
1552
1552
  title: string;
1553
1553
  evidence: {
1554
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1555
1554
  id: string;
1556
1555
  label: string;
1556
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1557
1557
  capture: "at_action" | "historical_lookup" | "fixture";
1558
1558
  locator?: string | undefined;
1559
1559
  }[];
1560
1560
  objective: string;
1561
1561
  runMode: "replay" | "fixture" | "live";
1562
1562
  } | {
1563
- kind: "agent_status";
1563
+ label: string;
1564
1564
  status: "failed" | "complete" | "blocked" | "working" | "idle";
1565
+ kind: "agent_status";
1565
1566
  role: string;
1566
- label: string;
1567
1567
  agentId: string;
1568
1568
  sessionId: string;
1569
1569
  evidence: {
1570
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1571
1570
  id: string;
1572
1571
  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
  }[];
1576
1576
  detail?: string | undefined;
1577
1577
  } | {
1578
- kind: "agent_output";
1579
1578
  summary: string;
1579
+ kind: "agent_output";
1580
1580
  agentId: string;
1581
1581
  sessionId: string;
1582
1582
  evidence: {
1583
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1584
1583
  id: string;
1585
1584
  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
  }[];
@@ -1593,9 +1593,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1593
1593
  statement: string;
1594
1594
  sessionId: string;
1595
1595
  evidence: {
1596
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1597
1596
  id: string;
1598
1597
  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,12 +1603,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1603
1603
  decisionId: string;
1604
1604
  confidence?: number | undefined;
1605
1605
  } | {
1606
- kind: "conflict_detected";
1607
1606
  summary: string;
1607
+ kind: "conflict_detected";
1608
1608
  evidence: {
1609
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1610
1609
  id: string;
1611
1610
  label: string;
1611
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1612
1612
  capture: "at_action" | "historical_lookup" | "fixture";
1613
1613
  locator?: string | undefined;
1614
1614
  }[];
@@ -1616,14 +1616,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1616
1616
  decisionIds: string[];
1617
1617
  agentIds: string[];
1618
1618
  } | {
1619
- kind: "test_result";
1620
1619
  summary: string;
1621
1620
  status: "error" | "failed" | "passed";
1621
+ kind: "test_result";
1622
1622
  command: string;
1623
1623
  evidence: {
1624
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1625
1624
  id: string;
1626
1625
  label: string;
1626
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1627
1627
  capture: "at_action" | "historical_lookup" | "fixture";
1628
1628
  locator?: string | undefined;
1629
1629
  }[];
@@ -1636,9 +1636,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1636
1636
  rationale: string;
1637
1637
  statement: string;
1638
1638
  evidence: {
1639
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1640
1639
  id: string;
1641
1640
  label: string;
1641
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1642
1642
  capture: "at_action" | "historical_lookup" | "fixture";
1643
1643
  locator?: string | undefined;
1644
1644
  }[];
@@ -1650,25 +1650,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1650
1650
  } | {
1651
1651
  kind: "correction_approved";
1652
1652
  evidence: {
1653
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1654
1653
  id: string;
1655
1654
  label: string;
1655
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1656
1656
  capture: "at_action" | "historical_lookup" | "fixture";
1657
1657
  locator?: string | undefined;
1658
1658
  }[];
1659
1659
  correctionId: string;
1660
1660
  approvedBy: {
1661
- kind: "agent" | "human";
1662
1661
  id: string;
1663
1662
  label: string;
1663
+ kind: "agent" | "human";
1664
1664
  };
1665
1665
  note?: string | undefined;
1666
1666
  } | {
1667
1667
  kind: "decision_superseded";
1668
1668
  evidence: {
1669
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1670
1669
  id: string;
1671
1670
  label: string;
1671
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1672
1672
  capture: "at_action" | "historical_lookup" | "fixture";
1673
1673
  locator?: string | undefined;
1674
1674
  }[];
@@ -1681,9 +1681,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1681
1681
  agentId: string;
1682
1682
  sessionId: string;
1683
1683
  evidence: {
1684
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1685
1684
  id: string;
1686
1685
  label: string;
1686
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1687
1687
  capture: "at_action" | "historical_lookup" | "fixture";
1688
1688
  locator?: string | undefined;
1689
1689
  }[];
@@ -1695,9 +1695,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1695
1695
  agentId: string;
1696
1696
  sessionId: string;
1697
1697
  evidence: {
1698
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1699
1698
  id: string;
1700
1699
  label: string;
1700
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1701
1701
  capture: "at_action" | "historical_lookup" | "fixture";
1702
1702
  locator?: string | undefined;
1703
1703
  }[];
@@ -1706,13 +1706,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1706
1706
  recallReceiptId: string;
1707
1707
  staleDecisionAbsent: boolean;
1708
1708
  } | {
1709
- kind: "mission_completed";
1710
1709
  summary: string;
1710
+ kind: "mission_completed";
1711
1711
  outcome: "failed" | "recovered" | "inconclusive";
1712
1712
  evidence: {
1713
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1714
1713
  id: string;
1715
1714
  label: string;
1715
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1716
1716
  capture: "at_action" | "historical_lookup" | "fixture";
1717
1717
  locator?: string | undefined;
1718
1718
  }[];
@@ -1722,37 +1722,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1722
1722
  objective: string;
1723
1723
  runMode: "replay" | "fixture" | "live";
1724
1724
  evidence?: {
1725
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1726
1725
  id: string;
1727
1726
  label: string;
1727
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1728
1728
  capture: "at_action" | "historical_lookup" | "fixture";
1729
1729
  locator?: string | undefined;
1730
1730
  }[] | undefined;
1731
1731
  } | {
1732
- kind: "agent_status";
1732
+ label: string;
1733
1733
  status: "failed" | "complete" | "blocked" | "working" | "idle";
1734
+ kind: "agent_status";
1734
1735
  role: string;
1735
- label: string;
1736
1736
  agentId: string;
1737
1737
  sessionId: string;
1738
1738
  detail?: string | undefined;
1739
1739
  evidence?: {
1740
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1741
1740
  id: string;
1742
1741
  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;
1746
1746
  } | {
1747
- kind: "agent_output";
1748
1747
  summary: string;
1748
+ kind: "agent_output";
1749
1749
  agentId: string;
1750
1750
  sessionId: string;
1751
1751
  outputId: string;
1752
1752
  evidence?: {
1753
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1754
1753
  id: string;
1755
1754
  label: string;
1755
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1756
1756
  capture: "at_action" | "historical_lookup" | "fixture";
1757
1757
  locator?: string | undefined;
1758
1758
  }[] | undefined;
@@ -1765,37 +1765,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1765
1765
  decisionId: string;
1766
1766
  confidence?: number | undefined;
1767
1767
  evidence?: {
1768
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1769
1768
  id: string;
1770
1769
  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
- kind: "conflict_detected";
1776
1775
  summary: string;
1776
+ kind: "conflict_detected";
1777
1777
  conflictId: string;
1778
1778
  decisionIds: string[];
1779
1779
  agentIds: string[];
1780
1780
  evidence?: {
1781
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1782
1781
  id: string;
1783
1782
  label: string;
1783
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1784
1784
  capture: "at_action" | "historical_lookup" | "fixture";
1785
1785
  locator?: string | undefined;
1786
1786
  }[] | undefined;
1787
1787
  } | {
1788
- kind: "test_result";
1789
1788
  summary: string;
1790
1789
  status: "error" | "failed" | "passed";
1790
+ kind: "test_result";
1791
1791
  command: string;
1792
1792
  decisionId: string;
1793
1793
  testId: string;
1794
1794
  durationMs?: number | undefined;
1795
1795
  evidence?: {
1796
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1797
1796
  id: string;
1798
1797
  label: string;
1798
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1799
1799
  capture: "at_action" | "historical_lookup" | "fixture";
1800
1800
  locator?: string | undefined;
1801
1801
  }[] | undefined;
@@ -1810,9 +1810,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1810
1810
  supersedesDecisionIds: string[];
1811
1811
  proposedBy: string;
1812
1812
  evidence?: {
1813
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1814
1813
  id: string;
1815
1814
  label: string;
1815
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1816
1816
  capture: "at_action" | "historical_lookup" | "fixture";
1817
1817
  locator?: string | undefined;
1818
1818
  }[] | undefined;
@@ -1820,15 +1820,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1820
1820
  kind: "correction_approved";
1821
1821
  correctionId: string;
1822
1822
  approvedBy: {
1823
- kind: "agent" | "human";
1824
1823
  id: string;
1825
1824
  label: string;
1825
+ kind: "agent" | "human";
1826
1826
  };
1827
1827
  note?: string | undefined;
1828
1828
  evidence?: {
1829
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1830
1829
  id: string;
1831
1830
  label: string;
1831
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1832
1832
  capture: "at_action" | "historical_lookup" | "fixture";
1833
1833
  locator?: string | undefined;
1834
1834
  }[] | undefined;
@@ -1838,9 +1838,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1838
1838
  correctionId: string;
1839
1839
  replacementDecisionId: string;
1840
1840
  evidence?: {
1841
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1842
1841
  id: string;
1843
1842
  label: string;
1843
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1844
1844
  capture: "at_action" | "historical_lookup" | "fixture";
1845
1845
  locator?: string | undefined;
1846
1846
  }[] | undefined;
@@ -1853,9 +1853,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1853
1853
  recallReceiptId: string;
1854
1854
  capturedAtAction: boolean;
1855
1855
  evidence?: {
1856
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1857
1856
  id: string;
1858
1857
  label: string;
1858
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1859
1859
  capture: "at_action" | "historical_lookup" | "fixture";
1860
1860
  locator?: string | undefined;
1861
1861
  }[] | undefined;
@@ -1868,20 +1868,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1868
1868
  recallReceiptId: string;
1869
1869
  staleDecisionAbsent: boolean;
1870
1870
  evidence?: {
1871
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1872
1871
  id: string;
1873
1872
  label: string;
1873
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1874
1874
  capture: "at_action" | "historical_lookup" | "fixture";
1875
1875
  locator?: string | undefined;
1876
1876
  }[] | undefined;
1877
1877
  } | {
1878
- kind: "mission_completed";
1879
1878
  summary: string;
1879
+ kind: "mission_completed";
1880
1880
  outcome: "failed" | "recovered" | "inconclusive";
1881
1881
  evidence?: {
1882
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1883
1882
  id: string;
1884
1883
  label: string;
1884
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1885
1885
  capture: "at_action" | "historical_lookup" | "fixture";
1886
1886
  locator?: string | undefined;
1887
1887
  }[] | undefined;
@@ -1902,15 +1902,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1902
1902
  locator: z.ZodOptional<z.ZodString>;
1903
1903
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1904
1904
  }, "strict", z.ZodTypeAny, {
1905
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1906
1905
  id: string;
1907
1906
  label: string;
1907
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
1908
  capture: "at_action" | "historical_lookup" | "fixture";
1909
1909
  locator?: string | undefined;
1910
1910
  }, {
1911
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1912
1911
  id: string;
1913
1912
  label: string;
1913
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1914
1914
  capture: "at_action" | "historical_lookup" | "fixture";
1915
1915
  locator?: string | undefined;
1916
1916
  }>, "many">>;
@@ -1918,9 +1918,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1918
1918
  kind: "mission_started";
1919
1919
  title: string;
1920
1920
  evidence: {
1921
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1922
1921
  id: string;
1923
1922
  label: string;
1923
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1924
1924
  capture: "at_action" | "historical_lookup" | "fixture";
1925
1925
  locator?: string | undefined;
1926
1926
  }[];
@@ -1932,9 +1932,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1932
1932
  objective: string;
1933
1933
  runMode: "replay" | "fixture" | "live";
1934
1934
  evidence?: {
1935
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1936
1935
  id: string;
1937
1936
  label: string;
1937
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1938
1938
  capture: "at_action" | "historical_lookup" | "fixture";
1939
1939
  locator?: string | undefined;
1940
1940
  }[] | undefined;
@@ -1950,15 +1950,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1950
1950
  locator: z.ZodOptional<z.ZodString>;
1951
1951
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1952
1952
  }, "strict", z.ZodTypeAny, {
1953
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1954
1953
  id: string;
1955
1954
  label: string;
1955
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
1956
  capture: "at_action" | "historical_lookup" | "fixture";
1957
1957
  locator?: string | undefined;
1958
1958
  }, {
1959
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1960
1959
  id: string;
1961
1960
  label: string;
1961
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1962
1962
  capture: "at_action" | "historical_lookup" | "fixture";
1963
1963
  locator?: string | undefined;
1964
1964
  }>, "many">>;
@@ -1966,32 +1966,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1966
1966
  sessionId: z.ZodString;
1967
1967
  kind: z.ZodLiteral<"agent_status">;
1968
1968
  }, "strict", z.ZodTypeAny, {
1969
- kind: "agent_status";
1969
+ label: string;
1970
1970
  status: "failed" | "complete" | "blocked" | "working" | "idle";
1971
+ kind: "agent_status";
1971
1972
  role: string;
1972
- label: string;
1973
1973
  agentId: string;
1974
1974
  sessionId: string;
1975
1975
  evidence: {
1976
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1977
1976
  id: string;
1978
1977
  label: string;
1978
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1979
1979
  capture: "at_action" | "historical_lookup" | "fixture";
1980
1980
  locator?: string | undefined;
1981
1981
  }[];
1982
1982
  detail?: string | undefined;
1983
1983
  }, {
1984
- kind: "agent_status";
1984
+ label: string;
1985
1985
  status: "failed" | "complete" | "blocked" | "working" | "idle";
1986
+ kind: "agent_status";
1986
1987
  role: string;
1987
- label: string;
1988
1988
  agentId: string;
1989
1989
  sessionId: string;
1990
1990
  detail?: string | undefined;
1991
1991
  evidence?: {
1992
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1993
1992
  id: string;
1994
1993
  label: string;
1994
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1995
1995
  capture: "at_action" | "historical_lookup" | "fixture";
1996
1996
  locator?: string | undefined;
1997
1997
  }[] | undefined;
@@ -2005,15 +2005,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2005
2005
  locator: z.ZodOptional<z.ZodString>;
2006
2006
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2007
2007
  }, "strict", z.ZodTypeAny, {
2008
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2009
2008
  id: string;
2010
2009
  label: string;
2010
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2011
2011
  capture: "at_action" | "historical_lookup" | "fixture";
2012
2012
  locator?: string | undefined;
2013
2013
  }, {
2014
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2015
2014
  id: string;
2016
2015
  label: string;
2016
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2017
2017
  capture: "at_action" | "historical_lookup" | "fixture";
2018
2018
  locator?: string | undefined;
2019
2019
  }>, "many">>;
@@ -2021,28 +2021,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2021
2021
  sessionId: z.ZodString;
2022
2022
  kind: z.ZodLiteral<"agent_output">;
2023
2023
  }, "strict", z.ZodTypeAny, {
2024
- kind: "agent_output";
2025
2024
  summary: string;
2025
+ kind: "agent_output";
2026
2026
  agentId: string;
2027
2027
  sessionId: string;
2028
2028
  evidence: {
2029
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2030
2029
  id: string;
2031
2030
  label: string;
2031
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2032
2032
  capture: "at_action" | "historical_lookup" | "fixture";
2033
2033
  locator?: string | undefined;
2034
2034
  }[];
2035
2035
  outputId: string;
2036
2036
  }, {
2037
- kind: "agent_output";
2038
2037
  summary: string;
2038
+ kind: "agent_output";
2039
2039
  agentId: string;
2040
2040
  sessionId: string;
2041
2041
  outputId: string;
2042
2042
  evidence?: {
2043
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2044
2043
  id: string;
2045
2044
  label: string;
2045
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2046
2046
  capture: "at_action" | "historical_lookup" | "fixture";
2047
2047
  locator?: string | undefined;
2048
2048
  }[] | undefined;
@@ -2058,15 +2058,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2058
2058
  locator: z.ZodOptional<z.ZodString>;
2059
2059
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2060
2060
  }, "strict", z.ZodTypeAny, {
2061
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2062
2061
  id: string;
2063
2062
  label: string;
2063
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2064
2064
  capture: "at_action" | "historical_lookup" | "fixture";
2065
2065
  locator?: string | undefined;
2066
2066
  }, {
2067
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2068
2067
  id: string;
2069
2068
  label: string;
2069
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2070
2070
  capture: "at_action" | "historical_lookup" | "fixture";
2071
2071
  locator?: string | undefined;
2072
2072
  }>, "many">>;
@@ -2079,9 +2079,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2079
2079
  statement: string;
2080
2080
  sessionId: string;
2081
2081
  evidence: {
2082
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2083
2082
  id: string;
2084
2083
  label: string;
2084
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2085
2085
  capture: "at_action" | "historical_lookup" | "fixture";
2086
2086
  locator?: string | undefined;
2087
2087
  }[];
@@ -2097,9 +2097,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2097
2097
  decisionId: string;
2098
2098
  confidence?: number | undefined;
2099
2099
  evidence?: {
2100
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2101
2100
  id: string;
2102
2101
  label: string;
2102
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2103
2103
  capture: "at_action" | "historical_lookup" | "fixture";
2104
2104
  locator?: string | undefined;
2105
2105
  }[] | undefined;
@@ -2116,25 +2116,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2116
2116
  locator: z.ZodOptional<z.ZodString>;
2117
2117
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2118
2118
  }, "strict", z.ZodTypeAny, {
2119
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2120
2119
  id: string;
2121
2120
  label: string;
2121
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2122
2122
  capture: "at_action" | "historical_lookup" | "fixture";
2123
2123
  locator?: string | undefined;
2124
2124
  }, {
2125
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2126
2125
  id: string;
2127
2126
  label: string;
2127
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2128
2128
  capture: "at_action" | "historical_lookup" | "fixture";
2129
2129
  locator?: string | undefined;
2130
2130
  }>, "many">>;
2131
2131
  }, "strict", z.ZodTypeAny, {
2132
- kind: "conflict_detected";
2133
2132
  summary: string;
2133
+ kind: "conflict_detected";
2134
2134
  evidence: {
2135
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2136
2135
  id: string;
2137
2136
  label: string;
2137
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2138
2138
  capture: "at_action" | "historical_lookup" | "fixture";
2139
2139
  locator?: string | undefined;
2140
2140
  }[];
@@ -2142,15 +2142,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2142
2142
  decisionIds: string[];
2143
2143
  agentIds: string[];
2144
2144
  }, {
2145
- kind: "conflict_detected";
2146
2145
  summary: string;
2146
+ kind: "conflict_detected";
2147
2147
  conflictId: string;
2148
2148
  decisionIds: string[];
2149
2149
  agentIds: string[];
2150
2150
  evidence?: {
2151
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2152
2151
  id: string;
2153
2152
  label: string;
2153
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2154
2154
  capture: "at_action" | "historical_lookup" | "fixture";
2155
2155
  locator?: string | undefined;
2156
2156
  }[] | undefined;
@@ -2170,27 +2170,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2170
2170
  locator: z.ZodOptional<z.ZodString>;
2171
2171
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2172
2172
  }, "strict", z.ZodTypeAny, {
2173
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2174
2173
  id: string;
2175
2174
  label: string;
2175
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2176
2176
  capture: "at_action" | "historical_lookup" | "fixture";
2177
2177
  locator?: string | undefined;
2178
2178
  }, {
2179
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2180
2179
  id: string;
2181
2180
  label: string;
2181
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2182
2182
  capture: "at_action" | "historical_lookup" | "fixture";
2183
2183
  locator?: string | undefined;
2184
2184
  }>, "many">>;
2185
2185
  }, "strict", z.ZodTypeAny, {
2186
- kind: "test_result";
2187
2186
  summary: string;
2188
2187
  status: "error" | "failed" | "passed";
2188
+ kind: "test_result";
2189
2189
  command: string;
2190
2190
  evidence: {
2191
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2192
2191
  id: string;
2193
2192
  label: string;
2193
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2194
2194
  capture: "at_action" | "historical_lookup" | "fixture";
2195
2195
  locator?: string | undefined;
2196
2196
  }[];
@@ -2199,17 +2199,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2199
2199
  durationMs?: number | undefined;
2200
2200
  correctionId?: string | undefined;
2201
2201
  }, {
2202
- kind: "test_result";
2203
2202
  summary: string;
2204
2203
  status: "error" | "failed" | "passed";
2204
+ kind: "test_result";
2205
2205
  command: string;
2206
2206
  decisionId: string;
2207
2207
  testId: string;
2208
2208
  durationMs?: number | undefined;
2209
2209
  evidence?: {
2210
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2211
2210
  id: string;
2212
2211
  label: string;
2212
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2213
2213
  capture: "at_action" | "historical_lookup" | "fixture";
2214
2214
  locator?: string | undefined;
2215
2215
  }[] | undefined;
@@ -2230,15 +2230,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2230
2230
  locator: z.ZodOptional<z.ZodString>;
2231
2231
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2232
2232
  }, "strict", z.ZodTypeAny, {
2233
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2234
2233
  id: string;
2235
2234
  label: string;
2235
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2236
2236
  capture: "at_action" | "historical_lookup" | "fixture";
2237
2237
  locator?: string | undefined;
2238
2238
  }, {
2239
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2240
2239
  id: string;
2241
2240
  label: string;
2241
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2242
2242
  capture: "at_action" | "historical_lookup" | "fixture";
2243
2243
  locator?: string | undefined;
2244
2244
  }>, "many">>;
@@ -2247,9 +2247,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2247
2247
  rationale: string;
2248
2248
  statement: string;
2249
2249
  evidence: {
2250
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2251
2250
  id: string;
2252
2251
  label: string;
2252
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2253
2253
  capture: "at_action" | "historical_lookup" | "fixture";
2254
2254
  locator?: string | undefined;
2255
2255
  }[];
@@ -2268,9 +2268,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2268
2268
  supersedesDecisionIds: string[];
2269
2269
  proposedBy: string;
2270
2270
  evidence?: {
2271
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2272
2271
  id: string;
2273
2272
  label: string;
2273
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2274
2274
  capture: "at_action" | "historical_lookup" | "fixture";
2275
2275
  locator?: string | undefined;
2276
2276
  }[] | undefined;
@@ -2282,13 +2282,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2282
2282
  id: z.ZodString;
2283
2283
  label: z.ZodString;
2284
2284
  }, "strict", z.ZodTypeAny, {
2285
- kind: "agent" | "human";
2286
2285
  id: string;
2287
2286
  label: string;
2288
- }, {
2289
2287
  kind: "agent" | "human";
2288
+ }, {
2290
2289
  id: string;
2291
2290
  label: string;
2291
+ kind: "agent" | "human";
2292
2292
  }>;
2293
2293
  note: z.ZodOptional<z.ZodString>;
2294
2294
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2298,47 +2298,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2298
2298
  locator: z.ZodOptional<z.ZodString>;
2299
2299
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2300
2300
  }, "strict", z.ZodTypeAny, {
2301
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2302
2301
  id: string;
2303
2302
  label: string;
2303
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2304
2304
  capture: "at_action" | "historical_lookup" | "fixture";
2305
2305
  locator?: string | undefined;
2306
2306
  }, {
2307
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2308
2307
  id: string;
2309
2308
  label: string;
2309
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2310
2310
  capture: "at_action" | "historical_lookup" | "fixture";
2311
2311
  locator?: string | undefined;
2312
2312
  }>, "many">>;
2313
2313
  }, "strict", z.ZodTypeAny, {
2314
2314
  kind: "correction_approved";
2315
2315
  evidence: {
2316
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2317
2316
  id: string;
2318
2317
  label: string;
2318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
2319
  capture: "at_action" | "historical_lookup" | "fixture";
2320
2320
  locator?: string | undefined;
2321
2321
  }[];
2322
2322
  correctionId: string;
2323
2323
  approvedBy: {
2324
- kind: "agent" | "human";
2325
2324
  id: string;
2326
2325
  label: string;
2326
+ kind: "agent" | "human";
2327
2327
  };
2328
2328
  note?: string | undefined;
2329
2329
  }, {
2330
2330
  kind: "correction_approved";
2331
2331
  correctionId: string;
2332
2332
  approvedBy: {
2333
- kind: "agent" | "human";
2334
2333
  id: string;
2335
2334
  label: string;
2335
+ kind: "agent" | "human";
2336
2336
  };
2337
2337
  note?: string | undefined;
2338
2338
  evidence?: {
2339
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2340
2339
  id: string;
2341
2340
  label: string;
2341
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2342
2342
  capture: "at_action" | "historical_lookup" | "fixture";
2343
2343
  locator?: string | undefined;
2344
2344
  }[] | undefined;
@@ -2354,24 +2354,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2354
2354
  locator: z.ZodOptional<z.ZodString>;
2355
2355
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2356
2356
  }, "strict", z.ZodTypeAny, {
2357
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2358
2357
  id: string;
2359
2358
  label: string;
2359
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2360
2360
  capture: "at_action" | "historical_lookup" | "fixture";
2361
2361
  locator?: string | undefined;
2362
2362
  }, {
2363
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2364
2363
  id: string;
2365
2364
  label: string;
2365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2366
2366
  capture: "at_action" | "historical_lookup" | "fixture";
2367
2367
  locator?: string | undefined;
2368
2368
  }>, "many">>;
2369
2369
  }, "strict", z.ZodTypeAny, {
2370
2370
  kind: "decision_superseded";
2371
2371
  evidence: {
2372
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2373
2372
  id: string;
2374
2373
  label: string;
2374
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2375
2375
  capture: "at_action" | "historical_lookup" | "fixture";
2376
2376
  locator?: string | undefined;
2377
2377
  }[];
@@ -2384,9 +2384,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2384
2384
  correctionId: string;
2385
2385
  replacementDecisionId: string;
2386
2386
  evidence?: {
2387
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2388
2387
  id: string;
2389
2388
  label: string;
2389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2390
2390
  capture: "at_action" | "historical_lookup" | "fixture";
2391
2391
  locator?: string | undefined;
2392
2392
  }[] | undefined;
@@ -2402,15 +2402,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2402
2402
  locator: z.ZodOptional<z.ZodString>;
2403
2403
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2404
2404
  }, "strict", z.ZodTypeAny, {
2405
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2406
2405
  id: string;
2407
2406
  label: string;
2407
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2408
2408
  capture: "at_action" | "historical_lookup" | "fixture";
2409
2409
  locator?: string | undefined;
2410
2410
  }, {
2411
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2412
2411
  id: string;
2413
2412
  label: string;
2413
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2414
2414
  capture: "at_action" | "historical_lookup" | "fixture";
2415
2415
  locator?: string | undefined;
2416
2416
  }>, "many">>;
@@ -2423,9 +2423,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2423
2423
  agentId: string;
2424
2424
  sessionId: string;
2425
2425
  evidence: {
2426
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2427
2426
  id: string;
2428
2427
  label: string;
2428
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2429
2429
  capture: "at_action" | "historical_lookup" | "fixture";
2430
2430
  locator?: string | undefined;
2431
2431
  }[];
@@ -2441,9 +2441,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2441
2441
  recallReceiptId: string;
2442
2442
  capturedAtAction: boolean;
2443
2443
  evidence?: {
2444
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2445
2444
  id: string;
2446
2445
  label: string;
2446
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2447
2447
  capture: "at_action" | "historical_lookup" | "fixture";
2448
2448
  locator?: string | undefined;
2449
2449
  }[] | undefined;
@@ -2459,15 +2459,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2459
2459
  locator: z.ZodOptional<z.ZodString>;
2460
2460
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2461
2461
  }, "strict", z.ZodTypeAny, {
2462
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2463
2462
  id: string;
2464
2463
  label: string;
2464
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2465
2465
  capture: "at_action" | "historical_lookup" | "fixture";
2466
2466
  locator?: string | undefined;
2467
2467
  }, {
2468
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2469
2468
  id: string;
2470
2469
  label: string;
2470
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2471
2471
  capture: "at_action" | "historical_lookup" | "fixture";
2472
2472
  locator?: string | undefined;
2473
2473
  }>, "many">>;
@@ -2479,9 +2479,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2479
2479
  agentId: string;
2480
2480
  sessionId: string;
2481
2481
  evidence: {
2482
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2483
2482
  id: string;
2484
2483
  label: string;
2484
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2485
2485
  capture: "at_action" | "historical_lookup" | "fixture";
2486
2486
  locator?: string | undefined;
2487
2487
  }[];
@@ -2498,9 +2498,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2498
2498
  recallReceiptId: string;
2499
2499
  staleDecisionAbsent: boolean;
2500
2500
  evidence?: {
2501
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2502
2501
  id: string;
2503
2502
  label: string;
2503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2504
2504
  capture: "at_action" | "historical_lookup" | "fixture";
2505
2505
  locator?: string | undefined;
2506
2506
  }[] | undefined;
@@ -2515,37 +2515,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2515
2515
  locator: z.ZodOptional<z.ZodString>;
2516
2516
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2517
2517
  }, "strict", z.ZodTypeAny, {
2518
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2519
2518
  id: string;
2520
2519
  label: string;
2520
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2521
2521
  capture: "at_action" | "historical_lookup" | "fixture";
2522
2522
  locator?: string | undefined;
2523
2523
  }, {
2524
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2525
2524
  id: string;
2526
2525
  label: string;
2526
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2527
2527
  capture: "at_action" | "historical_lookup" | "fixture";
2528
2528
  locator?: string | undefined;
2529
2529
  }>, "many">>;
2530
2530
  }, "strict", z.ZodTypeAny, {
2531
- kind: "mission_completed";
2532
2531
  summary: string;
2532
+ kind: "mission_completed";
2533
2533
  outcome: "failed" | "recovered" | "inconclusive";
2534
2534
  evidence: {
2535
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2536
2535
  id: string;
2537
2536
  label: string;
2537
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2539
2539
  locator?: string | undefined;
2540
2540
  }[];
2541
2541
  }, {
2542
- kind: "mission_completed";
2543
2542
  summary: string;
2543
+ kind: "mission_completed";
2544
2544
  outcome: "failed" | "recovered" | "inconclusive";
2545
2545
  evidence?: {
2546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2547
2546
  id: string;
2548
2547
  label: string;
2548
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2549
2549
  capture: "at_action" | "historical_lookup" | "fixture";
2550
2550
  locator?: string | undefined;
2551
2551
  }[] | undefined;
@@ -2553,38 +2553,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2553
2553
  kind: "mission_started";
2554
2554
  title: string;
2555
2555
  evidence: {
2556
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2557
2556
  id: string;
2558
2557
  label: string;
2558
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2559
2559
  capture: "at_action" | "historical_lookup" | "fixture";
2560
2560
  locator?: string | undefined;
2561
2561
  }[];
2562
2562
  objective: string;
2563
2563
  runMode: "replay" | "fixture" | "live";
2564
2564
  } | {
2565
- kind: "agent_status";
2565
+ label: string;
2566
2566
  status: "failed" | "complete" | "blocked" | "working" | "idle";
2567
+ kind: "agent_status";
2567
2568
  role: string;
2568
- label: string;
2569
2569
  agentId: string;
2570
2570
  sessionId: string;
2571
2571
  evidence: {
2572
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2573
2572
  id: string;
2574
2573
  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
  }[];
2578
2578
  detail?: string | undefined;
2579
2579
  } | {
2580
- kind: "agent_output";
2581
2580
  summary: string;
2581
+ kind: "agent_output";
2582
2582
  agentId: string;
2583
2583
  sessionId: string;
2584
2584
  evidence: {
2585
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2586
2585
  id: string;
2587
2586
  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
  }[];
@@ -2595,9 +2595,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2595
2595
  statement: string;
2596
2596
  sessionId: string;
2597
2597
  evidence: {
2598
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2599
2598
  id: string;
2600
2599
  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,12 +2605,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2605
2605
  decisionId: string;
2606
2606
  confidence?: number | undefined;
2607
2607
  } | {
2608
- kind: "conflict_detected";
2609
2608
  summary: string;
2609
+ kind: "conflict_detected";
2610
2610
  evidence: {
2611
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2612
2611
  id: string;
2613
2612
  label: string;
2613
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2614
2614
  capture: "at_action" | "historical_lookup" | "fixture";
2615
2615
  locator?: string | undefined;
2616
2616
  }[];
@@ -2618,14 +2618,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2618
2618
  decisionIds: string[];
2619
2619
  agentIds: string[];
2620
2620
  } | {
2621
- kind: "test_result";
2622
2621
  summary: string;
2623
2622
  status: "error" | "failed" | "passed";
2623
+ kind: "test_result";
2624
2624
  command: string;
2625
2625
  evidence: {
2626
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2627
2626
  id: string;
2628
2627
  label: string;
2628
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2629
2629
  capture: "at_action" | "historical_lookup" | "fixture";
2630
2630
  locator?: string | undefined;
2631
2631
  }[];
@@ -2638,9 +2638,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2638
2638
  rationale: string;
2639
2639
  statement: string;
2640
2640
  evidence: {
2641
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2642
2641
  id: string;
2643
2642
  label: string;
2643
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2644
2644
  capture: "at_action" | "historical_lookup" | "fixture";
2645
2645
  locator?: string | undefined;
2646
2646
  }[];
@@ -2652,25 +2652,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2652
2652
  } | {
2653
2653
  kind: "correction_approved";
2654
2654
  evidence: {
2655
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2656
2655
  id: string;
2657
2656
  label: string;
2657
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2658
2658
  capture: "at_action" | "historical_lookup" | "fixture";
2659
2659
  locator?: string | undefined;
2660
2660
  }[];
2661
2661
  correctionId: string;
2662
2662
  approvedBy: {
2663
- kind: "agent" | "human";
2664
2663
  id: string;
2665
2664
  label: string;
2665
+ kind: "agent" | "human";
2666
2666
  };
2667
2667
  note?: string | undefined;
2668
2668
  } | {
2669
2669
  kind: "decision_superseded";
2670
2670
  evidence: {
2671
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2672
2671
  id: string;
2673
2672
  label: string;
2673
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2674
2674
  capture: "at_action" | "historical_lookup" | "fixture";
2675
2675
  locator?: string | undefined;
2676
2676
  }[];
@@ -2683,9 +2683,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2683
2683
  agentId: string;
2684
2684
  sessionId: string;
2685
2685
  evidence: {
2686
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2687
2686
  id: string;
2688
2687
  label: string;
2688
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2689
2689
  capture: "at_action" | "historical_lookup" | "fixture";
2690
2690
  locator?: string | undefined;
2691
2691
  }[];
@@ -2697,9 +2697,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2697
2697
  agentId: string;
2698
2698
  sessionId: string;
2699
2699
  evidence: {
2700
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2701
2700
  id: string;
2702
2701
  label: string;
2702
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2703
2703
  capture: "at_action" | "historical_lookup" | "fixture";
2704
2704
  locator?: string | undefined;
2705
2705
  }[];
@@ -2708,13 +2708,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2708
2708
  recallReceiptId: string;
2709
2709
  staleDecisionAbsent: boolean;
2710
2710
  } | {
2711
- kind: "mission_completed";
2712
2711
  summary: string;
2712
+ kind: "mission_completed";
2713
2713
  outcome: "failed" | "recovered" | "inconclusive";
2714
2714
  evidence: {
2715
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2716
2715
  id: string;
2717
2716
  label: string;
2717
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2718
2718
  capture: "at_action" | "historical_lookup" | "fixture";
2719
2719
  locator?: string | undefined;
2720
2720
  }[];
@@ -2724,37 +2724,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2724
2724
  objective: string;
2725
2725
  runMode: "replay" | "fixture" | "live";
2726
2726
  evidence?: {
2727
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2728
2727
  id: string;
2729
2728
  label: string;
2729
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2730
2730
  capture: "at_action" | "historical_lookup" | "fixture";
2731
2731
  locator?: string | undefined;
2732
2732
  }[] | undefined;
2733
2733
  } | {
2734
- kind: "agent_status";
2734
+ label: string;
2735
2735
  status: "failed" | "complete" | "blocked" | "working" | "idle";
2736
+ kind: "agent_status";
2736
2737
  role: string;
2737
- label: string;
2738
2738
  agentId: string;
2739
2739
  sessionId: string;
2740
2740
  detail?: string | undefined;
2741
2741
  evidence?: {
2742
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2743
2742
  id: string;
2744
2743
  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;
2748
2748
  } | {
2749
- kind: "agent_output";
2750
2749
  summary: string;
2750
+ kind: "agent_output";
2751
2751
  agentId: string;
2752
2752
  sessionId: string;
2753
2753
  outputId: string;
2754
2754
  evidence?: {
2755
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2756
2755
  id: string;
2757
2756
  label: string;
2757
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2758
2758
  capture: "at_action" | "historical_lookup" | "fixture";
2759
2759
  locator?: string | undefined;
2760
2760
  }[] | undefined;
@@ -2767,37 +2767,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2767
2767
  decisionId: string;
2768
2768
  confidence?: number | undefined;
2769
2769
  evidence?: {
2770
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2771
2770
  id: string;
2772
2771
  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
- kind: "conflict_detected";
2778
2777
  summary: string;
2778
+ kind: "conflict_detected";
2779
2779
  conflictId: string;
2780
2780
  decisionIds: string[];
2781
2781
  agentIds: string[];
2782
2782
  evidence?: {
2783
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2784
2783
  id: string;
2785
2784
  label: string;
2785
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2786
2786
  capture: "at_action" | "historical_lookup" | "fixture";
2787
2787
  locator?: string | undefined;
2788
2788
  }[] | undefined;
2789
2789
  } | {
2790
- kind: "test_result";
2791
2790
  summary: string;
2792
2791
  status: "error" | "failed" | "passed";
2792
+ kind: "test_result";
2793
2793
  command: string;
2794
2794
  decisionId: string;
2795
2795
  testId: string;
2796
2796
  durationMs?: number | undefined;
2797
2797
  evidence?: {
2798
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2799
2798
  id: string;
2800
2799
  label: string;
2800
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2801
2801
  capture: "at_action" | "historical_lookup" | "fixture";
2802
2802
  locator?: string | undefined;
2803
2803
  }[] | undefined;
@@ -2812,9 +2812,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2812
2812
  supersedesDecisionIds: string[];
2813
2813
  proposedBy: string;
2814
2814
  evidence?: {
2815
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2816
2815
  id: string;
2817
2816
  label: string;
2817
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2818
2818
  capture: "at_action" | "historical_lookup" | "fixture";
2819
2819
  locator?: string | undefined;
2820
2820
  }[] | undefined;
@@ -2822,15 +2822,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2822
2822
  kind: "correction_approved";
2823
2823
  correctionId: string;
2824
2824
  approvedBy: {
2825
- kind: "agent" | "human";
2826
2825
  id: string;
2827
2826
  label: string;
2827
+ kind: "agent" | "human";
2828
2828
  };
2829
2829
  note?: string | undefined;
2830
2830
  evidence?: {
2831
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2832
2831
  id: string;
2833
2832
  label: string;
2833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2834
2834
  capture: "at_action" | "historical_lookup" | "fixture";
2835
2835
  locator?: string | undefined;
2836
2836
  }[] | undefined;
@@ -2840,9 +2840,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2840
2840
  correctionId: string;
2841
2841
  replacementDecisionId: string;
2842
2842
  evidence?: {
2843
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2844
2843
  id: string;
2845
2844
  label: string;
2845
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2846
2846
  capture: "at_action" | "historical_lookup" | "fixture";
2847
2847
  locator?: string | undefined;
2848
2848
  }[] | undefined;
@@ -2855,9 +2855,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2855
2855
  recallReceiptId: string;
2856
2856
  capturedAtAction: boolean;
2857
2857
  evidence?: {
2858
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2859
2858
  id: string;
2860
2859
  label: string;
2860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2861
2861
  capture: "at_action" | "historical_lookup" | "fixture";
2862
2862
  locator?: string | undefined;
2863
2863
  }[] | undefined;
@@ -2870,20 +2870,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2870
2870
  recallReceiptId: string;
2871
2871
  staleDecisionAbsent: boolean;
2872
2872
  evidence?: {
2873
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2874
2873
  id: string;
2875
2874
  label: string;
2875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2876
2876
  capture: "at_action" | "historical_lookup" | "fixture";
2877
2877
  locator?: string | undefined;
2878
2878
  }[] | undefined;
2879
2879
  } | {
2880
- kind: "mission_completed";
2881
2880
  summary: string;
2881
+ kind: "mission_completed";
2882
2882
  outcome: "failed" | "recovered" | "inconclusive";
2883
2883
  evidence?: {
2884
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2885
2884
  id: string;
2886
2885
  label: string;
2886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2887
2887
  capture: "at_action" | "historical_lookup" | "fixture";
2888
2888
  locator?: string | undefined;
2889
2889
  }[] | undefined;
@@ -2893,38 +2893,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2893
2893
  kind: "mission_started";
2894
2894
  title: string;
2895
2895
  evidence: {
2896
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2897
2896
  id: string;
2898
2897
  label: string;
2898
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2899
2899
  capture: "at_action" | "historical_lookup" | "fixture";
2900
2900
  locator?: string | undefined;
2901
2901
  }[];
2902
2902
  objective: string;
2903
2903
  runMode: "replay" | "fixture" | "live";
2904
2904
  } | {
2905
- kind: "agent_status";
2905
+ label: string;
2906
2906
  status: "failed" | "complete" | "blocked" | "working" | "idle";
2907
+ kind: "agent_status";
2907
2908
  role: string;
2908
- label: string;
2909
2909
  agentId: string;
2910
2910
  sessionId: string;
2911
2911
  evidence: {
2912
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2913
2912
  id: string;
2914
2913
  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
  }[];
2918
2918
  detail?: string | undefined;
2919
2919
  } | {
2920
- kind: "agent_output";
2921
2920
  summary: string;
2921
+ kind: "agent_output";
2922
2922
  agentId: string;
2923
2923
  sessionId: string;
2924
2924
  evidence: {
2925
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2926
2925
  id: string;
2927
2926
  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
  }[];
@@ -2935,9 +2935,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2935
2935
  statement: string;
2936
2936
  sessionId: string;
2937
2937
  evidence: {
2938
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2939
2938
  id: string;
2940
2939
  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,12 +2945,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2945
2945
  decisionId: string;
2946
2946
  confidence?: number | undefined;
2947
2947
  } | {
2948
- kind: "conflict_detected";
2949
2948
  summary: string;
2949
+ kind: "conflict_detected";
2950
2950
  evidence: {
2951
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2952
2951
  id: string;
2953
2952
  label: string;
2953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2954
2954
  capture: "at_action" | "historical_lookup" | "fixture";
2955
2955
  locator?: string | undefined;
2956
2956
  }[];
@@ -2958,14 +2958,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2958
2958
  decisionIds: string[];
2959
2959
  agentIds: string[];
2960
2960
  } | {
2961
- kind: "test_result";
2962
2961
  summary: string;
2963
2962
  status: "error" | "failed" | "passed";
2963
+ kind: "test_result";
2964
2964
  command: string;
2965
2965
  evidence: {
2966
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2967
2966
  id: string;
2968
2967
  label: string;
2968
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2969
2969
  capture: "at_action" | "historical_lookup" | "fixture";
2970
2970
  locator?: string | undefined;
2971
2971
  }[];
@@ -2978,9 +2978,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2978
2978
  rationale: string;
2979
2979
  statement: string;
2980
2980
  evidence: {
2981
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2982
2981
  id: string;
2983
2982
  label: string;
2983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2984
2984
  capture: "at_action" | "historical_lookup" | "fixture";
2985
2985
  locator?: string | undefined;
2986
2986
  }[];
@@ -2992,25 +2992,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2992
2992
  } | {
2993
2993
  kind: "correction_approved";
2994
2994
  evidence: {
2995
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2996
2995
  id: string;
2997
2996
  label: string;
2997
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2998
2998
  capture: "at_action" | "historical_lookup" | "fixture";
2999
2999
  locator?: string | undefined;
3000
3000
  }[];
3001
3001
  correctionId: string;
3002
3002
  approvedBy: {
3003
- kind: "agent" | "human";
3004
3003
  id: string;
3005
3004
  label: string;
3005
+ kind: "agent" | "human";
3006
3006
  };
3007
3007
  note?: string | undefined;
3008
3008
  } | {
3009
3009
  kind: "decision_superseded";
3010
3010
  evidence: {
3011
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3012
3011
  id: string;
3013
3012
  label: string;
3013
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3014
3014
  capture: "at_action" | "historical_lookup" | "fixture";
3015
3015
  locator?: string | undefined;
3016
3016
  }[];
@@ -3023,9 +3023,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3023
3023
  agentId: string;
3024
3024
  sessionId: string;
3025
3025
  evidence: {
3026
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3027
3026
  id: string;
3028
3027
  label: string;
3028
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3029
3029
  capture: "at_action" | "historical_lookup" | "fixture";
3030
3030
  locator?: string | undefined;
3031
3031
  }[];
@@ -3037,9 +3037,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3037
3037
  agentId: string;
3038
3038
  sessionId: string;
3039
3039
  evidence: {
3040
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3041
3040
  id: string;
3042
3041
  label: string;
3042
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3043
3043
  capture: "at_action" | "historical_lookup" | "fixture";
3044
3044
  locator?: string | undefined;
3045
3045
  }[];
@@ -3048,13 +3048,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3048
3048
  recallReceiptId: string;
3049
3049
  staleDecisionAbsent: boolean;
3050
3050
  } | {
3051
- kind: "mission_completed";
3052
3051
  summary: string;
3052
+ kind: "mission_completed";
3053
3053
  outcome: "failed" | "recovered" | "inconclusive";
3054
3054
  evidence: {
3055
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3056
3055
  id: string;
3057
3056
  label: string;
3057
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3058
3058
  capture: "at_action" | "historical_lookup" | "fixture";
3059
3059
  locator?: string | undefined;
3060
3060
  }[];
@@ -3068,37 +3068,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3068
3068
  objective: string;
3069
3069
  runMode: "replay" | "fixture" | "live";
3070
3070
  evidence?: {
3071
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3072
3071
  id: string;
3073
3072
  label: string;
3073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3074
3074
  capture: "at_action" | "historical_lookup" | "fixture";
3075
3075
  locator?: string | undefined;
3076
3076
  }[] | undefined;
3077
3077
  } | {
3078
- kind: "agent_status";
3078
+ label: string;
3079
3079
  status: "failed" | "complete" | "blocked" | "working" | "idle";
3080
+ kind: "agent_status";
3080
3081
  role: string;
3081
- label: string;
3082
3082
  agentId: string;
3083
3083
  sessionId: string;
3084
3084
  detail?: string | undefined;
3085
3085
  evidence?: {
3086
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3087
3086
  id: string;
3088
3087
  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;
3092
3092
  } | {
3093
- kind: "agent_output";
3094
3093
  summary: string;
3094
+ kind: "agent_output";
3095
3095
  agentId: string;
3096
3096
  sessionId: string;
3097
3097
  outputId: string;
3098
3098
  evidence?: {
3099
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3100
3099
  id: string;
3101
3100
  label: string;
3101
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3102
3102
  capture: "at_action" | "historical_lookup" | "fixture";
3103
3103
  locator?: string | undefined;
3104
3104
  }[] | undefined;
@@ -3111,37 +3111,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3111
3111
  decisionId: string;
3112
3112
  confidence?: number | undefined;
3113
3113
  evidence?: {
3114
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3115
3114
  id: string;
3116
3115
  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
- kind: "conflict_detected";
3122
3121
  summary: string;
3122
+ kind: "conflict_detected";
3123
3123
  conflictId: string;
3124
3124
  decisionIds: string[];
3125
3125
  agentIds: string[];
3126
3126
  evidence?: {
3127
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3128
3127
  id: string;
3129
3128
  label: string;
3129
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3130
3130
  capture: "at_action" | "historical_lookup" | "fixture";
3131
3131
  locator?: string | undefined;
3132
3132
  }[] | undefined;
3133
3133
  } | {
3134
- kind: "test_result";
3135
3134
  summary: string;
3136
3135
  status: "error" | "failed" | "passed";
3136
+ kind: "test_result";
3137
3137
  command: string;
3138
3138
  decisionId: string;
3139
3139
  testId: string;
3140
3140
  durationMs?: number | undefined;
3141
3141
  evidence?: {
3142
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3143
3142
  id: string;
3144
3143
  label: string;
3144
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3145
3145
  capture: "at_action" | "historical_lookup" | "fixture";
3146
3146
  locator?: string | undefined;
3147
3147
  }[] | undefined;
@@ -3156,9 +3156,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3156
3156
  supersedesDecisionIds: string[];
3157
3157
  proposedBy: string;
3158
3158
  evidence?: {
3159
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3160
3159
  id: string;
3161
3160
  label: string;
3161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3162
3162
  capture: "at_action" | "historical_lookup" | "fixture";
3163
3163
  locator?: string | undefined;
3164
3164
  }[] | undefined;
@@ -3166,15 +3166,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3166
3166
  kind: "correction_approved";
3167
3167
  correctionId: string;
3168
3168
  approvedBy: {
3169
- kind: "agent" | "human";
3170
3169
  id: string;
3171
3170
  label: string;
3171
+ kind: "agent" | "human";
3172
3172
  };
3173
3173
  note?: string | undefined;
3174
3174
  evidence?: {
3175
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3176
3175
  id: string;
3177
3176
  label: string;
3177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3178
3178
  capture: "at_action" | "historical_lookup" | "fixture";
3179
3179
  locator?: string | undefined;
3180
3180
  }[] | undefined;
@@ -3184,9 +3184,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3184
3184
  correctionId: string;
3185
3185
  replacementDecisionId: string;
3186
3186
  evidence?: {
3187
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3188
3187
  id: string;
3189
3188
  label: string;
3189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3190
3190
  capture: "at_action" | "historical_lookup" | "fixture";
3191
3191
  locator?: string | undefined;
3192
3192
  }[] | undefined;
@@ -3199,9 +3199,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3199
3199
  recallReceiptId: string;
3200
3200
  capturedAtAction: boolean;
3201
3201
  evidence?: {
3202
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3203
3202
  id: string;
3204
3203
  label: string;
3204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3205
3205
  capture: "at_action" | "historical_lookup" | "fixture";
3206
3206
  locator?: string | undefined;
3207
3207
  }[] | undefined;
@@ -3214,20 +3214,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3214
3214
  recallReceiptId: string;
3215
3215
  staleDecisionAbsent: boolean;
3216
3216
  evidence?: {
3217
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3218
3217
  id: string;
3219
3218
  label: string;
3219
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3220
3220
  capture: "at_action" | "historical_lookup" | "fixture";
3221
3221
  locator?: string | undefined;
3222
3222
  }[] | undefined;
3223
3223
  } | {
3224
- kind: "mission_completed";
3225
3224
  summary: string;
3225
+ kind: "mission_completed";
3226
3226
  outcome: "failed" | "recovered" | "inconclusive";
3227
3227
  evidence?: {
3228
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3229
3228
  id: string;
3230
3229
  label: string;
3230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3231
3231
  capture: "at_action" | "historical_lookup" | "fixture";
3232
3232
  locator?: string | undefined;
3233
3233
  }[] | undefined;
@@ -3257,15 +3257,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3257
3257
  locator: z.ZodOptional<z.ZodString>;
3258
3258
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3259
3259
  }, "strict", z.ZodTypeAny, {
3260
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3261
3260
  id: string;
3262
3261
  label: string;
3262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3263
3263
  capture: "at_action" | "historical_lookup" | "fixture";
3264
3264
  locator?: string | undefined;
3265
3265
  }, {
3266
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3267
3266
  id: string;
3268
3267
  label: string;
3268
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3269
3269
  capture: "at_action" | "historical_lookup" | "fixture";
3270
3270
  locator?: string | undefined;
3271
3271
  }>, "many">>;
@@ -3273,9 +3273,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3273
3273
  kind: "mission_started";
3274
3274
  title: string;
3275
3275
  evidence: {
3276
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3277
3276
  id: string;
3278
3277
  label: string;
3278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3279
3279
  capture: "at_action" | "historical_lookup" | "fixture";
3280
3280
  locator?: string | undefined;
3281
3281
  }[];
@@ -3287,9 +3287,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3287
3287
  objective: string;
3288
3288
  runMode: "replay" | "fixture" | "live";
3289
3289
  evidence?: {
3290
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3291
3290
  id: string;
3292
3291
  label: string;
3292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3293
3293
  capture: "at_action" | "historical_lookup" | "fixture";
3294
3294
  locator?: string | undefined;
3295
3295
  }[] | undefined;
@@ -3305,15 +3305,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3305
3305
  locator: z.ZodOptional<z.ZodString>;
3306
3306
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3307
3307
  }, "strict", z.ZodTypeAny, {
3308
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3309
3308
  id: string;
3310
3309
  label: string;
3310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
3311
  capture: "at_action" | "historical_lookup" | "fixture";
3312
3312
  locator?: string | undefined;
3313
3313
  }, {
3314
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3315
3314
  id: string;
3316
3315
  label: string;
3316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3317
3317
  capture: "at_action" | "historical_lookup" | "fixture";
3318
3318
  locator?: string | undefined;
3319
3319
  }>, "many">>;
@@ -3321,32 +3321,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3321
3321
  sessionId: z.ZodString;
3322
3322
  kind: z.ZodLiteral<"agent_status">;
3323
3323
  }, "strict", z.ZodTypeAny, {
3324
- kind: "agent_status";
3324
+ label: string;
3325
3325
  status: "failed" | "complete" | "blocked" | "working" | "idle";
3326
+ kind: "agent_status";
3326
3327
  role: string;
3327
- label: string;
3328
3328
  agentId: string;
3329
3329
  sessionId: string;
3330
3330
  evidence: {
3331
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3332
3331
  id: string;
3333
3332
  label: string;
3333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3334
3334
  capture: "at_action" | "historical_lookup" | "fixture";
3335
3335
  locator?: string | undefined;
3336
3336
  }[];
3337
3337
  detail?: string | undefined;
3338
3338
  }, {
3339
- kind: "agent_status";
3339
+ label: string;
3340
3340
  status: "failed" | "complete" | "blocked" | "working" | "idle";
3341
+ kind: "agent_status";
3341
3342
  role: string;
3342
- label: string;
3343
3343
  agentId: string;
3344
3344
  sessionId: string;
3345
3345
  detail?: string | undefined;
3346
3346
  evidence?: {
3347
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3348
3347
  id: string;
3349
3348
  label: string;
3349
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3350
3350
  capture: "at_action" | "historical_lookup" | "fixture";
3351
3351
  locator?: string | undefined;
3352
3352
  }[] | undefined;
@@ -3360,15 +3360,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3360
3360
  locator: z.ZodOptional<z.ZodString>;
3361
3361
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3362
3362
  }, "strict", z.ZodTypeAny, {
3363
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3364
3363
  id: string;
3365
3364
  label: string;
3365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3366
3366
  capture: "at_action" | "historical_lookup" | "fixture";
3367
3367
  locator?: string | undefined;
3368
3368
  }, {
3369
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3370
3369
  id: string;
3371
3370
  label: string;
3371
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3372
3372
  capture: "at_action" | "historical_lookup" | "fixture";
3373
3373
  locator?: string | undefined;
3374
3374
  }>, "many">>;
@@ -3376,28 +3376,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3376
3376
  sessionId: z.ZodString;
3377
3377
  kind: z.ZodLiteral<"agent_output">;
3378
3378
  }, "strict", z.ZodTypeAny, {
3379
- kind: "agent_output";
3380
3379
  summary: string;
3380
+ kind: "agent_output";
3381
3381
  agentId: string;
3382
3382
  sessionId: string;
3383
3383
  evidence: {
3384
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3385
3384
  id: string;
3386
3385
  label: string;
3386
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3387
3387
  capture: "at_action" | "historical_lookup" | "fixture";
3388
3388
  locator?: string | undefined;
3389
3389
  }[];
3390
3390
  outputId: string;
3391
3391
  }, {
3392
- kind: "agent_output";
3393
3392
  summary: string;
3393
+ kind: "agent_output";
3394
3394
  agentId: string;
3395
3395
  sessionId: string;
3396
3396
  outputId: string;
3397
3397
  evidence?: {
3398
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3399
3398
  id: string;
3400
3399
  label: string;
3400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3401
3401
  capture: "at_action" | "historical_lookup" | "fixture";
3402
3402
  locator?: string | undefined;
3403
3403
  }[] | undefined;
@@ -3413,15 +3413,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3413
3413
  locator: z.ZodOptional<z.ZodString>;
3414
3414
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3415
3415
  }, "strict", z.ZodTypeAny, {
3416
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3417
3416
  id: string;
3418
3417
  label: string;
3418
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3419
3419
  capture: "at_action" | "historical_lookup" | "fixture";
3420
3420
  locator?: string | undefined;
3421
3421
  }, {
3422
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3423
3422
  id: string;
3424
3423
  label: string;
3424
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3425
3425
  capture: "at_action" | "historical_lookup" | "fixture";
3426
3426
  locator?: string | undefined;
3427
3427
  }>, "many">>;
@@ -3434,9 +3434,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3434
3434
  statement: string;
3435
3435
  sessionId: string;
3436
3436
  evidence: {
3437
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3438
3437
  id: string;
3439
3438
  label: string;
3439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3440
3440
  capture: "at_action" | "historical_lookup" | "fixture";
3441
3441
  locator?: string | undefined;
3442
3442
  }[];
@@ -3452,9 +3452,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3452
3452
  decisionId: string;
3453
3453
  confidence?: number | undefined;
3454
3454
  evidence?: {
3455
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3456
3455
  id: string;
3457
3456
  label: string;
3457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3458
3458
  capture: "at_action" | "historical_lookup" | "fixture";
3459
3459
  locator?: string | undefined;
3460
3460
  }[] | undefined;
@@ -3471,25 +3471,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3471
3471
  locator: z.ZodOptional<z.ZodString>;
3472
3472
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3473
3473
  }, "strict", z.ZodTypeAny, {
3474
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3475
3474
  id: string;
3476
3475
  label: string;
3476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
3477
  capture: "at_action" | "historical_lookup" | "fixture";
3478
3478
  locator?: string | undefined;
3479
3479
  }, {
3480
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3481
3480
  id: string;
3482
3481
  label: string;
3482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3483
3483
  capture: "at_action" | "historical_lookup" | "fixture";
3484
3484
  locator?: string | undefined;
3485
3485
  }>, "many">>;
3486
3486
  }, "strict", z.ZodTypeAny, {
3487
- kind: "conflict_detected";
3488
3487
  summary: string;
3488
+ kind: "conflict_detected";
3489
3489
  evidence: {
3490
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3491
3490
  id: string;
3492
3491
  label: string;
3492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3493
3493
  capture: "at_action" | "historical_lookup" | "fixture";
3494
3494
  locator?: string | undefined;
3495
3495
  }[];
@@ -3497,15 +3497,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3497
3497
  decisionIds: string[];
3498
3498
  agentIds: string[];
3499
3499
  }, {
3500
- kind: "conflict_detected";
3501
3500
  summary: string;
3501
+ kind: "conflict_detected";
3502
3502
  conflictId: string;
3503
3503
  decisionIds: string[];
3504
3504
  agentIds: string[];
3505
3505
  evidence?: {
3506
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3507
3506
  id: string;
3508
3507
  label: string;
3508
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3509
3509
  capture: "at_action" | "historical_lookup" | "fixture";
3510
3510
  locator?: string | undefined;
3511
3511
  }[] | undefined;
@@ -3525,27 +3525,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3525
3525
  locator: z.ZodOptional<z.ZodString>;
3526
3526
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3527
3527
  }, "strict", z.ZodTypeAny, {
3528
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3529
3528
  id: string;
3530
3529
  label: string;
3530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3531
3531
  capture: "at_action" | "historical_lookup" | "fixture";
3532
3532
  locator?: string | undefined;
3533
3533
  }, {
3534
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3535
3534
  id: string;
3536
3535
  label: string;
3536
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3537
3537
  capture: "at_action" | "historical_lookup" | "fixture";
3538
3538
  locator?: string | undefined;
3539
3539
  }>, "many">>;
3540
3540
  }, "strict", z.ZodTypeAny, {
3541
- kind: "test_result";
3542
3541
  summary: string;
3543
3542
  status: "error" | "failed" | "passed";
3543
+ kind: "test_result";
3544
3544
  command: string;
3545
3545
  evidence: {
3546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3547
3546
  id: string;
3548
3547
  label: string;
3548
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3549
3549
  capture: "at_action" | "historical_lookup" | "fixture";
3550
3550
  locator?: string | undefined;
3551
3551
  }[];
@@ -3554,17 +3554,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3554
3554
  durationMs?: number | undefined;
3555
3555
  correctionId?: string | undefined;
3556
3556
  }, {
3557
- kind: "test_result";
3558
3557
  summary: string;
3559
3558
  status: "error" | "failed" | "passed";
3559
+ kind: "test_result";
3560
3560
  command: string;
3561
3561
  decisionId: string;
3562
3562
  testId: string;
3563
3563
  durationMs?: number | undefined;
3564
3564
  evidence?: {
3565
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3566
3565
  id: string;
3567
3566
  label: string;
3567
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3568
3568
  capture: "at_action" | "historical_lookup" | "fixture";
3569
3569
  locator?: string | undefined;
3570
3570
  }[] | undefined;
@@ -3585,15 +3585,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3585
3585
  locator: z.ZodOptional<z.ZodString>;
3586
3586
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3587
3587
  }, "strict", z.ZodTypeAny, {
3588
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3589
3588
  id: string;
3590
3589
  label: string;
3590
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3591
3591
  capture: "at_action" | "historical_lookup" | "fixture";
3592
3592
  locator?: string | undefined;
3593
3593
  }, {
3594
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3595
3594
  id: string;
3596
3595
  label: string;
3596
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3597
3597
  capture: "at_action" | "historical_lookup" | "fixture";
3598
3598
  locator?: string | undefined;
3599
3599
  }>, "many">>;
@@ -3602,9 +3602,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3602
3602
  rationale: string;
3603
3603
  statement: string;
3604
3604
  evidence: {
3605
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3606
3605
  id: string;
3607
3606
  label: string;
3607
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3608
3608
  capture: "at_action" | "historical_lookup" | "fixture";
3609
3609
  locator?: string | undefined;
3610
3610
  }[];
@@ -3623,9 +3623,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3623
3623
  supersedesDecisionIds: string[];
3624
3624
  proposedBy: string;
3625
3625
  evidence?: {
3626
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3627
3626
  id: string;
3628
3627
  label: string;
3628
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3629
3629
  capture: "at_action" | "historical_lookup" | "fixture";
3630
3630
  locator?: string | undefined;
3631
3631
  }[] | undefined;
@@ -3637,13 +3637,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3637
3637
  id: z.ZodString;
3638
3638
  label: z.ZodString;
3639
3639
  }, "strict", z.ZodTypeAny, {
3640
- kind: "agent" | "human";
3641
3640
  id: string;
3642
3641
  label: string;
3643
- }, {
3644
3642
  kind: "agent" | "human";
3643
+ }, {
3645
3644
  id: string;
3646
3645
  label: string;
3646
+ kind: "agent" | "human";
3647
3647
  }>;
3648
3648
  note: z.ZodOptional<z.ZodString>;
3649
3649
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3653,47 +3653,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3653
3653
  locator: z.ZodOptional<z.ZodString>;
3654
3654
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3655
3655
  }, "strict", z.ZodTypeAny, {
3656
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3657
3656
  id: string;
3658
3657
  label: string;
3658
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3659
3659
  capture: "at_action" | "historical_lookup" | "fixture";
3660
3660
  locator?: string | undefined;
3661
3661
  }, {
3662
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3663
3662
  id: string;
3664
3663
  label: string;
3664
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3665
3665
  capture: "at_action" | "historical_lookup" | "fixture";
3666
3666
  locator?: string | undefined;
3667
3667
  }>, "many">>;
3668
3668
  }, "strict", z.ZodTypeAny, {
3669
3669
  kind: "correction_approved";
3670
3670
  evidence: {
3671
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3672
3671
  id: string;
3673
3672
  label: string;
3673
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
3674
  capture: "at_action" | "historical_lookup" | "fixture";
3675
3675
  locator?: string | undefined;
3676
3676
  }[];
3677
3677
  correctionId: string;
3678
3678
  approvedBy: {
3679
- kind: "agent" | "human";
3680
3679
  id: string;
3681
3680
  label: string;
3681
+ kind: "agent" | "human";
3682
3682
  };
3683
3683
  note?: string | undefined;
3684
3684
  }, {
3685
3685
  kind: "correction_approved";
3686
3686
  correctionId: string;
3687
3687
  approvedBy: {
3688
- kind: "agent" | "human";
3689
3688
  id: string;
3690
3689
  label: string;
3690
+ kind: "agent" | "human";
3691
3691
  };
3692
3692
  note?: string | undefined;
3693
3693
  evidence?: {
3694
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3695
3694
  id: string;
3696
3695
  label: string;
3696
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3697
3697
  capture: "at_action" | "historical_lookup" | "fixture";
3698
3698
  locator?: string | undefined;
3699
3699
  }[] | undefined;
@@ -3709,24 +3709,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3709
3709
  locator: z.ZodOptional<z.ZodString>;
3710
3710
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3711
3711
  }, "strict", z.ZodTypeAny, {
3712
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3713
3712
  id: string;
3714
3713
  label: string;
3714
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3715
3715
  capture: "at_action" | "historical_lookup" | "fixture";
3716
3716
  locator?: string | undefined;
3717
3717
  }, {
3718
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3719
3718
  id: string;
3720
3719
  label: string;
3720
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3721
3721
  capture: "at_action" | "historical_lookup" | "fixture";
3722
3722
  locator?: string | undefined;
3723
3723
  }>, "many">>;
3724
3724
  }, "strict", z.ZodTypeAny, {
3725
3725
  kind: "decision_superseded";
3726
3726
  evidence: {
3727
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3728
3727
  id: string;
3729
3728
  label: string;
3729
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3730
3730
  capture: "at_action" | "historical_lookup" | "fixture";
3731
3731
  locator?: string | undefined;
3732
3732
  }[];
@@ -3739,9 +3739,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3739
3739
  correctionId: string;
3740
3740
  replacementDecisionId: string;
3741
3741
  evidence?: {
3742
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3743
3742
  id: string;
3744
3743
  label: string;
3744
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3745
3745
  capture: "at_action" | "historical_lookup" | "fixture";
3746
3746
  locator?: string | undefined;
3747
3747
  }[] | undefined;
@@ -3757,15 +3757,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3757
3757
  locator: z.ZodOptional<z.ZodString>;
3758
3758
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3759
3759
  }, "strict", z.ZodTypeAny, {
3760
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3761
3760
  id: string;
3762
3761
  label: string;
3762
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3763
3763
  capture: "at_action" | "historical_lookup" | "fixture";
3764
3764
  locator?: string | undefined;
3765
3765
  }, {
3766
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3767
3766
  id: string;
3768
3767
  label: string;
3768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3769
3769
  capture: "at_action" | "historical_lookup" | "fixture";
3770
3770
  locator?: string | undefined;
3771
3771
  }>, "many">>;
@@ -3778,9 +3778,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3778
3778
  agentId: string;
3779
3779
  sessionId: string;
3780
3780
  evidence: {
3781
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3782
3781
  id: string;
3783
3782
  label: string;
3783
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3784
3784
  capture: "at_action" | "historical_lookup" | "fixture";
3785
3785
  locator?: string | undefined;
3786
3786
  }[];
@@ -3796,9 +3796,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3796
3796
  recallReceiptId: string;
3797
3797
  capturedAtAction: boolean;
3798
3798
  evidence?: {
3799
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3800
3799
  id: string;
3801
3800
  label: string;
3801
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3802
3802
  capture: "at_action" | "historical_lookup" | "fixture";
3803
3803
  locator?: string | undefined;
3804
3804
  }[] | undefined;
@@ -3814,15 +3814,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3814
3814
  locator: z.ZodOptional<z.ZodString>;
3815
3815
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3816
3816
  }, "strict", z.ZodTypeAny, {
3817
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3818
3817
  id: string;
3819
3818
  label: string;
3819
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3820
3820
  capture: "at_action" | "historical_lookup" | "fixture";
3821
3821
  locator?: string | undefined;
3822
3822
  }, {
3823
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3824
3823
  id: string;
3825
3824
  label: string;
3825
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3826
3826
  capture: "at_action" | "historical_lookup" | "fixture";
3827
3827
  locator?: string | undefined;
3828
3828
  }>, "many">>;
@@ -3834,9 +3834,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3834
3834
  agentId: string;
3835
3835
  sessionId: string;
3836
3836
  evidence: {
3837
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3838
3837
  id: string;
3839
3838
  label: string;
3839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3840
3840
  capture: "at_action" | "historical_lookup" | "fixture";
3841
3841
  locator?: string | undefined;
3842
3842
  }[];
@@ -3853,9 +3853,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3853
3853
  recallReceiptId: string;
3854
3854
  staleDecisionAbsent: boolean;
3855
3855
  evidence?: {
3856
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3857
3856
  id: string;
3858
3857
  label: string;
3858
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3859
3859
  capture: "at_action" | "historical_lookup" | "fixture";
3860
3860
  locator?: string | undefined;
3861
3861
  }[] | undefined;
@@ -3870,37 +3870,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3870
3870
  locator: z.ZodOptional<z.ZodString>;
3871
3871
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3872
3872
  }, "strict", z.ZodTypeAny, {
3873
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3874
3873
  id: string;
3875
3874
  label: string;
3875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3876
3876
  capture: "at_action" | "historical_lookup" | "fixture";
3877
3877
  locator?: string | undefined;
3878
3878
  }, {
3879
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3880
3879
  id: string;
3881
3880
  label: string;
3881
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3882
3882
  capture: "at_action" | "historical_lookup" | "fixture";
3883
3883
  locator?: string | undefined;
3884
3884
  }>, "many">>;
3885
3885
  }, "strict", z.ZodTypeAny, {
3886
- kind: "mission_completed";
3887
3886
  summary: string;
3887
+ kind: "mission_completed";
3888
3888
  outcome: "failed" | "recovered" | "inconclusive";
3889
3889
  evidence: {
3890
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3891
3890
  id: string;
3892
3891
  label: string;
3892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3893
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3894
3894
  locator?: string | undefined;
3895
3895
  }[];
3896
3896
  }, {
3897
- kind: "mission_completed";
3898
3897
  summary: string;
3898
+ kind: "mission_completed";
3899
3899
  outcome: "failed" | "recovered" | "inconclusive";
3900
3900
  evidence?: {
3901
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3902
3901
  id: string;
3903
3902
  label: string;
3903
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3904
3904
  capture: "at_action" | "historical_lookup" | "fixture";
3905
3905
  locator?: string | undefined;
3906
3906
  }[] | undefined;
@@ -3908,38 +3908,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3908
3908
  kind: "mission_started";
3909
3909
  title: string;
3910
3910
  evidence: {
3911
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3912
3911
  id: string;
3913
3912
  label: string;
3913
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3914
3914
  capture: "at_action" | "historical_lookup" | "fixture";
3915
3915
  locator?: string | undefined;
3916
3916
  }[];
3917
3917
  objective: string;
3918
3918
  runMode: "replay" | "fixture" | "live";
3919
3919
  } | {
3920
- kind: "agent_status";
3920
+ label: string;
3921
3921
  status: "failed" | "complete" | "blocked" | "working" | "idle";
3922
+ kind: "agent_status";
3922
3923
  role: string;
3923
- label: string;
3924
3924
  agentId: string;
3925
3925
  sessionId: string;
3926
3926
  evidence: {
3927
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3928
3927
  id: string;
3929
3928
  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
  }[];
3933
3933
  detail?: string | undefined;
3934
3934
  } | {
3935
- kind: "agent_output";
3936
3935
  summary: string;
3936
+ kind: "agent_output";
3937
3937
  agentId: string;
3938
3938
  sessionId: string;
3939
3939
  evidence: {
3940
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3941
3940
  id: string;
3942
3941
  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
  }[];
@@ -3950,9 +3950,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3950
3950
  statement: string;
3951
3951
  sessionId: string;
3952
3952
  evidence: {
3953
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3954
3953
  id: string;
3955
3954
  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,12 +3960,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3960
3960
  decisionId: string;
3961
3961
  confidence?: number | undefined;
3962
3962
  } | {
3963
- kind: "conflict_detected";
3964
3963
  summary: string;
3964
+ kind: "conflict_detected";
3965
3965
  evidence: {
3966
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3967
3966
  id: string;
3968
3967
  label: string;
3968
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3969
3969
  capture: "at_action" | "historical_lookup" | "fixture";
3970
3970
  locator?: string | undefined;
3971
3971
  }[];
@@ -3973,14 +3973,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3973
3973
  decisionIds: string[];
3974
3974
  agentIds: string[];
3975
3975
  } | {
3976
- kind: "test_result";
3977
3976
  summary: string;
3978
3977
  status: "error" | "failed" | "passed";
3978
+ kind: "test_result";
3979
3979
  command: string;
3980
3980
  evidence: {
3981
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3982
3981
  id: string;
3983
3982
  label: string;
3983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3984
3984
  capture: "at_action" | "historical_lookup" | "fixture";
3985
3985
  locator?: string | undefined;
3986
3986
  }[];
@@ -3993,9 +3993,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3993
3993
  rationale: string;
3994
3994
  statement: string;
3995
3995
  evidence: {
3996
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3997
3996
  id: string;
3998
3997
  label: string;
3998
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3999
3999
  capture: "at_action" | "historical_lookup" | "fixture";
4000
4000
  locator?: string | undefined;
4001
4001
  }[];
@@ -4007,25 +4007,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4007
4007
  } | {
4008
4008
  kind: "correction_approved";
4009
4009
  evidence: {
4010
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4011
4010
  id: string;
4012
4011
  label: string;
4012
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4013
4013
  capture: "at_action" | "historical_lookup" | "fixture";
4014
4014
  locator?: string | undefined;
4015
4015
  }[];
4016
4016
  correctionId: string;
4017
4017
  approvedBy: {
4018
- kind: "agent" | "human";
4019
4018
  id: string;
4020
4019
  label: string;
4020
+ kind: "agent" | "human";
4021
4021
  };
4022
4022
  note?: string | undefined;
4023
4023
  } | {
4024
4024
  kind: "decision_superseded";
4025
4025
  evidence: {
4026
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4027
4026
  id: string;
4028
4027
  label: string;
4028
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4029
4029
  capture: "at_action" | "historical_lookup" | "fixture";
4030
4030
  locator?: string | undefined;
4031
4031
  }[];
@@ -4038,9 +4038,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4038
4038
  agentId: string;
4039
4039
  sessionId: string;
4040
4040
  evidence: {
4041
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4042
4041
  id: string;
4043
4042
  label: string;
4043
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4044
4044
  capture: "at_action" | "historical_lookup" | "fixture";
4045
4045
  locator?: string | undefined;
4046
4046
  }[];
@@ -4052,9 +4052,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4052
4052
  agentId: string;
4053
4053
  sessionId: string;
4054
4054
  evidence: {
4055
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4056
4055
  id: string;
4057
4056
  label: string;
4057
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4058
4058
  capture: "at_action" | "historical_lookup" | "fixture";
4059
4059
  locator?: string | undefined;
4060
4060
  }[];
@@ -4063,13 +4063,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4063
4063
  recallReceiptId: string;
4064
4064
  staleDecisionAbsent: boolean;
4065
4065
  } | {
4066
- kind: "mission_completed";
4067
4066
  summary: string;
4067
+ kind: "mission_completed";
4068
4068
  outcome: "failed" | "recovered" | "inconclusive";
4069
4069
  evidence: {
4070
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4071
4070
  id: string;
4072
4071
  label: string;
4072
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4073
4073
  capture: "at_action" | "historical_lookup" | "fixture";
4074
4074
  locator?: string | undefined;
4075
4075
  }[];
@@ -4079,37 +4079,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4079
4079
  objective: string;
4080
4080
  runMode: "replay" | "fixture" | "live";
4081
4081
  evidence?: {
4082
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4083
4082
  id: string;
4084
4083
  label: string;
4084
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4085
4085
  capture: "at_action" | "historical_lookup" | "fixture";
4086
4086
  locator?: string | undefined;
4087
4087
  }[] | undefined;
4088
4088
  } | {
4089
- kind: "agent_status";
4089
+ label: string;
4090
4090
  status: "failed" | "complete" | "blocked" | "working" | "idle";
4091
+ kind: "agent_status";
4091
4092
  role: string;
4092
- label: string;
4093
4093
  agentId: string;
4094
4094
  sessionId: string;
4095
4095
  detail?: string | undefined;
4096
4096
  evidence?: {
4097
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4098
4097
  id: string;
4099
4098
  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;
4103
4103
  } | {
4104
- kind: "agent_output";
4105
4104
  summary: string;
4105
+ kind: "agent_output";
4106
4106
  agentId: string;
4107
4107
  sessionId: string;
4108
4108
  outputId: string;
4109
4109
  evidence?: {
4110
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4111
4110
  id: string;
4112
4111
  label: string;
4112
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4113
4113
  capture: "at_action" | "historical_lookup" | "fixture";
4114
4114
  locator?: string | undefined;
4115
4115
  }[] | undefined;
@@ -4122,37 +4122,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4122
4122
  decisionId: string;
4123
4123
  confidence?: number | undefined;
4124
4124
  evidence?: {
4125
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4126
4125
  id: string;
4127
4126
  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
- kind: "conflict_detected";
4133
4132
  summary: string;
4133
+ kind: "conflict_detected";
4134
4134
  conflictId: string;
4135
4135
  decisionIds: string[];
4136
4136
  agentIds: string[];
4137
4137
  evidence?: {
4138
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4139
4138
  id: string;
4140
4139
  label: string;
4140
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4141
4141
  capture: "at_action" | "historical_lookup" | "fixture";
4142
4142
  locator?: string | undefined;
4143
4143
  }[] | undefined;
4144
4144
  } | {
4145
- kind: "test_result";
4146
4145
  summary: string;
4147
4146
  status: "error" | "failed" | "passed";
4147
+ kind: "test_result";
4148
4148
  command: string;
4149
4149
  decisionId: string;
4150
4150
  testId: string;
4151
4151
  durationMs?: number | undefined;
4152
4152
  evidence?: {
4153
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4154
4153
  id: string;
4155
4154
  label: string;
4155
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4156
4156
  capture: "at_action" | "historical_lookup" | "fixture";
4157
4157
  locator?: string | undefined;
4158
4158
  }[] | undefined;
@@ -4167,9 +4167,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4167
4167
  supersedesDecisionIds: string[];
4168
4168
  proposedBy: string;
4169
4169
  evidence?: {
4170
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4171
4170
  id: string;
4172
4171
  label: string;
4172
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4173
4173
  capture: "at_action" | "historical_lookup" | "fixture";
4174
4174
  locator?: string | undefined;
4175
4175
  }[] | undefined;
@@ -4177,15 +4177,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4177
4177
  kind: "correction_approved";
4178
4178
  correctionId: string;
4179
4179
  approvedBy: {
4180
- kind: "agent" | "human";
4181
4180
  id: string;
4182
4181
  label: string;
4182
+ kind: "agent" | "human";
4183
4183
  };
4184
4184
  note?: string | undefined;
4185
4185
  evidence?: {
4186
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4187
4186
  id: string;
4188
4187
  label: string;
4188
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4189
4189
  capture: "at_action" | "historical_lookup" | "fixture";
4190
4190
  locator?: string | undefined;
4191
4191
  }[] | undefined;
@@ -4195,9 +4195,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4195
4195
  correctionId: string;
4196
4196
  replacementDecisionId: string;
4197
4197
  evidence?: {
4198
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4199
4198
  id: string;
4200
4199
  label: string;
4200
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4201
4201
  capture: "at_action" | "historical_lookup" | "fixture";
4202
4202
  locator?: string | undefined;
4203
4203
  }[] | undefined;
@@ -4210,9 +4210,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4210
4210
  recallReceiptId: string;
4211
4211
  capturedAtAction: boolean;
4212
4212
  evidence?: {
4213
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4214
4213
  id: string;
4215
4214
  label: string;
4215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4216
4216
  capture: "at_action" | "historical_lookup" | "fixture";
4217
4217
  locator?: string | undefined;
4218
4218
  }[] | undefined;
@@ -4225,63 +4225,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4225
4225
  recallReceiptId: string;
4226
4226
  staleDecisionAbsent: boolean;
4227
4227
  evidence?: {
4228
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4229
4228
  id: string;
4230
4229
  label: string;
4230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4231
4231
  capture: "at_action" | "historical_lookup" | "fixture";
4232
4232
  locator?: string | undefined;
4233
4233
  }[] | undefined;
4234
4234
  } | {
4235
- kind: "mission_completed";
4236
4235
  summary: string;
4236
+ kind: "mission_completed";
4237
4237
  outcome: "failed" | "recovered" | "inconclusive";
4238
4238
  evidence?: {
4239
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4240
4239
  id: string;
4241
4240
  label: string;
4241
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4242
4242
  capture: "at_action" | "historical_lookup" | "fixture";
4243
4243
  locator?: string | undefined;
4244
4244
  }[] | undefined;
4245
4245
  }>;
4246
4246
  }, "strict", z.ZodTypeAny, {
4247
- schemaVersion: "1";
4247
+ namespace: string;
4248
4248
  recordedAt: string;
4249
+ schemaVersion: "1";
4249
4250
  payload: {
4250
4251
  kind: "mission_started";
4251
4252
  title: string;
4252
4253
  evidence: {
4253
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4254
4254
  id: string;
4255
4255
  label: string;
4256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4256
4257
  capture: "at_action" | "historical_lookup" | "fixture";
4257
4258
  locator?: string | undefined;
4258
4259
  }[];
4259
4260
  objective: string;
4260
4261
  runMode: "replay" | "fixture" | "live";
4261
4262
  } | {
4262
- kind: "agent_status";
4263
+ label: string;
4263
4264
  status: "failed" | "complete" | "blocked" | "working" | "idle";
4265
+ kind: "agent_status";
4264
4266
  role: string;
4265
- label: string;
4266
4267
  agentId: string;
4267
4268
  sessionId: string;
4268
4269
  evidence: {
4269
- kind: "source" | "correction" | "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";
4272
4273
  capture: "at_action" | "historical_lookup" | "fixture";
4273
4274
  locator?: string | undefined;
4274
4275
  }[];
4275
4276
  detail?: string | undefined;
4276
4277
  } | {
4277
- kind: "agent_output";
4278
4278
  summary: string;
4279
+ kind: "agent_output";
4279
4280
  agentId: string;
4280
4281
  sessionId: string;
4281
4282
  evidence: {
4282
- kind: "source" | "correction" | "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";
4285
4286
  capture: "at_action" | "historical_lookup" | "fixture";
4286
4287
  locator?: string | undefined;
4287
4288
  }[];
@@ -4292,9 +4293,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4292
4293
  statement: string;
4293
4294
  sessionId: string;
4294
4295
  evidence: {
4295
- kind: "source" | "correction" | "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";
4298
4299
  capture: "at_action" | "historical_lookup" | "fixture";
4299
4300
  locator?: string | undefined;
4300
4301
  }[];
@@ -4302,12 +4303,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4302
4303
  decisionId: string;
4303
4304
  confidence?: number | undefined;
4304
4305
  } | {
4305
- kind: "conflict_detected";
4306
4306
  summary: string;
4307
+ kind: "conflict_detected";
4307
4308
  evidence: {
4308
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4309
  id: string;
4310
4310
  label: string;
4311
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4311
4312
  capture: "at_action" | "historical_lookup" | "fixture";
4312
4313
  locator?: string | undefined;
4313
4314
  }[];
@@ -4315,14 +4316,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4315
4316
  decisionIds: string[];
4316
4317
  agentIds: string[];
4317
4318
  } | {
4318
- kind: "test_result";
4319
4319
  summary: string;
4320
4320
  status: "error" | "failed" | "passed";
4321
+ kind: "test_result";
4321
4322
  command: string;
4322
4323
  evidence: {
4323
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4324
4324
  id: string;
4325
4325
  label: string;
4326
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4326
4327
  capture: "at_action" | "historical_lookup" | "fixture";
4327
4328
  locator?: string | undefined;
4328
4329
  }[];
@@ -4335,9 +4336,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4335
4336
  rationale: string;
4336
4337
  statement: string;
4337
4338
  evidence: {
4338
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4339
4339
  id: string;
4340
4340
  label: string;
4341
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4341
4342
  capture: "at_action" | "historical_lookup" | "fixture";
4342
4343
  locator?: string | undefined;
4343
4344
  }[];
@@ -4349,25 +4350,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4349
4350
  } | {
4350
4351
  kind: "correction_approved";
4351
4352
  evidence: {
4352
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4353
4353
  id: string;
4354
4354
  label: string;
4355
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4355
4356
  capture: "at_action" | "historical_lookup" | "fixture";
4356
4357
  locator?: string | undefined;
4357
4358
  }[];
4358
4359
  correctionId: string;
4359
4360
  approvedBy: {
4360
- kind: "agent" | "human";
4361
4361
  id: string;
4362
4362
  label: string;
4363
+ kind: "agent" | "human";
4363
4364
  };
4364
4365
  note?: string | undefined;
4365
4366
  } | {
4366
4367
  kind: "decision_superseded";
4367
4368
  evidence: {
4368
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4369
4369
  id: string;
4370
4370
  label: string;
4371
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4371
4372
  capture: "at_action" | "historical_lookup" | "fixture";
4372
4373
  locator?: string | undefined;
4373
4374
  }[];
@@ -4380,9 +4381,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4380
4381
  agentId: string;
4381
4382
  sessionId: string;
4382
4383
  evidence: {
4383
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4384
4384
  id: string;
4385
4385
  label: string;
4386
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4386
4387
  capture: "at_action" | "historical_lookup" | "fixture";
4387
4388
  locator?: string | undefined;
4388
4389
  }[];
@@ -4394,9 +4395,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4394
4395
  agentId: string;
4395
4396
  sessionId: string;
4396
4397
  evidence: {
4397
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4398
4398
  id: string;
4399
4399
  label: string;
4400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4400
4401
  capture: "at_action" | "historical_lookup" | "fixture";
4401
4402
  locator?: string | undefined;
4402
4403
  }[];
@@ -4405,63 +4406,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4405
4406
  recallReceiptId: string;
4406
4407
  staleDecisionAbsent: boolean;
4407
4408
  } | {
4408
- kind: "mission_completed";
4409
4409
  summary: string;
4410
+ kind: "mission_completed";
4410
4411
  outcome: "failed" | "recovered" | "inconclusive";
4411
4412
  evidence: {
4412
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4413
4413
  id: string;
4414
4414
  label: string;
4415
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4415
4416
  capture: "at_action" | "historical_lookup" | "fixture";
4416
4417
  locator?: string | undefined;
4417
4418
  }[];
4418
4419
  };
4419
- namespace: string;
4420
4420
  eventId: string;
4421
4421
  occurredAt: string;
4422
4422
  missionId: string;
4423
4423
  authenticatedPrincipal?: string | undefined;
4424
4424
  idempotencyKey?: string | undefined;
4425
4425
  }, {
4426
- schemaVersion: "1";
4426
+ namespace: string;
4427
4427
  recordedAt: string;
4428
+ schemaVersion: "1";
4428
4429
  payload: {
4429
4430
  kind: "mission_started";
4430
4431
  title: string;
4431
4432
  objective: string;
4432
4433
  runMode: "replay" | "fixture" | "live";
4433
4434
  evidence?: {
4434
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4435
4435
  id: string;
4436
4436
  label: string;
4437
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4437
4438
  capture: "at_action" | "historical_lookup" | "fixture";
4438
4439
  locator?: string | undefined;
4439
4440
  }[] | undefined;
4440
4441
  } | {
4441
- kind: "agent_status";
4442
+ label: string;
4442
4443
  status: "failed" | "complete" | "blocked" | "working" | "idle";
4444
+ kind: "agent_status";
4443
4445
  role: string;
4444
- label: string;
4445
4446
  agentId: string;
4446
4447
  sessionId: string;
4447
4448
  detail?: string | undefined;
4448
4449
  evidence?: {
4449
- kind: "source" | "correction" | "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";
4452
4453
  capture: "at_action" | "historical_lookup" | "fixture";
4453
4454
  locator?: string | undefined;
4454
4455
  }[] | undefined;
4455
4456
  } | {
4456
- kind: "agent_output";
4457
4457
  summary: string;
4458
+ kind: "agent_output";
4458
4459
  agentId: string;
4459
4460
  sessionId: string;
4460
4461
  outputId: string;
4461
4462
  evidence?: {
4462
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4463
4463
  id: string;
4464
4464
  label: string;
4465
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4465
4466
  capture: "at_action" | "historical_lookup" | "fixture";
4466
4467
  locator?: string | undefined;
4467
4468
  }[] | undefined;
@@ -4474,37 +4475,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4474
4475
  decisionId: string;
4475
4476
  confidence?: number | undefined;
4476
4477
  evidence?: {
4477
- kind: "source" | "correction" | "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";
4480
4481
  capture: "at_action" | "historical_lookup" | "fixture";
4481
4482
  locator?: string | undefined;
4482
4483
  }[] | undefined;
4483
4484
  } | {
4484
- kind: "conflict_detected";
4485
4485
  summary: string;
4486
+ kind: "conflict_detected";
4486
4487
  conflictId: string;
4487
4488
  decisionIds: string[];
4488
4489
  agentIds: string[];
4489
4490
  evidence?: {
4490
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4491
4491
  id: string;
4492
4492
  label: string;
4493
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4493
4494
  capture: "at_action" | "historical_lookup" | "fixture";
4494
4495
  locator?: string | undefined;
4495
4496
  }[] | undefined;
4496
4497
  } | {
4497
- kind: "test_result";
4498
4498
  summary: string;
4499
4499
  status: "error" | "failed" | "passed";
4500
+ kind: "test_result";
4500
4501
  command: string;
4501
4502
  decisionId: string;
4502
4503
  testId: string;
4503
4504
  durationMs?: number | undefined;
4504
4505
  evidence?: {
4505
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4506
4506
  id: string;
4507
4507
  label: string;
4508
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4508
4509
  capture: "at_action" | "historical_lookup" | "fixture";
4509
4510
  locator?: string | undefined;
4510
4511
  }[] | undefined;
@@ -4519,9 +4520,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4519
4520
  supersedesDecisionIds: string[];
4520
4521
  proposedBy: string;
4521
4522
  evidence?: {
4522
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4523
4523
  id: string;
4524
4524
  label: string;
4525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4525
4526
  capture: "at_action" | "historical_lookup" | "fixture";
4526
4527
  locator?: string | undefined;
4527
4528
  }[] | undefined;
@@ -4529,15 +4530,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4529
4530
  kind: "correction_approved";
4530
4531
  correctionId: string;
4531
4532
  approvedBy: {
4532
- kind: "agent" | "human";
4533
4533
  id: string;
4534
4534
  label: string;
4535
+ kind: "agent" | "human";
4535
4536
  };
4536
4537
  note?: string | undefined;
4537
4538
  evidence?: {
4538
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4539
4539
  id: string;
4540
4540
  label: string;
4541
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4541
4542
  capture: "at_action" | "historical_lookup" | "fixture";
4542
4543
  locator?: string | undefined;
4543
4544
  }[] | undefined;
@@ -4547,9 +4548,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4547
4548
  correctionId: string;
4548
4549
  replacementDecisionId: string;
4549
4550
  evidence?: {
4550
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4551
4551
  id: string;
4552
4552
  label: string;
4553
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4553
4554
  capture: "at_action" | "historical_lookup" | "fixture";
4554
4555
  locator?: string | undefined;
4555
4556
  }[] | undefined;
@@ -4562,9 +4563,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4562
4563
  recallReceiptId: string;
4563
4564
  capturedAtAction: boolean;
4564
4565
  evidence?: {
4565
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4566
4566
  id: string;
4567
4567
  label: string;
4568
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4568
4569
  capture: "at_action" | "historical_lookup" | "fixture";
4569
4570
  locator?: string | undefined;
4570
4571
  }[] | undefined;
@@ -4577,25 +4578,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4577
4578
  recallReceiptId: string;
4578
4579
  staleDecisionAbsent: boolean;
4579
4580
  evidence?: {
4580
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4581
4581
  id: string;
4582
4582
  label: string;
4583
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4583
4584
  capture: "at_action" | "historical_lookup" | "fixture";
4584
4585
  locator?: string | undefined;
4585
4586
  }[] | undefined;
4586
4587
  } | {
4587
- kind: "mission_completed";
4588
4588
  summary: string;
4589
+ kind: "mission_completed";
4589
4590
  outcome: "failed" | "recovered" | "inconclusive";
4590
4591
  evidence?: {
4591
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4592
4592
  id: string;
4593
4593
  label: string;
4594
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4594
4595
  capture: "at_action" | "historical_lookup" | "fixture";
4595
4596
  locator?: string | undefined;
4596
4597
  }[] | undefined;
4597
4598
  };
4598
- namespace: string;
4599
4599
  eventId: string;
4600
4600
  occurredAt: string;
4601
4601
  missionId: string;