@remnic/core 9.25.6 → 9.25.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/access-admin-ops-surface.d.ts +2 -2
  2. package/dist/access-authorization-probe.d.ts +2 -2
  3. package/dist/access-boundary.d.ts +2 -2
  4. package/dist/access-cli.js +1 -1
  5. package/dist/access-http.d.ts +2 -2
  6. package/dist/access-identity-continuity-surface.d.ts +1 -1
  7. package/dist/access-lcm-surface.d.ts +2 -2
  8. package/dist/access-mcp.d.ts +2 -2
  9. package/dist/access-observe-write-surface.d.ts +2 -2
  10. package/dist/access-operations.d.ts +5 -5
  11. package/dist/access-recall-concurrency.d.ts +2 -2
  12. package/dist/access-recall-response.d.ts +2 -2
  13. package/dist/access-recall-surface.d.ts +2 -2
  14. package/dist/access-schema.d.ts +76 -76
  15. package/dist/{access-service-BJQ22URi.d.ts → access-service-CIdWkP6J.d.ts} +1 -1
  16. package/dist/access-service.d.ts +2 -2
  17. package/dist/access-surface-catalog.d.ts +2 -2
  18. package/dist/bootstrap.d.ts +1 -1
  19. package/dist/{chunk-FR75B4UU.js → chunk-KZVPTJNZ.js} +334 -647
  20. package/dist/chunk-KZVPTJNZ.js.map +1 -0
  21. package/dist/{cli-1W7cNjJJ.d.ts → cli-Da5kesWC.d.ts} +2 -2
  22. package/dist/cli.d.ts +3 -3
  23. package/dist/explicit-capture.d.ts +1 -1
  24. package/dist/index.d.ts +392 -392
  25. package/dist/index.js +1 -1
  26. package/dist/mcp-memory-inspector-app.d.ts +2 -2
  27. package/dist/{orchestrator-BtA1wC5K.d.ts → orchestrator-CFJ_TG6D.d.ts} +15 -10
  28. package/dist/orchestrator.d.ts +1 -1
  29. package/dist/orchestrator.js +1 -1
  30. package/dist/schemas.d.ts +76 -76
  31. package/dist/shared-context/manager.d.ts +8 -8
  32. package/dist/transfer/types.d.ts +66 -66
  33. package/package.json +2 -2
  34. package/src/meetings/recall-exclusion.test.ts +4 -2
  35. package/src/orchestration/generic-recall-paths.ts +119 -0
  36. package/src/orchestration/namespace-read-fanout.ts +0 -12
  37. package/src/orchestration/orchestrator-helpers.ts +0 -35
  38. package/src/orchestration/recall-internal.ts +6 -6
  39. package/src/orchestration/recall-search-pipeline.test.ts +194 -28
  40. package/src/orchestration/recall-search-pipeline.ts +39 -89
  41. package/src/orchestrator.ts +5 -17
  42. package/src/recall-cold-deadline.test.ts +11 -13
  43. package/src/testing/subjects/generic-recall-paths.test.ts +157 -0
  44. package/dist/chunk-FR75B4UU.js.map +0 -1
  45. package/src/recall/archive-scoring.ts +0 -544
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { PluginEntryResolverOptions, resolvePluginEntry } from './plugin-entry-r
2
2
  export { isOpenaiApiKeyDisabled, parseConfig, resolveEnvVars } from './config.js';
3
3
  export { resolveRemnicConfigRecord } from './config-record.js';
4
4
  export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
5
- export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-BtA1wC5K.js';
5
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-CFJ_TG6D.js';
6
6
  export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
7
7
  export { ModelCapabilities, ModelRegistry } from './model-registry.js';
8
8
  export { ACTIVE_STATUSES, ContradictionFilter, ContradictionJudgeBatchResult, ContradictionJudgeInput, ContradictionJudgeResult, ContradictionListResult, ContradictionVerdict, ResolutionResult, ResolutionVerb, ScanDependencies, ScanResult, computePairId, executeResolution, isCoolingDown, isValidResolutionVerb, judgeContradictionPairs, listPairs, readPair, resolvePair, runContradictionScan, writePair, writePairs } from './contradiction/index.js';
@@ -27,8 +27,8 @@ export { bs as ActivityExtractionMode, aA as ActivitySourceConfig, a8 as AgentAc
27
27
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
28
28
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
29
29
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
30
- import { z as EngramAccessService } from './access-service-BJQ22URi.js';
31
- export { P as ProcedureStatsConfigSnapshot, B as ProcedureStatsRecent, F as ProcedureStatsReport, G as ProcedureStatusCounts, H as computeProcedureStats, I as formatProcedureStatsText } from './access-service-BJQ22URi.js';
30
+ import { z as EngramAccessService } from './access-service-CIdWkP6J.js';
31
+ export { P as ProcedureStatsConfigSnapshot, B as ProcedureStatsRecent, F as ProcedureStatsReport, G as ProcedureStatusCounts, H as computeProcedureStats, I as formatProcedureStatsText } from './access-service-CIdWkP6J.js';
32
32
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
33
33
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
34
34
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -88,7 +88,7 @@ export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
88
88
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
89
89
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
90
90
  export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-Bq5zU6Bp.js';
91
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-1W7cNjJJ.js';
91
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-Da5kesWC.js';
92
92
  import { S as SpeakerRegistry, W as WearablesService, d as MeetingMemoryWriter, e as MeetingMemoryGenerator, f as MeetingEpisodeGenResult, g as MeetingsBuilder, h as MeetingsDaySource, i as MeetingDayData } from './service-Z8uzoAST.js';
93
93
  export { D as DEFAULT_SELF_NAME, j as MeetingBuildOutcome, k as MeetingFusionOptions, l as MeetingMemoryOutcome, m as MeetingsBuilderHooks, a as MeetingsDayBuildSummary, n as MeetingsDayFactGenResult, b as MeetingsGetResult, o as MeetingsListDay, c as MeetingsListResult, M as MeetingsService, p as MeetingsServiceDeps, R as ResolvedSpeaker, q as SpeakerOverride, r as WEARABLE_SOURCE_PREFIX, s as WearableDayTranscriptView, t as WearableMemoryGenDeps, u as WearableMemoryGenResult, v as WearableMemorySearchResult, w as WearableMemoryWriter, x as WearableSearchBackend, y as WearableStorageIo, z as WearableSyncDeps, A as WearableSyncOptions, B as WearableTranscriptSearchResult, C as WearablesServiceDeps, E as buildExtractionTurns, F as buildMeetingRecordsForDay, G as dateInTimezone, H as defaultTimezone, I as distinctSpeakerLabels, J as emptySpeakerRegistry, K as fuseMeeting, L as generateWearableMemories, N as importNativeMemories, O as loadSpeakerRegistry, P as locateTranscriptPath, Q as memoryStatusForMode, T as resolveSpeaker, U as resolveSyncDates, V as saveSpeakerRegistry, X as speakerRegistryKey, Y as speakersFilePath, Z as syncWearableSource, _ as wearableDayTag, $ as wearableSourceLabel, a0 as writeDailyDigestMemory } from './service-Z8uzoAST.js';
94
94
  import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-DD22oIx9.js';
@@ -872,15 +872,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
872
872
  locator: z.ZodOptional<z.ZodString>;
873
873
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
874
874
  }, "strict", z.ZodTypeAny, {
875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
875
876
  id: string;
876
877
  label: string;
877
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
878
878
  capture: "at_action" | "historical_lookup" | "fixture";
879
879
  locator?: string | undefined;
880
880
  }, {
881
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
881
882
  id: string;
882
883
  label: string;
883
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
884
884
  capture: "at_action" | "historical_lookup" | "fixture";
885
885
  locator?: string | undefined;
886
886
  }>;
@@ -897,15 +897,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
897
897
  locator: z.ZodOptional<z.ZodString>;
898
898
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
899
899
  }, "strict", z.ZodTypeAny, {
900
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
900
901
  id: string;
901
902
  label: string;
902
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
903
903
  capture: "at_action" | "historical_lookup" | "fixture";
904
904
  locator?: string | undefined;
905
905
  }, {
906
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
906
907
  id: string;
907
908
  label: string;
908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
909
909
  capture: "at_action" | "historical_lookup" | "fixture";
910
910
  locator?: string | undefined;
911
911
  }>, "many">>;
@@ -913,9 +913,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
913
913
  kind: "mission_started";
914
914
  title: string;
915
915
  evidence: {
916
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
916
917
  id: string;
917
918
  label: string;
918
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
919
919
  capture: "at_action" | "historical_lookup" | "fixture";
920
920
  locator?: string | undefined;
921
921
  }[];
@@ -927,9 +927,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
927
927
  objective: string;
928
928
  runMode: "replay" | "fixture" | "live";
929
929
  evidence?: {
930
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
930
931
  id: string;
931
932
  label: string;
932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
933
933
  capture: "at_action" | "historical_lookup" | "fixture";
934
934
  locator?: string | undefined;
935
935
  }[] | undefined;
@@ -945,15 +945,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
945
945
  locator: z.ZodOptional<z.ZodString>;
946
946
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
947
947
  }, "strict", z.ZodTypeAny, {
948
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
948
949
  id: string;
949
950
  label: string;
950
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
951
951
  capture: "at_action" | "historical_lookup" | "fixture";
952
952
  locator?: string | undefined;
953
953
  }, {
954
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
955
  id: string;
955
956
  label: string;
956
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
957
957
  capture: "at_action" | "historical_lookup" | "fixture";
958
958
  locator?: string | undefined;
959
959
  }>, "many">>;
@@ -961,32 +961,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
961
961
  sessionId: z.ZodString;
962
962
  kind: z.ZodLiteral<"agent_status">;
963
963
  }, "strict", z.ZodTypeAny, {
964
- label: string;
965
- status: "failed" | "blocked" | "working" | "complete" | "idle";
966
964
  kind: "agent_status";
965
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
967
966
  role: string;
967
+ label: string;
968
968
  agentId: string;
969
969
  sessionId: string;
970
970
  evidence: {
971
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
971
972
  id: string;
972
973
  label: string;
973
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
974
974
  capture: "at_action" | "historical_lookup" | "fixture";
975
975
  locator?: string | undefined;
976
976
  }[];
977
977
  detail?: string | undefined;
978
978
  }, {
979
- label: string;
980
- status: "failed" | "blocked" | "working" | "complete" | "idle";
981
979
  kind: "agent_status";
980
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
982
981
  role: string;
982
+ label: string;
983
983
  agentId: string;
984
984
  sessionId: string;
985
985
  detail?: string | undefined;
986
986
  evidence?: {
987
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
987
988
  id: string;
988
989
  label: string;
989
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
990
990
  capture: "at_action" | "historical_lookup" | "fixture";
991
991
  locator?: string | undefined;
992
992
  }[] | undefined;
@@ -1000,15 +1000,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1000
1000
  locator: z.ZodOptional<z.ZodString>;
1001
1001
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1002
1002
  }, "strict", z.ZodTypeAny, {
1003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1003
1004
  id: string;
1004
1005
  label: string;
1005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1006
1006
  capture: "at_action" | "historical_lookup" | "fixture";
1007
1007
  locator?: string | undefined;
1008
1008
  }, {
1009
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1009
1010
  id: string;
1010
1011
  label: string;
1011
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1012
1012
  capture: "at_action" | "historical_lookup" | "fixture";
1013
1013
  locator?: string | undefined;
1014
1014
  }>, "many">>;
@@ -1016,28 +1016,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1016
1016
  sessionId: z.ZodString;
1017
1017
  kind: z.ZodLiteral<"agent_output">;
1018
1018
  }, "strict", z.ZodTypeAny, {
1019
- summary: string;
1020
1019
  kind: "agent_output";
1020
+ summary: string;
1021
1021
  agentId: string;
1022
1022
  sessionId: string;
1023
1023
  evidence: {
1024
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1024
1025
  id: string;
1025
1026
  label: string;
1026
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1027
1027
  capture: "at_action" | "historical_lookup" | "fixture";
1028
1028
  locator?: string | undefined;
1029
1029
  }[];
1030
1030
  outputId: string;
1031
1031
  }, {
1032
- summary: string;
1033
1032
  kind: "agent_output";
1033
+ summary: string;
1034
1034
  agentId: string;
1035
1035
  sessionId: string;
1036
1036
  outputId: string;
1037
1037
  evidence?: {
1038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1038
1039
  id: string;
1039
1040
  label: string;
1040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1041
1041
  capture: "at_action" | "historical_lookup" | "fixture";
1042
1042
  locator?: string | undefined;
1043
1043
  }[] | undefined;
@@ -1053,15 +1053,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1053
1053
  locator: z.ZodOptional<z.ZodString>;
1054
1054
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1055
1055
  }, "strict", z.ZodTypeAny, {
1056
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1056
1057
  id: string;
1057
1058
  label: string;
1058
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1059
1059
  capture: "at_action" | "historical_lookup" | "fixture";
1060
1060
  locator?: string | undefined;
1061
1061
  }, {
1062
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1062
1063
  id: string;
1063
1064
  label: string;
1064
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1065
1065
  capture: "at_action" | "historical_lookup" | "fixture";
1066
1066
  locator?: string | undefined;
1067
1067
  }>, "many">>;
@@ -1074,9 +1074,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1074
1074
  statement: string;
1075
1075
  sessionId: string;
1076
1076
  evidence: {
1077
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1077
1078
  id: string;
1078
1079
  label: string;
1079
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1080
1080
  capture: "at_action" | "historical_lookup" | "fixture";
1081
1081
  locator?: string | undefined;
1082
1082
  }[];
@@ -1092,9 +1092,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1092
1092
  decisionId: string;
1093
1093
  confidence?: number | undefined;
1094
1094
  evidence?: {
1095
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1095
1096
  id: string;
1096
1097
  label: string;
1097
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1098
1098
  capture: "at_action" | "historical_lookup" | "fixture";
1099
1099
  locator?: string | undefined;
1100
1100
  }[] | undefined;
@@ -1111,25 +1111,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1111
1111
  locator: z.ZodOptional<z.ZodString>;
1112
1112
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1113
1113
  }, "strict", z.ZodTypeAny, {
1114
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1114
1115
  id: string;
1115
1116
  label: string;
1116
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1117
1117
  capture: "at_action" | "historical_lookup" | "fixture";
1118
1118
  locator?: string | undefined;
1119
1119
  }, {
1120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1120
1121
  id: string;
1121
1122
  label: string;
1122
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1123
1123
  capture: "at_action" | "historical_lookup" | "fixture";
1124
1124
  locator?: string | undefined;
1125
1125
  }>, "many">>;
