@remnic/core 9.13.0 → 9.14.0

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