@remnic/core 9.54.6 → 9.54.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 (32) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-authorization-probe.d.ts +1 -1
  3. package/dist/access-boundary.d.ts +1 -1
  4. package/dist/access-extraction-force-flush.d.ts +1 -1
  5. package/dist/access-http-lcm-compaction.d.ts +1 -1
  6. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  7. package/dist/access-http-offline-stream.d.ts +1 -1
  8. package/dist/access-http.d.ts +2 -2
  9. package/dist/access-lcm-surface.d.ts +1 -1
  10. package/dist/access-mcp.d.ts +1 -1
  11. package/dist/access-observe-write-surface.d.ts +1 -1
  12. package/dist/access-operations.d.ts +4 -4
  13. package/dist/access-recall-concurrency.d.ts +1 -1
  14. package/dist/access-recall-response.d.ts +1 -1
  15. package/dist/access-recall-surface.d.ts +1 -1
  16. package/dist/access-schema.d.ts +88 -88
  17. package/dist/access-service-helpers.d.ts +1 -1
  18. package/dist/access-service.d.ts +1 -1
  19. package/dist/access-surface-catalog.d.ts +1 -1
  20. package/dist/{cli-Bze8S0Qs.d.ts → cli-BPDUXnAl.d.ts} +1 -1
  21. package/dist/cli.d.ts +2 -2
  22. package/dist/external-wiki-access.d.ts +1 -1
  23. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  24. package/dist/index.d.ts +678 -678
  25. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  26. package/dist/{public-http-D-SyWNj6.d.ts → public-http-D3GBeII4.d.ts} +1 -1
  27. package/dist/schemas.d.ts +116 -116
  28. package/dist/shared-context/manager.d.ts +8 -8
  29. package/dist/support-passport/index.d.ts +4 -4
  30. package/dist/transfer/types.d.ts +66 -66
  31. package/package.json +2 -2
  32. package/dist/{access-service-DkSdXK4S.d.ts → access-service-DK82xdNi.d.ts} +58 -58
package/dist/index.d.ts CHANGED
@@ -30,8 +30,8 @@ export { bA as ActivityExtractionMode, aJ as ActivitySourceConfig, v as AgentAcc
30
30
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
31
31
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
32
32
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
33
- import { f as EngramAccessService } from './access-service-DkSdXK4S.js';
34
- export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Y as SupportPassportAnswerOutput, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, $ as SupportPassportCard, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a3 as SupportPassportCardMutationInput, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a6 as SupportPassportCardServiceDependencies, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, aa as SupportPassportCreateGrantInput, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, af as SupportPassportCreatedGrant, ag as SupportPassportCreatedGrantSchema, ah as SupportPassportDraftCard, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, ap as SupportPassportGrantCardRef, aq as SupportPassportGrantCardRefSchema, ar as SupportPassportGrantState, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, av as SupportPassportManualDraftInput, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, az as SupportPassportModelAdapter, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aD as SupportPassportModelAuditSink, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aK as SupportPassportModelRoute, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aR as SupportPassportOwnerGrant, aS as SupportPassportOwnerGrantSchema, aT as SupportPassportOwnerScope, aU as SupportPassportPublicCardSchema, aV as SupportPassportPublicGuide, aW as SupportPassportPublicGuideSchema, aX as SupportPassportReplaceCardInput, aY as SupportPassportReplaceCardInputSchema, aZ as SupportPassportRevokeGrantInput, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b3 as computeProcedureStats, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b6 as formatProcedureStatsText, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from './access-service-DkSdXK4S.js';
33
+ import { f as EngramAccessService } from './access-service-DK82xdNi.js';
34
+ export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Y as SupportPassportAnswerOutput, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, $ as SupportPassportCard, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a3 as SupportPassportCardMutationInput, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a6 as SupportPassportCardServiceDependencies, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, aa as SupportPassportCreateGrantInput, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, af as SupportPassportCreatedGrant, ag as SupportPassportCreatedGrantSchema, ah as SupportPassportDraftCard, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, ap as SupportPassportGrantCardRef, aq as SupportPassportGrantCardRefSchema, ar as SupportPassportGrantState, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, av as SupportPassportManualDraftInput, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, az as SupportPassportModelAdapter, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aD as SupportPassportModelAuditSink, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aK as SupportPassportModelRoute, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aR as SupportPassportOwnerGrant, aS as SupportPassportOwnerGrantSchema, aT as SupportPassportOwnerScope, aU as SupportPassportPublicCardSchema, aV as SupportPassportPublicGuide, aW as SupportPassportPublicGuideSchema, aX as SupportPassportReplaceCardInput, aY as SupportPassportReplaceCardInputSchema, aZ as SupportPassportRevokeGrantInput, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b3 as computeProcedureStats, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b6 as formatProcedureStatsText, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from './access-service-DK82xdNi.js';
35
35
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
36
36
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
37
37
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -54,7 +54,7 @@ export { EngramMcpServer } from './access-mcp.js';
54
54
  import { BoundOperation } from './access-boundary.js';
55
55
  export { OPERATION_NAMES, OperationName } from './access-boundary.js';
56
56
  export { CreateStoredGrantInput, DEFAULT_SUPPORT_PASSPORT_CONFIG, SUPPORT_PASSPORT_ATTRIBUTE_KEYS, SUPPORT_PASSPORT_AUDIT_TAG, SUPPORT_PASSPORT_CARD_TAG, SUPPORT_PASSPORT_MODEL_ACK_PATH, SUPPORT_PASSPORT_MODEL_JOB_PATH, SUPPORT_PASSPORT_MODEL_RESULT_PATH, StoredSupportPassportCard, SupportPassportCardService, SupportPassportDraftService, SupportPassportDraftServiceDependencies, SupportPassportGrantMutationHooks, SupportPassportGrantService, SupportPassportGrantServiceDependencies, SupportPassportGrantStore, SupportPassportGrantStoreOptions, SupportPassportModelBridge, SupportPassportModelBridgeOptions, SupportPassportModelJob, SupportPassportQuestionService, SupportPassportQuestionServiceDependencies, activeSupportPassportReplacementPredecessorIds, computeSupportPassportOwnerKey, computeSupportPassportSourceRevision, createSupportPassportPrivateFileExclusion, decodeSupportPassportNamespaceAttributes, encodeSupportPassportNamespaceAttributes, excludeSupportPassportPrivateMemories, hasLiveSupportPassportCard, isSupportPassportPrivateMemory, isSupportPassportSourceEligible, notifySupportPassportCommitted, parseSupportPassportConfig, parseSupportPassportModelJob, projectSupportPassportCard, syncDirectoryForDurability } from './support-passport/index.js';
57
- export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-D-SyWNj6.js';
57
+ export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-D3GBeII4.js';
58
58
  import { z } from 'zod';
59
59
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
60
60
  export { CuriosityQuestion, MEMORY_CONTEXT_HEADER, MEMORY_CONTEXT_INSTRUCTION, RECALL_CONTEXT_SEPARATOR, RecallContextComposition, RenderMemoryContextPromptInput, RenderedMemoryContextPrompt, boundRecallContextComposition, composeRecallContext, contextBudgetForFooter, formatCuriosityFooter, renderMemoryContextPrompt, selectCuriosityQuestion } from './recall-context-composition.js';
@@ -95,7 +95,7 @@ export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
95
95
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
96
96
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
97
97
  export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-DPcUifCO.js';
98
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-Bze8S0Qs.js';
98
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-BPDUXnAl.js';
99
99
  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-DT-pJyda.js';
100
100
  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-DT-pJyda.js';
101
101
  import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-C8aRWfhq.js';
@@ -899,15 +899,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
899
899
  locator: z.ZodOptional<z.ZodString>;
900
900
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
901
901
  }, "strict", z.ZodTypeAny, {
902
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
903
- label: string;
904
902
  id: string;
903
+ label: string;
904
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
905
905
  capture: "at_action" | "historical_lookup" | "fixture";
906
906
  locator?: string | undefined;
907
907
  }, {
908
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
909
- label: string;
910
908
  id: string;
909
+ label: string;
910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
911
911
  capture: "at_action" | "historical_lookup" | "fixture";
912
912
  locator?: string | undefined;
913
913
  }>;
@@ -924,15 +924,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
924
924
  locator: z.ZodOptional<z.ZodString>;
925
925
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
926
926
  }, "strict", z.ZodTypeAny, {
927
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
928
- label: string;
929
927
  id: string;
928
+ label: string;
929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
930
930
  capture: "at_action" | "historical_lookup" | "fixture";
931
931
  locator?: string | undefined;
932
932
  }, {
933
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
934
- label: string;
935
933
  id: string;
934
+ label: string;
935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
936
936
  capture: "at_action" | "historical_lookup" | "fixture";
937
937
  locator?: string | undefined;
938
938
  }>, "many">>;
@@ -940,9 +940,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
940
940
  kind: "mission_started";
941
941
  title: string;
942
942
  evidence: {
943
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
944
- label: string;
945
943
  id: string;
944
+ label: string;
945
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
946
946
  capture: "at_action" | "historical_lookup" | "fixture";
947
947
  locator?: string | undefined;
948
948
  }[];
@@ -954,9 +954,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
954
954
  objective: string;
955
955
  runMode: "replay" | "fixture" | "live";
956
956
  evidence?: {
957
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
958
- label: string;
959
957
  id: string;
958
+ label: string;
959
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
960
960
  capture: "at_action" | "historical_lookup" | "fixture";
961
961
  locator?: string | undefined;
962
962
  }[] | undefined;
@@ -972,15 +972,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
972
972
  locator: z.ZodOptional<z.ZodString>;
973
973
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
974
974
  }, "strict", z.ZodTypeAny, {
975
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
976
- label: string;
977
975
  id: string;
976
+ label: string;
977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
978
978
  capture: "at_action" | "historical_lookup" | "fixture";
979
979
  locator?: string | undefined;
980
980
  }, {
981
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
982
- label: string;
983
981
  id: string;
982
+ label: string;
983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
984
984
  capture: "at_action" | "historical_lookup" | "fixture";
985
985
  locator?: string | undefined;
986
986
  }>, "many">>;
@@ -988,32 +988,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
988
988
  sessionId: z.ZodString;
989
989
  kind: z.ZodLiteral<"agent_status">;
990
990
  }, "strict", z.ZodTypeAny, {
991
- kind: "agent_status";
992
- status: "failed" | "blocked" | "working" | "complete" | "idle";
993
991
  label: string;
992
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
993
+ kind: "agent_status";
994
994
  role: string;
995
995
  agentId: string;
996
996
  sessionId: string;
997
997
  evidence: {
998
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
999
- label: string;
1000
998
  id: string;
999
+ label: string;
1000
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1001
1001
  capture: "at_action" | "historical_lookup" | "fixture";
1002
1002
  locator?: string | undefined;
1003
1003
  }[];
1004
1004
  detail?: string | undefined;
1005
1005
  }, {
1006
- kind: "agent_status";
1007
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1008
1006
  label: string;
1007
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1008
+ kind: "agent_status";
1009
1009
  role: string;
1010
1010
  agentId: string;
1011
1011
  sessionId: string;
1012
1012
  detail?: string | undefined;
1013
1013
  evidence?: {
1014
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1015
- label: string;
1016
1014
  id: string;
1015
+ label: string;
1016
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1017
1017
  capture: "at_action" | "historical_lookup" | "fixture";
1018
1018
  locator?: string | undefined;
1019
1019
  }[] | undefined;
@@ -1027,15 +1027,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1027
1027
  locator: z.ZodOptional<z.ZodString>;
1028
1028
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1029
1029
  }, "strict", z.ZodTypeAny, {
1030
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1031
- label: string;
1032
1030
  id: string;
1031
+ label: string;
1032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1033
1033
  capture: "at_action" | "historical_lookup" | "fixture";
1034
1034
  locator?: string | undefined;
1035
1035
  }, {
1036
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1037
- label: string;
1038
1036
  id: string;
1037
+ label: string;
1038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1039
1039
  capture: "at_action" | "historical_lookup" | "fixture";
1040
1040
  locator?: string | undefined;
1041
1041
  }>, "many">>;
@@ -1043,28 +1043,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1043
1043
  sessionId: z.ZodString;
1044
1044
  kind: z.ZodLiteral<"agent_output">;
1045
1045
  }, "strict", z.ZodTypeAny, {
1046
- kind: "agent_output";
1047
1046
  summary: string;
1047
+ kind: "agent_output";
1048
1048
  agentId: string;
1049
1049
  sessionId: string;
1050
1050
  evidence: {
1051
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1052
- label: string;
1053
1051
  id: string;
1052
+ label: string;
1053
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1054
1054
  capture: "at_action" | "historical_lookup" | "fixture";
1055
1055
  locator?: string | undefined;
1056
1056
  }[];
1057
1057
  outputId: string;
1058
1058
  }, {
1059
- kind: "agent_output";
1060
1059
  summary: string;
1060
+ kind: "agent_output";
1061
1061
  agentId: string;
1062
1062
  sessionId: string;
1063
1063
  outputId: string;
1064
1064
  evidence?: {
1065
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1066
- label: string;
1067
1065
  id: string;
1066
+ label: string;
1067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1068
1068
  capture: "at_action" | "historical_lookup" | "fixture";
1069
1069
  locator?: string | undefined;
1070
1070
  }[] | undefined;
@@ -1080,15 +1080,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1080
1080
  locator: z.ZodOptional<z.ZodString>;
1081
1081
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1082
1082
  }, "strict", z.ZodTypeAny, {
1083
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1084
- label: string;
1085
1083
  id: string;
1084
+ label: string;
1085
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1086
1086
  capture: "at_action" | "historical_lookup" | "fixture";
1087
1087
  locator?: string | undefined;
1088
1088
  }, {
1089
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1090
- label: string;
1091
1089
  id: string;
1090
+ label: string;
1091
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1092
1092
  capture: "at_action" | "historical_lookup" | "fixture";
1093
1093
  locator?: string | undefined;
1094
1094
  }>, "many">>;
@@ -1101,9 +1101,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1101
1101
  statement: string;
1102
1102
  sessionId: string;
1103
1103
  evidence: {
1104
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1105
- label: string;
1106
1104
  id: string;
1105
+ label: string;
1106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1107
1107
  capture: "at_action" | "historical_lookup" | "fixture";
1108
1108
  locator?: string | undefined;
1109
1109
  }[];
@@ -1119,9 +1119,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1119
1119
  decisionId: string;
1120
1120
  confidence?: number | undefined;
1121
1121
  evidence?: {
1122
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1123
- label: string;
1124
1122
  id: string;
1123
+ label: string;
1124
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1125
1125
  capture: "at_action" | "historical_lookup" | "fixture";
1126
1126
  locator?: string | undefined;
1127
1127
  }[] | undefined;
@@ -1138,25 +1138,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1138
1138
  locator: z.ZodOptional<z.ZodString>;
1139
1139
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1140
1140
  }, "strict", z.ZodTypeAny, {
1141
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1142
- label: string;
1143
1141
  id: string;
1142
+ label: string;
1143
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1144
1144
  capture: "at_action" | "historical_lookup" | "fixture";
1145
1145
  locator?: string | undefined;
1146
1146
  }, {
1147
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1148
- label: string;
1149
1147
  id: string;
1148
+ label: string;
1149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1150
1150
  capture: "at_action" | "historical_lookup" | "fixture";
1151
1151
  locator?: string | undefined;
1152
1152
  }>, "many">>;