1126
1126
  }, "strict", z.ZodTypeAny, {
1127
- summary: string;
1128
1127
  kind: "conflict_detected";
1128
+ summary: string;
1129
1129
  evidence: {
1130
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1130
1131
  id: string;
1131
1132
  label: string;
1132
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1133
1133
  capture: "at_action" | "historical_lookup" | "fixture";
1134
1134
  locator?: string | undefined;
1135
1135
  }[];
@@ -1137,15 +1137,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1137
1137
  decisionIds: string[];
1138
1138
  agentIds: string[];
1139
1139
  }, {
1140
- summary: string;
1141
1140
  kind: "conflict_detected";
1141
+ summary: string;
1142
1142
  conflictId: string;
1143
1143
  decisionIds: string[];
1144
1144
  agentIds: string[];
1145
1145
  evidence?: {
1146
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1146
1147
  id: string;
1147
1148
  label: string;
1148
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1149
1149
  capture: "at_action" | "historical_lookup" | "fixture";
1150
1150
  locator?: string | undefined;
1151
1151
  }[] | undefined;
@@ -1165,27 +1165,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1165
1165
  locator: z.ZodOptional<z.ZodString>;
1166
1166
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1167
1167
  }, "strict", z.ZodTypeAny, {
1168
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1168
1169
  id: string;
1169
1170
  label: string;
1170
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1171
1171
  capture: "at_action" | "historical_lookup" | "fixture";
1172
1172
  locator?: string | undefined;
1173
1173
  }, {
1174
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1174
1175
  id: string;
1175
1176
  label: string;
1176
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1177
1177
  capture: "at_action" | "historical_lookup" | "fixture";
1178
1178
  locator?: string | undefined;
1179
1179
  }>, "many">>;
1180
1180
  }, "strict", z.ZodTypeAny, {
1181
+ kind: "test_result";
1181
1182
  summary: string;
1182
1183
  status: "error" | "failed" | "passed";
1183
- kind: "test_result";
1184
1184
  command: string;
1185
1185
  evidence: {
1186
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1186
1187
  id: string;
1187
1188
  label: string;
1188
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1189
1189
  capture: "at_action" | "historical_lookup" | "fixture";
1190
1190
  locator?: string | undefined;
1191
1191
  }[];
@@ -1194,17 +1194,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1194
1194
  durationMs?: number | undefined;
1195
1195
  correctionId?: string | undefined;
1196
1196
  }, {
1197
+ kind: "test_result";
1197
1198
  summary: string;
1198
1199
  status: "error" | "failed" | "passed";
1199
- kind: "test_result";
1200
1200
  command: string;
1201
1201
  decisionId: string;
1202
1202
  testId: string;
1203
1203
  durationMs?: number | undefined;
1204
1204
  evidence?: {
1205
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1205
1206
  id: string;
1206
1207
  label: string;
1207
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1208
1208
  capture: "at_action" | "historical_lookup" | "fixture";
1209
1209
  locator?: string | undefined;
1210
1210
  }[] | undefined;
@@ -1225,15 +1225,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1225
1225
  locator: z.ZodOptional<z.ZodString>;
1226
1226
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1227
1227
  }, "strict", z.ZodTypeAny, {
1228
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1228
1229
  id: string;
1229
1230
  label: string;
1230
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1231
1231
  capture: "at_action" | "historical_lookup" | "fixture";
1232
1232
  locator?: string | undefined;
1233
1233
  }, {
1234
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1234
1235
  id: string;
1235
1236
  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
  }>, "many">>;
@@ -1242,9 +1242,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1242
1242
  rationale: string;
1243
1243
  statement: string;
1244
1244
  evidence: {
1245
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1245
1246
  id: string;
1246
1247
  label: string;
1247
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1248
1248
  capture: "at_action" | "historical_lookup" | "fixture";
1249
1249
  locator?: string | undefined;
1250
1250
  }[];
@@ -1263,9 +1263,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1263
1263
  supersedesDecisionIds: string[];
1264
1264
  proposedBy: string;
1265
1265
  evidence?: {
1266
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1266
1267
  id: string;
1267
1268
  label: string;
1268
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1269
1269
  capture: "at_action" | "historical_lookup" | "fixture";
1270
1270
  locator?: string | undefined;
1271
1271
  }[] | undefined;
@@ -1277,13 +1277,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1277
1277
  id: z.ZodString;
1278
1278
  label: z.ZodString;
1279
1279
  }, "strict", z.ZodTypeAny, {
1280
+ kind: "agent" | "human";
1280
1281
  id: string;
1281
1282
  label: string;
1282
- kind: "agent" | "human";
1283
1283
  }, {
1284
+ kind: "agent" | "human";
1284
1285
  id: string;
1285
1286
  label: string;
1286
- kind: "agent" | "human";
1287
1287
  }>;
1288
1288
  note: z.ZodOptional<z.ZodString>;
1289
1289
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1293,47 +1293,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1293
1293
  locator: z.ZodOptional<z.ZodString>;
1294
1294
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1295
1295
  }, "strict", z.ZodTypeAny, {
1296
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1296
1297
  id: string;
1297
1298
  label: string;
1298
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1299
1299
  capture: "at_action" | "historical_lookup" | "fixture";
1300
1300
  locator?: string | undefined;
1301
1301
  }, {
1302
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1302
1303
  id: string;
1303
1304
  label: string;
1304
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1305
1305
  capture: "at_action" | "historical_lookup" | "fixture";
1306
1306
  locator?: string | undefined;
1307
1307
  }>, "many">>;
1308
1308
  }, "strict", z.ZodTypeAny, {
1309
1309
  kind: "correction_approved";
1310
1310
  evidence: {
1311
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1311
1312
  id: string;
1312
1313
  label: string;
1313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1314
1314
  capture: "at_action" | "historical_lookup" | "fixture";
1315
1315
  locator?: string | undefined;
1316
1316
  }[];
1317
1317
  correctionId: string;
1318
1318
  approvedBy: {
1319
+ kind: "agent" | "human";
1319
1320
  id: string;
1320
1321
  label: string;
1321
- kind: "agent" | "human";
1322
1322
  };
1323
1323
  note?: string | undefined;
1324
1324
  }, {
1325
1325
  kind: "correction_approved";
1326
1326
  correctionId: string;
1327
1327
  approvedBy: {
1328
+ kind: "agent" | "human";
1328
1329
  id: string;
1329
1330
  label: string;
1330
- kind: "agent" | "human";
1331
1331
  };
1332
1332
  note?: string | undefined;
1333
1333
  evidence?: {
1334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1334
1335
  id: string;
1335
1336
  label: string;
1336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1337
1337
  capture: "at_action" | "historical_lookup" | "fixture";
1338
1338
  locator?: string | undefined;
1339
1339
  }[] | undefined;
@@ -1349,24 +1349,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1349
1349
  locator: z.ZodOptional<z.ZodString>;
1350
1350
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1351
1351
  }, "strict", z.ZodTypeAny, {
1352
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1352
1353
  id: string;
1353
1354
  label: string;
1354
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1355
1355
  capture: "at_action" | "historical_lookup" | "fixture";
1356
1356
  locator?: string | undefined;
1357
1357
  }, {
1358
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1358
1359
  id: string;
1359
1360
  label: string;
1360
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1361
1361
  capture: "at_action" | "historical_lookup" | "fixture";
1362
1362
  locator?: string | undefined;
1363
1363
  }>, "many">>;
1364
1364
  }, "strict", z.ZodTypeAny, {
1365
1365
  kind: "decision_superseded";
1366
1366
  evidence: {
1367
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1367
1368
  id: string;
1368
1369
  label: string;
1369
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1370
1370
  capture: "at_action" | "historical_lookup" | "fixture";
1371
1371
  locator?: string | undefined;
1372
1372
  }[];
@@ -1379,9 +1379,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1379
1379
  correctionId: string;
1380
1380
  replacementDecisionId: string;
1381
1381
  evidence?: {
1382
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1382
1383
  id: string;
1383
1384
  label: string;
1384
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1385
1385
  capture: "at_action" | "historical_lookup" | "fixture";
1386
1386
  locator?: string | undefined;
1387
1387
  }[] | undefined;
@@ -1397,15 +1397,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1397
1397
  locator: z.ZodOptional<z.ZodString>;
1398
1398
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1399
1399
  }, "strict", z.ZodTypeAny, {
1400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1400
1401
  id: string;
1401
1402
  label: string;
1402
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1403
1403
  capture: "at_action" | "historical_lookup" | "fixture";
1404
1404
  locator?: string | undefined;
1405
1405
  }, {
1406
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1406
1407
  id: string;
1407
1408
  label: string;
1408
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1409
1409
  capture: "at_action" | "historical_lookup" | "fixture";
1410
1410
  locator?: string | undefined;
1411
1411
  }>, "many">>;
@@ -1418,9 +1418,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1418
1418
  agentId: string;
1419
1419
  sessionId: string;
1420
1420
  evidence: {
1421
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1421
1422
  id: string;
1422
1423
  label: string;
1423
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1424
1424
  capture: "at_action" | "historical_lookup" | "fixture";
1425
1425
  locator?: string | undefined;
1426
1426
  }[];
@@ -1436,9 +1436,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1436
1436
  recallReceiptId: string;
1437
1437
  capturedAtAction: boolean;
1438
1438
  evidence?: {
1439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1439
1440
  id: string;
1440
1441
  label: string;
1441
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1442
1442
  capture: "at_action" | "historical_lookup" | "fixture";
1443
1443
  locator?: string | undefined;
1444
1444
  }[] | undefined;
@@ -1454,15 +1454,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1454
1454
  locator: z.ZodOptional<z.ZodString>;
1455
1455
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1456
1456
  }, "strict", z.ZodTypeAny, {
1457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1457
1458
  id: string;
1458
1459
  label: string;
1459
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1460
1460
  capture: "at_action" | "historical_lookup" | "fixture";
1461
1461
  locator?: string | undefined;
1462
1462
  }, {
1463
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1463
1464
  id: string;
1464
1465
  label: string;
1465
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1466
1466
  capture: "at_action" | "historical_lookup" | "fixture";
1467
1467
  locator?: string | undefined;
1468
1468
  }>, "many">>;
@@ -1474,9 +1474,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1474
1474
  agentId: string;
1475
1475
  sessionId: string;
1476
1476
  evidence: {
1477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1477
1478
  id: string;
1478
1479
  label: string;
1479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1480
1480
  capture: "at_action" | "historical_lookup" | "fixture";
1481
1481
  locator?: string | undefined;
1482
1482
  }[];
@@ -1493,9 +1493,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1493
1493
  recallReceiptId: string;
1494
1494
  staleDecisionAbsent: boolean;
1495
1495
  evidence?: {
1496
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1496
1497
  id: string;
1497
1498
  label: string;
1498
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1499
1499
  capture: "at_action" | "historical_lookup" | "fixture";
1500
1500
  locator?: string | undefined;
1501
1501
  }[] | undefined;
@@ -1510,37 +1510,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1510
1510
  locator: z.ZodOptional<z.ZodString>;
1511
1511
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1512
1512
  }, "strict", z.ZodTypeAny, {
1513
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
1514
  id: string;
1514
1515
  label: string;
1515
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1516
1516
  capture: "at_action" | "historical_lookup" | "fixture";
1517
1517
  locator?: string | undefined;
1518
1518
  }, {
1519
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1519
1520
  id: string;
1520
1521
  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
  }>, "many">>;
