@remnic/core 9.25.3 → 9.25.5

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