1153
1153
  }, "strict", z.ZodTypeAny, {
1154
- kind: "conflict_detected";
1155
1154
  summary: string;
1155
+ kind: "conflict_detected";
1156
1156
  evidence: {
1157
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1158
- label: string;
1159
1157
  id: string;
1158
+ label: string;
1159
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1160
1160
  capture: "at_action" | "historical_lookup" | "fixture";
1161
1161
  locator?: string | undefined;
1162
1162
  }[];
@@ -1164,15 +1164,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1164
1164
  decisionIds: string[];
1165
1165
  agentIds: string[];
1166
1166
  }, {
1167
- kind: "conflict_detected";
1168
1167
  summary: string;
1168
+ kind: "conflict_detected";
1169
1169
  conflictId: string;
1170
1170
  decisionIds: string[];
1171
1171
  agentIds: string[];
1172
1172
  evidence?: {
1173
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1174
- label: string;
1175
1173
  id: string;
1174
+ label: string;
1175
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1176
1176
  capture: "at_action" | "historical_lookup" | "fixture";
1177
1177
  locator?: string | undefined;
1178
1178
  }[] | undefined;
@@ -1192,27 +1192,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1192
1192
  locator: z.ZodOptional<z.ZodString>;
1193
1193
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1194
1194
  }, "strict", z.ZodTypeAny, {
1195
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1196
- label: string;
1197
1195
  id: string;
1196
+ label: string;
1197
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1198
1198
  capture: "at_action" | "historical_lookup" | "fixture";
1199
1199
  locator?: string | undefined;
1200
1200
  }, {
1201
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1202
- label: string;
1203
1201
  id: string;
1202
+ label: string;
1203
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1204
1204
  capture: "at_action" | "historical_lookup" | "fixture";
1205
1205
  locator?: string | undefined;
1206
1206
  }>, "many">>;
1207
1207
  }, "strict", z.ZodTypeAny, {
1208
- kind: "test_result";
1209
1208
  summary: string;
1210
1209
  status: "error" | "failed" | "passed";
1210
+ kind: "test_result";
1211
1211
  command: string;
1212
1212
  evidence: {
1213
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1214
- label: string;
1215
1213
  id: string;
1214
+ label: string;
1215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1216
1216
  capture: "at_action" | "historical_lookup" | "fixture";
1217
1217
  locator?: string | undefined;
1218
1218
  }[];
@@ -1221,17 +1221,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1221
1221
  durationMs?: number | undefined;
1222
1222
  correctionId?: string | undefined;
1223
1223
  }, {
1224
- kind: "test_result";
1225
1224
  summary: string;
1226
1225
  status: "error" | "failed" | "passed";
1226
+ kind: "test_result";
1227
1227
  command: string;
1228
1228
  decisionId: string;
1229
1229
  testId: string;
1230
1230
  durationMs?: number | undefined;
1231
1231
  evidence?: {
1232
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1233
- label: string;
1234
1232
  id: string;
1233
+ label: string;
1234
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1235
1235
  capture: "at_action" | "historical_lookup" | "fixture";
1236
1236
  locator?: string | undefined;
1237
1237
  }[] | undefined;
@@ -1252,15 +1252,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1252
1252
  locator: z.ZodOptional<z.ZodString>;
1253
1253
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1254
1254
  }, "strict", z.ZodTypeAny, {
1255
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1256
- label: string;
1257
1255
  id: string;
1256
+ label: string;
1257
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1258
1258
  capture: "at_action" | "historical_lookup" | "fixture";
1259
1259
  locator?: string | undefined;
1260
1260
  }, {
1261
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1262
- label: string;
1263
1261
  id: string;
1262
+ label: string;
1263
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1264
1264
  capture: "at_action" | "historical_lookup" | "fixture";
1265
1265
  locator?: string | undefined;
1266
1266
  }>, "many">>;
@@ -1269,9 +1269,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1269
1269
  statement: string;
1270
1270
  rationale: string;
1271
1271
  evidence: {
1272
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1273
- label: string;
1274
1272
  id: string;
1273
+ label: string;
1274
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1275
1275
  capture: "at_action" | "historical_lookup" | "fixture";
1276
1276
  locator?: string | undefined;
1277
1277
  }[];
@@ -1290,9 +1290,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1290
1290
  supersedesDecisionIds: string[];
1291
1291
  proposedBy: string;
1292
1292
  evidence?: {
1293
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1294
- label: string;
1295
1293
  id: string;
1294
+ label: string;
1295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1296
1296
  capture: "at_action" | "historical_lookup" | "fixture";
1297
1297
  locator?: string | undefined;
1298
1298
  }[] | undefined;
@@ -1304,13 +1304,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1304
1304
  id: z.ZodString;
1305
1305
  label: z.ZodString;
1306
1306
  }, "strict", z.ZodTypeAny, {
1307
- kind: "agent" | "human";
1308
- label: string;
1309
1307
  id: string;
1310
- }, {
1311
- kind: "agent" | "human";
1312
1308
  label: string;
1309
+ kind: "agent" | "human";
1310
+ }, {
1313
1311
  id: string;
1312
+ label: string;
1313
+ kind: "agent" | "human";
1314
1314
  }>;
1315
1315
  note: z.ZodOptional<z.ZodString>;
1316
1316
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1320,47 +1320,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1320
1320
  locator: z.ZodOptional<z.ZodString>;
1321
1321
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1322
1322
  }, "strict", z.ZodTypeAny, {
1323
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1324
- label: string;
1325
1323
  id: string;
1324
+ label: string;
1325
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1326
1326
  capture: "at_action" | "historical_lookup" | "fixture";
1327
1327
  locator?: string | undefined;
1328
1328
  }, {
1329
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1330
- label: string;
1331
1329
  id: string;
1330
+ label: string;
1331
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1332
1332
  capture: "at_action" | "historical_lookup" | "fixture";
1333
1333
  locator?: string | undefined;
1334
1334
  }>, "many">>;
1335
1335
  }, "strict", z.ZodTypeAny, {
1336
1336
  kind: "correction_approved";
1337
1337
  evidence: {
1338
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1339
- label: string;
1340
1338
  id: string;
1339
+ label: string;
1340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1341
1341
  capture: "at_action" | "historical_lookup" | "fixture";
1342
1342
  locator?: string | undefined;
1343
1343
  }[];
1344
1344
  correctionId: string;
1345
1345
  approvedBy: {
1346
- kind: "agent" | "human";
1347
- label: string;
1348
1346
  id: string;
1347
+ label: string;
1348
+ kind: "agent" | "human";
1349
1349
  };
1350
1350
  note?: string | undefined;
1351
1351
  }, {
1352
1352
  kind: "correction_approved";
1353
1353
  correctionId: string;
1354
1354
  approvedBy: {
1355
- kind: "agent" | "human";
1356
- label: string;
1357
1355
  id: string;
1356
+ label: string;
1357
+ kind: "agent" | "human";
1358
1358
  };
1359
1359
  note?: string | undefined;
1360
1360
  evidence?: {
1361
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1362
- label: string;
1363
1361
  id: string;
1362
+ label: string;
1363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1364
1364
  capture: "at_action" | "historical_lookup" | "fixture";
1365
1365
  locator?: string | undefined;
1366
1366
  }[] | undefined;
@@ -1376,24 +1376,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1376
1376
  locator: z.ZodOptional<z.ZodString>;
1377
1377
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1378
1378
  }, "strict", z.ZodTypeAny, {
1379
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1380
- label: string;
1381
1379
  id: string;
1380
+ label: string;
1381
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1382
1382
  capture: "at_action" | "historical_lookup" | "fixture";
1383
1383
  locator?: string | undefined;
1384
1384
  }, {
1385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1386
- label: string;
1387
1385
  id: string;
1386
+ label: string;
1387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1388
1388
  capture: "at_action" | "historical_lookup" | "fixture";
1389
1389
  locator?: string | undefined;
1390
1390
  }>, "many">>;
1391
1391
  }, "strict", z.ZodTypeAny, {
1392
1392
  kind: "decision_superseded";
1393
1393
  evidence: {
1394
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1395
- label: string;
1396
1394
  id: string;
1395
+ label: string;
1396
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1397
1397
  capture: "at_action" | "historical_lookup" | "fixture";
1398
1398
  locator?: string | undefined;
1399
1399
  }[];
@@ -1406,9 +1406,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1406
1406
  correctionId: string;
1407
1407
  replacementDecisionId: string;
1408
1408
  evidence?: {
1409
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1410
- label: string;
1411
1409
  id: string;
1410
+ label: string;
1411
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1412
1412
  capture: "at_action" | "historical_lookup" | "fixture";
1413
1413
  locator?: string | undefined;
1414
1414
  }[] | undefined;
@@ -1424,15 +1424,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1424
1424
  locator: z.ZodOptional<z.ZodString>;
1425
1425
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1426
1426
  }, "strict", z.ZodTypeAny, {
1427
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1428
- label: string;
1429
1427
  id: string;
1428
+ label: string;
1429
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1430
1430
  capture: "at_action" | "historical_lookup" | "fixture";
1431
1431
  locator?: string | undefined;
1432
1432
  }, {
1433
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1434
- label: string;
1435
1433
  id: string;
1434
+ label: string;
1435
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1436
1436
  capture: "at_action" | "historical_lookup" | "fixture";
1437
1437
  locator?: string | undefined;
1438
1438
  }>, "many">>;
@@ -1445,9 +1445,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1445
1445
  agentId: string;
1446
1446
  sessionId: string;
1447
1447
  evidence: {
1448
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1449
- label: string;
1450
1448
  id: string;
1449
+ label: string;
1450
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1451
1451
  capture: "at_action" | "historical_lookup" | "fixture";
1452
1452
  locator?: string | undefined;
1453
1453
  }[];
@@ -1463,9 +1463,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1463
1463
  recallReceiptId: string;
1464
1464
  capturedAtAction: boolean;
1465
1465
  evidence?: {
1466
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1467
- label: string;
1468
1466
  id: string;
1467
+ label: string;
1468
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1469
1469
  capture: "at_action" | "historical_lookup" | "fixture";
1470
1470
  locator?: string | undefined;
1471
1471
  }[] | undefined;
@@ -1481,15 +1481,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1481
1481
  locator: z.ZodOptional<z.ZodString>;
1482
1482
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1483
1483
  }, "strict", z.ZodTypeAny, {
1484
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1485
- label: string;
1486
1484
  id: string;
1485
+ label: string;
1486
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1487
1487
  capture: "at_action" | "historical_lookup" | "fixture";
1488
1488
  locator?: string | undefined;
1489
1489
  }, {
1490
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1491
- label: string;
1492
1490
  id: string;
1491
+ label: string;
1492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1493
1493
  capture: "at_action" | "historical_lookup" | "fixture";
1494
1494
  locator?: string | undefined;
1495
1495
  }>, "many">>;
@@ -1501,9 +1501,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1501
1501
  agentId: string;
1502
1502
  sessionId: string;
1503
1503
  evidence: {
1504
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1505
- label: string;
1506
1504
  id: string;
1505
+ label: string;
1506
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1507
1507
  capture: "at_action" | "historical_lookup" | "fixture";
1508
1508
  locator?: string | undefined;
1509
1509
  }[];
@@ -1520,9 +1520,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1520
1520
  recallReceiptId: string;
1521
1521
  staleDecisionAbsent: boolean;
1522
1522
  evidence?: {
1523
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1524
- label: string;
1525
1523
  id: string;
1524
+ label: string;
1525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1526
1526
  capture: "at_action" | "historical_lookup" | "fixture";
1527
1527
  locator?: string | undefined;
1528
1528
  }[] | undefined;
@@ -1537,37 +1537,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1537
1537
  locator: z.ZodOptional<z.ZodString>;
1538
1538
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1539
1539
  }, "strict", z.ZodTypeAny, {
1540
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
- label: string;
1542
1540
  id: string;
1541
+ label: string;
1542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1543
1543
  capture: "at_action" | "historical_lookup" | "fixture";
1544
1544
  locator?: string | undefined;
1545
1545
  }, {
1546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1547
- label: string;
1548
1546
  id: string;
1547
+ label: string;
1548
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1549
1549
  capture: "at_action" | "historical_lookup" | "fixture";
1550
1550
  locator?: string | undefined;
1551
1551
  }>, "many">>;