1525
1525
  }, "strict", z.ZodTypeAny, {
1526
- summary: string;
1527
1526
  kind: "mission_completed";
1527
+ summary: string;
1528
1528
  outcome: "failed" | "recovered" | "inconclusive";
1529
1529
  evidence: {
1530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1530
1531
  id: string;
1531
1532
  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
  }[];
1536
1536
  }, {
1537
- summary: string;
1538
1537
  kind: "mission_completed";
1538
+ summary: string;
1539
1539
  outcome: "failed" | "recovered" | "inconclusive";
1540
1540
  evidence?: {
1541
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
1542
  id: string;
1542
1543
  label: string;
1543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1544
1544
  capture: "at_action" | "historical_lookup" | "fixture";
1545
1545
  locator?: string | undefined;
1546
1546
  }[] | undefined;
@@ -1548,38 +1548,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1548
1548
  kind: "mission_started";
1549
1549
  title: string;
1550
1550
  evidence: {
1551
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1551
1552
  id: string;
1552
1553
  label: string;
1553
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1554
1554
  capture: "at_action" | "historical_lookup" | "fixture";
1555
1555
  locator?: string | undefined;
1556
1556
  }[];
1557
1557
  objective: string;
1558
1558
  runMode: "replay" | "fixture" | "live";
1559
1559
  } | {
1560
- label: string;
1561
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1562
1560
  kind: "agent_status";
1561
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1563
1562
  role: string;
1563
+ label: string;
1564
1564
  agentId: string;
1565
1565
  sessionId: string;
1566
1566
  evidence: {
1567
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1567
1568
  id: string;
1568
1569
  label: string;
1569
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1570
1570
  capture: "at_action" | "historical_lookup" | "fixture";
1571
1571
  locator?: string | undefined;
1572
1572
  }[];
1573
1573
  detail?: string | undefined;
1574
1574
  } | {
1575
- summary: string;
1576
1575
  kind: "agent_output";
1576
+ summary: string;
1577
1577
  agentId: string;
1578
1578
  sessionId: string;
1579
1579
  evidence: {
1580
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1580
1581
  id: string;
1581
1582
  label: string;
1582
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1583
1583
  capture: "at_action" | "historical_lookup" | "fixture";
1584
1584
  locator?: string | undefined;
1585
1585
  }[];
@@ -1590,9 +1590,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1590
1590
  statement: string;
1591
1591
  sessionId: string;
1592
1592
  evidence: {
1593
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1593
1594
  id: string;
1594
1595
  label: string;
1595
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
1596
  capture: "at_action" | "historical_lookup" | "fixture";
1597
1597
  locator?: string | undefined;
1598
1598
  }[];
@@ -1600,12 +1600,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1600
1600
  decisionId: string;
1601
1601
  confidence?: number | undefined;
1602
1602
  } | {
1603
- summary: string;
1604
1603
  kind: "conflict_detected";
1604
+ summary: string;
1605
1605
  evidence: {
1606
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1606
1607
  id: string;
1607
1608
  label: string;
1608
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1609
1609
  capture: "at_action" | "historical_lookup" | "fixture";
1610
1610
  locator?: string | undefined;
1611
1611
  }[];
@@ -1613,14 +1613,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1613
1613
  decisionIds: string[];
1614
1614
  agentIds: string[];
1615
1615
  } | {
1616
+ kind: "test_result";
1616
1617
  summary: string;
1617
1618
  status: "error" | "failed" | "passed";
1618
- kind: "test_result";
1619
1619
  command: string;
1620
1620
  evidence: {
1621
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1621
1622
  id: string;
1622
1623
  label: string;
1623
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1624
1624
  capture: "at_action" | "historical_lookup" | "fixture";
1625
1625
  locator?: string | undefined;
1626
1626
  }[];
@@ -1633,9 +1633,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1633
1633
  rationale: string;
1634
1634
  statement: string;
1635
1635
  evidence: {
1636
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1636
1637
  id: string;
1637
1638
  label: string;
1638
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1639
1639
  capture: "at_action" | "historical_lookup" | "fixture";
1640
1640
  locator?: string | undefined;
1641
1641
  }[];
@@ -1647,25 +1647,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1647
1647
  } | {
1648
1648
  kind: "correction_approved";
1649
1649
  evidence: {
1650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1650
1651
  id: string;
1651
1652
  label: string;
1652
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1653
1653
  capture: "at_action" | "historical_lookup" | "fixture";
1654
1654
  locator?: string | undefined;
1655
1655
  }[];
1656
1656
  correctionId: string;
1657
1657
  approvedBy: {
1658
+ kind: "agent" | "human";
1658
1659
  id: string;
1659
1660
  label: string;
1660
- kind: "agent" | "human";
1661
1661
  };
1662
1662
  note?: string | undefined;
1663
1663
  } | {
1664
1664
  kind: "decision_superseded";
1665
1665
  evidence: {
1666
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1666
1667
  id: string;
1667
1668
  label: string;
1668
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1669
1669
  capture: "at_action" | "historical_lookup" | "fixture";
1670
1670
  locator?: string | undefined;
1671
1671
  }[];
@@ -1678,9 +1678,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1678
1678
  agentId: string;
1679
1679
  sessionId: string;
1680
1680
  evidence: {
1681
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1681
1682
  id: string;
1682
1683
  label: string;
1683
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1684
1684
  capture: "at_action" | "historical_lookup" | "fixture";
1685
1685
  locator?: string | undefined;
1686
1686
  }[];
@@ -1692,9 +1692,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1692
1692
  agentId: string;
1693
1693
  sessionId: string;
1694
1694
  evidence: {
1695
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1695
1696
  id: string;
1696
1697
  label: string;
1697
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1698
1698
  capture: "at_action" | "historical_lookup" | "fixture";
1699
1699
  locator?: string | undefined;
1700
1700
  }[];
@@ -1703,13 +1703,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1703
1703
  recallReceiptId: string;
1704
1704
  staleDecisionAbsent: boolean;
1705
1705
  } | {
1706
- summary: string;
1707
1706
  kind: "mission_completed";
1707
+ summary: string;
1708
1708
  outcome: "failed" | "recovered" | "inconclusive";
1709
1709
  evidence: {
1710
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1710
1711
  id: string;
1711
1712
  label: string;
1712
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1713
1713
  capture: "at_action" | "historical_lookup" | "fixture";
1714
1714
  locator?: string | undefined;
1715
1715
  }[];
@@ -1719,37 +1719,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1719
1719
  objective: string;
1720
1720
  runMode: "replay" | "fixture" | "live";
1721
1721
  evidence?: {
1722
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1722
1723
  id: string;
1723
1724
  label: string;
1724
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1725
1725
  capture: "at_action" | "historical_lookup" | "fixture";
1726
1726
  locator?: string | undefined;
1727
1727
  }[] | undefined;
1728
1728
  } | {
1729
- label: string;
1730
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1731
1729
  kind: "agent_status";
1730
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1732
1731
  role: string;
1732
+ label: string;
1733
1733
  agentId: string;
1734
1734
  sessionId: string;
1735
1735
  detail?: string | undefined;
1736
1736
  evidence?: {
1737
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1737
1738
  id: string;
1738
1739
  label: string;
1739
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1740
1740
  capture: "at_action" | "historical_lookup" | "fixture";
1741
1741
  locator?: string | undefined;
1742
1742
  }[] | undefined;
1743
1743
  } | {
1744
- summary: string;
1745
1744
  kind: "agent_output";
1745
+ summary: string;
1746
1746
  agentId: string;
1747
1747
  sessionId: string;
1748
1748
  outputId: string;
1749
1749
  evidence?: {
1750
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1750
1751
  id: string;
1751
1752
  label: string;
1752
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1753
1753
  capture: "at_action" | "historical_lookup" | "fixture";
1754
1754
  locator?: string | undefined;
1755
1755
  }[] | undefined;
@@ -1762,37 +1762,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1762
1762
  decisionId: string;
1763
1763
  confidence?: number | undefined;
1764
1764
  evidence?: {
1765
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
1766
  id: string;
1766
1767
  label: string;
1767
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1768
1768
  capture: "at_action" | "historical_lookup" | "fixture";
1769
1769
  locator?: string | undefined;
1770
1770
  }[] | undefined;
1771
1771
  } | {
1772
- summary: string;
1773
1772
  kind: "conflict_detected";
1773
+ summary: string;
1774
1774
  conflictId: string;
1775
1775
  decisionIds: string[];
1776
1776
  agentIds: string[];
1777
1777
  evidence?: {
1778
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1778
1779
  id: string;
1779
1780
  label: string;
1780
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1781
1781
  capture: "at_action" | "historical_lookup" | "fixture";
1782
1782
  locator?: string | undefined;
1783
1783
  }[] | undefined;
1784
1784
  } | {
1785
+ kind: "test_result";
1785
1786
  summary: string;
1786
1787
  status: "error" | "failed" | "passed";
1787
- kind: "test_result";
1788
1788
  command: string;
1789
1789
  decisionId: string;
1790
1790
  testId: string;
1791
1791
  durationMs?: number | undefined;
1792
1792
  evidence?: {
1793
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
1794
  id: string;
1794
1795
  label: string;
1795
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1796
1796
  capture: "at_action" | "historical_lookup" | "fixture";
1797
1797
  locator?: string | undefined;
1798
1798
  }[] | undefined;
@@ -1807,9 +1807,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1807
1807
  supersedesDecisionIds: string[];
1808
1808
  proposedBy: string;
1809
1809
  evidence?: {
1810
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1810
1811
  id: string;
1811
1812
  label: string;
1812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1813
1813
  capture: "at_action" | "historical_lookup" | "fixture";
1814
1814
  locator?: string | undefined;
1815
1815
  }[] | undefined;
@@ -1817,15 +1817,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1817
1817
  kind: "correction_approved";
1818
1818
  correctionId: string;
1819
1819
  approvedBy: {
1820
+ kind: "agent" | "human";
1820
1821
  id: string;
1821
1822
  label: string;
1822
- kind: "agent" | "human";
1823
1823
  };
1824
1824
  note?: string | undefined;
1825
1825
  evidence?: {
1826
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1826
1827
  id: string;
1827
1828
  label: string;
1828
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1829
1829
  capture: "at_action" | "historical_lookup" | "fixture";
1830
1830
  locator?: string | undefined;
1831
1831
  }[] | undefined;
@@ -1835,9 +1835,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1835
1835
  correctionId: string;
1836
1836
  replacementDecisionId: string;
1837
1837
  evidence?: {
1838
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1838
1839
  id: string;
1839
1840
  label: string;
1840
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1841
1841
  capture: "at_action" | "historical_lookup" | "fixture";
1842
1842
  locator?: string | undefined;
1843
1843
  }[] | undefined;
@@ -1850,9 +1850,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1850
1850
  recallReceiptId: string;
1851
1851
  capturedAtAction: boolean;
1852
1852
  evidence?: {
1853
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1853
1854
  id: string;
1854
1855
  label: string;
1855
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1856
1856
  capture: "at_action" | "historical_lookup" | "fixture";
1857
1857
  locator?: string | undefined;
1858
1858
  }[] | undefined;
@@ -1865,20 +1865,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1865
1865
  recallReceiptId: string;
1866
1866
  staleDecisionAbsent: boolean;
1867
1867
  evidence?: {
1868
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1868
1869
  id: string;
1869
1870
  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;
1874
1874
  } | {
1875
- summary: string;
1876
1875
  kind: "mission_completed";
1876
+ summary: string;
1877
1877
  outcome: "failed" | "recovered" | "inconclusive";
1878
1878
  evidence?: {
1879
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1879
1880
  id: string;
1880
1881
  label: string;
1881
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1882
1882
  capture: "at_action" | "historical_lookup" | "fixture";
1883
1883
  locator?: string | undefined;
1884
1884
  }[] | undefined;
@@ -1899,15 +1899,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1899
1899
  locator: z.ZodOptional<z.ZodString>;
1900
1900
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1901
1901
  }, "strict", z.ZodTypeAny, {
1902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1902
1903
  id: string;
1903
1904
  label: string;
1904
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1905
1905
  capture: "at_action" | "historical_lookup" | "fixture";
1906
1906
  locator?: string | undefined;
1907
1907
  }, {
1908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
1909
  id: string;
1909
1910
  label: string;
1910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1911
1911
  capture: "at_action" | "historical_lookup" | "fixture";
1912
1912
  locator?: string | undefined;
1913
1913
  }>, "many">>;
@@ -1915,9 +1915,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1915
1915
  kind: "mission_started";
1916
1916
  title: string;
1917
1917
  evidence: {
1918
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1918
1919
  id: string;
1919
1920
  label: string;
1920
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1921
1921
  capture: "at_action" | "historical_lookup" | "fixture";
1922
1922
  locator?: string | undefined;
1923
1923
  }[];
@@ -1929,9 +1929,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1929
1929
  objective: string;
1930
1930
  runMode: "replay" | "fixture" | "live";
1931
1931
  evidence?: {
1932
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1932
1933
  id: string;
1933
1934
  label: string;
1934
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1935
1935
  capture: "at_action" | "historical_lookup" | "fixture";
1936
1936
  locator?: string | undefined;
1937
1937
  }[] | undefined;
@@ -1947,15 +1947,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1947
1947
  locator: z.ZodOptional<z.ZodString>;
1948
1948
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1949
1949
  }, "strict", z.ZodTypeAny, {
1950
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1950
1951
  id: string;
1951
1952
  label: string;
1952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1953
1953
  capture: "at_action" | "historical_lookup" | "fixture";
1954
1954
  locator?: string | undefined;
1955
1955
  }, {
1956
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
1957
  id: string;
1957
1958
  label: string;
1958
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1959
1959
  capture: "at_action" | "historical_lookup" | "fixture";
1960
1960
  locator?: string | undefined;
1961
1961
  }>, "many">>;
@@ -1963,32 +1963,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1963
1963
  sessionId: z.ZodString;
1964
1964
  kind: z.ZodLiteral<"agent_status">;
1965
1965
  }, "strict", z.ZodTypeAny, {
1966
- label: string;
1967
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1968
1966
  kind: "agent_status";
1967
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1969
1968
  role: string;
1969
+ label: string;
1970
1970
  agentId: string;
1971
1971
  sessionId: string;
1972
1972
  evidence: {
1973
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1973
1974
  id: string;
1974
1975
  label: string;
1975
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1976
1976
  capture: "at_action" | "historical_lookup" | "fixture";
1977
1977
  locator?: string | undefined;
1978
1978
  }[];
1979
1979
  detail?: string | undefined;
1980
1980
  }, {
1981
- label: string;
1982
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1983
1981
  kind: "agent_status";
1982
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1984
1983
  role: string;
1984
+ label: string;
1985
1985
  agentId: string;
1986
1986
  sessionId: string;
1987
1987
  detail?: string | undefined;
1988
1988
  evidence?: {
1989
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1989
1990
  id: string;
1990
1991
  label: string;
1991
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1992
1992
  capture: "at_action" | "historical_lookup" | "fixture";
1993
1993
  locator?: string | undefined;
1994
1994
  }[] | undefined;
@@ -2002,15 +2002,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2002
2002
  locator: z.ZodOptional<z.ZodString>;
2003
2003
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2004
2004
  }, "strict", z.ZodTypeAny, {
2005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2005
2006
  id: string;
2006
2007
  label: string;
2007
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2008
2008
  capture: "at_action" | "historical_lookup" | "fixture";
2009
2009
  locator?: string | undefined;
2010
2010
  }, {
2011
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2011
2012
  id: string;
2012
2013
  label: string;
2013
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2014
2014
  capture: "at_action" | "historical_lookup" | "fixture";
2015
2015
  locator?: string | undefined;
2016
2016
  }>, "many">>;
@@ -2018,28 +2018,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2018
2018
  sessionId: z.ZodString;
2019
2019
  kind: z.ZodLiteral<"agent_output">;
2020
2020
  }, "strict", z.ZodTypeAny, {
2021
- summary: string;
2022
2021
  kind: "agent_output";
2022
+ summary: string;
2023
2023
  agentId: string;
2024
2024
  sessionId: string;
2025
2025
  evidence: {
2026
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2026
2027
  id: string;
2027
2028
  label: string;
2028
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2029
2029
  capture: "at_action" | "historical_lookup" | "fixture";
2030
2030
  locator?: string | undefined;
2031
2031
  }[];
2032
2032
  outputId: string;
2033
2033
  }, {
2034
- summary: string;
2035
2034
  kind: "agent_output";
2035
+ summary: string;
2036
2036
  agentId: string;
2037
2037
  sessionId: string;
2038
2038
  outputId: string;
2039
2039
  evidence?: {
2040
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2040
2041
  id: string;
2041
2042
  label: string;
2042
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2043
2043
  capture: "at_action" | "historical_lookup" | "fixture";
2044
2044
  locator?: string | undefined;
2045
2045
  }[] | undefined;
@@ -2055,15 +2055,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2055
2055
  locator: z.ZodOptional<z.ZodString>;
2056
2056
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2057
2057
  }, "strict", z.ZodTypeAny, {
2058
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2058
2059
  id: string;
2059
2060
  label: string;
2060
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2061
2061
  capture: "at_action" | "historical_lookup" | "fixture";
2062
2062
  locator?: string | undefined;
2063
2063
  }, {
2064
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2064
2065
  id: string;
2065
2066
  label: string;
2066
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2067
2067
  capture: "at_action" | "historical_lookup" | "fixture";
2068
2068
  locator?: string | undefined;
2069
2069
  }>, "many">>;
@@ -2076,9 +2076,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2076
2076
  statement: string;
2077
2077
  sessionId: string;
2078
2078
  evidence: {
2079
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2079
2080
  id: string;
2080
2081
  label: string;
2081
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2082
2082
  capture: "at_action" | "historical_lookup" | "fixture";
2083
2083
  locator?: string | undefined;
2084
2084
  }[];
@@ -2094,9 +2094,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2094
2094
  decisionId: string;
2095
2095
  confidence?: number | undefined;
2096
2096
  evidence?: {
2097
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2097
2098
  id: string;
2098
2099
  label: string;
2099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2100
2100
  capture: "at_action" | "historical_lookup" | "fixture";
2101
2101
  locator?: string | undefined;
2102
2102
  }[] | undefined;
@@ -2113,25 +2113,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2113
2113
  locator: z.ZodOptional<z.ZodString>;
2114
2114
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2115
2115
  }, "strict", z.ZodTypeAny, {
2116
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2116
2117
  id: string;
2117
2118
  label: string;
2118
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2119
2119
  capture: "at_action" | "historical_lookup" | "fixture";
2120
2120
  locator?: string | undefined;
2121
2121
  }, {
2122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2122
2123
  id: string;
2123
2124
  label: string;
2124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2125
2125
  capture: "at_action" | "historical_lookup" | "fixture";
2126
2126
  locator?: string | undefined;
2127
2127
  }>, "many">>;
2128
2128
  }, "strict", z.ZodTypeAny, {
2129
- summary: string;
2130
2129
  kind: "conflict_detected";
2130
+ summary: string;
2131
2131
  evidence: {
2132
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2132
2133
  id: string;
2133
2134
  label: string;
2134
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2135
2135
  capture: "at_action" | "historical_lookup" | "fixture";
2136
2136
  locator?: string | undefined;
2137
2137
  }[];
@@ -2139,15 +2139,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2139
2139
  decisionIds: string[];
2140
2140
  agentIds: string[];
2141
2141
  }, {
2142
- summary: string;
2143
2142
  kind: "conflict_detected";
2143
+ summary: string;
2144
2144
  conflictId: string;
2145
2145
  decisionIds: string[];
2146
2146
  agentIds: string[];
2147
2147
  evidence?: {
2148
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2148
2149
  id: string;
2149
2150
  label: string;
2150
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2151
2151
  capture: "at_action" | "historical_lookup" | "fixture";
2152
2152
  locator?: string | undefined;
2153
2153
  }[] | undefined;
@@ -2167,27 +2167,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2167
2167
  locator: z.ZodOptional<z.ZodString>;
2168
2168
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2169
2169
  }, "strict", z.ZodTypeAny, {
2170
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2170
2171
  id: string;
2171
2172
  label: string;
2172
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2173
2173
  capture: "at_action" | "historical_lookup" | "fixture";
2174
2174
  locator?: string | undefined;
2175
2175
  }, {
2176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2176
2177
  id: string;
2177
2178
  label: string;
2178
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2179
2179
  capture: "at_action" | "historical_lookup" | "fixture";
2180
2180
  locator?: string | undefined;
2181
2181
  }>, "many">>;
2182
2182
  }, "strict", z.ZodTypeAny, {
2183
+ kind: "test_result";
2183
2184
  summary: string;
2184
2185
  status: "error" | "failed" | "passed";
2185
- kind: "test_result";
2186
2186
  command: string;
2187
2187
  evidence: {
2188
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2188
2189
  id: string;
2189
2190
  label: string;
2190
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2191
2191
  capture: "at_action" | "historical_lookup" | "fixture";
2192
2192
  locator?: string | undefined;
2193
2193
  }[];
@@ -2196,17 +2196,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2196
2196
  durationMs?: number | undefined;
2197
2197
  correctionId?: string | undefined;
2198
2198
  }, {
2199
+ kind: "test_result";
2199
2200
  summary: string;
2200
2201
  status: "error" | "failed" | "passed";
2201
- kind: "test_result";
2202
2202
  command: string;
2203
2203
  decisionId: string;
2204
2204
  testId: string;
2205
2205
  durationMs?: number | undefined;
2206
2206
  evidence?: {
2207
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2207
2208
  id: string;
2208
2209
  label: string;
2209
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2210
2210
  capture: "at_action" | "historical_lookup" | "fixture";
2211
2211
  locator?: string | undefined;
2212
2212
  }[] | undefined;
@@ -2227,15 +2227,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2227
2227
  locator: z.ZodOptional<z.ZodString>;
2228
2228
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2229
2229
  }, "strict", z.ZodTypeAny, {
2230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
2231
  id: string;
2231
2232
  label: string;
2232
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2233
2233
  capture: "at_action" | "historical_lookup" | "fixture";
2234
2234
  locator?: string | undefined;
2235
2235
  }, {
2236
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2236
2237
  id: string;
2237
2238
  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
  }>, "many">>;
@@ -2244,9 +2244,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2244
2244
  rationale: string;
2245
2245
  statement: string;
2246
2246
  evidence: {
2247
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2247
2248
  id: string;
2248
2249
  label: string;
2249
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2250
2250
  capture: "at_action" | "historical_lookup" | "fixture";
2251
2251
  locator?: string | undefined;
2252
2252
  }[];
@@ -2265,9 +2265,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2265
2265
  supersedesDecisionIds: string[];
2266
2266
  proposedBy: string;
2267
2267
  evidence?: {
2268
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2268
2269
  id: string;
2269
2270
  label: string;
2270
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2271
2271
  capture: "at_action" | "historical_lookup" | "fixture";
2272
2272
  locator?: string | undefined;
2273
2273
  }[] | undefined;
@@ -2279,13 +2279,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2279
2279
  id: z.ZodString;
2280
2280
  label: z.ZodString;
2281
2281
  }, "strict", z.ZodTypeAny, {
2282
+ kind: "agent" | "human";
2282
2283
  id: string;
2283
2284
  label: string;
2284
- kind: "agent" | "human";
2285
2285
  }, {
2286
+ kind: "agent" | "human";
2286
2287
  id: string;
2287
2288
  label: string;
2288
- kind: "agent" | "human";
2289
2289
  }>;
2290
2290
  note: z.ZodOptional<z.ZodString>;
2291
2291
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2295,47 +2295,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2295
2295
  locator: z.ZodOptional<z.ZodString>;
2296
2296
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2297
2297
  }, "strict", z.ZodTypeAny, {
2298
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2298
2299
  id: string;
2299
2300
  label: string;
2300
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2301
2301
  capture: "at_action" | "historical_lookup" | "fixture";
2302
2302
  locator?: string | undefined;
2303
2303
  }, {
2304
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2304
2305
  id: string;
2305
2306
  label: string;
2306
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2307
2307
  capture: "at_action" | "historical_lookup" | "fixture";
2308
2308
  locator?: string | undefined;
2309
2309
  }>, "many">>;
2310
2310
  }, "strict", z.ZodTypeAny, {
2311
2311
  kind: "correction_approved";
2312
2312
  evidence: {
2313
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2313
2314
  id: string;
2314
2315
  label: string;
2315
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2316
2316
  capture: "at_action" | "historical_lookup" | "fixture";
2317
2317
  locator?: string | undefined;
2318
2318
  }[];
2319
2319
  correctionId: string;
2320
2320
  approvedBy: {
2321
+ kind: "agent" | "human";
2321
2322
  id: string;
2322
2323
  label: string;
2323
- kind: "agent" | "human";
2324
2324
  };
2325
2325
  note?: string | undefined;
2326
2326
  }, {
2327
2327
  kind: "correction_approved";
2328
2328
  correctionId: string;
2329
2329
  approvedBy: {
2330
+ kind: "agent" | "human";
2330
2331
  id: string;
2331
2332
  label: string;
2332
- kind: "agent" | "human";
2333
2333
  };
2334
2334
  note?: string | undefined;
2335
2335
  evidence?: {
2336
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2336
2337
  id: string;
2337
2338
  label: string;
2338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2339
2339
  capture: "at_action" | "historical_lookup" | "fixture";
2340
2340
  locator?: string | undefined;
2341
2341
  }[] | undefined;
@@ -2351,24 +2351,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2351
2351
  locator: z.ZodOptional<z.ZodString>;
2352
2352
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2353
2353
  }, "strict", z.ZodTypeAny, {
2354
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2354
2355
  id: string;
2355
2356
  label: string;
2356
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2357
2357
  capture: "at_action" | "historical_lookup" | "fixture";
2358
2358
  locator?: string | undefined;
2359
2359
  }, {
2360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2360
2361
  id: string;
2361
2362
  label: string;
2362
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2363
2363
  capture: "at_action" | "historical_lookup" | "fixture";
2364
2364
  locator?: string | undefined;
2365
2365
  }>, "many">>;
2366
2366
  }, "strict", z.ZodTypeAny, {
2367
2367
  kind: "decision_superseded";
2368
2368
  evidence: {
2369
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2369
2370
  id: string;
2370
2371
  label: string;
2371
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2372
2372
  capture: "at_action" | "historical_lookup" | "fixture";
2373
2373
  locator?: string | undefined;
2374
2374
  }[];
@@ -2381,9 +2381,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2381
2381
  correctionId: string;
2382
2382
  replacementDecisionId: string;
2383
2383
  evidence?: {
2384
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2384
2385
  id: string;
2385
2386
  label: string;
2386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2387
2387
  capture: "at_action" | "historical_lookup" | "fixture";
2388
2388
  locator?: string | undefined;
2389
2389
  }[] | undefined;
@@ -2399,15 +2399,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2399
2399
  locator: z.ZodOptional<z.ZodString>;
2400
2400
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2401
2401
  }, "strict", z.ZodTypeAny, {
2402
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2402
2403
  id: string;
2403
2404
  label: string;
2404
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2405
2405
  capture: "at_action" | "historical_lookup" | "fixture";
2406
2406
  locator?: string | undefined;
2407
2407
  }, {
2408
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2408
2409
  id: string;
2409
2410
  label: string;
2410
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2411
2411
  capture: "at_action" | "historical_lookup" | "fixture";
2412
2412
  locator?: string | undefined;
2413
2413
  }>, "many">>;
@@ -2420,9 +2420,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2420
2420
  agentId: string;
2421
2421
  sessionId: string;
2422
2422
  evidence: {
2423
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2423
2424
  id: string;
2424
2425
  label: string;
2425
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2426
2426
  capture: "at_action" | "historical_lookup" | "fixture";
2427
2427
  locator?: string | undefined;
2428
2428
  }[];
@@ -2438,9 +2438,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2438
2438
  recallReceiptId: string;
2439
2439
  capturedAtAction: boolean;
2440
2440
  evidence?: {
2441
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2441
2442
  id: string;
2442
2443
  label: string;
2443
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2444
2444
  capture: "at_action" | "historical_lookup" | "fixture";
2445
2445
  locator?: string | undefined;
2446
2446
  }[] | undefined;
@@ -2456,15 +2456,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2456
2456
  locator: z.ZodOptional<z.ZodString>;
2457
2457
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2458
2458
  }, "strict", z.ZodTypeAny, {
2459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2459
2460
  id: string;
2460
2461
  label: string;
2461
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2462
2462
  capture: "at_action" | "historical_lookup" | "fixture";
2463
2463
  locator?: string | undefined;
2464
2464
  }, {
2465
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2465
2466
  id: string;
2466
2467
  label: string;
2467
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2468
2468
  capture: "at_action" | "historical_lookup" | "fixture";
2469
2469
  locator?: string | undefined;
2470
2470
  }>, "many">>;
@@ -2476,9 +2476,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2476
2476
  agentId: string;
2477
2477
  sessionId: string;
2478
2478
  evidence: {
2479
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2479
2480
  id: string;
2480
2481
  label: string;
2481
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2482
2482
  capture: "at_action" | "historical_lookup" | "fixture";
2483
2483
  locator?: string | undefined;
2484
2484
  }[];
@@ -2495,9 +2495,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2495
2495
  recallReceiptId: string;
2496
2496
  staleDecisionAbsent: boolean;
2497
2497
  evidence?: {
2498
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2498
2499
  id: string;
2499
2500
  label: string;
2500
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2501
2501
  capture: "at_action" | "historical_lookup" | "fixture";
2502
2502
  locator?: string | undefined;
2503
2503
  }[] | undefined;
@@ -2512,37 +2512,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2512
2512
  locator: z.ZodOptional<z.ZodString>;
2513
2513
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2514
2514
  }, "strict", z.ZodTypeAny, {
2515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
2516
  id: string;
2516
2517
  label: string;
2517
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2518
2518
  capture: "at_action" | "historical_lookup" | "fixture";
2519
2519
  locator?: string | undefined;
2520
2520
  }, {
2521
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2521
2522
  id: string;
2522
2523
  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
  }>, "many">>;