1552
1552
  }, "strict", z.ZodTypeAny, {
1553
- kind: "mission_completed";
1554
1553
  summary: string;
1554
+ kind: "mission_completed";
1555
1555
  outcome: "failed" | "recovered" | "inconclusive";
1556
1556
  evidence: {
1557
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1558
- label: string;
1559
1557
  id: string;
1558
+ label: string;
1559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1560
1560
  capture: "at_action" | "historical_lookup" | "fixture";
1561
1561
  locator?: string | undefined;
1562
1562
  }[];
1563
1563
  }, {
1564
- kind: "mission_completed";
1565
1564
  summary: string;
1565
+ kind: "mission_completed";
1566
1566
  outcome: "failed" | "recovered" | "inconclusive";
1567
1567
  evidence?: {
1568
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1569
- label: string;
1570
1568
  id: string;
1569
+ label: string;
1570
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1571
1571
  capture: "at_action" | "historical_lookup" | "fixture";
1572
1572
  locator?: string | undefined;
1573
1573
  }[] | undefined;
@@ -1575,38 +1575,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1575
1575
  kind: "mission_started";
1576
1576
  title: string;
1577
1577
  evidence: {
1578
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1579
- label: string;
1580
1578
  id: string;
1579
+ label: string;
1580
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1581
1581
  capture: "at_action" | "historical_lookup" | "fixture";
1582
1582
  locator?: string | undefined;
1583
1583
  }[];
1584
1584
  objective: string;
1585
1585
  runMode: "replay" | "fixture" | "live";
1586
1586
  } | {
1587
- kind: "agent_status";
1588
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1589
1587
  label: string;
1588
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1589
+ kind: "agent_status";
1590
1590
  role: string;
1591
1591
  agentId: string;
1592
1592
  sessionId: string;
1593
1593
  evidence: {
1594
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
- label: string;
1596
1594
  id: string;
1595
+ label: string;
1596
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1597
1597
  capture: "at_action" | "historical_lookup" | "fixture";
1598
1598
  locator?: string | undefined;
1599
1599
  }[];
1600
1600
  detail?: string | undefined;
1601
1601
  } | {
1602
- kind: "agent_output";
1603
1602
  summary: string;
1603
+ kind: "agent_output";
1604
1604
  agentId: string;
1605
1605
  sessionId: string;
1606
1606
  evidence: {
1607
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1608
- label: string;
1609
1607
  id: string;
1608
+ label: string;
1609
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1610
1610
  capture: "at_action" | "historical_lookup" | "fixture";
1611
1611
  locator?: string | undefined;
1612
1612
  }[];
@@ -1617,9 +1617,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1617
1617
  statement: string;
1618
1618
  sessionId: string;
1619
1619
  evidence: {
1620
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1621
- label: string;
1622
1620
  id: string;
1621
+ label: string;
1622
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1623
1623
  capture: "at_action" | "historical_lookup" | "fixture";
1624
1624
  locator?: string | undefined;
1625
1625
  }[];
@@ -1627,12 +1627,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1627
1627
  decisionId: string;
1628
1628
  confidence?: number | undefined;
1629
1629
  } | {
1630
- kind: "conflict_detected";
1631
1630
  summary: string;
1631
+ kind: "conflict_detected";
1632
1632
  evidence: {
1633
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1634
- label: string;
1635
1633
  id: string;
1634
+ label: string;
1635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1636
1636
  capture: "at_action" | "historical_lookup" | "fixture";
1637
1637
  locator?: string | undefined;
1638
1638
  }[];
@@ -1640,14 +1640,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1640
1640
  decisionIds: string[];
1641
1641
  agentIds: string[];
1642
1642
  } | {
1643
- kind: "test_result";
1644
1643
  summary: string;
1645
1644
  status: "error" | "failed" | "passed";
1645
+ kind: "test_result";
1646
1646
  command: string;
1647
1647
  evidence: {
1648
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1649
- label: string;
1650
1648
  id: string;
1649
+ label: string;
1650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1651
1651
  capture: "at_action" | "historical_lookup" | "fixture";
1652
1652
  locator?: string | undefined;
1653
1653
  }[];
@@ -1660,9 +1660,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1660
1660
  statement: string;
1661
1661
  rationale: string;
1662
1662
  evidence: {
1663
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
- label: string;
1665
1663
  id: string;
1664
+ label: string;
1665
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1666
1666
  capture: "at_action" | "historical_lookup" | "fixture";
1667
1667
  locator?: string | undefined;
1668
1668
  }[];
@@ -1674,25 +1674,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1674
1674
  } | {
1675
1675
  kind: "correction_approved";
1676
1676
  evidence: {
1677
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1678
- label: string;
1679
1677
  id: string;
1678
+ label: string;
1679
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1680
1680
  capture: "at_action" | "historical_lookup" | "fixture";
1681
1681
  locator?: string | undefined;
1682
1682
  }[];
1683
1683
  correctionId: string;
1684
1684
  approvedBy: {
1685
- kind: "agent" | "human";
1686
- label: string;
1687
1685
  id: string;
1686
+ label: string;
1687
+ kind: "agent" | "human";
1688
1688
  };
1689
1689
  note?: string | undefined;
1690
1690
  } | {
1691
1691
  kind: "decision_superseded";
1692
1692
  evidence: {
1693
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1694
- label: string;
1695
1693
  id: string;
1694
+ label: string;
1695
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1696
1696
  capture: "at_action" | "historical_lookup" | "fixture";
1697
1697
  locator?: string | undefined;
1698
1698
  }[];
@@ -1705,9 +1705,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1705
1705
  agentId: string;
1706
1706
  sessionId: string;
1707
1707
  evidence: {
1708
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1709
- label: string;
1710
1708
  id: string;
1709
+ label: string;
1710
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1711
1711
  capture: "at_action" | "historical_lookup" | "fixture";
1712
1712
  locator?: string | undefined;
1713
1713
  }[];
@@ -1719,9 +1719,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1719
1719
  agentId: string;
1720
1720
  sessionId: string;
1721
1721
  evidence: {
1722
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1723
- label: string;
1724
1722
  id: string;
1723
+ 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
  }[];
@@ -1730,13 +1730,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1730
1730
  recallReceiptId: string;
1731
1731
  staleDecisionAbsent: boolean;
1732
1732
  } | {
1733
- kind: "mission_completed";
1734
1733
  summary: string;
1734
+ kind: "mission_completed";
1735
1735
  outcome: "failed" | "recovered" | "inconclusive";
1736
1736
  evidence: {
1737
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1738
- label: string;
1739
1737
  id: string;
1738
+ 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
  }[];
@@ -1746,37 +1746,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1746
1746
  objective: string;
1747
1747
  runMode: "replay" | "fixture" | "live";
1748
1748
  evidence?: {
1749
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1750
- label: string;
1751
1749
  id: string;
1750
+ label: string;
1751
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1752
1752
  capture: "at_action" | "historical_lookup" | "fixture";
1753
1753
  locator?: string | undefined;
1754
1754
  }[] | undefined;
1755
1755
  } | {
1756
- kind: "agent_status";
1757
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1758
1756
  label: string;
1757
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1758
+ kind: "agent_status";
1759
1759
  role: string;
1760
1760
  agentId: string;
1761
1761
  sessionId: string;
1762
1762
  detail?: string | undefined;
1763
1763
  evidence?: {
1764
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
- label: string;
1766
1764
  id: string;
1765
+ label: string;
1766
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1767
1767
  capture: "at_action" | "historical_lookup" | "fixture";
1768
1768
  locator?: string | undefined;
1769
1769
  }[] | undefined;
1770
1770
  } | {
1771
- kind: "agent_output";
1772
1771
  summary: string;
1772
+ kind: "agent_output";
1773
1773
  agentId: string;
1774
1774
  sessionId: string;
1775
1775
  outputId: string;
1776
1776
  evidence?: {
1777
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1778
- label: string;
1779
1777
  id: string;
1778
+ label: string;
1779
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1780
1780
  capture: "at_action" | "historical_lookup" | "fixture";
1781
1781
  locator?: string | undefined;
1782
1782
  }[] | undefined;
@@ -1789,37 +1789,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1789
1789
  decisionId: string;
1790
1790
  confidence?: number | undefined;
1791
1791
  evidence?: {
1792
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
- label: string;
1794
1792
  id: string;
1793
+ label: string;
1794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1795
1795
  capture: "at_action" | "historical_lookup" | "fixture";
1796
1796
  locator?: string | undefined;
1797
1797
  }[] | undefined;
1798
1798
  } | {
1799
- kind: "conflict_detected";
1800
1799
  summary: string;
1800
+ kind: "conflict_detected";
1801
1801
  conflictId: string;
1802
1802
  decisionIds: string[];
1803
1803
  agentIds: string[];
1804
1804
  evidence?: {
1805
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1806
- label: string;
1807
1805
  id: string;
1806
+ label: string;
1807
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1808
1808
  capture: "at_action" | "historical_lookup" | "fixture";
1809
1809
  locator?: string | undefined;
1810
1810
  }[] | undefined;
1811
1811
  } | {
1812
- kind: "test_result";
1813
1812
  summary: string;
1814
1813
  status: "error" | "failed" | "passed";
1814
+ kind: "test_result";
1815
1815
  command: string;
1816
1816
  decisionId: string;
1817
1817
  testId: string;
1818
1818
  durationMs?: number | undefined;
1819
1819
  evidence?: {
1820
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1821
- label: string;
1822
1820
  id: string;
1821
+ label: string;
1822
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1823
1823
  capture: "at_action" | "historical_lookup" | "fixture";
1824
1824
  locator?: string | undefined;
1825
1825
  }[] | undefined;
@@ -1834,9 +1834,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1834
1834
  supersedesDecisionIds: string[];
1835
1835
  proposedBy: string;
1836
1836
  evidence?: {
1837
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1838
- label: string;
1839
1837
  id: string;
1838
+ label: string;
1839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1840
1840
  capture: "at_action" | "historical_lookup" | "fixture";
1841
1841
  locator?: string | undefined;
1842
1842
  }[] | undefined;
@@ -1844,15 +1844,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1844
1844
  kind: "correction_approved";
1845
1845
  correctionId: string;
1846
1846
  approvedBy: {
1847
- kind: "agent" | "human";
1848
- label: string;
1849
1847
  id: string;
1848
+ label: string;
1849
+ kind: "agent" | "human";
1850
1850
  };
1851
1851
  note?: string | undefined;
1852
1852
  evidence?: {
1853
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1854
- label: string;
1855
1853
  id: string;
1854
+ 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;
@@ -1862,9 +1862,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1862
1862
  correctionId: string;
1863
1863
  replacementDecisionId: string;
1864
1864
  evidence?: {
1865
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1866
- label: string;
1867
1865
  id: string;
1866
+ label: string;
1867
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1868
1868
  capture: "at_action" | "historical_lookup" | "fixture";
1869
1869
  locator?: string | undefined;
1870
1870
  }[] | undefined;
@@ -1877,9 +1877,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1877
1877
  recallReceiptId: string;
1878
1878
  capturedAtAction: boolean;
1879
1879
  evidence?: {
1880
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1881
- label: string;
1882
1880
  id: string;
1881
+ label: string;
1882
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1883
1883
  capture: "at_action" | "historical_lookup" | "fixture";
1884
1884
  locator?: string | undefined;
1885
1885
  }[] | undefined;
@@ -1892,20 +1892,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1892
1892
  recallReceiptId: string;
1893
1893
  staleDecisionAbsent: boolean;
1894
1894
  evidence?: {
1895
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1896
- label: string;
1897
1895
  id: string;
1896
+ label: string;
1897
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1898
1898
  capture: "at_action" | "historical_lookup" | "fixture";
1899
1899
  locator?: string | undefined;
1900
1900
  }[] | undefined;
1901
1901
  } | {
1902
- kind: "mission_completed";
1903
1902
  summary: string;
1903
+ kind: "mission_completed";
1904
1904
  outcome: "failed" | "recovered" | "inconclusive";
1905
1905
  evidence?: {
1906
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1907
- label: string;
1908
1906
  id: string;
1907
+ label: string;
1908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1909
1909
  capture: "at_action" | "historical_lookup" | "fixture";
1910
1910
  locator?: string | undefined;
1911
1911
  }[] | undefined;
@@ -1926,15 +1926,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1926
1926
  locator: z.ZodOptional<z.ZodString>;
1927
1927
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1928
1928
  }, "strict", z.ZodTypeAny, {
1929
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1930
- label: string;
1931
1929
  id: string;
1930
+ label: string;
1931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1932
1932
  capture: "at_action" | "historical_lookup" | "fixture";
1933
1933
  locator?: string | undefined;
1934
1934
  }, {
1935
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1936
- label: string;
1937
1935
  id: string;
1936
+ label: string;
1937
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1938
1938
  capture: "at_action" | "historical_lookup" | "fixture";
1939
1939
  locator?: string | undefined;
1940
1940
  }>, "many">>;
@@ -1942,9 +1942,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1942
1942
  kind: "mission_started";
1943
1943
  title: string;
1944
1944
  evidence: {
1945
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1946
- label: string;
1947
1945
  id: string;
1946
+ label: string;
1947
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1948
1948
  capture: "at_action" | "historical_lookup" | "fixture";
1949
1949
  locator?: string | undefined;
1950
1950
  }[];
@@ -1956,9 +1956,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1956
1956
  objective: string;
1957
1957
  runMode: "replay" | "fixture" | "live";
1958
1958
  evidence?: {
1959
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1960
- label: string;
1961
1959
  id: string;
1960
+ label: string;
1961
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1962
1962
  capture: "at_action" | "historical_lookup" | "fixture";
1963
1963
  locator?: string | undefined;
1964
1964
  }[] | undefined;
@@ -1974,15 +1974,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1974
1974
  locator: z.ZodOptional<z.ZodString>;
1975
1975
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1976
1976
  }, "strict", z.ZodTypeAny, {
1977
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1978
- label: string;
1979
1977
  id: string;
1978
+ label: string;
1979
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1980
1980
  capture: "at_action" | "historical_lookup" | "fixture";
1981
1981
  locator?: string | undefined;
1982
1982
  }, {
1983
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1984
- label: string;
1985
1983
  id: string;
1984
+ label: string;
1985
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1986
1986
  capture: "at_action" | "historical_lookup" | "fixture";
1987
1987
  locator?: string | undefined;
1988
1988
  }>, "many">>;
@@ -1990,32 +1990,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1990
1990
  sessionId: z.ZodString;
1991
1991
  kind: z.ZodLiteral<"agent_status">;
1992
1992
  }, "strict", z.ZodTypeAny, {
1993
- kind: "agent_status";
1994
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1995
1993
  label: string;
1994
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1995
+ kind: "agent_status";
1996
1996
  role: string;
1997
1997
  agentId: string;
1998
1998
  sessionId: string;
1999
1999
  evidence: {
2000
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2001
- label: string;
2002
2000
  id: string;
2001
+ label: string;
2002
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2003
2003
  capture: "at_action" | "historical_lookup" | "fixture";
2004
2004
  locator?: string | undefined;
2005
2005
  }[];
2006
2006
  detail?: string | undefined;
2007
2007
  }, {
2008
- kind: "agent_status";
2009
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2010
2008
  label: string;
2009
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2010
+ kind: "agent_status";
2011
2011
  role: string;
2012
2012
  agentId: string;
2013
2013
  sessionId: string;
2014
2014
  detail?: string | undefined;
2015
2015
  evidence?: {
2016
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2017
- label: string;
2018
2016
  id: string;
2017
+ label: string;
2018
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2019
2019
  capture: "at_action" | "historical_lookup" | "fixture";
2020
2020
  locator?: string | undefined;
2021
2021
  }[] | undefined;
@@ -2029,15 +2029,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2029
2029
  locator: z.ZodOptional<z.ZodString>;
2030
2030
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2031
2031
  }, "strict", z.ZodTypeAny, {
2032
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
- label: string;
2034
2032
  id: string;
2033
+ label: string;
2034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2035
2035
  capture: "at_action" | "historical_lookup" | "fixture";
2036
2036
  locator?: string | undefined;
2037
2037
  }, {
2038
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2039
- label: string;
2040
2038
  id: string;
2039
+ label: string;
2040
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2041
2041
  capture: "at_action" | "historical_lookup" | "fixture";
2042
2042
  locator?: string | undefined;
2043
2043
  }>, "many">>;
@@ -2045,28 +2045,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2045
2045
  sessionId: z.ZodString;
2046
2046
  kind: z.ZodLiteral<"agent_output">;
2047
2047
  }, "strict", z.ZodTypeAny, {
2048
- kind: "agent_output";
2049
2048
  summary: string;
2049
+ kind: "agent_output";
2050
2050
  agentId: string;
2051
2051
  sessionId: string;
2052
2052
  evidence: {
2053
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2054
- label: string;
2055
2053
  id: string;
2054
+ label: string;
2055
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2056
2056
  capture: "at_action" | "historical_lookup" | "fixture";
2057
2057
  locator?: string | undefined;
2058
2058
  }[];
2059
2059
  outputId: string;
2060
2060
  }, {
2061
- kind: "agent_output";
2062
2061
  summary: string;
2062
+ kind: "agent_output";
2063
2063
  agentId: string;
2064
2064
  sessionId: string;
2065
2065
  outputId: string;
2066
2066
  evidence?: {
2067
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2068
- label: string;
2069
2067
  id: string;
2068
+ label: string;
2069
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2070
2070
  capture: "at_action" | "historical_lookup" | "fixture";
2071
2071
  locator?: string | undefined;
2072
2072
  }[] | undefined;
@@ -2082,15 +2082,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2082
2082
  locator: z.ZodOptional<z.ZodString>;
2083
2083
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2084
2084
  }, "strict", z.ZodTypeAny, {
2085
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2086
- label: string;
2087
2085
  id: string;
2086
+ label: string;
2087
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2088
2088
  capture: "at_action" | "historical_lookup" | "fixture";
2089
2089
  locator?: string | undefined;
2090
2090
  }, {
2091
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2092
- label: string;
2093
2091
  id: string;
2092
+ label: string;
2093
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2094
2094
  capture: "at_action" | "historical_lookup" | "fixture";
2095
2095
  locator?: string | undefined;
2096
2096
  }>, "many">>;
@@ -2103,9 +2103,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2103
2103
  statement: string;
2104
2104
  sessionId: string;
2105
2105
  evidence: {
2106
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2107
- label: string;
2108
2106
  id: string;
2107
+ label: string;
2108
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2109
2109
  capture: "at_action" | "historical_lookup" | "fixture";
2110
2110
  locator?: string | undefined;
2111
2111
  }[];
@@ -2121,9 +2121,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2121
2121
  decisionId: string;
2122
2122
  confidence?: number | undefined;
2123
2123
  evidence?: {
2124
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2125
- label: string;
2126
2124
  id: string;
2125
+ label: string;
2126
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2127
2127
  capture: "at_action" | "historical_lookup" | "fixture";
2128
2128
  locator?: string | undefined;
2129
2129
  }[] | undefined;
@@ -2140,25 +2140,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2140
2140
  locator: z.ZodOptional<z.ZodString>;
2141
2141
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2142
2142
  }, "strict", z.ZodTypeAny, {
2143
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2144
- label: string;
2145
2143
  id: string;
2144
+ label: string;
2145
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2146
2146
  capture: "at_action" | "historical_lookup" | "fixture";
2147
2147
  locator?: string | undefined;
2148
2148
  }, {
2149
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2150
- label: string;
2151
2149
  id: string;
2150
+ label: string;
2151
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2152
2152
  capture: "at_action" | "historical_lookup" | "fixture";
2153
2153
  locator?: string | undefined;
2154
2154
  }>, "many">>;