2527
2527
  }, "strict", z.ZodTypeAny, {
2528
- summary: string;
2529
2528
  kind: "mission_completed";
2529
+ summary: string;
2530
2530
  outcome: "failed" | "recovered" | "inconclusive";
2531
2531
  evidence: {
2532
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2532
2533
  id: string;
2533
2534
  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
  }[];
2538
2538
  }, {
2539
- summary: string;
2540
2539
  kind: "mission_completed";
2540
+ summary: string;
2541
2541
  outcome: "failed" | "recovered" | "inconclusive";
2542
2542
  evidence?: {
2543
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
2544
  id: string;
2544
2545
  label: string;
2545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2546
2546
  capture: "at_action" | "historical_lookup" | "fixture";
2547
2547
  locator?: string | undefined;
2548
2548
  }[] | undefined;
@@ -2550,38 +2550,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2550
2550
  kind: "mission_started";
2551
2551
  title: string;
2552
2552
  evidence: {
2553
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2553
2554
  id: string;
2554
2555
  label: string;
2555
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2556
2556
  capture: "at_action" | "historical_lookup" | "fixture";
2557
2557
  locator?: string | undefined;
2558
2558
  }[];
2559
2559
  objective: string;
2560
2560
  runMode: "replay" | "fixture" | "live";
2561
2561
  } | {
2562
- label: string;
2563
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2564
2562
  kind: "agent_status";
2563
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2565
2564
  role: string;
2565
+ label: string;
2566
2566
  agentId: string;
2567
2567
  sessionId: string;
2568
2568
  evidence: {
2569
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2569
2570
  id: string;
2570
2571
  label: string;
2571
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2572
2572
  capture: "at_action" | "historical_lookup" | "fixture";
2573
2573
  locator?: string | undefined;
2574
2574
  }[];
2575
2575
  detail?: string | undefined;
2576
2576
  } | {
2577
- summary: string;
2578
2577
  kind: "agent_output";
2578
+ summary: string;
2579
2579
  agentId: string;
2580
2580
  sessionId: string;
2581
2581
  evidence: {
2582
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2582
2583
  id: string;
2583
2584
  label: string;
2584
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2585
2585
  capture: "at_action" | "historical_lookup" | "fixture";
2586
2586
  locator?: string | undefined;
2587
2587
  }[];
@@ -2592,9 +2592,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2592
2592
  statement: string;
2593
2593
  sessionId: string;
2594
2594
  evidence: {
2595
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2595
2596
  id: string;
2596
2597
  label: string;
2597
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
2598
  capture: "at_action" | "historical_lookup" | "fixture";
2599
2599
  locator?: string | undefined;
2600
2600
  }[];
@@ -2602,12 +2602,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2602
2602
  decisionId: string;
2603
2603
  confidence?: number | undefined;
2604
2604
  } | {
2605
- summary: string;
2606
2605
  kind: "conflict_detected";
2606
+ summary: string;
2607
2607
  evidence: {
2608
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2608
2609
  id: string;
2609
2610
  label: string;
2610
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2611
2611
  capture: "at_action" | "historical_lookup" | "fixture";
2612
2612
  locator?: string | undefined;
2613
2613
  }[];
@@ -2615,14 +2615,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2615
2615
  decisionIds: string[];
2616
2616
  agentIds: string[];
2617
2617
  } | {
2618
+ kind: "test_result";
2618
2619
  summary: string;
2619
2620
  status: "error" | "failed" | "passed";
2620
- kind: "test_result";
2621
2621
  command: string;
2622
2622
  evidence: {
2623
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2623
2624
  id: string;
2624
2625
  label: string;
2625
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2626
2626
  capture: "at_action" | "historical_lookup" | "fixture";
2627
2627
  locator?: string | undefined;
2628
2628
  }[];
@@ -2635,9 +2635,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2635
2635
  rationale: string;
2636
2636
  statement: string;
2637
2637
  evidence: {
2638
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2638
2639
  id: string;
2639
2640
  label: string;
2640
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2641
2641
  capture: "at_action" | "historical_lookup" | "fixture";
2642
2642
  locator?: string | undefined;
2643
2643
  }[];
@@ -2649,25 +2649,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2649
2649
  } | {
2650
2650
  kind: "correction_approved";
2651
2651
  evidence: {
2652
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2652
2653
  id: string;
2653
2654
  label: string;
2654
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2655
2655
  capture: "at_action" | "historical_lookup" | "fixture";
2656
2656
  locator?: string | undefined;
2657
2657
  }[];
2658
2658
  correctionId: string;
2659
2659
  approvedBy: {
2660
+ kind: "agent" | "human";
2660
2661
  id: string;
2661
2662
  label: string;
2662
- kind: "agent" | "human";
2663
2663
  };
2664
2664
  note?: string | undefined;
2665
2665
  } | {
2666
2666
  kind: "decision_superseded";
2667
2667
  evidence: {
2668
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2668
2669
  id: string;
2669
2670
  label: string;
2670
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2671
2671
  capture: "at_action" | "historical_lookup" | "fixture";
2672
2672
  locator?: string | undefined;
2673
2673
  }[];
@@ -2680,9 +2680,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2680
2680
  agentId: string;
2681
2681
  sessionId: string;
2682
2682
  evidence: {
2683
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2683
2684
  id: string;
2684
2685
  label: string;
2685
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2686
2686
  capture: "at_action" | "historical_lookup" | "fixture";
2687
2687
  locator?: string | undefined;
2688
2688
  }[];
@@ -2694,9 +2694,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2694
2694
  agentId: string;
2695
2695
  sessionId: string;
2696
2696
  evidence: {
2697
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2697
2698
  id: string;
2698
2699
  label: string;
2699
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2700
2700
  capture: "at_action" | "historical_lookup" | "fixture";
2701
2701
  locator?: string | undefined;
2702
2702
  }[];
@@ -2705,13 +2705,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2705
2705
  recallReceiptId: string;
2706
2706
  staleDecisionAbsent: boolean;
2707
2707
  } | {
2708
- summary: string;
2709
2708
  kind: "mission_completed";
2709
+ summary: string;
2710
2710
  outcome: "failed" | "recovered" | "inconclusive";
2711
2711
  evidence: {
2712
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2712
2713
  id: string;
2713
2714
  label: string;
2714
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2715
2715
  capture: "at_action" | "historical_lookup" | "fixture";
2716
2716
  locator?: string | undefined;
2717
2717
  }[];
@@ -2721,37 +2721,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2721
2721
  objective: string;
2722
2722
  runMode: "replay" | "fixture" | "live";
2723
2723
  evidence?: {
2724
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2724
2725
  id: string;
2725
2726
  label: string;
2726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2727
2727
  capture: "at_action" | "historical_lookup" | "fixture";
2728
2728
  locator?: string | undefined;
2729
2729
  }[] | undefined;
2730
2730
  } | {
2731
- label: string;
2732
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2733
2731
  kind: "agent_status";
2732
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2734
2733
  role: string;
2734
+ label: string;
2735
2735
  agentId: string;
2736
2736
  sessionId: string;
2737
2737
  detail?: string | undefined;
2738
2738
  evidence?: {
2739
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2739
2740
  id: string;
2740
2741
  label: string;
2741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2742
2742
  capture: "at_action" | "historical_lookup" | "fixture";
2743
2743
  locator?: string | undefined;
2744
2744
  }[] | undefined;
2745
2745
  } | {
2746
- summary: string;
2747
2746
  kind: "agent_output";
2747
+ summary: string;
2748
2748
  agentId: string;
2749
2749
  sessionId: string;
2750
2750
  outputId: string;
2751
2751
  evidence?: {
2752
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2752
2753
  id: string;
2753
2754
  label: string;
2754
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2755
2755
  capture: "at_action" | "historical_lookup" | "fixture";
2756
2756
  locator?: string | undefined;
2757
2757
  }[] | undefined;
@@ -2764,37 +2764,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2764
2764
  decisionId: string;
2765
2765
  confidence?: number | undefined;
2766
2766
  evidence?: {
2767
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
2768
  id: string;
2768
2769
  label: string;
2769
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2770
2770
  capture: "at_action" | "historical_lookup" | "fixture";
2771
2771
  locator?: string | undefined;
2772
2772
  }[] | undefined;
2773
2773
  } | {
2774
- summary: string;
2775
2774
  kind: "conflict_detected";
2775
+ summary: string;
2776
2776
  conflictId: string;
2777
2777
  decisionIds: string[];
2778
2778
  agentIds: string[];
2779
2779
  evidence?: {
2780
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2780
2781
  id: string;
2781
2782
  label: string;
2782
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2783
2783
  capture: "at_action" | "historical_lookup" | "fixture";
2784
2784
  locator?: string | undefined;
2785
2785
  }[] | undefined;
2786
2786
  } | {
2787
+ kind: "test_result";
2787
2788
  summary: string;
2788
2789
  status: "error" | "failed" | "passed";
2789
- kind: "test_result";
2790
2790
  command: string;
2791
2791
  decisionId: string;
2792
2792
  testId: string;
2793
2793
  durationMs?: number | undefined;
2794
2794
  evidence?: {
2795
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
2796
  id: string;
2796
2797
  label: string;
2797
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2798
2798
  capture: "at_action" | "historical_lookup" | "fixture";
2799
2799
  locator?: string | undefined;
2800
2800
  }[] | undefined;
@@ -2809,9 +2809,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2809
2809
  supersedesDecisionIds: string[];
2810
2810
  proposedBy: string;
2811
2811
  evidence?: {
2812
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2812
2813
  id: string;
2813
2814
  label: string;
2814
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2815
2815
  capture: "at_action" | "historical_lookup" | "fixture";
2816
2816
  locator?: string | undefined;
2817
2817
  }[] | undefined;
@@ -2819,15 +2819,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2819
2819
  kind: "correction_approved";
2820
2820
  correctionId: string;
2821
2821
  approvedBy: {
2822
+ kind: "agent" | "human";
2822
2823
  id: string;
2823
2824
  label: string;
2824
- kind: "agent" | "human";
2825
2825
  };
2826
2826
  note?: string | undefined;
2827
2827
  evidence?: {
2828
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2828
2829
  id: string;
2829
2830
  label: string;
2830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2831
2831
  capture: "at_action" | "historical_lookup" | "fixture";
2832
2832
  locator?: string | undefined;
2833
2833
  }[] | undefined;
@@ -2837,9 +2837,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2837
2837
  correctionId: string;
2838
2838
  replacementDecisionId: string;
2839
2839
  evidence?: {
2840
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2840
2841
  id: string;
2841
2842
  label: string;
2842
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2843
2843
  capture: "at_action" | "historical_lookup" | "fixture";
2844
2844
  locator?: string | undefined;
2845
2845
  }[] | undefined;
@@ -2852,9 +2852,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2852
2852
  recallReceiptId: string;
2853
2853
  capturedAtAction: boolean;
2854
2854
  evidence?: {
2855
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2855
2856
  id: string;
2856
2857
  label: string;
2857
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2858
2858
  capture: "at_action" | "historical_lookup" | "fixture";
2859
2859
  locator?: string | undefined;
2860
2860
  }[] | undefined;
@@ -2867,20 +2867,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2867
2867
  recallReceiptId: string;
2868
2868
  staleDecisionAbsent: boolean;
2869
2869
  evidence?: {
2870
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2870
2871
  id: string;
2871
2872
  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;
2876
2876
  } | {
2877
- summary: string;
2878
2877
  kind: "mission_completed";
2878
+ summary: string;
2879
2879
  outcome: "failed" | "recovered" | "inconclusive";
2880
2880
  evidence?: {
2881
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2881
2882
  id: string;
2882
2883
  label: string;
2883
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2884
2884
  capture: "at_action" | "historical_lookup" | "fixture";
2885
2885
  locator?: string | undefined;
2886
2886
  }[] | undefined;
@@ -2890,38 +2890,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2890
2890
  kind: "mission_started";
2891
2891
  title: string;
2892
2892
  evidence: {
2893
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2893
2894
  id: string;
2894
2895
  label: string;
2895
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2896
2896
  capture: "at_action" | "historical_lookup" | "fixture";
2897
2897
  locator?: string | undefined;
2898
2898
  }[];
2899
2899
  objective: string;
2900
2900
  runMode: "replay" | "fixture" | "live";
2901
2901
  } | {
2902
- label: string;
2903
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2904
2902
  kind: "agent_status";
2903
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2905
2904
  role: string;
2905
+ label: string;
2906
2906
  agentId: string;
2907
2907
  sessionId: string;
2908
2908
  evidence: {
2909
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
2910
  id: string;
2910
2911
  label: string;
2911
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
2912
  capture: "at_action" | "historical_lookup" | "fixture";
2913
2913
  locator?: string | undefined;
2914
2914
  }[];
2915
2915
  detail?: string | undefined;
2916
2916
  } | {
2917
- summary: string;
2918
2917
  kind: "agent_output";
2918
+ summary: string;
2919
2919
  agentId: string;
2920
2920
  sessionId: string;
2921
2921
  evidence: {
2922
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2922
2923
  id: string;
2923
2924
  label: string;
2924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2925
2925
  capture: "at_action" | "historical_lookup" | "fixture";
2926
2926
  locator?: string | undefined;
2927
2927
  }[];
@@ -2932,9 +2932,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2932
2932
  statement: string;
2933
2933
  sessionId: string;
2934
2934
  evidence: {
2935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2935
2936
  id: string;
2936
2937
  label: string;
2937
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2938
2938
  capture: "at_action" | "historical_lookup" | "fixture";
2939
2939
  locator?: string | undefined;
2940
2940
  }[];
@@ -2942,12 +2942,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2942
2942
  decisionId: string;
2943
2943
  confidence?: number | undefined;
2944
2944
  } | {
2945
- summary: string;
2946
2945
  kind: "conflict_detected";
2946
+ summary: string;
2947
2947
  evidence: {
2948
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2948
2949
  id: string;
2949
2950
  label: string;
2950
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2951
2951
  capture: "at_action" | "historical_lookup" | "fixture";
2952
2952
  locator?: string | undefined;
2953
2953
  }[];
@@ -2955,14 +2955,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2955
2955
  decisionIds: string[];
2956
2956
  agentIds: string[];
2957
2957
  } | {
2958
+ kind: "test_result";
2958
2959
  summary: string;
2959
2960
  status: "error" | "failed" | "passed";
2960
- kind: "test_result";
2961
2961
  command: string;
2962
2962
  evidence: {
2963
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
2964
  id: string;
2964
2965
  label: string;
2965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2966
2966
  capture: "at_action" | "historical_lookup" | "fixture";
2967
2967
  locator?: string | undefined;
2968
2968
  }[];
@@ -2975,9 +2975,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2975
2975
  rationale: string;
2976
2976
  statement: string;
2977
2977
  evidence: {
2978
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2978
2979
  id: string;
2979
2980
  label: string;
2980
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2981
2981
  capture: "at_action" | "historical_lookup" | "fixture";
2982
2982
  locator?: string | undefined;
2983
2983
  }[];
@@ -2989,25 +2989,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2989
2989
  } | {
2990
2990
  kind: "correction_approved";
2991
2991
  evidence: {
2992
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2992
2993
  id: string;
2993
2994
  label: string;
2994
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2995
2995
  capture: "at_action" | "historical_lookup" | "fixture";
2996
2996
  locator?: string | undefined;
2997
2997
  }[];
2998
2998
  correctionId: string;
2999
2999
  approvedBy: {
3000
+ kind: "agent" | "human";
3000
3001
  id: string;
3001
3002
  label: string;
3002
- kind: "agent" | "human";
3003
3003
  };
3004
3004
  note?: string | undefined;
3005
3005
  } | {
3006
3006
  kind: "decision_superseded";
3007
3007
  evidence: {
3008
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3008
3009
  id: string;
3009
3010
  label: string;
3010
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3011
3011
  capture: "at_action" | "historical_lookup" | "fixture";
3012
3012
  locator?: string | undefined;
3013
3013
  }[];
@@ -3020,9 +3020,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3020
3020
  agentId: string;
3021
3021
  sessionId: string;
3022
3022
  evidence: {
3023
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3023
3024
  id: string;
3024
3025
  label: string;
3025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3026
3026
  capture: "at_action" | "historical_lookup" | "fixture";
3027
3027
  locator?: string | undefined;
3028
3028
  }[];
@@ -3034,9 +3034,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3034
3034
  agentId: string;
3035
3035
  sessionId: string;
3036
3036
  evidence: {
3037
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3037
3038
  id: string;
3038
3039
  label: string;
3039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3040
3040
  capture: "at_action" | "historical_lookup" | "fixture";
3041
3041
  locator?: string | undefined;
3042
3042
  }[];
@@ -3045,13 +3045,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3045
3045
  recallReceiptId: string;
3046
3046
  staleDecisionAbsent: boolean;
3047
3047
  } | {
3048
- summary: string;
3049
3048
  kind: "mission_completed";
3049
+ summary: string;
3050
3050
  outcome: "failed" | "recovered" | "inconclusive";
3051
3051
  evidence: {
3052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3052
3053
  id: string;
3053
3054
  label: string;
3054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3055
3055
  capture: "at_action" | "historical_lookup" | "fixture";
3056
3056
  locator?: string | undefined;
3057
3057
  }[];
@@ -3065,37 +3065,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3065
3065
  objective: string;
3066
3066
  runMode: "replay" | "fixture" | "live";
3067
3067
  evidence?: {
3068
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3068
3069
  id: string;
3069
3070
  label: string;
3070
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3071
3071
  capture: "at_action" | "historical_lookup" | "fixture";
3072
3072
  locator?: string | undefined;
3073
3073
  }[] | undefined;
3074
3074
  } | {
3075
- label: string;
3076
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3077
3075
  kind: "agent_status";
3076
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3078
3077
  role: string;
3078
+ label: string;
3079
3079
  agentId: string;
3080
3080
  sessionId: string;
3081
3081
  detail?: string | undefined;
3082
3082
  evidence?: {
3083
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3083
3084
  id: string;
3084
3085
  label: string;
3085
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3086
3086
  capture: "at_action" | "historical_lookup" | "fixture";
3087
3087
  locator?: string | undefined;
3088
3088
  }[] | undefined;
3089
3089
  } | {
3090
- summary: string;
3091
3090
  kind: "agent_output";
3091
+ summary: string;
3092
3092
  agentId: string;
3093
3093
  sessionId: string;
3094
3094
  outputId: string;
3095
3095
  evidence?: {
3096
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3096
3097
  id: string;
3097
3098
  label: string;
3098
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3099
3099
  capture: "at_action" | "historical_lookup" | "fixture";
3100
3100
  locator?: string | undefined;
3101
3101
  }[] | undefined;
@@ -3108,37 +3108,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3108
3108
  decisionId: string;
3109
3109
  confidence?: number | undefined;
3110
3110
  evidence?: {
3111
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3111
3112
  id: string;
3112
3113
  label: string;
3113
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3114
3114
  capture: "at_action" | "historical_lookup" | "fixture";
3115
3115
  locator?: string | undefined;
3116
3116
  }[] | undefined;
3117
3117
  } | {
3118
- summary: string;
3119
3118
  kind: "conflict_detected";
3119
+ summary: string;
3120
3120
  conflictId: string;
3121
3121
  decisionIds: string[];
3122
3122
  agentIds: string[];
3123
3123
  evidence?: {
3124
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3124
3125
  id: string;
3125
3126
  label: string;
3126
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3127
3127
  capture: "at_action" | "historical_lookup" | "fixture";
3128
3128
  locator?: string | undefined;
3129
3129
  }[] | undefined;
3130
3130
  } | {
3131
+ kind: "test_result";
3131
3132
  summary: string;
3132
3133
  status: "error" | "failed" | "passed";
3133
- kind: "test_result";
3134
3134
  command: string;
3135
3135
  decisionId: string;
3136
3136
  testId: string;
3137
3137
  durationMs?: number | undefined;
3138
3138
  evidence?: {
3139
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
3140
  id: string;
3140
3141
  label: string;
3141
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3142
3142
  capture: "at_action" | "historical_lookup" | "fixture";
3143
3143
  locator?: string | undefined;
3144
3144
  }[] | undefined;
@@ -3153,9 +3153,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3153
3153
  supersedesDecisionIds: string[];
3154
3154
  proposedBy: string;
3155
3155
  evidence?: {
3156
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3156
3157
  id: string;
3157
3158
  label: string;
3158
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3159
3159
  capture: "at_action" | "historical_lookup" | "fixture";
3160
3160
  locator?: string | undefined;
3161
3161
  }[] | undefined;
@@ -3163,15 +3163,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3163
3163
  kind: "correction_approved";
3164
3164
  correctionId: string;
3165
3165
  approvedBy: {
3166
+ kind: "agent" | "human";
3166
3167
  id: string;
3167
3168
  label: string;
3168
- kind: "agent" | "human";
3169
3169
  };
3170
3170
  note?: string | undefined;
3171
3171
  evidence?: {
3172
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3172
3173
  id: string;
3173
3174
  label: string;
3174
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3175
3175
  capture: "at_action" | "historical_lookup" | "fixture";
3176
3176
  locator?: string | undefined;
3177
3177
  }[] | undefined;
@@ -3181,9 +3181,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3181
3181
  correctionId: string;
3182
3182
  replacementDecisionId: string;
3183
3183
  evidence?: {
3184
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3184
3185
  id: string;
3185
3186
  label: string;
3186
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3187
3187
  capture: "at_action" | "historical_lookup" | "fixture";
3188
3188
  locator?: string | undefined;
3189
3189
  }[] | undefined;
@@ -3196,9 +3196,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3196
3196
  recallReceiptId: string;
3197
3197
  capturedAtAction: boolean;
3198
3198
  evidence?: {
3199
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3199
3200
  id: string;
3200
3201
  label: string;
3201
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3202
3202
  capture: "at_action" | "historical_lookup" | "fixture";
3203
3203
  locator?: string | undefined;
3204
3204
  }[] | undefined;
@@ -3211,20 +3211,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3211
3211
  recallReceiptId: string;
3212
3212
  staleDecisionAbsent: boolean;
3213
3213
  evidence?: {
3214
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3214
3215
  id: string;
3215
3216
  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;
3220
3220
  } | {
3221
- summary: string;
3222
3221
  kind: "mission_completed";
3222
+ summary: string;
3223
3223
  outcome: "failed" | "recovered" | "inconclusive";
3224
3224
  evidence?: {
3225
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3225
3226
  id: string;
3226
3227
  label: string;
3227
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3228
3228
  capture: "at_action" | "historical_lookup" | "fixture";
3229
3229
  locator?: string | undefined;
3230
3230
  }[] | undefined;
@@ -3254,15 +3254,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3254
3254
  locator: z.ZodOptional<z.ZodString>;
3255
3255
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3256
3256
  }, "strict", z.ZodTypeAny, {
3257
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3257
3258
  id: string;
3258
3259
  label: string;
3259
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3260
3260
  capture: "at_action" | "historical_lookup" | "fixture";
3261
3261
  locator?: string | undefined;
3262
3262
  }, {
3263
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3263
3264
  id: string;
3264
3265
  label: string;
3265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3266
3266
  capture: "at_action" | "historical_lookup" | "fixture";
3267
3267
  locator?: string | undefined;
3268
3268
  }>, "many">>;
@@ -3270,9 +3270,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3270
3270
  kind: "mission_started";
3271
3271
  title: string;
3272
3272
  evidence: {
3273
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3273
3274
  id: string;
3274
3275
  label: string;
3275
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3276
3276
  capture: "at_action" | "historical_lookup" | "fixture";
3277
3277
  locator?: string | undefined;
3278
3278
  }[];
@@ -3284,9 +3284,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3284
3284
  objective: string;
3285
3285
  runMode: "replay" | "fixture" | "live";
3286
3286
  evidence?: {
3287
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3287
3288
  id: string;
3288
3289
  label: string;
3289
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3290
3290
  capture: "at_action" | "historical_lookup" | "fixture";
3291
3291
  locator?: string | undefined;
3292
3292
  }[] | undefined;
@@ -3302,15 +3302,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3302
3302
  locator: z.ZodOptional<z.ZodString>;
3303
3303
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3304
3304
  }, "strict", z.ZodTypeAny, {
3305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3305
3306
  id: string;
3306
3307
  label: string;
3307
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3308
3308
  capture: "at_action" | "historical_lookup" | "fixture";
3309
3309
  locator?: string | undefined;
3310
3310
  }, {
3311
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
3312
  id: string;
3312
3313
  label: string;
3313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3314
3314
  capture: "at_action" | "historical_lookup" | "fixture";
3315
3315
  locator?: string | undefined;
3316
3316
  }>, "many">>;
@@ -3318,32 +3318,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3318
3318
  sessionId: z.ZodString;
3319
3319
  kind: z.ZodLiteral<"agent_status">;
3320
3320
  }, "strict", z.ZodTypeAny, {
3321
- label: string;
3322
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3323
3321
  kind: "agent_status";
3322
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3324
3323
  role: string;
3324
+ label: string;
3325
3325
  agentId: string;
3326
3326
  sessionId: string;
3327
3327
  evidence: {
3328
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3328
3329
  id: string;
3329
3330
  label: string;
3330
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3331
3331
  capture: "at_action" | "historical_lookup" | "fixture";
3332
3332
  locator?: string | undefined;
3333
3333
  }[];
3334
3334
  detail?: string | undefined;
3335
3335
  }, {
3336
- label: string;
3337
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3338
3336
  kind: "agent_status";
3337
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3339
3338
  role: string;
3339
+ label: string;
3340
3340
  agentId: string;
3341
3341
  sessionId: string;
3342
3342
  detail?: string | undefined;
3343
3343
  evidence?: {
3344
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
3345
  id: string;
3345
3346
  label: string;
3346
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3347
3347
  capture: "at_action" | "historical_lookup" | "fixture";
3348
3348
  locator?: string | undefined;
3349
3349
  }[] | undefined;
@@ -3357,15 +3357,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3357
3357
  locator: z.ZodOptional<z.ZodString>;
3358
3358
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3359
3359
  }, "strict", z.ZodTypeAny, {
3360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3360
3361
  id: string;
3361
3362
  label: string;
3362
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3363
3363
  capture: "at_action" | "historical_lookup" | "fixture";
3364
3364
  locator?: string | undefined;
3365
3365
  }, {
3366
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3366
3367
  id: string;
3367
3368
  label: string;
3368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3369
3369
  capture: "at_action" | "historical_lookup" | "fixture";
3370
3370
  locator?: string | undefined;
3371
3371
  }>, "many">>;
@@ -3373,28 +3373,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3373
3373
  sessionId: z.ZodString;
3374
3374
  kind: z.ZodLiteral<"agent_output">;
3375
3375
  }, "strict", z.ZodTypeAny, {
3376
- summary: string;
3377
3376
  kind: "agent_output";
3377
+ summary: string;
3378
3378
  agentId: string;
3379
3379
  sessionId: string;
3380
3380
  evidence: {
3381
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3381
3382
  id: string;
3382
3383
  label: string;
3383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3384
3384
  capture: "at_action" | "historical_lookup" | "fixture";
3385
3385
  locator?: string | undefined;
3386
3386
  }[];
3387
3387
  outputId: string;
3388
3388
  }, {
3389
- summary: string;
3390
3389
  kind: "agent_output";
3390
+ summary: string;
3391
3391
  agentId: string;
3392
3392
  sessionId: string;
3393
3393
  outputId: string;
3394
3394
  evidence?: {
3395
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3395
3396
  id: string;
3396
3397
  label: string;
3397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3398
3398
  capture: "at_action" | "historical_lookup" | "fixture";
3399
3399
  locator?: string | undefined;
3400
3400
  }[] | undefined;
@@ -3410,15 +3410,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3410
3410
  locator: z.ZodOptional<z.ZodString>;
3411
3411
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3412
3412
  }, "strict", z.ZodTypeAny, {
3413
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3413
3414
  id: string;
3414
3415
  label: string;
3415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3416
3416
  capture: "at_action" | "historical_lookup" | "fixture";
3417
3417
  locator?: string | undefined;
3418
3418
  }, {
3419
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3419
3420
  id: string;
3420
3421
  label: string;
3421
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3422
3422
  capture: "at_action" | "historical_lookup" | "fixture";
3423
3423
  locator?: string | undefined;
3424
3424
  }>, "many">>;
@@ -3431,9 +3431,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3431
3431
  statement: string;
3432
3432
  sessionId: string;
3433
3433
  evidence: {
3434
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3434
3435
  id: string;
3435
3436
  label: string;
3436
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3437
3437
  capture: "at_action" | "historical_lookup" | "fixture";
3438
3438
  locator?: string | undefined;
3439
3439
  }[];
@@ -3449,9 +3449,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3449
3449
  decisionId: string;
3450
3450
  confidence?: number | undefined;
3451
3451
  evidence?: {
3452
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3452
3453
  id: string;
3453
3454
  label: string;
3454
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3455
3455
  capture: "at_action" | "historical_lookup" | "fixture";
3456
3456
  locator?: string | undefined;
3457
3457
  }[] | undefined;
@@ -3468,25 +3468,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3468
3468
  locator: z.ZodOptional<z.ZodString>;
3469
3469
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3470
3470
  }, "strict", z.ZodTypeAny, {
3471
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3471
3472
  id: string;
3472
3473
  label: string;
3473
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3474
3474
  capture: "at_action" | "historical_lookup" | "fixture";
3475
3475
  locator?: string | undefined;
3476
3476
  }, {
3477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
3478
  id: string;
3478
3479
  label: string;
3479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3480
3480
  capture: "at_action" | "historical_lookup" | "fixture";
3481
3481
  locator?: string | undefined;
3482
3482
  }>, "many">>;
3483
3483
  }, "strict", z.ZodTypeAny, {
3484
- summary: string;
3485
3484
  kind: "conflict_detected";
3485
+ summary: string;
3486
3486
  evidence: {
3487
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3487
3488
  id: string;
3488
3489
  label: string;
3489
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3490
3490
  capture: "at_action" | "historical_lookup" | "fixture";
3491
3491
  locator?: string | undefined;
3492
3492
  }[];
@@ -3494,15 +3494,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3494
3494
  decisionIds: string[];
3495
3495
  agentIds: string[];
3496
3496
  }, {
3497
- summary: string;
3498
3497
  kind: "conflict_detected";
3498
+ summary: string;
3499
3499
  conflictId: string;
3500
3500
  decisionIds: string[];
3501
3501
  agentIds: string[];
3502
3502
  evidence?: {
3503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3503
3504
  id: string;
3504
3505
  label: string;
3505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3506
3506
  capture: "at_action" | "historical_lookup" | "fixture";
3507
3507
  locator?: string | undefined;
3508
3508
  }[] | undefined;
@@ -3522,27 +3522,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3522
3522
  locator: z.ZodOptional<z.ZodString>;
3523
3523
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3524
3524
  }, "strict", z.ZodTypeAny, {
3525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3525
3526
  id: string;
3526
3527
  label: string;
3527
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3528
3528
  capture: "at_action" | "historical_lookup" | "fixture";
3529
3529
  locator?: string | undefined;
3530
3530
  }, {
3531
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3531
3532
  id: string;
3532
3533
  label: string;
3533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3534
3534
  capture: "at_action" | "historical_lookup" | "fixture";
3535
3535
  locator?: string | undefined;
3536
3536
  }>, "many">>;
3537
3537
  }, "strict", z.ZodTypeAny, {
3538
+ kind: "test_result";
3538
3539
  summary: string;
3539
3540
  status: "error" | "failed" | "passed";
3540
- kind: "test_result";
3541
3541
  command: string;
3542
3542
  evidence: {
3543
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3543
3544
  id: string;
3544
3545
  label: string;
3545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3546
3546
  capture: "at_action" | "historical_lookup" | "fixture";
3547
3547
  locator?: string | undefined;
3548
3548
  }[];
@@ -3551,17 +3551,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3551
3551
  durationMs?: number | undefined;
3552
3552
  correctionId?: string | undefined;
3553
3553
  }, {
3554
+ kind: "test_result";
3554
3555
  summary: string;
3555
3556
  status: "error" | "failed" | "passed";
3556
- kind: "test_result";
3557
3557
  command: string;
3558
3558
  decisionId: string;
3559
3559
  testId: string;
3560
3560
  durationMs?: number | undefined;
3561
3561
  evidence?: {
3562
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3562
3563
  id: string;
3563
3564
  label: string;
3564
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3565
3565
  capture: "at_action" | "historical_lookup" | "fixture";
3566
3566
  locator?: string | undefined;
3567
3567
  }[] | undefined;
@@ -3582,15 +3582,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3582
3582
  locator: z.ZodOptional<z.ZodString>;
3583
3583
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3584
3584
  }, "strict", z.ZodTypeAny, {
3585
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3585
3586
  id: string;
3586
3587
  label: string;
3587
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3588
3588
  capture: "at_action" | "historical_lookup" | "fixture";
3589
3589
  locator?: string | undefined;
3590
3590
  }, {
3591
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3591
3592
  id: string;
3592
3593
  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
  }>, "many">>;
@@ -3599,9 +3599,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3599
3599
  rationale: string;
3600
3600
  statement: string;
3601
3601
  evidence: {
3602
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3602
3603
  id: string;
3603
3604
  label: string;
3604
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3605
3605
  capture: "at_action" | "historical_lookup" | "fixture";
3606
3606
  locator?: string | undefined;
3607
3607
  }[];
@@ -3620,9 +3620,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3620
3620
  supersedesDecisionIds: string[];
3621
3621
  proposedBy: string;
3622
3622
  evidence?: {
3623
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3623
3624
  id: string;
3624
3625
  label: string;
3625
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3626
3626
  capture: "at_action" | "historical_lookup" | "fixture";
3627
3627
  locator?: string | undefined;
3628
3628
  }[] | undefined;
@@ -3634,13 +3634,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3634
3634
  id: z.ZodString;
3635
3635
  label: z.ZodString;
3636
3636
  }, "strict", z.ZodTypeAny, {
3637
+ kind: "agent" | "human";
3637
3638
  id: string;
3638
3639
  label: string;
3639
- kind: "agent" | "human";
3640
3640
  }, {
3641
+ kind: "agent" | "human";
3641
3642
  id: string;
3642
3643
  label: string;
3643
- kind: "agent" | "human";
3644
3644
  }>;
3645
3645
  note: z.ZodOptional<z.ZodString>;