2155
2155
  }, "strict", z.ZodTypeAny, {
2156
- kind: "conflict_detected";
2157
2156
  summary: string;
2157
+ kind: "conflict_detected";
2158
2158
  evidence: {
2159
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2160
- label: string;
2161
2159
  id: string;
2160
+ label: string;
2161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2162
2162
  capture: "at_action" | "historical_lookup" | "fixture";
2163
2163
  locator?: string | undefined;
2164
2164
  }[];
@@ -2166,15 +2166,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2166
2166
  decisionIds: string[];
2167
2167
  agentIds: string[];
2168
2168
  }, {
2169
- kind: "conflict_detected";
2170
2169
  summary: string;
2170
+ kind: "conflict_detected";
2171
2171
  conflictId: string;
2172
2172
  decisionIds: string[];
2173
2173
  agentIds: string[];
2174
2174
  evidence?: {
2175
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2176
- label: string;
2177
2175
  id: string;
2176
+ label: string;
2177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2178
2178
  capture: "at_action" | "historical_lookup" | "fixture";
2179
2179
  locator?: string | undefined;
2180
2180
  }[] | undefined;
@@ -2194,27 +2194,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2194
2194
  locator: z.ZodOptional<z.ZodString>;
2195
2195
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2196
2196
  }, "strict", z.ZodTypeAny, {
2197
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2198
- label: string;
2199
2197
  id: string;
2198
+ label: string;
2199
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2200
  capture: "at_action" | "historical_lookup" | "fixture";
2201
2201
  locator?: string | undefined;
2202
2202
  }, {
2203
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2204
- label: string;
2205
2203
  id: string;
2204
+ label: string;
2205
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2206
2206
  capture: "at_action" | "historical_lookup" | "fixture";
2207
2207
  locator?: string | undefined;
2208
2208
  }>, "many">>;
2209
2209
  }, "strict", z.ZodTypeAny, {
2210
- kind: "test_result";
2211
2210
  summary: string;
2212
2211
  status: "error" | "failed" | "passed";
2212
+ kind: "test_result";
2213
2213
  command: string;
2214
2214
  evidence: {
2215
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2216
- label: string;
2217
2215
  id: string;
2216
+ label: string;
2217
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2218
2218
  capture: "at_action" | "historical_lookup" | "fixture";
2219
2219
  locator?: string | undefined;
2220
2220
  }[];
@@ -2223,17 +2223,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2223
2223
  durationMs?: number | undefined;
2224
2224
  correctionId?: string | undefined;
2225
2225
  }, {
2226
- kind: "test_result";
2227
2226
  summary: string;
2228
2227
  status: "error" | "failed" | "passed";
2228
+ kind: "test_result";
2229
2229
  command: string;
2230
2230
  decisionId: string;
2231
2231
  testId: string;
2232
2232
  durationMs?: number | undefined;
2233
2233
  evidence?: {
2234
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2235
- label: string;
2236
2234
  id: string;
2235
+ label: string;
2236
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2237
2237
  capture: "at_action" | "historical_lookup" | "fixture";
2238
2238
  locator?: string | undefined;
2239
2239
  }[] | undefined;
@@ -2254,15 +2254,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2254
2254
  locator: z.ZodOptional<z.ZodString>;
2255
2255
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2256
2256
  }, "strict", z.ZodTypeAny, {
2257
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2258
- label: string;
2259
2257
  id: string;
2258
+ label: string;
2259
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2260
2260
  capture: "at_action" | "historical_lookup" | "fixture";
2261
2261
  locator?: string | undefined;
2262
2262
  }, {
2263
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2264
- label: string;
2265
2263
  id: string;
2264
+ label: string;
2265
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2266
2266
  capture: "at_action" | "historical_lookup" | "fixture";
2267
2267
  locator?: string | undefined;
2268
2268
  }>, "many">>;
@@ -2271,9 +2271,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2271
2271
  statement: string;
2272
2272
  rationale: string;
2273
2273
  evidence: {
2274
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2275
- label: string;
2276
2274
  id: string;
2275
+ label: string;
2276
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2277
2277
  capture: "at_action" | "historical_lookup" | "fixture";
2278
2278
  locator?: string | undefined;
2279
2279
  }[];
@@ -2292,9 +2292,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2292
2292
  supersedesDecisionIds: string[];
2293
2293
  proposedBy: string;
2294
2294
  evidence?: {
2295
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2296
- label: string;
2297
2295
  id: string;
2296
+ label: string;
2297
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2298
2298
  capture: "at_action" | "historical_lookup" | "fixture";
2299
2299
  locator?: string | undefined;
2300
2300
  }[] | undefined;
@@ -2306,13 +2306,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2306
2306
  id: z.ZodString;
2307
2307
  label: z.ZodString;
2308
2308
  }, "strict", z.ZodTypeAny, {
2309
- kind: "agent" | "human";
2310
- label: string;
2311
2309
  id: string;
2312
- }, {
2313
- kind: "agent" | "human";
2314
2310
  label: string;
2311
+ kind: "agent" | "human";
2312
+ }, {
2315
2313
  id: string;
2314
+ label: string;
2315
+ kind: "agent" | "human";
2316
2316
  }>;
2317
2317
  note: z.ZodOptional<z.ZodString>;
2318
2318
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2322,47 +2322,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2322
2322
  locator: z.ZodOptional<z.ZodString>;
2323
2323
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2324
2324
  }, "strict", z.ZodTypeAny, {
2325
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2326
- label: string;
2327
2325
  id: string;
2326
+ label: string;
2327
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2328
2328
  capture: "at_action" | "historical_lookup" | "fixture";
2329
2329
  locator?: string | undefined;
2330
2330
  }, {
2331
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2332
- label: string;
2333
2331
  id: string;
2332
+ label: string;
2333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2334
2334
  capture: "at_action" | "historical_lookup" | "fixture";
2335
2335
  locator?: string | undefined;
2336
2336
  }>, "many">>;
2337
2337
  }, "strict", z.ZodTypeAny, {
2338
2338
  kind: "correction_approved";
2339
2339
  evidence: {
2340
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2341
- label: string;
2342
2340
  id: string;
2341
+ label: string;
2342
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2343
2343
  capture: "at_action" | "historical_lookup" | "fixture";
2344
2344
  locator?: string | undefined;
2345
2345
  }[];
2346
2346
  correctionId: string;
2347
2347
  approvedBy: {
2348
- kind: "agent" | "human";
2349
- label: string;
2350
2348
  id: string;
2349
+ label: string;
2350
+ kind: "agent" | "human";
2351
2351
  };
2352
2352
  note?: string | undefined;
2353
2353
  }, {
2354
2354
  kind: "correction_approved";
2355
2355
  correctionId: string;
2356
2356
  approvedBy: {
2357
- kind: "agent" | "human";
2358
- label: string;
2359
2357
  id: string;
2358
+ label: string;
2359
+ kind: "agent" | "human";
2360
2360
  };
2361
2361
  note?: string | undefined;
2362
2362
  evidence?: {
2363
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2364
- label: string;
2365
2363
  id: string;
2364
+ label: string;
2365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2366
2366
  capture: "at_action" | "historical_lookup" | "fixture";
2367
2367
  locator?: string | undefined;
2368
2368
  }[] | undefined;
@@ -2378,24 +2378,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2378
2378
  locator: z.ZodOptional<z.ZodString>;
2379
2379
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2380
2380
  }, "strict", z.ZodTypeAny, {
2381
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2382
- label: string;
2383
2381
  id: string;
2382
+ label: string;
2383
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2384
2384
  capture: "at_action" | "historical_lookup" | "fixture";
2385
2385
  locator?: string | undefined;
2386
2386
  }, {
2387
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2388
- label: string;
2389
2387
  id: string;
2388
+ label: string;
2389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2390
2390
  capture: "at_action" | "historical_lookup" | "fixture";
2391
2391
  locator?: string | undefined;
2392
2392
  }>, "many">>;
2393
2393
  }, "strict", z.ZodTypeAny, {
2394
2394
  kind: "decision_superseded";
2395
2395
  evidence: {
2396
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2397
- label: string;
2398
2396
  id: string;
2397
+ label: string;
2398
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2399
2399
  capture: "at_action" | "historical_lookup" | "fixture";
2400
2400
  locator?: string | undefined;
2401
2401
  }[];
@@ -2408,9 +2408,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2408
2408
  correctionId: string;
2409
2409
  replacementDecisionId: string;
2410
2410
  evidence?: {
2411
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2412
- label: string;
2413
2411
  id: string;
2412
+ label: string;
2413
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2414
2414
  capture: "at_action" | "historical_lookup" | "fixture";
2415
2415
  locator?: string | undefined;
2416
2416
  }[] | undefined;
@@ -2426,15 +2426,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2426
2426
  locator: z.ZodOptional<z.ZodString>;
2427
2427
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2428
2428
  }, "strict", z.ZodTypeAny, {
2429
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2430
- label: string;
2431
2429
  id: string;
2430
+ label: string;
2431
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2432
2432
  capture: "at_action" | "historical_lookup" | "fixture";
2433
2433
  locator?: string | undefined;
2434
2434
  }, {
2435
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2436
- label: string;
2437
2435
  id: string;
2436
+ label: string;
2437
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2438
2438
  capture: "at_action" | "historical_lookup" | "fixture";
2439
2439
  locator?: string | undefined;
2440
2440
  }>, "many">>;
@@ -2447,9 +2447,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2447
2447
  agentId: string;
2448
2448
  sessionId: string;
2449
2449
  evidence: {
2450
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2451
- label: string;
2452
2450
  id: string;
2451
+ label: string;
2452
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2453
2453
  capture: "at_action" | "historical_lookup" | "fixture";
2454
2454
  locator?: string | undefined;
2455
2455
  }[];
@@ -2465,9 +2465,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2465
2465
  recallReceiptId: string;
2466
2466
  capturedAtAction: boolean;
2467
2467
  evidence?: {
2468
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2469
- label: string;
2470
2468
  id: string;
2469
+ label: string;
2470
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2471
2471
  capture: "at_action" | "historical_lookup" | "fixture";
2472
2472
  locator?: string | undefined;
2473
2473
  }[] | undefined;
@@ -2483,15 +2483,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2483
2483
  locator: z.ZodOptional<z.ZodString>;
2484
2484
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2485
2485
  }, "strict", z.ZodTypeAny, {
2486
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2487
- label: string;
2488
2486
  id: string;
2487
+ label: string;
2488
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2489
2489
  capture: "at_action" | "historical_lookup" | "fixture";
2490
2490
  locator?: string | undefined;
2491
2491
  }, {
2492
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2493
- label: string;
2494
2492
  id: string;
2493
+ label: string;
2494
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2495
2495
  capture: "at_action" | "historical_lookup" | "fixture";
2496
2496
  locator?: string | undefined;
2497
2497
  }>, "many">>;
@@ -2503,9 +2503,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2503
2503
  agentId: string;
2504
2504
  sessionId: string;
2505
2505
  evidence: {
2506
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2507
- label: string;
2508
2506
  id: string;
2507
+ label: string;
2508
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2509
2509
  capture: "at_action" | "historical_lookup" | "fixture";
2510
2510
  locator?: string | undefined;
2511
2511
  }[];
@@ -2522,9 +2522,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2522
2522
  recallReceiptId: string;
2523
2523
  staleDecisionAbsent: boolean;
2524
2524
  evidence?: {
2525
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2526
- label: string;
2527
2525
  id: string;
2526
+ label: string;
2527
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2528
2528
  capture: "at_action" | "historical_lookup" | "fixture";
2529
2529
  locator?: string | undefined;
2530
2530
  }[] | undefined;
@@ -2539,37 +2539,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2539
2539
  locator: z.ZodOptional<z.ZodString>;
2540
2540
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2541
2541
  }, "strict", z.ZodTypeAny, {
2542
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
- label: string;
2544
2542
  id: string;
2543
+ label: string;
2544
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2545
2545
  capture: "at_action" | "historical_lookup" | "fixture";
2546
2546
  locator?: string | undefined;
2547
2547
  }, {
2548
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2549
- label: string;
2550
2548
  id: string;
2549
+ label: string;
2550
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2551
2551
  capture: "at_action" | "historical_lookup" | "fixture";
2552
2552
  locator?: string | undefined;
2553
2553
  }>, "many">>;
2554
2554
  }, "strict", z.ZodTypeAny, {
2555
- kind: "mission_completed";
2556
2555
  summary: string;
2556
+ kind: "mission_completed";
2557
2557
  outcome: "failed" | "recovered" | "inconclusive";
2558
2558
  evidence: {
2559
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2560
- label: string;
2561
2559
  id: string;
2560
+ label: string;
2561
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
2562
  capture: "at_action" | "historical_lookup" | "fixture";
2563
2563
  locator?: string | undefined;
2564
2564
  }[];
2565
2565
  }, {
2566
- kind: "mission_completed";
2567
2566
  summary: string;
2567
+ kind: "mission_completed";
2568
2568
  outcome: "failed" | "recovered" | "inconclusive";
2569
2569
  evidence?: {
2570
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2571
- label: string;
2572
2570
  id: string;
2571
+ label: string;
2572
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2573
2573
  capture: "at_action" | "historical_lookup" | "fixture";
2574
2574
  locator?: string | undefined;
2575
2575
  }[] | undefined;
@@ -2577,38 +2577,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2577
2577
  kind: "mission_started";
2578
2578
  title: string;
2579
2579
  evidence: {
2580
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2581
- label: string;
2582
2580
  id: string;
2581
+ label: string;
2582
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2583
2583
  capture: "at_action" | "historical_lookup" | "fixture";
2584
2584
  locator?: string | undefined;
2585
2585
  }[];
2586
2586
  objective: string;
2587
2587
  runMode: "replay" | "fixture" | "live";
2588
2588
  } | {
2589
- kind: "agent_status";
2590
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2591
2589
  label: string;
2590
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2591
+ kind: "agent_status";
2592
2592
  role: string;
2593
2593
  agentId: string;
2594
2594
  sessionId: string;
2595
2595
  evidence: {
2596
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
- label: string;
2598
2596
  id: string;
2597
+ label: string;
2598
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2599
2599
  capture: "at_action" | "historical_lookup" | "fixture";
2600
2600
  locator?: string | undefined;
2601
2601
  }[];
2602
2602
  detail?: string | undefined;
2603
2603
  } | {
2604
- kind: "agent_output";
2605
2604
  summary: string;
2605
+ kind: "agent_output";
2606
2606
  agentId: string;
2607
2607
  sessionId: string;
2608
2608
  evidence: {
2609
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2610
- label: string;
2611
2609
  id: string;
2610
+ label: string;
2611
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2612
2612
  capture: "at_action" | "historical_lookup" | "fixture";
2613
2613
  locator?: string | undefined;
2614
2614
  }[];
@@ -2619,9 +2619,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2619
2619
  statement: string;
2620
2620
  sessionId: string;
2621
2621
  evidence: {
2622
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2623
- label: string;
2624
2622
  id: string;
2623
+ label: string;
2624
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2625
2625
  capture: "at_action" | "historical_lookup" | "fixture";
2626
2626
  locator?: string | undefined;
2627
2627
  }[];
@@ -2629,12 +2629,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2629
2629
  decisionId: string;
2630
2630
  confidence?: number | undefined;
2631
2631
  } | {
2632
- kind: "conflict_detected";
2633
2632
  summary: string;
2633
+ kind: "conflict_detected";
2634
2634
  evidence: {
2635
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2636
- label: string;
2637
2635
  id: string;
2636
+ label: string;
2637
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2638
2638
  capture: "at_action" | "historical_lookup" | "fixture";
2639
2639
  locator?: string | undefined;
2640
2640
  }[];
@@ -2642,14 +2642,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2642
2642
  decisionIds: string[];
2643
2643
  agentIds: string[];
2644
2644
  } | {
2645
- kind: "test_result";
2646
2645
  summary: string;
2647
2646
  status: "error" | "failed" | "passed";
2647
+ kind: "test_result";
2648
2648
  command: string;
2649
2649
  evidence: {
2650
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2651
- label: string;
2652
2650
  id: string;
2651
+ label: string;
2652
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2653
2653
  capture: "at_action" | "historical_lookup" | "fixture";
2654
2654
  locator?: string | undefined;
2655
2655
  }[];
@@ -2662,9 +2662,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2662
2662
  statement: string;
2663
2663
  rationale: string;
2664
2664
  evidence: {
2665
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2666
- label: string;
2667
2665
  id: string;
2666
+ label: string;
2667
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2668
2668
  capture: "at_action" | "historical_lookup" | "fixture";
2669
2669
  locator?: string | undefined;
2670
2670
  }[];
@@ -2676,25 +2676,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2676
2676
  } | {
2677
2677
  kind: "correction_approved";
2678
2678
  evidence: {
2679
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2680
- label: string;
2681
2679
  id: string;
2680
+ label: string;
2681
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2682
2682
  capture: "at_action" | "historical_lookup" | "fixture";
2683
2683
  locator?: string | undefined;
2684
2684
  }[];
2685
2685
  correctionId: string;
2686
2686
  approvedBy: {
2687
- kind: "agent" | "human";
2688
- label: string;
2689
2687
  id: string;
2688
+ label: string;
2689
+ kind: "agent" | "human";
2690
2690
  };
2691
2691
  note?: string | undefined;
2692
2692
  } | {
2693
2693
  kind: "decision_superseded";
2694
2694
  evidence: {
2695
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2696
- label: string;
2697
2695
  id: string;
2696
+ label: string;
2697
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2698
2698
  capture: "at_action" | "historical_lookup" | "fixture";
2699
2699
  locator?: string | undefined;
2700
2700
  }[];
@@ -2707,9 +2707,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2707
2707
  agentId: string;
2708
2708
  sessionId: string;
2709
2709
  evidence: {
2710
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2711
- label: string;
2712
2710
  id: string;
2711
+ label: string;
2712
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2713
2713
  capture: "at_action" | "historical_lookup" | "fixture";
2714
2714
  locator?: string | undefined;
2715
2715
  }[];
@@ -2721,9 +2721,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2721
2721
  agentId: string;
2722
2722
  sessionId: string;
2723
2723
  evidence: {
2724
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2725
- label: string;
2726
2724
  id: string;
2725
+ 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
  }[];
@@ -2732,13 +2732,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2732
2732
  recallReceiptId: string;
2733
2733
  staleDecisionAbsent: boolean;
2734
2734
  } | {
2735
- kind: "mission_completed";
2736
2735
  summary: string;
2736
+ kind: "mission_completed";
2737
2737
  outcome: "failed" | "recovered" | "inconclusive";
2738
2738
  evidence: {
2739
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2740
- label: string;
2741
2739
  id: string;
2740
+ 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
  }[];
@@ -2748,37 +2748,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2748
2748
  objective: string;
2749
2749
  runMode: "replay" | "fixture" | "live";
2750
2750
  evidence?: {
2751
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2752
- label: string;
2753
2751
  id: string;
2752
+ label: string;
2753
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2754
2754
  capture: "at_action" | "historical_lookup" | "fixture";
2755
2755
  locator?: string | undefined;
2756
2756
  }[] | undefined;
2757
2757
  } | {
2758
- kind: "agent_status";
2759
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2760
2758
  label: string;
2759
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2760
+ kind: "agent_status";
2761
2761
  role: string;
2762
2762
  agentId: string;
2763
2763
  sessionId: string;
2764
2764
  detail?: string | undefined;
2765
2765
  evidence?: {
2766
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
- label: string;
2768
2766
  id: string;
2767
+ label: string;
2768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2769
2769
  capture: "at_action" | "historical_lookup" | "fixture";
2770
2770
  locator?: string | undefined;
2771
2771
  }[] | undefined;
2772
2772
  } | {
2773
- kind: "agent_output";
2774
2773
  summary: string;
2774
+ kind: "agent_output";
2775
2775
  agentId: string;
2776
2776
  sessionId: string;
2777
2777
  outputId: string;
2778
2778
  evidence?: {
2779
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2780
- label: string;
2781
2779
  id: string;
2780
+ label: string;
2781
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2782
2782
  capture: "at_action" | "historical_lookup" | "fixture";
2783
2783
  locator?: string | undefined;
2784
2784
  }[] | undefined;
@@ -2791,37 +2791,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2791
2791
  decisionId: string;
2792
2792
  confidence?: number | undefined;
2793
2793
  evidence?: {
2794
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
- label: string;
2796
2794
  id: string;
2795
+ label: string;
2796
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2797
2797
  capture: "at_action" | "historical_lookup" | "fixture";
2798
2798
  locator?: string | undefined;
2799
2799
  }[] | undefined;
2800
2800
  } | {
2801
- kind: "conflict_detected";
2802
2801
  summary: string;
2802
+ kind: "conflict_detected";
2803
2803
  conflictId: string;
2804
2804
  decisionIds: string[];
2805
2805
  agentIds: string[];
2806
2806
  evidence?: {
2807
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2808
- label: string;
2809
2807
  id: string;
2808
+ label: string;
2809
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2810
2810
  capture: "at_action" | "historical_lookup" | "fixture";
2811
2811
  locator?: string | undefined;
2812
2812
  }[] | undefined;
2813
2813
  } | {
2814
- kind: "test_result";
2815
2814
  summary: string;
2816
2815
  status: "error" | "failed" | "passed";
2816
+ kind: "test_result";
2817
2817
  command: string;
2818
2818
  decisionId: string;
2819
2819
  testId: string;
2820
2820
  durationMs?: number | undefined;
2821
2821
  evidence?: {
2822
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2823
- label: string;
2824
2822
  id: string;
2823
+ label: string;
2824
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2825
2825
  capture: "at_action" | "historical_lookup" | "fixture";
2826
2826
  locator?: string | undefined;
2827
2827
  }[] | undefined;
@@ -2836,9 +2836,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2836
2836
  supersedesDecisionIds: string[];
2837
2837
  proposedBy: string;
2838
2838
  evidence?: {
2839
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2840
- label: string;
2841
2839
  id: string;
2840
+ label: string;
2841
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2842
2842
  capture: "at_action" | "historical_lookup" | "fixture";
2843
2843
  locator?: string | undefined;
2844
2844
  }[] | undefined;
@@ -2846,15 +2846,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2846
2846
  kind: "correction_approved";
2847
2847
  correctionId: string;
2848
2848
  approvedBy: {
2849
- kind: "agent" | "human";
2850
- label: string;
2851
2849
  id: string;
2850
+ label: string;
2851
+ kind: "agent" | "human";
2852
2852
  };
2853
2853
  note?: string | undefined;
2854
2854
  evidence?: {
2855
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2856
- label: string;
2857
2855
  id: string;
2856
+ 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;
@@ -2864,9 +2864,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2864
2864
  correctionId: string;
2865
2865
  replacementDecisionId: string;
2866
2866
  evidence?: {
2867
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2868
- label: string;
2869
2867
  id: string;
2868
+ label: string;
2869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2870
2870
  capture: "at_action" | "historical_lookup" | "fixture";
2871
2871
  locator?: string | undefined;
2872
2872
  }[] | undefined;
@@ -2879,9 +2879,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2879
2879
  recallReceiptId: string;
2880
2880
  capturedAtAction: boolean;
2881
2881
  evidence?: {
2882
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2883
- label: string;
2884
2882
  id: string;
2883
+ label: string;
2884
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2885
2885
  capture: "at_action" | "historical_lookup" | "fixture";
2886
2886
  locator?: string | undefined;
2887
2887
  }[] | undefined;
@@ -2894,20 +2894,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2894
2894
  recallReceiptId: string;
2895
2895
  staleDecisionAbsent: boolean;
2896
2896
  evidence?: {
2897
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2898
- label: string;
2899
2897
  id: string;
2898
+ label: string;
2899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2900
2900
  capture: "at_action" | "historical_lookup" | "fixture";
2901
2901
  locator?: string | undefined;
2902
2902
  }[] | undefined;
2903
2903
  } | {
2904
- kind: "mission_completed";
2905
2904
  summary: string;
2905
+ kind: "mission_completed";
2906
2906
  outcome: "failed" | "recovered" | "inconclusive";
2907
2907
  evidence?: {
2908
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
- label: string;
2910
2908
  id: string;
2909
+ label: string;
2910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2911
2911
  capture: "at_action" | "historical_lookup" | "fixture";
2912
2912
  locator?: string | undefined;
2913
2913
  }[] | undefined;
@@ -2917,38 +2917,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2917
2917
  kind: "mission_started";
2918
2918
  title: string;
2919
2919
  evidence: {
2920
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2921
- label: string;
2922
2920
  id: string;
2921
+ label: string;
2922
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2923
2923
  capture: "at_action" | "historical_lookup" | "fixture";
2924
2924
  locator?: string | undefined;
2925
2925
  }[];
2926
2926
  objective: string;
2927
2927
  runMode: "replay" | "fixture" | "live";
2928
2928
  } | {
2929
- kind: "agent_status";
2930
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2931
2929
  label: string;
2930
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2931
+ kind: "agent_status";
2932
2932
  role: string;
2933
2933
  agentId: string;
2934
2934
  sessionId: string;
2935
2935
  evidence: {
2936
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2937
- label: string;
2938
2936
  id: string;
2937
+ label: string;
2938
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2939
2939
  capture: "at_action" | "historical_lookup" | "fixture";
2940
2940
  locator?: string | undefined;
2941
2941
  }[];
2942
2942
  detail?: string | undefined;
2943
2943
  } | {
2944
- kind: "agent_output";
2945
2944
  summary: string;
2945
+ kind: "agent_output";
2946
2946
  agentId: string;
2947
2947
  sessionId: string;
2948
2948
  evidence: {
2949
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2950
- label: string;
2951
2949
  id: string;
2950
+ label: string;
2951
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2952
2952
  capture: "at_action" | "historical_lookup" | "fixture";
2953
2953
  locator?: string | undefined;
2954
2954
  }[];
@@ -2959,9 +2959,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2959
2959
  statement: string;
2960
2960
  sessionId: string;
2961
2961
  evidence: {
2962
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
- label: string;
2964
2962
  id: string;
2963
+ label: string;
2964
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2965
2965
  capture: "at_action" | "historical_lookup" | "fixture";
2966
2966
  locator?: string | undefined;
2967
2967
  }[];
@@ -2969,12 +2969,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2969
2969
  decisionId: string;
2970
2970
  confidence?: number | undefined;
2971
2971
  } | {
2972
- kind: "conflict_detected";
2973
2972
  summary: string;
2973
+ kind: "conflict_detected";
2974
2974
  evidence: {
2975
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2976
- label: string;
2977
2975
  id: string;
2976
+ label: string;
2977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2978
2978
  capture: "at_action" | "historical_lookup" | "fixture";
2979
2979
  locator?: string | undefined;
2980
2980
  }[];
@@ -2982,14 +2982,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2982
2982
  decisionIds: string[];
2983
2983
  agentIds: string[];
2984
2984
  } | {
2985
- kind: "test_result";
2986
2985
  summary: string;
2987
2986
  status: "error" | "failed" | "passed";
2987
+ kind: "test_result";
2988
2988
  command: string;
2989
2989
  evidence: {
2990
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2991
- label: string;
2992
2990
  id: string;
2991
+ label: string;
2992
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2993
2993
  capture: "at_action" | "historical_lookup" | "fixture";
2994
2994
  locator?: string | undefined;
2995
2995
  }[];
@@ -3002,9 +3002,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3002
3002
  statement: string;
3003
3003
  rationale: string;
3004
3004
  evidence: {
3005
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3006
- label: string;
3007
3005
  id: string;
3006
+ label: string;
3007
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3008
3008
  capture: "at_action" | "historical_lookup" | "fixture";
3009
3009
  locator?: string | undefined;
3010
3010
  }[];
@@ -3016,25 +3016,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3016
3016
  } | {
3017
3017
  kind: "correction_approved";
3018
3018
  evidence: {
3019
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3020
- label: string;
3021
3019
  id: string;
3020
+ label: string;
3021
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3022
3022
  capture: "at_action" | "historical_lookup" | "fixture";
3023
3023
  locator?: string | undefined;
3024
3024
  }[];
3025
3025
  correctionId: string;
3026
3026
  approvedBy: {
3027
- kind: "agent" | "human";
3028
- label: string;
3029
3027
  id: string;
3028
+ label: string;
3029
+ kind: "agent" | "human";
3030
3030
  };
3031
3031
  note?: string | undefined;
3032
3032
  } | {
3033
3033
  kind: "decision_superseded";
3034
3034
  evidence: {
3035
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3036
- label: string;
3037
3035
  id: string;
3036
+ label: string;
3037
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3038
3038
  capture: "at_action" | "historical_lookup" | "fixture";
3039
3039
  locator?: string | undefined;
3040
3040
  }[];
@@ -3047,9 +3047,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3047
3047
  agentId: string;
3048
3048
  sessionId: string;
3049
3049
  evidence: {
3050
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3051
- label: string;
3052
3050
  id: string;
3051
+ label: string;
3052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3053
3053
  capture: "at_action" | "historical_lookup" | "fixture";
3054
3054
  locator?: string | undefined;
3055
3055
  }[];
@@ -3061,9 +3061,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3061
3061
  agentId: string;
3062
3062
  sessionId: string;
3063
3063
  evidence: {
3064
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3065
- label: string;
3066
3064
  id: string;
3065
+ label: string;
3066
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3067
3067
  capture: "at_action" | "historical_lookup" | "fixture";
3068
3068
  locator?: string | undefined;
3069
3069
  }[];
@@ -3072,13 +3072,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3072
3072
  recallReceiptId: string;
3073
3073
  staleDecisionAbsent: boolean;
3074
3074
  } | {
3075
- kind: "mission_completed";
3076
3075
  summary: string;
3076
+ kind: "mission_completed";
3077
3077
  outcome: "failed" | "recovered" | "inconclusive";
3078
3078
  evidence: {
3079
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3080
- label: string;
3081
3079
  id: string;
3080
+ label: string;
3081
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3082
3082
  capture: "at_action" | "historical_lookup" | "fixture";
3083
3083
  locator?: string | undefined;
3084
3084
  }[];
@@ -3092,37 +3092,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3092
3092
  objective: string;
3093
3093
  runMode: "replay" | "fixture" | "live";
3094
3094
  evidence?: {
3095
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3096
- label: string;
3097
3095
  id: string;
3096
+ label: string;
3097
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3098
3098
  capture: "at_action" | "historical_lookup" | "fixture";
3099
3099
  locator?: string | undefined;
3100
3100
  }[] | undefined;
3101
3101
  } | {
3102
- kind: "agent_status";
3103
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3104
3102
  label: string;
3103
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3104
+ kind: "agent_status";
3105
3105
  role: string;
3106
3106
  agentId: string;
3107
3107
  sessionId: string;
3108
3108
  detail?: string | undefined;
3109
3109
  evidence?: {
3110
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3111
- label: string;
3112
3110
  id: string;
3111
+ label: string;
3112
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3113
3113
  capture: "at_action" | "historical_lookup" | "fixture";
3114
3114
  locator?: string | undefined;
3115
3115
  }[] | undefined;
3116
3116
  } | {
3117
- kind: "agent_output";
3118
3117
  summary: string;
3118
+ kind: "agent_output";
3119
3119
  agentId: string;
3120
3120
  sessionId: string;
3121
3121
  outputId: string;
3122
3122
  evidence?: {
3123
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3124
- label: string;
3125
3123
  id: string;
3124
+ label: string;
3125
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3126
3126
  capture: "at_action" | "historical_lookup" | "fixture";
3127
3127
  locator?: string | undefined;
3128
3128
  }[] | undefined;
@@ -3135,37 +3135,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3135
3135
  decisionId: string;
3136
3136
  confidence?: number | undefined;
3137
3137
  evidence?: {
3138
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
- label: string;
3140
3138
  id: string;
3139
+ label: string;
3140
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3141
3141
  capture: "at_action" | "historical_lookup" | "fixture";
3142
3142
  locator?: string | undefined;
3143
3143
  }[] | undefined;
3144
3144
  } | {
3145
- kind: "conflict_detected";
3146
3145
  summary: string;
3146
+ kind: "conflict_detected";
3147
3147
  conflictId: string;
3148
3148
  decisionIds: string[];
3149
3149
  agentIds: string[];
3150
3150
  evidence?: {
3151
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3152
- label: string;
3153
3151
  id: string;
3152
+ label: string;
3153
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3154
3154
  capture: "at_action" | "historical_lookup" | "fixture";
3155
3155
  locator?: string | undefined;
3156
3156
  }[] | undefined;
3157
3157
  } | {
3158
- kind: "test_result";
3159
3158
  summary: string;
3160
3159
  status: "error" | "failed" | "passed";
3160
+ kind: "test_result";
3161
3161
  command: string;
3162
3162
  decisionId: string;
3163
3163
  testId: string;
3164
3164
  durationMs?: number | undefined;
3165
3165
  evidence?: {
3166
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3167
- label: string;
3168
3166
  id: string;
3167
+ label: string;
3168
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3169
3169
  capture: "at_action" | "historical_lookup" | "fixture";
3170
3170
  locator?: string | undefined;
3171
3171
  }[] | undefined;
@@ -3180,9 +3180,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3180
3180
  supersedesDecisionIds: string[];
3181
3181
  proposedBy: string;
3182
3182
  evidence?: {
3183
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3184
- label: string;
3185
3183
  id: string;
3184
+ label: string;
3185
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3186
3186
  capture: "at_action" | "historical_lookup" | "fixture";
3187
3187
  locator?: string | undefined;
3188
3188
  }[] | undefined;
@@ -3190,15 +3190,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3190
3190
  kind: "correction_approved";
3191
3191
  correctionId: string;
3192
3192
  approvedBy: {
3193
- kind: "agent" | "human";
3194
- label: string;
3195
3193
  id: string;
3194
+ label: string;
3195
+ kind: "agent" | "human";
3196
3196
  };
3197
3197
  note?: string | undefined;
3198
3198
  evidence?: {
3199
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3200
- label: string;
3201
3199
  id: string;
3200
+ 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;
@@ -3208,9 +3208,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3208
3208
  correctionId: string;
3209
3209
  replacementDecisionId: string;
3210
3210
  evidence?: {
3211
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3212
- label: string;
3213
3211
  id: string;
3212
+ label: string;
3213
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3214
3214
  capture: "at_action" | "historical_lookup" | "fixture";
3215
3215
  locator?: string | undefined;
3216
3216
  }[] | undefined;
@@ -3223,9 +3223,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3223
3223
  recallReceiptId: string;
3224
3224
  capturedAtAction: boolean;
3225
3225
  evidence?: {
3226
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3227
- label: string;
3228
3226
  id: string;
3227
+ label: string;
3228
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3229
3229
  capture: "at_action" | "historical_lookup" | "fixture";
3230
3230
  locator?: string | undefined;
3231
3231
  }[] | undefined;
@@ -3238,20 +3238,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3238
3238
  recallReceiptId: string;
3239
3239
  staleDecisionAbsent: boolean;
3240
3240
  evidence?: {
3241
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3242
- label: string;
3243
3241
  id: string;
3242
+ label: string;
3243
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3244
3244
  capture: "at_action" | "historical_lookup" | "fixture";
3245
3245
  locator?: string | undefined;
3246
3246
  }[] | undefined;
3247
3247
  } | {
3248
- kind: "mission_completed";
3249
3248
  summary: string;
3249
+ kind: "mission_completed";
3250
3250
  outcome: "failed" | "recovered" | "inconclusive";
3251
3251
  evidence?: {
3252
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3253
- label: string;
3254
3252
  id: string;
3253
+ label: string;
3254
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3255
3255
  capture: "at_action" | "historical_lookup" | "fixture";
3256
3256
  locator?: string | undefined;
3257
3257
  }[] | undefined;
@@ -3281,15 +3281,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3281
3281
  locator: z.ZodOptional<z.ZodString>;
3282
3282
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3283
3283
  }, "strict", z.ZodTypeAny, {
3284
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3285
- label: string;
3286
3284
  id: string;
3285
+ label: string;
3286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3287
3287
  capture: "at_action" | "historical_lookup" | "fixture";
3288
3288
  locator?: string | undefined;
3289
3289
  }, {
3290
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3291
- label: string;
3292
3290
  id: string;
3291
+ label: string;
3292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3293
3293
  capture: "at_action" | "historical_lookup" | "fixture";
3294
3294
  locator?: string | undefined;
3295
3295
  }>, "many">>;
@@ -3297,9 +3297,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3297
3297
  kind: "mission_started";
3298
3298
  title: string;
3299
3299
  evidence: {
3300
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3301
- label: string;
3302
3300
  id: string;
3301
+ label: string;
3302
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3303
3303
  capture: "at_action" | "historical_lookup" | "fixture";
3304
3304
  locator?: string | undefined;
3305
3305
  }[];
@@ -3311,9 +3311,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3311
3311
  objective: string;
3312
3312
  runMode: "replay" | "fixture" | "live";
3313
3313
  evidence?: {
3314
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3315
- label: string;
3316
3314
  id: string;
3315
+ label: string;
3316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3317
3317
  capture: "at_action" | "historical_lookup" | "fixture";
3318
3318
  locator?: string | undefined;
3319
3319
  }[] | undefined;
@@ -3329,15 +3329,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3329
3329
  locator: z.ZodOptional<z.ZodString>;
3330
3330
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3331
3331
  }, "strict", z.ZodTypeAny, {
3332
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3333
- label: string;
3334
3332
  id: string;
3333
+ label: string;
3334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3335
3335
  capture: "at_action" | "historical_lookup" | "fixture";
3336
3336
  locator?: string | undefined;
3337
3337
  }, {
3338
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3339
- label: string;
3340
3338
  id: string;
3339
+ label: string;
3340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3341
3341
  capture: "at_action" | "historical_lookup" | "fixture";
3342
3342
  locator?: string | undefined;
3343
3343
  }>, "many">>;
@@ -3345,32 +3345,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3345
3345
  sessionId: z.ZodString;
3346
3346
  kind: z.ZodLiteral<"agent_status">;
3347
3347
  }, "strict", z.ZodTypeAny, {
3348
- kind: "agent_status";
3349
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3350
3348
  label: string;
3349
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3350
+ kind: "agent_status";
3351
3351
  role: string;
3352
3352
  agentId: string;
3353
3353
  sessionId: string;
3354
3354
  evidence: {
3355
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3356
- label: string;
3357
3355
  id: string;
3356
+ label: string;
3357
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3358
3358
  capture: "at_action" | "historical_lookup" | "fixture";
3359
3359
  locator?: string | undefined;
3360
3360
  }[];
3361
3361
  detail?: string | undefined;
3362
3362
  }, {
3363
- kind: "agent_status";
3364
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3365
3363
  label: string;
3364
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3365
+ kind: "agent_status";
3366
3366
  role: string;
3367
3367
  agentId: string;
3368
3368
  sessionId: string;
3369
3369
  detail?: string | undefined;
3370
3370
  evidence?: {
3371
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3372
- label: string;
3373
3371
  id: string;
3372
+ label: string;
3373
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3374
3374
  capture: "at_action" | "historical_lookup" | "fixture";
3375
3375
  locator?: string | undefined;
3376
3376
  }[] | undefined;
@@ -3384,15 +3384,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3384
3384
  locator: z.ZodOptional<z.ZodString>;
3385
3385
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3386
3386
  }, "strict", z.ZodTypeAny, {
3387
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3388
- label: string;
3389
3387
  id: string;
3388
+ label: string;
3389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3390
3390
  capture: "at_action" | "historical_lookup" | "fixture";
3391
3391
  locator?: string | undefined;
3392
3392
  }, {
3393
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3394
- label: string;
3395
3393
  id: string;
3394
+ label: string;
3395
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3396
3396
  capture: "at_action" | "historical_lookup" | "fixture";
3397
3397
  locator?: string | undefined;
3398
3398
  }>, "many">>;