3646
3646
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3650,47 +3650,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3650
3650
  locator: z.ZodOptional<z.ZodString>;
3651
3651
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3652
3652
  }, "strict", z.ZodTypeAny, {
3653
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3653
3654
  id: string;
3654
3655
  label: string;
3655
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3656
3656
  capture: "at_action" | "historical_lookup" | "fixture";
3657
3657
  locator?: string | undefined;
3658
3658
  }, {
3659
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3659
3660
  id: string;
3660
3661
  label: string;
3661
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3662
3662
  capture: "at_action" | "historical_lookup" | "fixture";
3663
3663
  locator?: string | undefined;
3664
3664
  }>, "many">>;
3665
3665
  }, "strict", z.ZodTypeAny, {
3666
3666
  kind: "correction_approved";
3667
3667
  evidence: {
3668
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3668
3669
  id: string;
3669
3670
  label: string;
3670
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3671
3671
  capture: "at_action" | "historical_lookup" | "fixture";
3672
3672
  locator?: string | undefined;
3673
3673
  }[];
3674
3674
  correctionId: string;
3675
3675
  approvedBy: {
3676
+ kind: "agent" | "human";
3676
3677
  id: string;
3677
3678
  label: string;
3678
- kind: "agent" | "human";
3679
3679
  };
3680
3680
  note?: string | undefined;
3681
3681
  }, {
3682
3682
  kind: "correction_approved";
3683
3683
  correctionId: string;
3684
3684
  approvedBy: {
3685
+ kind: "agent" | "human";
3685
3686
  id: string;
3686
3687
  label: string;
3687
- kind: "agent" | "human";
3688
3688
  };
3689
3689
  note?: string | undefined;
3690
3690
  evidence?: {
3691
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3691
3692
  id: string;
3692
3693
  label: string;
3693
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3694
3694
  capture: "at_action" | "historical_lookup" | "fixture";
3695
3695
  locator?: string | undefined;
3696
3696
  }[] | undefined;
@@ -3706,24 +3706,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3706
3706
  locator: z.ZodOptional<z.ZodString>;
3707
3707
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3708
3708
  }, "strict", z.ZodTypeAny, {
3709
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3709
3710
  id: string;
3710
3711
  label: string;
3711
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3712
3712
  capture: "at_action" | "historical_lookup" | "fixture";
3713
3713
  locator?: string | undefined;
3714
3714
  }, {
3715
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3715
3716
  id: string;
3716
3717
  label: string;
3717
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3718
3718
  capture: "at_action" | "historical_lookup" | "fixture";
3719
3719
  locator?: string | undefined;
3720
3720
  }>, "many">>;
3721
3721
  }, "strict", z.ZodTypeAny, {
3722
3722
  kind: "decision_superseded";
3723
3723
  evidence: {
3724
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3724
3725
  id: string;
3725
3726
  label: string;
3726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3727
3727
  capture: "at_action" | "historical_lookup" | "fixture";
3728
3728
  locator?: string | undefined;
3729
3729
  }[];
@@ -3736,9 +3736,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3736
3736
  correctionId: string;
3737
3737
  replacementDecisionId: string;
3738
3738
  evidence?: {
3739
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3739
3740
  id: string;
3740
3741
  label: string;
3741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3742
3742
  capture: "at_action" | "historical_lookup" | "fixture";
3743
3743
  locator?: string | undefined;
3744
3744
  }[] | undefined;
@@ -3754,15 +3754,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3754
3754
  locator: z.ZodOptional<z.ZodString>;
3755
3755
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3756
3756
  }, "strict", z.ZodTypeAny, {
3757
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3757
3758
  id: string;
3758
3759
  label: string;
3759
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3760
3760
  capture: "at_action" | "historical_lookup" | "fixture";
3761
3761
  locator?: string | undefined;
3762
3762
  }, {
3763
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3763
3764
  id: string;
3764
3765
  label: string;
3765
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3766
3766
  capture: "at_action" | "historical_lookup" | "fixture";
3767
3767
  locator?: string | undefined;
3768
3768
  }>, "many">>;
@@ -3775,9 +3775,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3775
3775
  agentId: string;
3776
3776
  sessionId: string;
3777
3777
  evidence: {
3778
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3778
3779
  id: string;
3779
3780
  label: string;
3780
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3781
3781
  capture: "at_action" | "historical_lookup" | "fixture";
3782
3782
  locator?: string | undefined;
3783
3783
  }[];
@@ -3793,9 +3793,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3793
3793
  recallReceiptId: string;
3794
3794
  capturedAtAction: boolean;
3795
3795
  evidence?: {
3796
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3796
3797
  id: string;
3797
3798
  label: string;
3798
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3799
3799
  capture: "at_action" | "historical_lookup" | "fixture";
3800
3800
  locator?: string | undefined;
3801
3801
  }[] | undefined;
@@ -3811,15 +3811,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3811
3811
  locator: z.ZodOptional<z.ZodString>;
3812
3812
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3813
3813
  }, "strict", z.ZodTypeAny, {
3814
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3814
3815
  id: string;
3815
3816
  label: string;
3816
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3817
3817
  capture: "at_action" | "historical_lookup" | "fixture";
3818
3818
  locator?: string | undefined;
3819
3819
  }, {
3820
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3820
3821
  id: string;
3821
3822
  label: string;
3822
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3823
3823
  capture: "at_action" | "historical_lookup" | "fixture";
3824
3824
  locator?: string | undefined;
3825
3825
  }>, "many">>;
@@ -3831,9 +3831,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3831
3831
  agentId: string;
3832
3832
  sessionId: string;
3833
3833
  evidence: {
3834
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3834
3835
  id: string;
3835
3836
  label: string;
3836
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3837
3837
  capture: "at_action" | "historical_lookup" | "fixture";
3838
3838
  locator?: string | undefined;
3839
3839
  }[];
@@ -3850,9 +3850,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3850
3850
  recallReceiptId: string;
3851
3851
  staleDecisionAbsent: boolean;
3852
3852
  evidence?: {
3853
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3853
3854
  id: string;
3854
3855
  label: string;
3855
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3856
3856
  capture: "at_action" | "historical_lookup" | "fixture";
3857
3857
  locator?: string | undefined;
3858
3858
  }[] | undefined;
@@ -3867,37 +3867,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3867
3867
  locator: z.ZodOptional<z.ZodString>;
3868
3868
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3869
3869
  }, "strict", z.ZodTypeAny, {
3870
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
3871
  id: string;
3871
3872
  label: string;
3872
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3873
3873
  capture: "at_action" | "historical_lookup" | "fixture";
3874
3874
  locator?: string | undefined;
3875
3875
  }, {
3876
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3876
3877
  id: string;
3877
3878
  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
  }>, "many">>;