@@ -3400,28 +3400,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3400
3400
  sessionId: z.ZodString;
3401
3401
  kind: z.ZodLiteral<"agent_output">;
3402
3402
  }, "strict", z.ZodTypeAny, {
3403
- kind: "agent_output";
3404
3403
  summary: string;
3404
+ kind: "agent_output";
3405
3405
  agentId: string;
3406
3406
  sessionId: string;
3407
3407
  evidence: {
3408
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3409
- label: string;
3410
3408
  id: string;
3409
+ label: string;
3410
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3411
3411
  capture: "at_action" | "historical_lookup" | "fixture";
3412
3412
  locator?: string | undefined;
3413
3413
  }[];
3414
3414
  outputId: string;
3415
3415
  }, {
3416
- kind: "agent_output";
3417
3416
  summary: string;
3417
+ kind: "agent_output";
3418
3418
  agentId: string;
3419
3419
  sessionId: string;
3420
3420
  outputId: string;
3421
3421
  evidence?: {
3422
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3423
- label: string;
3424
3422
  id: string;
3423
+ label: string;
3424
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3425
3425
  capture: "at_action" | "historical_lookup" | "fixture";
3426
3426
  locator?: string | undefined;
3427
3427
  }[] | undefined;
@@ -3437,15 +3437,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3437
3437
  locator: z.ZodOptional<z.ZodString>;
3438
3438
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3439
3439
  }, "strict", z.ZodTypeAny, {
3440
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3441
- label: string;
3442
3440
  id: string;
3441
+ label: string;
3442
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3443
3443
  capture: "at_action" | "historical_lookup" | "fixture";
3444
3444
  locator?: string | undefined;
3445
3445
  }, {
3446
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3447
- label: string;
3448
3446
  id: string;
3447
+ label: string;
3448
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3449
3449
  capture: "at_action" | "historical_lookup" | "fixture";
3450
3450
  locator?: string | undefined;
3451
3451
  }>, "many">>;
@@ -3458,9 +3458,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3458
3458
  statement: string;
3459
3459
  sessionId: string;
3460
3460
  evidence: {
3461
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3462
- label: string;
3463
3461
  id: string;
3462
+ label: string;
3463
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3464
3464
  capture: "at_action" | "historical_lookup" | "fixture";
3465
3465
  locator?: string | undefined;
3466
3466
  }[];
@@ -3476,9 +3476,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3476
3476
  decisionId: string;
3477
3477
  confidence?: number | undefined;
3478
3478
  evidence?: {
3479
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3480
- label: string;
3481
3479
  id: string;
3480
+ label: string;
3481
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3482
3482
  capture: "at_action" | "historical_lookup" | "fixture";
3483
3483
  locator?: string | undefined;
3484
3484
  }[] | undefined;
@@ -3495,25 +3495,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3495
3495
  locator: z.ZodOptional<z.ZodString>;
3496
3496
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3497
3497
  }, "strict", z.ZodTypeAny, {
3498
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3499
- label: string;
3500
3498
  id: string;
3499
+ label: string;
3500
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3501
3501
  capture: "at_action" | "historical_lookup" | "fixture";
3502
3502
  locator?: string | undefined;
3503
3503
  }, {
3504
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3505
- label: string;
3506
3504
  id: string;
3505
+ label: string;
3506
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3507
3507
  capture: "at_action" | "historical_lookup" | "fixture";
3508
3508
  locator?: string | undefined;
3509
3509
  }>, "many">>;
3510
3510
  }, "strict", z.ZodTypeAny, {
3511
- kind: "conflict_detected";
3512
3511
  summary: string;
3512
+ kind: "conflict_detected";
3513
3513
  evidence: {
3514
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3515
- label: string;
3516
3514
  id: string;
3515
+ label: string;
3516
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3517
3517
  capture: "at_action" | "historical_lookup" | "fixture";
3518
3518
  locator?: string | undefined;
3519
3519
  }[];
@@ -3521,15 +3521,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3521
3521
  decisionIds: string[];
3522
3522
  agentIds: string[];
3523
3523
  }, {
3524
- kind: "conflict_detected";
3525
3524
  summary: string;
3525
+ kind: "conflict_detected";
3526
3526
  conflictId: string;
3527
3527
  decisionIds: string[];
3528
3528
  agentIds: string[];
3529
3529
  evidence?: {
3530
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3531
- label: string;
3532
3530
  id: string;
3531
+ label: string;
3532
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3533
3533
  capture: "at_action" | "historical_lookup" | "fixture";
3534
3534
  locator?: string | undefined;
3535
3535
  }[] | undefined;
@@ -3549,27 +3549,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3549
3549
  locator: z.ZodOptional<z.ZodString>;
3550
3550
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3551
3551
  }, "strict", z.ZodTypeAny, {
3552
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3553
- label: string;
3554
3552
  id: string;
3553
+ label: string;
3554
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3555
3555
  capture: "at_action" | "historical_lookup" | "fixture";
3556
3556
  locator?: string | undefined;
3557
3557
  }, {
3558
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3559
- label: string;
3560
3558
  id: string;
3559
+ label: string;
3560
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3561
3561
  capture: "at_action" | "historical_lookup" | "fixture";
3562
3562
  locator?: string | undefined;
3563
3563
  }>, "many">>;
3564
3564
  }, "strict", z.ZodTypeAny, {
3565
- kind: "test_result";
3566
3565
  summary: string;
3567
3566
  status: "error" | "failed" | "passed";
3567
+ kind: "test_result";
3568
3568
  command: string;
3569
3569
  evidence: {
3570
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3571
- label: string;
3572
3570
  id: string;
3571
+ label: string;
3572
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3573
3573
  capture: "at_action" | "historical_lookup" | "fixture";
3574
3574
  locator?: string | undefined;
3575
3575
  }[];
@@ -3578,17 +3578,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3578
3578
  durationMs?: number | undefined;
3579
3579
  correctionId?: string | undefined;
3580
3580
  }, {
3581
- kind: "test_result";
3582
3581
  summary: string;
3583
3582
  status: "error" | "failed" | "passed";
3583
+ kind: "test_result";
3584
3584
  command: string;
3585
3585
  decisionId: string;
3586
3586
  testId: string;
3587
3587
  durationMs?: number | undefined;
3588
3588
  evidence?: {
3589
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3590
- label: string;
3591
3589
  id: string;
3590
+ label: string;
3591
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3592
3592
  capture: "at_action" | "historical_lookup" | "fixture";
3593
3593
  locator?: string | undefined;
3594
3594
  }[] | undefined;
@@ -3609,15 +3609,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3609
3609
  locator: z.ZodOptional<z.ZodString>;
3610
3610
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3611
3611
  }, "strict", z.ZodTypeAny, {
3612
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3613
- label: string;
3614
3612
  id: string;
3613
+ label: string;
3614
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3615
3615
  capture: "at_action" | "historical_lookup" | "fixture";
3616
3616
  locator?: string | undefined;
3617
3617
  }, {
3618
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3619
- label: string;
3620
3618
  id: string;
3619
+ label: string;
3620
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3621
3621
  capture: "at_action" | "historical_lookup" | "fixture";
3622
3622
  locator?: string | undefined;
3623
3623
  }>, "many">>;
@@ -3626,9 +3626,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3626
3626
  statement: string;
3627
3627
  rationale: string;
3628
3628
  evidence: {
3629
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3630
- label: string;
3631
3629
  id: string;
3630
+ label: string;
3631
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3632
3632
  capture: "at_action" | "historical_lookup" | "fixture";
3633
3633
  locator?: string | undefined;
3634
3634
  }[];
@@ -3647,9 +3647,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3647
3647
  supersedesDecisionIds: string[];
3648
3648
  proposedBy: string;
3649
3649
  evidence?: {
3650
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3651
- label: string;
3652
3650
  id: string;
3651
+ label: string;
3652
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3653
3653
  capture: "at_action" | "historical_lookup" | "fixture";
3654
3654
  locator?: string | undefined;
3655
3655
  }[] | undefined;
@@ -3661,13 +3661,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3661
3661
  id: z.ZodString;
3662
3662
  label: z.ZodString;
3663
3663
  }, "strict", z.ZodTypeAny, {
3664
- kind: "agent" | "human";
3665
- label: string;
3666
3664
  id: string;
3667
- }, {
3668
- kind: "agent" | "human";
3669
3665
  label: string;
3666
+ kind: "agent" | "human";
3667
+ }, {
3670
3668
  id: string;
3669
+ label: string;
3670
+ kind: "agent" | "human";
3671
3671
  }>;
3672
3672
  note: z.ZodOptional<z.ZodString>;
3673
3673
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3677,47 +3677,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3677
3677
  locator: z.ZodOptional<z.ZodString>;
3678
3678
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3679
3679
  }, "strict", z.ZodTypeAny, {
3680
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3681
- label: string;
3682
3680
  id: string;
3681
+ label: string;
3682
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3683
3683
  capture: "at_action" | "historical_lookup" | "fixture";
3684
3684
  locator?: string | undefined;
3685
3685
  }, {
3686
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3687
- label: string;
3688
3686
  id: string;
3687
+ label: string;
3688
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3689
3689
  capture: "at_action" | "historical_lookup" | "fixture";
3690
3690
  locator?: string | undefined;
3691
3691
  }>, "many">>;
3692
3692
  }, "strict", z.ZodTypeAny, {
3693
3693
  kind: "correction_approved";
3694
3694
  evidence: {
3695
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3696
- label: string;
3697
3695
  id: string;
3696
+ label: string;
3697
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3698
3698
  capture: "at_action" | "historical_lookup" | "fixture";
3699
3699
  locator?: string | undefined;
3700
3700
  }[];
3701
3701
  correctionId: string;
3702
3702
  approvedBy: {
3703
- kind: "agent" | "human";
3704
- label: string;
3705
3703
  id: string;
3704
+ label: string;
3705
+ kind: "agent" | "human";
3706
3706
  };
3707
3707
  note?: string | undefined;
3708
3708
  }, {
3709
3709
  kind: "correction_approved";
3710
3710
  correctionId: string;
3711
3711
  approvedBy: {
3712
- kind: "agent" | "human";
3713
- label: string;
3714
3712
  id: string;
3713
+ label: string;
3714
+ kind: "agent" | "human";
3715
3715
  };
3716
3716
  note?: string | undefined;
3717
3717
  evidence?: {
3718
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3719
- label: string;
3720
3718
  id: string;
3719
+ label: string;
3720
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3721
3721
  capture: "at_action" | "historical_lookup" | "fixture";
3722
3722
  locator?: string | undefined;
3723
3723
  }[] | undefined;
@@ -3733,24 +3733,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3733
3733
  locator: z.ZodOptional<z.ZodString>;
3734
3734
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3735
3735
  }, "strict", z.ZodTypeAny, {
3736
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3737
- label: string;
3738
3736
  id: string;
3737
+ label: string;
3738
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3739
3739
  capture: "at_action" | "historical_lookup" | "fixture";
3740
3740
  locator?: string | undefined;
3741
3741
  }, {
3742
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3743
- label: string;
3744
3742
  id: string;
3743
+ label: string;
3744
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3745
3745
  capture: "at_action" | "historical_lookup" | "fixture";
3746
3746
  locator?: string | undefined;
3747
3747
  }>, "many">>;
3748
3748
  }, "strict", z.ZodTypeAny, {
3749
3749
  kind: "decision_superseded";
3750
3750
  evidence: {
3751
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3752
- label: string;
3753
3751
  id: string;
3752
+ label: string;
3753
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3754
3754
  capture: "at_action" | "historical_lookup" | "fixture";
3755
3755
  locator?: string | undefined;
3756
3756
  }[];
@@ -3763,9 +3763,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3763
3763
  correctionId: string;
3764
3764
  replacementDecisionId: string;
3765
3765
  evidence?: {
3766
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3767
- label: string;
3768
3766
  id: string;
3767
+ label: string;
3768
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3769
3769
  capture: "at_action" | "historical_lookup" | "fixture";
3770
3770
  locator?: string | undefined;
3771
3771
  }[] | undefined;
@@ -3781,15 +3781,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3781
3781
  locator: z.ZodOptional<z.ZodString>;
3782
3782
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3783
3783
  }, "strict", z.ZodTypeAny, {
3784
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3785
- label: string;
3786
3784
  id: string;
3785
+ label: string;
3786
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3787
3787
  capture: "at_action" | "historical_lookup" | "fixture";
3788
3788
  locator?: string | undefined;
3789
3789
  }, {
3790
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3791
- label: string;
3792
3790
  id: string;
3791
+ label: string;
3792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3793
3793
  capture: "at_action" | "historical_lookup" | "fixture";
3794
3794
  locator?: string | undefined;
3795
3795
  }>, "many">>;
@@ -3802,9 +3802,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3802
3802
  agentId: string;
3803
3803
  sessionId: string;
3804
3804
  evidence: {
3805
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3806
- label: string;
3807
3805
  id: string;
3806
+ label: string;
3807
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3808
3808
  capture: "at_action" | "historical_lookup" | "fixture";
3809
3809
  locator?: string | undefined;
3810
3810
  }[];
@@ -3820,9 +3820,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3820
3820
  recallReceiptId: string;
3821
3821
  capturedAtAction: boolean;
3822
3822
  evidence?: {
3823
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3824
- label: string;
3825
3823
  id: string;
3824
+ label: string;
3825
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3826
3826
  capture: "at_action" | "historical_lookup" | "fixture";
3827
3827
  locator?: string | undefined;
3828
3828
  }[] | undefined;
@@ -3838,15 +3838,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3838
3838
  locator: z.ZodOptional<z.ZodString>;
3839
3839
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3840
3840
  }, "strict", z.ZodTypeAny, {
3841
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3842
- label: string;
3843
3841
  id: string;
3842
+ label: string;
3843
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3844
3844
  capture: "at_action" | "historical_lookup" | "fixture";
3845
3845
  locator?: string | undefined;
3846
3846
  }, {
3847
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3848
- label: string;
3849
3847
  id: string;
3848
+ label: string;
3849
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3850
3850
  capture: "at_action" | "historical_lookup" | "fixture";
3851
3851
  locator?: string | undefined;
3852
3852
  }>, "many">>;
@@ -3858,9 +3858,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3858
3858
  agentId: string;
3859
3859
  sessionId: string;
3860
3860
  evidence: {
3861
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3862
- label: string;
3863
3861
  id: string;
3862
+ label: string;
3863
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3864
3864
  capture: "at_action" | "historical_lookup" | "fixture";
3865
3865
  locator?: string | undefined;
3866
3866
  }[];
@@ -3877,9 +3877,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3877
3877
  recallReceiptId: string;
3878
3878
  staleDecisionAbsent: boolean;
3879
3879
  evidence?: {
3880
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3881
- label: string;
3882
3880
  id: string;
3881
+ label: string;
3882
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3883
3883
  capture: "at_action" | "historical_lookup" | "fixture";
3884
3884
  locator?: string | undefined;
3885
3885
  }[] | undefined;
@@ -3894,37 +3894,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3894
3894
  locator: z.ZodOptional<z.ZodString>;
3895
3895
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3896
3896
  }, "strict", z.ZodTypeAny, {
3897
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
- label: string;
3899
3897
  id: string;
3898
+ label: string;
3899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3900
3900
  capture: "at_action" | "historical_lookup" | "fixture";
3901
3901
  locator?: string | undefined;
3902
3902
  }, {
3903
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3904
- label: string;
3905
3903
  id: string;
3904
+ label: string;
3905
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3906
3906
  capture: "at_action" | "historical_lookup" | "fixture";
3907
3907
  locator?: string | undefined;
3908
3908
  }>, "many">>;