3882
3882
  }, "strict", z.ZodTypeAny, {
3883
- summary: string;
3884
3883
  kind: "mission_completed";
3884
+ summary: string;
3885
3885
  outcome: "failed" | "recovered" | "inconclusive";
3886
3886
  evidence: {
3887
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3887
3888
  id: string;
3888
3889
  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
  }[];
3893
3893
  }, {
3894
- summary: string;
3895
3894
  kind: "mission_completed";
3895
+ summary: string;
3896
3896
  outcome: "failed" | "recovered" | "inconclusive";
3897
3897
  evidence?: {
3898
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
3899
  id: string;
3899
3900
  label: string;
3900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3901
3901
  capture: "at_action" | "historical_lookup" | "fixture";
3902
3902
  locator?: string | undefined;
3903
3903
  }[] | undefined;
@@ -3905,38 +3905,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3905
3905
  kind: "mission_started";
3906
3906
  title: string;
3907
3907
  evidence: {
3908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3908
3909
  id: string;
3909
3910
  label: string;
3910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3911
3911
  capture: "at_action" | "historical_lookup" | "fixture";
3912
3912
  locator?: string | undefined;
3913
3913
  }[];
3914
3914
  objective: string;
3915
3915
  runMode: "replay" | "fixture" | "live";
3916
3916
  } | {
3917
- label: string;
3918
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3919
3917
  kind: "agent_status";
3918
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3920
3919
  role: string;
3920
+ label: string;
3921
3921
  agentId: string;
3922
3922
  sessionId: string;
3923
3923
  evidence: {
3924
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3924
3925
  id: string;
3925
3926
  label: string;
3926
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3927
3927
  capture: "at_action" | "historical_lookup" | "fixture";
3928
3928
  locator?: string | undefined;
3929
3929
  }[];
3930
3930
  detail?: string | undefined;
3931
3931
  } | {
3932
- summary: string;
3933
3932
  kind: "agent_output";
3933
+ summary: string;
3934
3934
  agentId: string;
3935
3935
  sessionId: string;
3936
3936
  evidence: {
3937
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3937
3938
  id: string;
3938
3939
  label: string;
3939
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3940
3940
  capture: "at_action" | "historical_lookup" | "fixture";
3941
3941
  locator?: string | undefined;
3942
3942
  }[];
@@ -3947,9 +3947,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3947
3947
  statement: string;
3948
3948
  sessionId: string;
3949
3949
  evidence: {
3950
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3950
3951
  id: string;
3951
3952
  label: string;
3952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
3953
  capture: "at_action" | "historical_lookup" | "fixture";
3954
3954
  locator?: string | undefined;
3955
3955
  }[];
@@ -3957,12 +3957,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3957
3957
  decisionId: string;
3958
3958
  confidence?: number | undefined;
3959
3959
  } | {
3960
- summary: string;
3961
3960
  kind: "conflict_detected";
3961
+ summary: string;
3962
3962
  evidence: {
3963
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3963
3964
  id: string;
3964
3965
  label: string;
3965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3966
3966
  capture: "at_action" | "historical_lookup" | "fixture";
3967
3967
  locator?: string | undefined;
3968
3968
  }[];
@@ -3970,14 +3970,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3970
3970
  decisionIds: string[];
3971
3971
  agentIds: string[];
3972
3972
  } | {
3973
+ kind: "test_result";
3973
3974
  summary: string;
3974
3975
  status: "error" | "failed" | "passed";
3975
- kind: "test_result";
3976
3976
  command: string;
3977
3977
  evidence: {
3978
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3978
3979
  id: string;
3979
3980
  label: string;
3980
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3981
3981
  capture: "at_action" | "historical_lookup" | "fixture";
3982
3982
  locator?: string | undefined;
3983
3983
  }[];
@@ -3990,9 +3990,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3990
3990
  rationale: string;
3991
3991
  statement: string;
3992
3992
  evidence: {
3993
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3993
3994
  id: string;
3994
3995
  label: string;
3995
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3996
3996
  capture: "at_action" | "historical_lookup" | "fixture";
3997
3997
  locator?: string | undefined;
3998
3998
  }[];
@@ -4004,25 +4004,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4004
4004
  } | {
4005
4005
  kind: "correction_approved";
4006
4006
  evidence: {
4007
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4007
4008
  id: string;
4008
4009
  label: string;
4009
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4010
4010
  capture: "at_action" | "historical_lookup" | "fixture";
4011
4011
  locator?: string | undefined;
4012
4012
  }[];
4013
4013
  correctionId: string;
4014
4014
  approvedBy: {
4015
+ kind: "agent" | "human";
4015
4016
  id: string;
4016
4017
  label: string;
4017
- kind: "agent" | "human";
4018
4018
  };
4019
4019
  note?: string | undefined;
4020
4020
  } | {
4021
4021
  kind: "decision_superseded";
4022
4022
  evidence: {
4023
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4023
4024
  id: string;
4024
4025
  label: string;
4025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4026
4026
  capture: "at_action" | "historical_lookup" | "fixture";
4027
4027
  locator?: string | undefined;
4028
4028
  }[];
@@ -4035,9 +4035,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4035
4035
  agentId: string;
4036
4036
  sessionId: string;
4037
4037
  evidence: {
4038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4038
4039
  id: string;
4039
4040
  label: string;
4040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4041
4041
  capture: "at_action" | "historical_lookup" | "fixture";
4042
4042
  locator?: string | undefined;
4043
4043
  }[];
@@ -4049,9 +4049,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4049
4049
  agentId: string;
4050
4050
  sessionId: string;
4051
4051
  evidence: {
4052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4052
4053
  id: string;
4053
4054
  label: string;
4054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4055
4055
  capture: "at_action" | "historical_lookup" | "fixture";
4056
4056
  locator?: string | undefined;
4057
4057
  }[];
@@ -4060,13 +4060,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4060
4060
  recallReceiptId: string;
4061
4061
  staleDecisionAbsent: boolean;
4062
4062
  } | {
4063
- summary: string;
4064
4063
  kind: "mission_completed";
4064
+ summary: string;
4065
4065
  outcome: "failed" | "recovered" | "inconclusive";
4066
4066
  evidence: {
4067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4067
4068
  id: string;
4068
4069
  label: string;
4069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4070
4070
  capture: "at_action" | "historical_lookup" | "fixture";
4071
4071
  locator?: string | undefined;
4072
4072
  }[];
@@ -4076,37 +4076,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4076
4076
  objective: string;
4077
4077
  runMode: "replay" | "fixture" | "live";
4078
4078
  evidence?: {
4079
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4079
4080
  id: string;
4080
4081
  label: string;
4081
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4082
4082
  capture: "at_action" | "historical_lookup" | "fixture";
4083
4083
  locator?: string | undefined;
4084
4084
  }[] | undefined;
4085
4085
  } | {
4086
- label: string;
4087
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4088
4086
  kind: "agent_status";
4087
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4089
4088
  role: string;
4089
+ label: string;
4090
4090
  agentId: string;
4091
4091
  sessionId: string;
4092
4092
  detail?: string | undefined;
4093
4093
  evidence?: {
4094
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4094
4095
  id: string;
4095
4096
  label: string;
4096
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4097
4097
  capture: "at_action" | "historical_lookup" | "fixture";
4098
4098
  locator?: string | undefined;
4099
4099
  }[] | undefined;
4100
4100
  } | {
4101
- summary: string;
4102
4101
  kind: "agent_output";
4102
+ summary: string;
4103
4103
  agentId: string;
4104
4104
  sessionId: string;
4105
4105
  outputId: string;
4106
4106
  evidence?: {
4107
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4107
4108
  id: string;
4108
4109
  label: string;
4109
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4110
4110
  capture: "at_action" | "historical_lookup" | "fixture";
4111
4111
  locator?: string | undefined;
4112
4112
  }[] | undefined;
@@ -4119,37 +4119,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4119
4119
  decisionId: string;
4120
4120
  confidence?: number | undefined;
4121
4121
  evidence?: {
4122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
4123
  id: string;
4123
4124
  label: string;
4124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4125
4125
  capture: "at_action" | "historical_lookup" | "fixture";
4126
4126
  locator?: string | undefined;
4127
4127
  }[] | undefined;
4128
4128
  } | {
4129
- summary: string;
4130
4129
  kind: "conflict_detected";
4130
+ summary: string;
4131
4131
  conflictId: string;
4132
4132
  decisionIds: string[];
4133
4133
  agentIds: string[];
4134
4134
  evidence?: {
4135
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4135
4136
  id: string;
4136
4137
  label: string;
4137
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4138
4138
  capture: "at_action" | "historical_lookup" | "fixture";
4139
4139
  locator?: string | undefined;
4140
4140
  }[] | undefined;
4141
4141
  } | {
4142
+ kind: "test_result";
4142
4143
  summary: string;
4143
4144
  status: "error" | "failed" | "passed";
4144
- kind: "test_result";
4145
4145
  command: string;
4146
4146
  decisionId: string;
4147
4147
  testId: string;
4148
4148
  durationMs?: number | undefined;
4149
4149
  evidence?: {
4150
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
4151
  id: string;
4151
4152
  label: string;
4152
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4153
4153
  capture: "at_action" | "historical_lookup" | "fixture";
4154
4154
  locator?: string | undefined;
4155
4155
  }[] | undefined;
@@ -4164,9 +4164,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4164
4164
  supersedesDecisionIds: string[];
4165
4165
  proposedBy: string;
4166
4166
  evidence?: {
4167
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4167
4168
  id: string;
4168
4169
  label: string;
4169
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4170
4170
  capture: "at_action" | "historical_lookup" | "fixture";
4171
4171
  locator?: string | undefined;
4172
4172
  }[] | undefined;
@@ -4174,15 +4174,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4174
4174
  kind: "correction_approved";
4175
4175
  correctionId: string;
4176
4176
  approvedBy: {
4177
+ kind: "agent" | "human";
4177
4178
  id: string;
4178
4179
  label: string;
4179
- kind: "agent" | "human";
4180
4180
  };
4181
4181
  note?: string | undefined;
4182
4182
  evidence?: {
4183
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4183
4184
  id: string;
4184
4185
  label: string;
4185
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4186
4186
  capture: "at_action" | "historical_lookup" | "fixture";
4187
4187
  locator?: string | undefined;
4188
4188
  }[] | undefined;
@@ -4192,9 +4192,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4192
4192
  correctionId: string;
4193
4193
  replacementDecisionId: string;
4194
4194
  evidence?: {
4195
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4195
4196
  id: string;
4196
4197
  label: string;
4197
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4198
4198
  capture: "at_action" | "historical_lookup" | "fixture";
4199
4199
  locator?: string | undefined;
4200
4200
  }[] | undefined;
@@ -4207,9 +4207,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4207
4207
  recallReceiptId: string;
4208
4208
  capturedAtAction: boolean;
4209
4209
  evidence?: {
4210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4210
4211
  id: string;
4211
4212
  label: string;
4212
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4213
4213
  capture: "at_action" | "historical_lookup" | "fixture";
4214
4214
  locator?: string | undefined;
4215
4215
  }[] | undefined;
@@ -4222,64 +4222,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4222
4222
  recallReceiptId: string;
4223
4223
  staleDecisionAbsent: boolean;
4224
4224
  evidence?: {
4225
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4225
4226
  id: string;
4226
4227
  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
- summary: string;
4233
4232
  kind: "mission_completed";
4233
+ summary: string;
4234
4234
  outcome: "failed" | "recovered" | "inconclusive";
4235
4235
  evidence?: {
4236
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4236
4237
  id: string;
4237
4238
  label: string;
4238
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4239
4239
  capture: "at_action" | "historical_lookup" | "fixture";
4240
4240
  locator?: string | undefined;
4241
4241
  }[] | undefined;
4242
4242
  }>;
4243
4243
  }, "strict", z.ZodTypeAny, {
4244
- namespace: string;
4245
- recordedAt: string;
4246
4244
  schemaVersion: "1";
4245
+ recordedAt: string;
4247
4246
  payload: {
4248
4247
  kind: "mission_started";
4249
4248
  title: string;
4250
4249
  evidence: {
4250
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4251
4251
  id: string;
4252
4252
  label: string;
4253
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4254
4253
  capture: "at_action" | "historical_lookup" | "fixture";
4255
4254
  locator?: string | undefined;
4256
4255
  }[];
4257
4256
  objective: string;
4258
4257
  runMode: "replay" | "fixture" | "live";
4259
4258
  } | {
4260
- label: string;
4261
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4262
4259
  kind: "agent_status";
4260
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4263
4261
  role: string;
4262
+ label: string;
4264
4263
  agentId: string;
4265
4264
  sessionId: string;
4266
4265
  evidence: {
4266
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4267
4267
  id: string;
4268
4268
  label: string;
4269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4270
4269
  capture: "at_action" | "historical_lookup" | "fixture";
4271
4270
  locator?: string | undefined;
4272
4271
  }[];
4273
4272
  detail?: string | undefined;
4274
4273
  } | {
4275
- summary: string;
4276
4274
  kind: "agent_output";
4275
+ summary: string;
4277
4276
  agentId: string;
4278
4277
  sessionId: string;
4279
4278
  evidence: {
4279
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4280
4280
  id: string;
4281
4281
  label: string;
4282
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4283
4282
  capture: "at_action" | "historical_lookup" | "fixture";
4284
4283
  locator?: string | undefined;
4285
4284
  }[];
@@ -4290,9 +4289,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4290
4289
  statement: string;
4291
4290
  sessionId: string;
4292
4291
  evidence: {
4292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4293
4293
  id: string;
4294
4294
  label: string;
4295
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4296
4295
  capture: "at_action" | "historical_lookup" | "fixture";
4297
4296
  locator?: string | undefined;
4298
4297
  }[];
@@ -4300,12 +4299,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4300
4299
  decisionId: string;
4301
4300
  confidence?: number | undefined;
4302
4301
  } | {
4303
- summary: string;
4304
4302
  kind: "conflict_detected";
4303
+ summary: string;
4305
4304
  evidence: {
4305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4306
4306
  id: string;
4307
4307
  label: string;
4308
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4308
  capture: "at_action" | "historical_lookup" | "fixture";
4310
4309
  locator?: string | undefined;
4311
4310
  }[];
@@ -4313,14 +4312,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4313
4312
  decisionIds: string[];
4314
4313
  agentIds: string[];
4315
4314
  } | {
4315
+ kind: "test_result";
4316
4316
  summary: string;
4317
4317
  status: "error" | "failed" | "passed";
4318
- kind: "test_result";
4319
4318
  command: string;
4320
4319
  evidence: {
4320
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4321
4321
  id: string;
4322
4322
  label: string;
4323
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4324
4323
  capture: "at_action" | "historical_lookup" | "fixture";
4325
4324
  locator?: string | undefined;
4326
4325
  }[];
@@ -4333,9 +4332,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4333
4332
  rationale: string;
4334
4333
  statement: string;
4335
4334
  evidence: {
4335
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4336
4336
  id: string;
4337
4337
  label: string;
4338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4339
4338
  capture: "at_action" | "historical_lookup" | "fixture";
4340
4339
  locator?: string | undefined;
4341
4340
  }[];
@@ -4347,25 +4346,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4347
4346
  } | {
4348
4347
  kind: "correction_approved";
4349
4348
  evidence: {
4349
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4350
4350
  id: string;
4351
4351
  label: string;
4352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4353
4352
  capture: "at_action" | "historical_lookup" | "fixture";
4354
4353
  locator?: string | undefined;
4355
4354
  }[];
4356
4355
  correctionId: string;
4357
4356
  approvedBy: {
4357
+ kind: "agent" | "human";
4358
4358
  id: string;
4359
4359
  label: string;
4360
- kind: "agent" | "human";
4361
4360
  };
4362
4361
  note?: string | undefined;
4363
4362
  } | {
4364
4363
  kind: "decision_superseded";
4365
4364
  evidence: {
4365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4366
4366
  id: string;
4367
4367
  label: string;
4368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4369
4368
  capture: "at_action" | "historical_lookup" | "fixture";
4370
4369
  locator?: string | undefined;
4371
4370
  }[];
@@ -4378,9 +4377,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4378
4377
  agentId: string;
4379
4378
  sessionId: string;
4380
4379
  evidence: {
4380
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4381
4381
  id: string;
4382
4382
  label: string;
4383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4384
4383
  capture: "at_action" | "historical_lookup" | "fixture";
4385
4384
  locator?: string | undefined;
4386
4385
  }[];
@@ -4392,9 +4391,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4392
4391
  agentId: string;
4393
4392
  sessionId: string;
4394
4393
  evidence: {
4394
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4395
4395
  id: string;
4396
4396
  label: string;
4397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4398
4397
  capture: "at_action" | "historical_lookup" | "fixture";
4399
4398
  locator?: string | undefined;
4400
4399
  }[];
@@ -4403,63 +4402,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4403
4402
  recallReceiptId: string;
4404
4403
  staleDecisionAbsent: boolean;
4405
4404
  } | {
4406
- summary: string;
4407
4405
  kind: "mission_completed";
4406
+ summary: string;
4408
4407
  outcome: "failed" | "recovered" | "inconclusive";
4409
4408
  evidence: {
4409
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4410
4410
  id: string;
4411
4411
  label: string;
4412
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4413
4412
  capture: "at_action" | "historical_lookup" | "fixture";
4414
4413
  locator?: string | undefined;
4415
4414
  }[];
4416
4415
  };
4416
+ namespace: string;
4417
4417
  eventId: string;
4418
4418
  occurredAt: string;
4419
4419
  missionId: string;
4420
4420
  authenticatedPrincipal?: string | undefined;
4421
4421
  idempotencyKey?: string | undefined;
4422
4422
  }, {
4423
- namespace: string;
4424
- recordedAt: string;
4425
4423
  schemaVersion: "1";
4424
+ recordedAt: string;
4426
4425
  payload: {
4427
4426
  kind: "mission_started";
4428
4427
  title: string;
4429
4428
  objective: string;
4430
4429
  runMode: "replay" | "fixture" | "live";
4431
4430
  evidence?: {
4431
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4432
4432
  id: string;
4433
4433
  label: string;
4434
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4435
4434
  capture: "at_action" | "historical_lookup" | "fixture";
4436
4435
  locator?: string | undefined;
4437
4436
  }[] | undefined;
4438
4437
  } | {
4439
- label: string;
4440
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4441
4438
  kind: "agent_status";
4439
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4442
4440
  role: string;
4441
+ label: string;
4443
4442
  agentId: string;
4444
4443
  sessionId: string;
4445
4444
  detail?: string | undefined;
4446
4445
  evidence?: {
4446
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4447
4447
  id: string;
4448
4448
  label: string;
4449
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4450
4449
  capture: "at_action" | "historical_lookup" | "fixture";
4451
4450
  locator?: string | undefined;
4452
4451
  }[] | undefined;
4453
4452
  } | {
4454
- summary: string;
4455
4453
  kind: "agent_output";
4454
+ summary: string;
4456
4455
  agentId: string;
4457
4456
  sessionId: string;
4458
4457
  outputId: string;
4459
4458
  evidence?: {
4459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4460
4460
  id: string;
4461
4461
  label: string;
4462
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4463
4462
  capture: "at_action" | "historical_lookup" | "fixture";
4464
4463
  locator?: string | undefined;
4465
4464
  }[] | undefined;
@@ -4472,37 +4471,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4472
4471
  decisionId: string;
4473
4472
  confidence?: number | undefined;
4474
4473
  evidence?: {
4474
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4475
4475
  id: string;
4476
4476
  label: string;
4477
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4478
4477
  capture: "at_action" | "historical_lookup" | "fixture";
4479
4478
  locator?: string | undefined;
4480
4479
  }[] | undefined;
4481
4480
  } | {
4482
- summary: string;
4483
4481
  kind: "conflict_detected";
4482
+ summary: string;
4484
4483
  conflictId: string;
4485
4484
  decisionIds: string[];
4486
4485
  agentIds: string[];
4487
4486
  evidence?: {
4487
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4488
4488
  id: string;
4489
4489
  label: string;
4490
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4491
4490
  capture: "at_action" | "historical_lookup" | "fixture";
4492
4491
  locator?: string | undefined;
4493
4492
  }[] | undefined;
4494
4493
  } | {
4494
+ kind: "test_result";
4495
4495
  summary: string;
4496
4496
  status: "error" | "failed" | "passed";
4497
- kind: "test_result";
4498
4497
  command: string;
4499
4498
  decisionId: string;
4500
4499
  testId: string;
4501
4500
  durationMs?: number | undefined;
4502
4501
  evidence?: {
4502
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
4503
  id: string;
4504
4504
  label: string;
4505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4506
4505
  capture: "at_action" | "historical_lookup" | "fixture";
4507
4506
  locator?: string | undefined;
4508
4507
  }[] | undefined;
@@ -4517,9 +4516,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4517
4516
  supersedesDecisionIds: string[];
4518
4517
  proposedBy: string;
4519
4518
  evidence?: {
4519
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4520
4520
  id: string;
4521
4521
  label: string;
4522
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4523
4522
  capture: "at_action" | "historical_lookup" | "fixture";
4524
4523
  locator?: string | undefined;
4525
4524
  }[] | undefined;
@@ -4527,15 +4526,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4527
4526
  kind: "correction_approved";
4528
4527
  correctionId: string;
4529
4528
  approvedBy: {
4529
+ kind: "agent" | "human";
4530
4530
  id: string;
4531
4531
  label: string;
4532
- kind: "agent" | "human";
4533
4532
  };
4534
4533
  note?: string | undefined;
4535
4534
  evidence?: {
4535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4536
4536
  id: string;
4537
4537
  label: string;
4538
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4539
4538
  capture: "at_action" | "historical_lookup" | "fixture";
4540
4539
  locator?: string | undefined;
4541
4540
  }[] | undefined;
@@ -4545,9 +4544,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4545
4544
  correctionId: string;
4546
4545
  replacementDecisionId: string;
4547
4546
  evidence?: {
4547
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4548
4548
  id: string;
4549
4549
  label: string;
4550
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4551
4550
  capture: "at_action" | "historical_lookup" | "fixture";
4552
4551
  locator?: string | undefined;
4553
4552
  }[] | undefined;
@@ -4560,9 +4559,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4560
4559
  recallReceiptId: string;
4561
4560
  capturedAtAction: boolean;
4562
4561
  evidence?: {
4562
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4563
4563
  id: string;
4564
4564
  label: string;
4565
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4566
4565
  capture: "at_action" | "historical_lookup" | "fixture";
4567
4566
  locator?: string | undefined;
4568
4567
  }[] | undefined;
@@ -4575,24 +4574,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4575
4574
  recallReceiptId: string;
4576
4575
  staleDecisionAbsent: boolean;
4577
4576
  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";
4581
4580
  capture: "at_action" | "historical_lookup" | "fixture";
4582
4581
  locator?: string | undefined;
4583
4582
  }[] | undefined;
4584
4583
  } | {
4585
- summary: string;
4586
4584
  kind: "mission_completed";
4585
+ summary: string;
4587
4586
  outcome: "failed" | "recovered" | "inconclusive";
4588
4587
  evidence?: {
4588
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4589
4589
  id: string;
4590
4590
  label: string;
4591
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4592
4591
  capture: "at_action" | "historical_lookup" | "fixture";
4593
4592
  locator?: string | undefined;
4594
4593
  }[] | undefined;
4595
4594
  };
4595
+ namespace: string;
4596
4596
  eventId: string;
4597
4597
  occurredAt: string;
4598
4598
  missionId: string;