3909
3909
  }, "strict", z.ZodTypeAny, {
3910
- kind: "mission_completed";
3911
3910
  summary: string;
3911
+ kind: "mission_completed";
3912
3912
  outcome: "failed" | "recovered" | "inconclusive";
3913
3913
  evidence: {
3914
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3915
- label: string;
3916
3914
  id: string;
3915
+ label: string;
3916
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3917
3917
  capture: "at_action" | "historical_lookup" | "fixture";
3918
3918
  locator?: string | undefined;
3919
3919
  }[];
3920
3920
  }, {
3921
- kind: "mission_completed";
3922
3921
  summary: string;
3922
+ kind: "mission_completed";
3923
3923
  outcome: "failed" | "recovered" | "inconclusive";
3924
3924
  evidence?: {
3925
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3926
- label: string;
3927
3925
  id: string;
3926
+ label: string;
3927
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3928
3928
  capture: "at_action" | "historical_lookup" | "fixture";
3929
3929
  locator?: string | undefined;
3930
3930
  }[] | undefined;
@@ -3932,38 +3932,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3932
3932
  kind: "mission_started";
3933
3933
  title: string;
3934
3934
  evidence: {
3935
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3936
- label: string;
3937
3935
  id: string;
3936
+ label: string;
3937
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3938
3938
  capture: "at_action" | "historical_lookup" | "fixture";
3939
3939
  locator?: string | undefined;
3940
3940
  }[];
3941
3941
  objective: string;
3942
3942
  runMode: "replay" | "fixture" | "live";
3943
3943
  } | {
3944
- kind: "agent_status";
3945
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3946
3944
  label: string;
3945
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3946
+ kind: "agent_status";
3947
3947
  role: string;
3948
3948
  agentId: string;
3949
3949
  sessionId: string;
3950
3950
  evidence: {
3951
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
- label: string;
3953
3951
  id: string;
3952
+ label: string;
3953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3954
3954
  capture: "at_action" | "historical_lookup" | "fixture";
3955
3955
  locator?: string | undefined;
3956
3956
  }[];
3957
3957
  detail?: string | undefined;
3958
3958
  } | {
3959
- kind: "agent_output";
3960
3959
  summary: string;
3960
+ kind: "agent_output";
3961
3961
  agentId: string;
3962
3962
  sessionId: string;
3963
3963
  evidence: {
3964
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3965
- label: string;
3966
3964
  id: string;
3965
+ label: string;
3966
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3967
3967
  capture: "at_action" | "historical_lookup" | "fixture";
3968
3968
  locator?: string | undefined;
3969
3969
  }[];
@@ -3974,9 +3974,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3974
3974
  statement: string;
3975
3975
  sessionId: string;
3976
3976
  evidence: {
3977
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3978
- label: string;
3979
3977
  id: string;
3978
+ label: string;
3979
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3980
3980
  capture: "at_action" | "historical_lookup" | "fixture";
3981
3981
  locator?: string | undefined;
3982
3982
  }[];
@@ -3984,12 +3984,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3984
3984
  decisionId: string;
3985
3985
  confidence?: number | undefined;
3986
3986
  } | {
3987
- kind: "conflict_detected";
3988
3987
  summary: string;
3988
+ kind: "conflict_detected";
3989
3989
  evidence: {
3990
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3991
- label: string;
3992
3990
  id: string;
3991
+ label: string;
3992
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3993
3993
  capture: "at_action" | "historical_lookup" | "fixture";
3994
3994
  locator?: string | undefined;
3995
3995
  }[];
@@ -3997,14 +3997,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3997
3997
  decisionIds: string[];
3998
3998
  agentIds: string[];
3999
3999
  } | {
4000
- kind: "test_result";
4001
4000
  summary: string;
4002
4001
  status: "error" | "failed" | "passed";
4002
+ kind: "test_result";
4003
4003
  command: string;
4004
4004
  evidence: {
4005
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4006
- label: string;
4007
4005
  id: string;
4006
+ label: string;
4007
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4008
4008
  capture: "at_action" | "historical_lookup" | "fixture";
4009
4009
  locator?: string | undefined;
4010
4010
  }[];
@@ -4017,9 +4017,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4017
4017
  statement: string;
4018
4018
  rationale: string;
4019
4019
  evidence: {
4020
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4021
- label: string;
4022
4020
  id: string;
4021
+ label: string;
4022
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4023
4023
  capture: "at_action" | "historical_lookup" | "fixture";
4024
4024
  locator?: string | undefined;
4025
4025
  }[];
@@ -4031,25 +4031,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4031
4031
  } | {
4032
4032
  kind: "correction_approved";
4033
4033
  evidence: {
4034
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4035
- label: string;
4036
4034
  id: string;
4035
+ label: string;
4036
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4037
4037
  capture: "at_action" | "historical_lookup" | "fixture";
4038
4038
  locator?: string | undefined;
4039
4039
  }[];
4040
4040
  correctionId: string;
4041
4041
  approvedBy: {
4042
- kind: "agent" | "human";
4043
- label: string;
4044
4042
  id: string;
4043
+ label: string;
4044
+ kind: "agent" | "human";
4045
4045
  };
4046
4046
  note?: string | undefined;
4047
4047
  } | {
4048
4048
  kind: "decision_superseded";
4049
4049
  evidence: {
4050
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4051
- label: string;
4052
4050
  id: string;
4051
+ label: string;
4052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4053
4053
  capture: "at_action" | "historical_lookup" | "fixture";
4054
4054
  locator?: string | undefined;
4055
4055
  }[];
@@ -4062,9 +4062,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4062
4062
  agentId: string;
4063
4063
  sessionId: string;
4064
4064
  evidence: {
4065
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4066
- label: string;
4067
4065
  id: string;
4066
+ label: string;
4067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4068
4068
  capture: "at_action" | "historical_lookup" | "fixture";
4069
4069
  locator?: string | undefined;
4070
4070
  }[];
@@ -4076,9 +4076,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4076
4076
  agentId: string;
4077
4077
  sessionId: string;
4078
4078
  evidence: {
4079
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4080
- label: string;
4081
4079
  id: string;
4080
+ 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
  }[];
@@ -4087,13 +4087,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4087
4087
  recallReceiptId: string;
4088
4088
  staleDecisionAbsent: boolean;
4089
4089
  } | {
4090
- kind: "mission_completed";
4091
4090
  summary: string;
4091
+ kind: "mission_completed";
4092
4092
  outcome: "failed" | "recovered" | "inconclusive";
4093
4093
  evidence: {
4094
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4095
- label: string;
4096
4094
  id: string;
4095
+ 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
  }[];
@@ -4103,37 +4103,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4103
4103
  objective: string;
4104
4104
  runMode: "replay" | "fixture" | "live";
4105
4105
  evidence?: {
4106
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4107
- label: string;
4108
4106
  id: string;
4107
+ label: string;
4108
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4109
4109
  capture: "at_action" | "historical_lookup" | "fixture";
4110
4110
  locator?: string | undefined;
4111
4111
  }[] | undefined;
4112
4112
  } | {
4113
- kind: "agent_status";
4114
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4115
4113
  label: string;
4114
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4115
+ kind: "agent_status";
4116
4116
  role: string;
4117
4117
  agentId: string;
4118
4118
  sessionId: string;
4119
4119
  detail?: string | undefined;
4120
4120
  evidence?: {
4121
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
- label: string;
4123
4121
  id: string;
4122
+ label: string;
4123
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4124
4124
  capture: "at_action" | "historical_lookup" | "fixture";
4125
4125
  locator?: string | undefined;
4126
4126
  }[] | undefined;
4127
4127
  } | {
4128
- kind: "agent_output";
4129
4128
  summary: string;
4129
+ kind: "agent_output";
4130
4130
  agentId: string;
4131
4131
  sessionId: string;
4132
4132
  outputId: string;
4133
4133
  evidence?: {
4134
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4135
- label: string;
4136
4134
  id: string;
4135
+ label: string;
4136
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4137
4137
  capture: "at_action" | "historical_lookup" | "fixture";
4138
4138
  locator?: string | undefined;
4139
4139
  }[] | undefined;
@@ -4146,37 +4146,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4146
4146
  decisionId: string;
4147
4147
  confidence?: number | undefined;
4148
4148
  evidence?: {
4149
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
- label: string;
4151
4149
  id: string;
4150
+ label: string;
4151
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4152
4152
  capture: "at_action" | "historical_lookup" | "fixture";
4153
4153
  locator?: string | undefined;
4154
4154
  }[] | undefined;
4155
4155
  } | {
4156
- kind: "conflict_detected";
4157
4156
  summary: string;
4157
+ kind: "conflict_detected";
4158
4158
  conflictId: string;
4159
4159
  decisionIds: string[];
4160
4160
  agentIds: string[];
4161
4161
  evidence?: {
4162
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4163
- label: string;
4164
4162
  id: string;
4163
+ label: string;
4164
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4165
4165
  capture: "at_action" | "historical_lookup" | "fixture";
4166
4166
  locator?: string | undefined;
4167
4167
  }[] | undefined;
4168
4168
  } | {
4169
- kind: "test_result";
4170
4169
  summary: string;
4171
4170
  status: "error" | "failed" | "passed";
4171
+ kind: "test_result";
4172
4172
  command: string;
4173
4173
  decisionId: string;
4174
4174
  testId: string;
4175
4175
  durationMs?: number | undefined;
4176
4176
  evidence?: {
4177
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4178
- label: string;
4179
4177
  id: string;
4178
+ label: string;
4179
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4180
4180
  capture: "at_action" | "historical_lookup" | "fixture";
4181
4181
  locator?: string | undefined;
4182
4182
  }[] | undefined;
@@ -4191,9 +4191,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4191
4191
  supersedesDecisionIds: string[];
4192
4192
  proposedBy: string;
4193
4193
  evidence?: {
4194
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4195
- label: string;
4196
4194
  id: string;
4195
+ label: string;
4196
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4197
4197
  capture: "at_action" | "historical_lookup" | "fixture";
4198
4198
  locator?: string | undefined;
4199
4199
  }[] | undefined;
@@ -4201,15 +4201,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4201
4201
  kind: "correction_approved";
4202
4202
  correctionId: string;
4203
4203
  approvedBy: {
4204
- kind: "agent" | "human";
4205
- label: string;
4206
4204
  id: string;
4205
+ label: string;
4206
+ kind: "agent" | "human";
4207
4207
  };
4208
4208
  note?: string | undefined;
4209
4209
  evidence?: {
4210
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4211
- label: string;
4212
4210
  id: string;
4211
+ 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;
@@ -4219,9 +4219,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4219
4219
  correctionId: string;
4220
4220
  replacementDecisionId: string;
4221
4221
  evidence?: {
4222
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4223
- label: string;
4224
4222
  id: string;
4223
+ label: string;
4224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4225
4225
  capture: "at_action" | "historical_lookup" | "fixture";
4226
4226
  locator?: string | undefined;
4227
4227
  }[] | undefined;
@@ -4234,9 +4234,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4234
4234
  recallReceiptId: string;
4235
4235
  capturedAtAction: boolean;
4236
4236
  evidence?: {
4237
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4238
- label: string;
4239
4237
  id: string;
4238
+ label: string;
4239
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4240
4240
  capture: "at_action" | "historical_lookup" | "fixture";
4241
4241
  locator?: string | undefined;
4242
4242
  }[] | undefined;
@@ -4249,63 +4249,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4249
4249
  recallReceiptId: string;
4250
4250
  staleDecisionAbsent: boolean;
4251
4251
  evidence?: {
4252
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4253
- label: string;
4254
4252
  id: string;
4253
+ label: string;
4254
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4255
4255
  capture: "at_action" | "historical_lookup" | "fixture";
4256
4256
  locator?: string | undefined;
4257
4257
  }[] | undefined;
4258
4258
  } | {
4259
- kind: "mission_completed";
4260
4259
  summary: string;
4260
+ kind: "mission_completed";
4261
4261
  outcome: "failed" | "recovered" | "inconclusive";
4262
4262
  evidence?: {
4263
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4264
- label: string;
4265
4263
  id: string;
4264
+ label: string;
4265
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4266
4266
  capture: "at_action" | "historical_lookup" | "fixture";
4267
4267
  locator?: string | undefined;
4268
4268
  }[] | undefined;
4269
4269
  }>;
4270
4270
  }, "strict", z.ZodTypeAny, {
4271
+ namespace: string;
4271
4272
  recordedAt: string;
4272
4273
  schemaVersion: "1";
4273
4274
  payload: {
4274
4275
  kind: "mission_started";
4275
4276
  title: string;
4276
4277
  evidence: {
4277
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4278
- label: string;
4279
4278
  id: string;
4279
+ label: string;
4280
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4280
4281
  capture: "at_action" | "historical_lookup" | "fixture";
4281
4282
  locator?: string | undefined;
4282
4283
  }[];
4283
4284
  objective: string;
4284
4285
  runMode: "replay" | "fixture" | "live";
4285
4286
  } | {
4286
- kind: "agent_status";
4287
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4288
4287
  label: string;
4288
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4289
+ kind: "agent_status";
4289
4290
  role: string;
4290
4291
  agentId: string;
4291
4292
  sessionId: string;
4292
4293
  evidence: {
4293
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4294
- label: string;
4295
4294
  id: string;
4295
+ label: string;
4296
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4296
4297
  capture: "at_action" | "historical_lookup" | "fixture";
4297
4298
  locator?: string | undefined;
4298
4299
  }[];
4299
4300
  detail?: string | undefined;
4300
4301
  } | {
4301
- kind: "agent_output";
4302
4302
  summary: string;
4303
+ kind: "agent_output";
4303
4304
  agentId: string;
4304
4305
  sessionId: string;
4305
4306
  evidence: {
4306
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4307
- label: string;
4308
4307
  id: string;
4308
+ label: string;
4309
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4310
  capture: "at_action" | "historical_lookup" | "fixture";
4310
4311
  locator?: string | undefined;
4311
4312
  }[];
@@ -4316,9 +4317,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4316
4317
  statement: string;
4317
4318
  sessionId: string;
4318
4319
  evidence: {
4319
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4320
- label: string;
4321
4320
  id: string;
4321
+ label: string;
4322
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4322
4323
  capture: "at_action" | "historical_lookup" | "fixture";
4323
4324
  locator?: string | undefined;
4324
4325
  }[];
@@ -4326,12 +4327,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4326
4327
  decisionId: string;
4327
4328
  confidence?: number | undefined;
4328
4329
  } | {
4329
- kind: "conflict_detected";
4330
4330
  summary: string;
4331
+ kind: "conflict_detected";
4331
4332
  evidence: {
4332
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4333
- label: string;
4334
4333
  id: string;
4334
+ label: string;
4335
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4335
4336
  capture: "at_action" | "historical_lookup" | "fixture";
4336
4337
  locator?: string | undefined;
4337
4338
  }[];
@@ -4339,14 +4340,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4339
4340
  decisionIds: string[];
4340
4341
  agentIds: string[];
4341
4342
  } | {
4342
- kind: "test_result";
4343
4343
  summary: string;
4344
4344
  status: "error" | "failed" | "passed";
4345
+ kind: "test_result";
4345
4346
  command: string;
4346
4347
  evidence: {
4347
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4348
- label: string;
4349
4348
  id: string;
4349
+ label: string;
4350
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4350
4351
  capture: "at_action" | "historical_lookup" | "fixture";
4351
4352
  locator?: string | undefined;
4352
4353
  }[];
@@ -4359,9 +4360,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4359
4360
  statement: string;
4360
4361
  rationale: string;
4361
4362
  evidence: {
4362
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4363
- label: string;
4364
4363
  id: string;
4364
+ label: string;
4365
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4365
4366
  capture: "at_action" | "historical_lookup" | "fixture";
4366
4367
  locator?: string | undefined;
4367
4368
  }[];
@@ -4373,25 +4374,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4373
4374
  } | {
4374
4375
  kind: "correction_approved";
4375
4376
  evidence: {
4376
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4377
- label: string;
4378
4377
  id: string;
4378
+ label: string;
4379
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4379
4380
  capture: "at_action" | "historical_lookup" | "fixture";
4380
4381
  locator?: string | undefined;
4381
4382
  }[];
4382
4383
  correctionId: string;
4383
4384
  approvedBy: {
4384
- kind: "agent" | "human";
4385
- label: string;
4386
4385
  id: string;
4386
+ label: string;
4387
+ kind: "agent" | "human";
4387
4388
  };
4388
4389
  note?: string | undefined;
4389
4390
  } | {
4390
4391
  kind: "decision_superseded";
4391
4392
  evidence: {
4392
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4393
- label: string;
4394
4393
  id: string;
4394
+ label: string;
4395
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4395
4396
  capture: "at_action" | "historical_lookup" | "fixture";
4396
4397
  locator?: string | undefined;
4397
4398
  }[];
@@ -4404,9 +4405,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4404
4405
  agentId: string;
4405
4406
  sessionId: string;
4406
4407
  evidence: {
4407
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4408
- label: string;
4409
4408
  id: string;
4409
+ label: string;
4410
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4410
4411
  capture: "at_action" | "historical_lookup" | "fixture";
4411
4412
  locator?: string | undefined;
4412
4413
  }[];
@@ -4418,9 +4419,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4418
4419
  agentId: string;
4419
4420
  sessionId: string;
4420
4421
  evidence: {
4421
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4422
- label: string;
4423
4422
  id: string;
4423
+ label: string;
4424
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4424
4425
  capture: "at_action" | "historical_lookup" | "fixture";
4425
4426
  locator?: string | undefined;
4426
4427
  }[];
@@ -4429,24 +4430,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4429
4430
  recallReceiptId: string;
4430
4431
  staleDecisionAbsent: boolean;
4431
4432
  } | {
4432
- kind: "mission_completed";
4433
4433
  summary: string;
4434
+ kind: "mission_completed";
4434
4435
  outcome: "failed" | "recovered" | "inconclusive";
4435
4436
  evidence: {
4436
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4437
- label: string;
4438
4437
  id: string;
4438
+ label: string;
4439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4439
4440
  capture: "at_action" | "historical_lookup" | "fixture";
4440
4441
  locator?: string | undefined;
4441
4442
  }[];
4442
4443
  };
4443
- namespace: string;
4444
4444
  eventId: string;
4445
4445
  occurredAt: string;
4446
4446
  missionId: string;
4447
4447
  authenticatedPrincipal?: string | undefined;
4448
4448
  idempotencyKey?: string | undefined;
4449
4449
  }, {
4450
+ namespace: string;
4450
4451
  recordedAt: string;
4451
4452
  schemaVersion: "1";
4452
4453
  payload: {
@@ -4455,37 +4456,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4455
4456
  objective: string;
4456
4457
  runMode: "replay" | "fixture" | "live";
4457
4458
  evidence?: {
4458
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4459
- label: string;
4460
4459
  id: string;
4460
+ label: string;
4461
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4461
4462
  capture: "at_action" | "historical_lookup" | "fixture";
4462
4463
  locator?: string | undefined;
4463
4464
  }[] | undefined;
4464
4465
  } | {
4465
- kind: "agent_status";
4466
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4467
4466
  label: string;
4467
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4468
+ kind: "agent_status";
4468
4469
  role: string;
4469
4470
  agentId: string;
4470
4471
  sessionId: string;
4471
4472
  detail?: string | undefined;
4472
4473
  evidence?: {
4473
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4474
- label: string;
4475
4474
  id: string;
4475
+ label: string;
4476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4476
4477
  capture: "at_action" | "historical_lookup" | "fixture";
4477
4478
  locator?: string | undefined;
4478
4479
  }[] | undefined;
4479
4480
  } | {
4480
- kind: "agent_output";
4481
4481
  summary: string;
4482
+ kind: "agent_output";
4482
4483
  agentId: string;
4483
4484
  sessionId: string;
4484
4485
  outputId: string;
4485
4486
  evidence?: {
4486
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4487
- label: string;
4488
4487
  id: string;
4488
+ label: string;
4489
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4489
4490
  capture: "at_action" | "historical_lookup" | "fixture";
4490
4491
  locator?: string | undefined;
4491
4492
  }[] | undefined;
@@ -4498,37 +4499,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4498
4499
  decisionId: string;
4499
4500
  confidence?: number | undefined;
4500
4501
  evidence?: {
4501
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4502
- label: string;
4503
4502
  id: string;
4503
+ label: string;
4504
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4504
4505
  capture: "at_action" | "historical_lookup" | "fixture";
4505
4506
  locator?: string | undefined;
4506
4507
  }[] | undefined;
4507
4508
  } | {
4508
- kind: "conflict_detected";
4509
4509
  summary: string;
4510
+ kind: "conflict_detected";
4510
4511
  conflictId: string;
4511
4512
  decisionIds: string[];
4512
4513
  agentIds: string[];
4513
4514
  evidence?: {
4514
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4515
- label: string;
4516
4515
  id: string;
4516
+ label: string;
4517
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4517
4518
  capture: "at_action" | "historical_lookup" | "fixture";
4518
4519
  locator?: string | undefined;
4519
4520
  }[] | undefined;
4520
4521
  } | {
4521
- kind: "test_result";
4522
4522
  summary: string;
4523
4523
  status: "error" | "failed" | "passed";
4524
+ kind: "test_result";
4524
4525
  command: string;
4525
4526
  decisionId: string;
4526
4527
  testId: string;
4527
4528
  durationMs?: number | undefined;
4528
4529
  evidence?: {
4529
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4530
- label: string;
4531
4530
  id: string;
4531
+ label: string;
4532
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4532
4533
  capture: "at_action" | "historical_lookup" | "fixture";
4533
4534
  locator?: string | undefined;
4534
4535
  }[] | undefined;
@@ -4543,9 +4544,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4543
4544
  supersedesDecisionIds: string[];
4544
4545
  proposedBy: string;
4545
4546
  evidence?: {
4546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4547
- label: string;
4548
4547
  id: string;
4548
+ label: string;
4549
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4549
4550
  capture: "at_action" | "historical_lookup" | "fixture";
4550
4551
  locator?: string | undefined;
4551
4552
  }[] | undefined;
@@ -4553,15 +4554,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4553
4554
  kind: "correction_approved";
4554
4555
  correctionId: string;
4555
4556
  approvedBy: {
4556
- kind: "agent" | "human";
4557
- label: string;
4558
4557
  id: string;
4558
+ label: string;
4559
+ kind: "agent" | "human";
4559
4560
  };
4560
4561
  note?: string | undefined;
4561
4562
  evidence?: {
4562
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4563
- label: string;
4564
4563
  id: string;
4564
+ label: string;
4565
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4565
4566
  capture: "at_action" | "historical_lookup" | "fixture";
4566
4567
  locator?: string | undefined;
4567
4568
  }[] | undefined;
@@ -4571,9 +4572,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4571
4572
  correctionId: string;
4572
4573
  replacementDecisionId: string;
4573
4574
  evidence?: {
4574
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4575
- label: string;
4576
4575
  id: string;
4576
+ label: string;
4577
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4577
4578
  capture: "at_action" | "historical_lookup" | "fixture";
4578
4579
  locator?: string | undefined;
4579
4580
  }[] | undefined;
@@ -4586,9 +4587,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4586
4587
  recallReceiptId: string;
4587
4588
  capturedAtAction: boolean;
4588
4589
  evidence?: {
4589
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4590
- label: string;
4591
4590
  id: string;
4591
+ label: string;
4592
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4592
4593
  capture: "at_action" | "historical_lookup" | "fixture";
4593
4594
  locator?: string | undefined;
4594
4595
  }[] | undefined;
@@ -4601,25 +4602,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4601
4602
  recallReceiptId: string;
4602
4603
  staleDecisionAbsent: boolean;
4603
4604
  evidence?: {
4604
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4605
- label: string;
4606
4605
  id: string;
4606
+ label: string;
4607
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4607
4608
  capture: "at_action" | "historical_lookup" | "fixture";
4608
4609
  locator?: string | undefined;
4609
4610
  }[] | undefined;
4610
4611
  } | {
4611
- kind: "mission_completed";
4612
4612
  summary: string;
4613
+ kind: "mission_completed";
4613
4614
  outcome: "failed" | "recovered" | "inconclusive";
4614
4615
  evidence?: {
4615
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4616
- label: string;
4617
4616
  id: string;
4617
+ label: string;
4618
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4618
4619
  capture: "at_action" | "historical_lookup" | "fixture";
4619
4620
  locator?: string | undefined;
4620
4621
  }[] | undefined;
4621
4622
  };
4622
- namespace: string;
4623
4623
  eventId: string;
4624
4624
  occurredAt: string;
4625
4625
  missionId: string;