@remnic/core 9.20.0 → 9.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/access-admin-ops-surface.d.ts +18 -1
  2. package/dist/access-admin-ops-surface.js +29 -29
  3. package/dist/access-boundary.d.ts +2 -2
  4. package/dist/access-boundary.js +29 -29
  5. package/dist/access-cli.js +80 -79
  6. package/dist/access-cli.js.map +1 -1
  7. package/dist/access-http.d.ts +1 -1
  8. package/dist/access-http.js +38 -37
  9. package/dist/access-identity-continuity-surface.js +29 -29
  10. package/dist/access-lcm-surface.d.ts +1 -1
  11. package/dist/access-lcm-surface.js +29 -29
  12. package/dist/access-mcp-admin-tools.d.ts +18 -0
  13. package/dist/access-mcp-admin-tools.js +10 -0
  14. package/dist/access-mcp-admin-tools.js.map +1 -0
  15. package/dist/access-mcp-output-schemas.js +1 -1
  16. package/dist/access-mcp.d.ts +1 -1
  17. package/dist/access-mcp.js +35 -34
  18. package/dist/access-namespace-preflight.js +29 -29
  19. package/dist/access-observe-write-surface.d.ts +1 -1
  20. package/dist/access-observe-write-surface.js +29 -29
  21. package/dist/access-operations-batch.js +30 -30
  22. package/dist/access-operations.d.ts +5 -5
  23. package/dist/access-operations.js +32 -32
  24. package/dist/access-recall-concurrency.d.ts +1 -1
  25. package/dist/access-recall-concurrency.js +29 -29
  26. package/dist/access-recall-response.d.ts +1 -1
  27. package/dist/access-recall-response.js +29 -29
  28. package/dist/access-recall-surface.d.ts +1 -1
  29. package/dist/access-recall-surface.js +29 -29
  30. package/dist/access-schema.d.ts +76 -76
  31. package/dist/{access-service-BqUii7LY.d.ts → access-service-BtxW52vv.d.ts} +10 -0
  32. package/dist/access-service.d.ts +1 -1
  33. package/dist/access-service.js +31 -31
  34. package/dist/access-surface-catalog.d.ts +1 -1
  35. package/dist/access-surface-catalog.js +1 -0
  36. package/dist/access-surface-catalog.js.map +1 -1
  37. package/dist/active-recall.js +5 -5
  38. package/dist/adapters/index.js +4 -4
  39. package/dist/adapters/registry.js +2 -2
  40. package/dist/auto-sync-UPTUVE4X.js +1 -1
  41. package/dist/briefing.js +8 -8
  42. package/dist/causal-consolidation.js +9 -9
  43. package/dist/{chunk-JWMYVQAM.js → chunk-55FDQYPS.js} +2 -2
  44. package/dist/chunk-56BSXSHC.js +158 -0
  45. package/dist/chunk-56BSXSHC.js.map +1 -0
  46. package/dist/{chunk-62QM5MKY.js → chunk-6ANPNUVL.js} +68 -34
  47. package/dist/chunk-6ANPNUVL.js.map +1 -0
  48. package/dist/{chunk-EZKKHVFY.js → chunk-6L775BUB.js} +2 -2
  49. package/dist/{chunk-LI4ZOFHW.js → chunk-6RYWNBSA.js} +2 -2
  50. package/dist/{chunk-5IXPWEQB.js → chunk-7S5OMI76.js} +9 -9
  51. package/dist/{chunk-5IXPWEQB.js.map → chunk-7S5OMI76.js.map} +1 -1
  52. package/dist/{chunk-SB4OKS6C.js → chunk-A5N6ISRK.js} +2 -2
  53. package/dist/{chunk-V5TSUGRB.js → chunk-ACGGTPU4.js} +5 -5
  54. package/dist/{chunk-B7C3TF5H.js → chunk-BRT7KEXU.js} +2 -2
  55. package/dist/{chunk-JN3IUA2Q.js → chunk-CV6ZYXK3.js} +3 -3
  56. package/dist/{chunk-N7EVMKP6.js → chunk-DGLON3AL.js} +10 -10
  57. package/dist/{chunk-5RUE3GHQ.js → chunk-DM5A4ZFL.js} +7 -1
  58. package/dist/chunk-DM5A4ZFL.js.map +1 -0
  59. package/dist/{chunk-KHRKEELC.js → chunk-EQYBHXRR.js} +34 -34
  60. package/dist/{chunk-Z54EM5YZ.js → chunk-GF22HWS2.js} +4 -4
  61. package/dist/{chunk-QO2KODU6.js → chunk-GSWPU5CR.js} +2 -2
  62. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  63. package/dist/{chunk-5JQLAQUZ.js → chunk-JN57HZCD.js} +2 -2
  64. package/dist/{chunk-X5QS5C2O.js → chunk-KL5Y6PEV.js} +2 -2
  65. package/dist/{chunk-275ENJDK.js → chunk-KQ2XCQYN.js} +2 -2
  66. package/dist/{chunk-HJEEAO4O.js → chunk-N47ZWQBO.js} +2 -2
  67. package/dist/{chunk-AT3TDN6O.js → chunk-N6M7MRVN.js} +83 -83
  68. package/dist/{chunk-EXU5IQ3S.js → chunk-NB2P47N7.js} +2 -2
  69. package/dist/{chunk-53WDAG7X.js → chunk-OCMLGND7.js} +2 -2
  70. package/dist/{chunk-3ZUY2VQF.js → chunk-P72WZMWQ.js} +2 -2
  71. package/dist/{chunk-LRGSLV7M.js → chunk-PYHOAXTI.js} +4 -4
  72. package/dist/{chunk-4F6AANKS.js → chunk-QMGIQUBG.js} +5 -5
  73. package/dist/{chunk-TCZWBJBO.js → chunk-QTO2FGBT.js} +11 -142
  74. package/dist/chunk-QTO2FGBT.js.map +1 -0
  75. package/dist/{chunk-Q3FWRDCP.js → chunk-SACPRJ7F.js} +2 -2
  76. package/dist/{chunk-HPOY2PHQ.js → chunk-TTKWTT72.js} +6 -6
  77. package/dist/{chunk-EILX7SQR.js → chunk-W3XT32W7.js} +7 -6
  78. package/dist/chunk-W3XT32W7.js.map +1 -0
  79. package/dist/{chunk-MJYYXODM.js → chunk-XBRPEGXF.js} +4 -4
  80. package/dist/{cli-DPEhq0Cp.d.ts → cli-D9vXgWwM.d.ts} +1 -1
  81. package/dist/cli.d.ts +2 -2
  82. package/dist/cli.js +59 -58
  83. package/dist/compounding/engine.js +8 -8
  84. package/dist/config.js +2 -2
  85. package/dist/connectors/codex-materialize-runner.js +8 -8
  86. package/dist/connectors/index.js +9 -9
  87. package/dist/contradiction/index.js +1 -1
  88. package/dist/entity-retrieval.js +8 -8
  89. package/dist/explicit-capture.js +1 -1
  90. package/dist/index.d.ts +407 -407
  91. package/dist/index.js +133 -132
  92. package/dist/lcm/engine.js +2 -2
  93. package/dist/lcm/index.js +4 -4
  94. package/dist/maintenance/memory-governance.js +8 -8
  95. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
  96. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  97. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  98. package/dist/namespaces/migrate.js +12 -12
  99. package/dist/namespaces/search.js +3 -3
  100. package/dist/namespaces/storage.js +8 -8
  101. package/dist/offline-sync-impression-drain.js +1 -1
  102. package/dist/operator-toolkit.js +19 -19
  103. package/dist/orchestration/maintenance.js +14 -14
  104. package/dist/orchestrator.js +76 -75
  105. package/dist/resolution-3K27T4VO.js +1 -1
  106. package/dist/resume-bundles.js +3 -3
  107. package/dist/salvage-envelope.js +1 -1
  108. package/dist/schemas.d.ts +76 -76
  109. package/dist/search/factory.js +2 -2
  110. package/dist/search/index.js +4 -4
  111. package/dist/semantic-consolidation.js +9 -9
  112. package/dist/semantic-rule-promotion.js +8 -8
  113. package/dist/semantic-rule-verifier.js +8 -8
  114. package/dist/shared-context/manager.d.ts +8 -8
  115. package/dist/storage.js +7 -7
  116. package/dist/transfer/import-sqlite.js +2 -2
  117. package/dist/transfer/types.d.ts +66 -66
  118. package/dist/verified-recall.js +8 -8
  119. package/dist/write-envelope.js +1 -1
  120. package/package.json +2 -2
  121. package/src/access-admin-ops-surface.ts +47 -0
  122. package/src/access-boundary.ts +1 -0
  123. package/src/access-http.ts +1 -0
  124. package/src/access-mcp-admin-tools.ts +171 -0
  125. package/src/access-mcp-output-schemas.ts +6 -0
  126. package/src/access-mcp.ts +6 -141
  127. package/src/access-operations-batch.ts +1 -0
  128. package/src/access-service.ts +16 -0
  129. package/src/access-surface-catalog.ts +1 -0
  130. package/dist/chunk-5RUE3GHQ.js.map +0 -1
  131. package/dist/chunk-62QM5MKY.js.map +0 -1
  132. package/dist/chunk-EILX7SQR.js.map +0 -1
  133. package/dist/chunk-TCZWBJBO.js.map +0 -1
  134. /package/dist/{chunk-JWMYVQAM.js.map → chunk-55FDQYPS.js.map} +0 -0
  135. /package/dist/{chunk-EZKKHVFY.js.map → chunk-6L775BUB.js.map} +0 -0
  136. /package/dist/{chunk-LI4ZOFHW.js.map → chunk-6RYWNBSA.js.map} +0 -0
  137. /package/dist/{chunk-SB4OKS6C.js.map → chunk-A5N6ISRK.js.map} +0 -0
  138. /package/dist/{chunk-V5TSUGRB.js.map → chunk-ACGGTPU4.js.map} +0 -0
  139. /package/dist/{chunk-B7C3TF5H.js.map → chunk-BRT7KEXU.js.map} +0 -0
  140. /package/dist/{chunk-JN3IUA2Q.js.map → chunk-CV6ZYXK3.js.map} +0 -0
  141. /package/dist/{chunk-N7EVMKP6.js.map → chunk-DGLON3AL.js.map} +0 -0
  142. /package/dist/{chunk-KHRKEELC.js.map → chunk-EQYBHXRR.js.map} +0 -0
  143. /package/dist/{chunk-Z54EM5YZ.js.map → chunk-GF22HWS2.js.map} +0 -0
  144. /package/dist/{chunk-QO2KODU6.js.map → chunk-GSWPU5CR.js.map} +0 -0
  145. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  146. /package/dist/{chunk-5JQLAQUZ.js.map → chunk-JN57HZCD.js.map} +0 -0
  147. /package/dist/{chunk-X5QS5C2O.js.map → chunk-KL5Y6PEV.js.map} +0 -0
  148. /package/dist/{chunk-275ENJDK.js.map → chunk-KQ2XCQYN.js.map} +0 -0
  149. /package/dist/{chunk-HJEEAO4O.js.map → chunk-N47ZWQBO.js.map} +0 -0
  150. /package/dist/{chunk-AT3TDN6O.js.map → chunk-N6M7MRVN.js.map} +0 -0
  151. /package/dist/{chunk-EXU5IQ3S.js.map → chunk-NB2P47N7.js.map} +0 -0
  152. /package/dist/{chunk-53WDAG7X.js.map → chunk-OCMLGND7.js.map} +0 -0
  153. /package/dist/{chunk-3ZUY2VQF.js.map → chunk-P72WZMWQ.js.map} +0 -0
  154. /package/dist/{chunk-LRGSLV7M.js.map → chunk-PYHOAXTI.js.map} +0 -0
  155. /package/dist/{chunk-4F6AANKS.js.map → chunk-QMGIQUBG.js.map} +0 -0
  156. /package/dist/{chunk-Q3FWRDCP.js.map → chunk-SACPRJ7F.js.map} +0 -0
  157. /package/dist/{chunk-HPOY2PHQ.js.map → chunk-TTKWTT72.js.map} +0 -0
  158. /package/dist/{chunk-MJYYXODM.js.map → chunk-XBRPEGXF.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -28,8 +28,8 @@ export { bm as ActivityExtractionMode, a6 as AgentAccessAuthToken, k as Briefing
28
28
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
29
29
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
30
30
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
31
- import { F as EngramAccessService } from './access-service-BqUii7LY.js';
32
- export { P as ProcedureStatsConfigSnapshot, G as ProcedureStatsRecent, H as ProcedureStatsReport, I as ProcedureStatusCounts, J as computeProcedureStats, K as formatProcedureStatsText } from './access-service-BqUii7LY.js';
31
+ import { F as EngramAccessService } from './access-service-BtxW52vv.js';
32
+ export { P as ProcedureStatsConfigSnapshot, G as ProcedureStatsRecent, H as ProcedureStatsReport, I as ProcedureStatusCounts, J as computeProcedureStats, K as formatProcedureStatsText } from './access-service-BtxW52vv.js';
33
33
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
34
34
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
35
35
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -88,7 +88,7 @@ export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
88
88
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
89
89
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
90
90
  export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-DmGc-H66.js';
91
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-DPEhq0Cp.js';
91
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-D9vXgWwM.js';
92
92
  import { BetterSqlite3Database } from './runtime/better-sqlite.js';
93
93
  import { SearchExecutionOptions } from './search/port.js';
94
94
  export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
@@ -864,15 +864,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
864
864
  locator: z.ZodOptional<z.ZodString>;
865
865
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
866
866
  }, "strict", z.ZodTypeAny, {
867
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
868
867
  id: string;
869
868
  label: string;
869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
870
870
  capture: "at_action" | "historical_lookup" | "fixture";
871
871
  locator?: string | undefined;
872
872
  }, {
873
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
874
873
  id: string;
875
874
  label: string;
875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
876
876
  capture: "at_action" | "historical_lookup" | "fixture";
877
877
  locator?: string | undefined;
878
878
  }>;
@@ -889,15 +889,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
889
889
  locator: z.ZodOptional<z.ZodString>;
890
890
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
891
891
  }, "strict", z.ZodTypeAny, {
892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
893
892
  id: string;
894
893
  label: string;
894
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
895
895
  capture: "at_action" | "historical_lookup" | "fixture";
896
896
  locator?: string | undefined;
897
897
  }, {
898
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
899
898
  id: string;
900
899
  label: string;
900
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
901
901
  capture: "at_action" | "historical_lookup" | "fixture";
902
902
  locator?: string | undefined;
903
903
  }>, "many">>;
@@ -905,9 +905,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
905
905
  kind: "mission_started";
906
906
  title: string;
907
907
  evidence: {
908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
909
908
  id: string;
910
909
  label: string;
910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
911
911
  capture: "at_action" | "historical_lookup" | "fixture";
912
912
  locator?: string | undefined;
913
913
  }[];
@@ -919,9 +919,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
919
919
  objective: string;
920
920
  runMode: "replay" | "fixture" | "live";
921
921
  evidence?: {
922
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
923
922
  id: string;
924
923
  label: string;
924
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
925
925
  capture: "at_action" | "historical_lookup" | "fixture";
926
926
  locator?: string | undefined;
927
927
  }[] | undefined;
@@ -937,15 +937,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
937
937
  locator: z.ZodOptional<z.ZodString>;
938
938
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
939
939
  }, "strict", z.ZodTypeAny, {
940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
941
940
  id: string;
942
941
  label: string;
942
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
943
943
  capture: "at_action" | "historical_lookup" | "fixture";
944
944
  locator?: string | undefined;
945
945
  }, {
946
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
947
946
  id: string;
948
947
  label: string;
948
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
949
949
  capture: "at_action" | "historical_lookup" | "fixture";
950
950
  locator?: string | undefined;
951
951
  }>, "many">>;
@@ -953,32 +953,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
953
953
  sessionId: z.ZodString;
954
954
  kind: z.ZodLiteral<"agent_status">;
955
955
  }, "strict", z.ZodTypeAny, {
956
+ label: string;
957
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
956
958
  kind: "agent_status";
957
959
  role: string;
958
- status: "failed" | "blocked" | "working" | "complete" | "idle";
959
- label: string;
960
960
  agentId: string;
961
961
  sessionId: string;
962
962
  evidence: {
963
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
964
963
  id: string;
965
964
  label: string;
965
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
966
966
  capture: "at_action" | "historical_lookup" | "fixture";
967
967
  locator?: string | undefined;
968
968
  }[];
969
969
  detail?: string | undefined;
970
970
  }, {
971
+ label: string;
972
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
971
973
  kind: "agent_status";
972
974
  role: string;
973
- status: "failed" | "blocked" | "working" | "complete" | "idle";
974
- label: string;
975
975
  agentId: string;
976
976
  sessionId: string;
977
977
  detail?: string | undefined;
978
978
  evidence?: {
979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
980
979
  id: string;
981
980
  label: string;
981
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
982
982
  capture: "at_action" | "historical_lookup" | "fixture";
983
983
  locator?: string | undefined;
984
984
  }[] | undefined;
@@ -992,15 +992,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
992
992
  locator: z.ZodOptional<z.ZodString>;
993
993
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
994
994
  }, "strict", z.ZodTypeAny, {
995
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
996
995
  id: string;
997
996
  label: string;
997
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
998
998
  capture: "at_action" | "historical_lookup" | "fixture";
999
999
  locator?: string | undefined;
1000
1000
  }, {
1001
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1002
1001
  id: string;
1003
1002
  label: string;
1003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1004
1004
  capture: "at_action" | "historical_lookup" | "fixture";
1005
1005
  locator?: string | undefined;
1006
1006
  }>, "many">>;
@@ -1008,28 +1008,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1008
1008
  sessionId: z.ZodString;
1009
1009
  kind: z.ZodLiteral<"agent_output">;
1010
1010
  }, "strict", z.ZodTypeAny, {
1011
- kind: "agent_output";
1012
1011
  summary: string;
1012
+ kind: "agent_output";
1013
1013
  agentId: string;
1014
1014
  sessionId: string;
1015
1015
  evidence: {
1016
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1017
1016
  id: string;
1018
1017
  label: string;
1018
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1019
1019
  capture: "at_action" | "historical_lookup" | "fixture";
1020
1020
  locator?: string | undefined;
1021
1021
  }[];
1022
1022
  outputId: string;
1023
1023
  }, {
1024
- kind: "agent_output";
1025
1024
  summary: string;
1025
+ kind: "agent_output";
1026
1026
  agentId: string;
1027
1027
  sessionId: string;
1028
1028
  outputId: string;
1029
1029
  evidence?: {
1030
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1031
1030
  id: string;
1032
1031
  label: string;
1032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1033
1033
  capture: "at_action" | "historical_lookup" | "fixture";
1034
1034
  locator?: string | undefined;
1035
1035
  }[] | undefined;
@@ -1045,15 +1045,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1045
1045
  locator: z.ZodOptional<z.ZodString>;
1046
1046
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1047
1047
  }, "strict", z.ZodTypeAny, {
1048
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1049
1048
  id: string;
1050
1049
  label: string;
1050
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1051
1051
  capture: "at_action" | "historical_lookup" | "fixture";
1052
1052
  locator?: string | undefined;
1053
1053
  }, {
1054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1055
1054
  id: string;
1056
1055
  label: string;
1056
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1057
1057
  capture: "at_action" | "historical_lookup" | "fixture";
1058
1058
  locator?: string | undefined;
1059
1059
  }>, "many">>;
@@ -1066,9 +1066,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1066
1066
  statement: string;
1067
1067
  sessionId: string;
1068
1068
  evidence: {
1069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1070
1069
  id: string;
1071
1070
  label: string;
1071
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1072
1072
  capture: "at_action" | "historical_lookup" | "fixture";
1073
1073
  locator?: string | undefined;
1074
1074
  }[];
@@ -1084,9 +1084,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1084
1084
  decisionId: string;
1085
1085
  confidence?: number | undefined;
1086
1086
  evidence?: {
1087
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1088
1087
  id: string;
1089
1088
  label: string;
1089
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1090
1090
  capture: "at_action" | "historical_lookup" | "fixture";
1091
1091
  locator?: string | undefined;
1092
1092
  }[] | undefined;
@@ -1103,25 +1103,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1103
1103
  locator: z.ZodOptional<z.ZodString>;
1104
1104
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1105
1105
  }, "strict", z.ZodTypeAny, {
1106
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1107
1106
  id: string;
1108
1107
  label: string;
1108
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1109
1109
  capture: "at_action" | "historical_lookup" | "fixture";
1110
1110
  locator?: string | undefined;
1111
1111
  }, {
1112
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1113
1112
  id: string;
1114
1113
  label: string;
1114
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1115
1115
  capture: "at_action" | "historical_lookup" | "fixture";
1116
1116
  locator?: string | undefined;
1117
1117
  }>, "many">>;
1118
1118
  }, "strict", z.ZodTypeAny, {
1119
- kind: "conflict_detected";
1120
1119
  summary: string;
1120
+ kind: "conflict_detected";
1121
1121
  evidence: {
1122
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1123
1122
  id: string;
1124
1123
  label: string;
1124
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1125
1125
  capture: "at_action" | "historical_lookup" | "fixture";
1126
1126
  locator?: string | undefined;
1127
1127
  }[];
@@ -1129,15 +1129,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1129
1129
  decisionIds: string[];
1130
1130
  agentIds: string[];
1131
1131
  }, {
1132
- kind: "conflict_detected";
1133
1132
  summary: string;
1133
+ kind: "conflict_detected";
1134
1134
  conflictId: string;
1135
1135
  decisionIds: string[];
1136
1136
  agentIds: string[];
1137
1137
  evidence?: {
1138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1139
1138
  id: string;
1140
1139
  label: string;
1140
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1141
1141
  capture: "at_action" | "historical_lookup" | "fixture";
1142
1142
  locator?: string | undefined;
1143
1143
  }[] | undefined;
@@ -1157,27 +1157,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1157
1157
  locator: z.ZodOptional<z.ZodString>;
1158
1158
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1159
1159
  }, "strict", z.ZodTypeAny, {
1160
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1161
1160
  id: string;
1162
1161
  label: string;
1162
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1163
1163
  capture: "at_action" | "historical_lookup" | "fixture";
1164
1164
  locator?: string | undefined;
1165
1165
  }, {
1166
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1167
1166
  id: string;
1168
1167
  label: string;
1168
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1169
1169
  capture: "at_action" | "historical_lookup" | "fixture";
1170
1170
  locator?: string | undefined;
1171
1171
  }>, "many">>;
1172
1172
  }, "strict", z.ZodTypeAny, {
1173
- kind: "test_result";
1174
1173
  summary: string;
1175
- command: string;
1176
1174
  status: "error" | "failed" | "passed";
1175
+ kind: "test_result";
1176
+ command: string;
1177
1177
  evidence: {
1178
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1179
1178
  id: string;
1180
1179
  label: string;
1180
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1181
1181
  capture: "at_action" | "historical_lookup" | "fixture";
1182
1182
  locator?: string | undefined;
1183
1183
  }[];
@@ -1186,17 +1186,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1186
1186
  durationMs?: number | undefined;
1187
1187
  correctionId?: string | undefined;
1188
1188
  }, {
1189
- kind: "test_result";
1190
1189
  summary: string;
1191
- command: string;
1192
1190
  status: "error" | "failed" | "passed";
1191
+ kind: "test_result";
1192
+ command: string;
1193
1193
  decisionId: string;
1194
1194
  testId: string;
1195
1195
  durationMs?: number | undefined;
1196
1196
  evidence?: {
1197
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1198
1197
  id: string;
1199
1198
  label: string;
1199
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1200
1200
  capture: "at_action" | "historical_lookup" | "fixture";
1201
1201
  locator?: string | undefined;
1202
1202
  }[] | undefined;
@@ -1217,15 +1217,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1217
1217
  locator: z.ZodOptional<z.ZodString>;
1218
1218
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1219
1219
  }, "strict", z.ZodTypeAny, {
1220
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1221
1220
  id: string;
1222
1221
  label: string;
1222
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1223
1223
  capture: "at_action" | "historical_lookup" | "fixture";
1224
1224
  locator?: string | undefined;
1225
1225
  }, {
1226
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1227
1226
  id: string;
1228
1227
  label: string;
1228
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1229
1229
  capture: "at_action" | "historical_lookup" | "fixture";
1230
1230
  locator?: string | undefined;
1231
1231
  }>, "many">>;
@@ -1234,9 +1234,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1234
1234
  rationale: string;
1235
1235
  statement: string;
1236
1236
  evidence: {
1237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1238
1237
  id: string;
1239
1238
  label: string;
1239
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1240
1240
  capture: "at_action" | "historical_lookup" | "fixture";
1241
1241
  locator?: string | undefined;
1242
1242
  }[];
@@ -1255,9 +1255,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1255
1255
  supersedesDecisionIds: string[];
1256
1256
  proposedBy: string;
1257
1257
  evidence?: {
1258
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1259
1258
  id: string;
1260
1259
  label: string;
1260
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1261
1261
  capture: "at_action" | "historical_lookup" | "fixture";
1262
1262
  locator?: string | undefined;
1263
1263
  }[] | undefined;
@@ -1269,13 +1269,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1269
1269
  id: z.ZodString;
1270
1270
  label: z.ZodString;
1271
1271
  }, "strict", z.ZodTypeAny, {
1272
- kind: "agent" | "human";
1273
1272
  id: string;
1274
1273
  label: string;
1275
- }, {
1276
1274
  kind: "agent" | "human";
1275
+ }, {
1277
1276
  id: string;
1278
1277
  label: string;
1278
+ kind: "agent" | "human";
1279
1279
  }>;
1280
1280
  note: z.ZodOptional<z.ZodString>;
1281
1281
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1285,47 +1285,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1285
1285
  locator: z.ZodOptional<z.ZodString>;
1286
1286
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1287
1287
  }, "strict", z.ZodTypeAny, {
1288
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1289
1288
  id: string;
1290
1289
  label: string;
1290
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1291
1291
  capture: "at_action" | "historical_lookup" | "fixture";
1292
1292
  locator?: string | undefined;
1293
1293
  }, {
1294
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1295
1294
  id: string;
1296
1295
  label: string;
1296
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1297
1297
  capture: "at_action" | "historical_lookup" | "fixture";
1298
1298
  locator?: string | undefined;
1299
1299
  }>, "many">>;
1300
1300
  }, "strict", z.ZodTypeAny, {
1301
1301
  kind: "correction_approved";
1302
1302
  evidence: {
1303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1304
1303
  id: string;
1305
1304
  label: string;
1305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1306
1306
  capture: "at_action" | "historical_lookup" | "fixture";
1307
1307
  locator?: string | undefined;
1308
1308
  }[];
1309
1309
  correctionId: string;
1310
1310
  approvedBy: {
1311
- kind: "agent" | "human";
1312
1311
  id: string;
1313
1312
  label: string;
1313
+ kind: "agent" | "human";
1314
1314
  };
1315
1315
  note?: string | undefined;
1316
1316
  }, {
1317
1317
  kind: "correction_approved";
1318
1318
  correctionId: string;
1319
1319
  approvedBy: {
1320
- kind: "agent" | "human";
1321
1320
  id: string;
1322
1321
  label: string;
1322
+ kind: "agent" | "human";
1323
1323
  };
1324
1324
  note?: string | undefined;
1325
1325
  evidence?: {
1326
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1327
1326
  id: string;
1328
1327
  label: string;
1328
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1329
1329
  capture: "at_action" | "historical_lookup" | "fixture";
1330
1330
  locator?: string | undefined;
1331
1331
  }[] | undefined;
@@ -1341,24 +1341,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1341
1341
  locator: z.ZodOptional<z.ZodString>;
1342
1342
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1343
1343
  }, "strict", z.ZodTypeAny, {
1344
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1345
1344
  id: string;
1346
1345
  label: string;
1346
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1347
1347
  capture: "at_action" | "historical_lookup" | "fixture";
1348
1348
  locator?: string | undefined;
1349
1349
  }, {
1350
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1351
1350
  id: string;
1352
1351
  label: string;
1352
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1353
1353
  capture: "at_action" | "historical_lookup" | "fixture";
1354
1354
  locator?: string | undefined;
1355
1355
  }>, "many">>;
1356
1356
  }, "strict", z.ZodTypeAny, {
1357
1357
  kind: "decision_superseded";
1358
1358
  evidence: {
1359
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1360
1359
  id: string;
1361
1360
  label: string;
1361
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1362
1362
  capture: "at_action" | "historical_lookup" | "fixture";
1363
1363
  locator?: string | undefined;
1364
1364
  }[];
@@ -1371,9 +1371,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1371
1371
  correctionId: string;
1372
1372
  replacementDecisionId: string;
1373
1373
  evidence?: {
1374
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1375
1374
  id: string;
1376
1375
  label: string;
1376
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1377
1377
  capture: "at_action" | "historical_lookup" | "fixture";
1378
1378
  locator?: string | undefined;
1379
1379
  }[] | undefined;
@@ -1389,15 +1389,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1389
1389
  locator: z.ZodOptional<z.ZodString>;
1390
1390
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1391
1391
  }, "strict", z.ZodTypeAny, {
1392
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1393
1392
  id: string;
1394
1393
  label: string;
1394
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1395
1395
  capture: "at_action" | "historical_lookup" | "fixture";
1396
1396
  locator?: string | undefined;
1397
1397
  }, {
1398
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1399
1398
  id: string;
1400
1399
  label: string;
1400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1401
1401
  capture: "at_action" | "historical_lookup" | "fixture";
1402
1402
  locator?: string | undefined;
1403
1403
  }>, "many">>;
@@ -1410,9 +1410,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1410
1410
  agentId: string;
1411
1411
  sessionId: string;
1412
1412
  evidence: {
1413
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1414
1413
  id: string;
1415
1414
  label: string;
1415
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1416
1416
  capture: "at_action" | "historical_lookup" | "fixture";
1417
1417
  locator?: string | undefined;
1418
1418
  }[];
@@ -1428,9 +1428,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1428
1428
  recallReceiptId: string;
1429
1429
  capturedAtAction: boolean;
1430
1430
  evidence?: {
1431
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1432
1431
  id: string;
1433
1432
  label: string;
1433
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1434
1434
  capture: "at_action" | "historical_lookup" | "fixture";
1435
1435
  locator?: string | undefined;
1436
1436
  }[] | undefined;
@@ -1446,15 +1446,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1446
1446
  locator: z.ZodOptional<z.ZodString>;
1447
1447
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1448
1448
  }, "strict", z.ZodTypeAny, {
1449
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1450
1449
  id: string;
1451
1450
  label: string;
1451
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1452
1452
  capture: "at_action" | "historical_lookup" | "fixture";
1453
1453
  locator?: string | undefined;
1454
1454
  }, {
1455
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
1455
  id: string;
1457
1456
  label: string;
1457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1458
1458
  capture: "at_action" | "historical_lookup" | "fixture";
1459
1459
  locator?: string | undefined;
1460
1460
  }>, "many">>;
@@ -1466,9 +1466,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1466
1466
  agentId: string;
1467
1467
  sessionId: string;
1468
1468
  evidence: {
1469
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1470
1469
  id: string;
1471
1470
  label: string;
1471
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1472
1472
  capture: "at_action" | "historical_lookup" | "fixture";
1473
1473
  locator?: string | undefined;
1474
1474
  }[];
@@ -1485,9 +1485,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1485
1485
  recallReceiptId: string;
1486
1486
  staleDecisionAbsent: boolean;
1487
1487
  evidence?: {
1488
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1489
1488
  id: string;
1490
1489
  label: string;
1490
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1491
1491
  capture: "at_action" | "historical_lookup" | "fixture";
1492
1492
  locator?: string | undefined;
1493
1493
  }[] | undefined;
@@ -1502,37 +1502,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1502
1502
  locator: z.ZodOptional<z.ZodString>;
1503
1503
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1504
1504
  }, "strict", z.ZodTypeAny, {
1505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1506
1505
  id: string;
1507
1506
  label: string;
1507
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1508
1508
  capture: "at_action" | "historical_lookup" | "fixture";
1509
1509
  locator?: string | undefined;
1510
1510
  }, {
1511
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
1511
  id: string;
1513
1512
  label: string;
1513
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1514
1514
  capture: "at_action" | "historical_lookup" | "fixture";
1515
1515
  locator?: string | undefined;
1516
1516
  }>, "many">>;
1517
1517
  }, "strict", z.ZodTypeAny, {
1518
- kind: "mission_completed";
1519
1518
  summary: string;
1519
+ kind: "mission_completed";
1520
1520
  outcome: "failed" | "recovered" | "inconclusive";
1521
1521
  evidence: {
1522
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1523
1522
  id: string;
1524
1523
  label: string;
1524
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1525
1525
  capture: "at_action" | "historical_lookup" | "fixture";
1526
1526
  locator?: string | undefined;
1527
1527
  }[];
1528
1528
  }, {
1529
- kind: "mission_completed";
1530
1529
  summary: string;
1530
+ kind: "mission_completed";
1531
1531
  outcome: "failed" | "recovered" | "inconclusive";
1532
1532
  evidence?: {
1533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1534
1533
  id: string;
1535
1534
  label: string;
1535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1536
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1537
1537
  locator?: string | undefined;
1538
1538
  }[] | undefined;
@@ -1540,38 +1540,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1540
1540
  kind: "mission_started";
1541
1541
  title: string;
1542
1542
  evidence: {
1543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1544
1543
  id: string;
1545
1544
  label: string;
1545
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1546
1546
  capture: "at_action" | "historical_lookup" | "fixture";
1547
1547
  locator?: string | undefined;
1548
1548
  }[];
1549
1549
  objective: string;
1550
1550
  runMode: "replay" | "fixture" | "live";
1551
1551
  } | {
1552
+ label: string;
1553
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1552
1554
  kind: "agent_status";
1553
1555
  role: string;
1554
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1555
- label: string;
1556
1556
  agentId: string;
1557
1557
  sessionId: string;
1558
1558
  evidence: {
1559
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1560
1559
  id: string;
1561
1560
  label: string;
1561
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1562
1562
  capture: "at_action" | "historical_lookup" | "fixture";
1563
1563
  locator?: string | undefined;
1564
1564
  }[];
1565
1565
  detail?: string | undefined;
1566
1566
  } | {
1567
- kind: "agent_output";
1568
1567
  summary: string;
1568
+ kind: "agent_output";
1569
1569
  agentId: string;
1570
1570
  sessionId: string;
1571
1571
  evidence: {
1572
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1573
1572
  id: string;
1574
1573
  label: string;
1574
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1575
1575
  capture: "at_action" | "historical_lookup" | "fixture";
1576
1576
  locator?: string | undefined;
1577
1577
  }[];
@@ -1582,9 +1582,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1582
1582
  statement: string;
1583
1583
  sessionId: string;
1584
1584
  evidence: {
1585
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1586
1585
  id: string;
1587
1586
  label: string;
1587
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1588
1588
  capture: "at_action" | "historical_lookup" | "fixture";
1589
1589
  locator?: string | undefined;
1590
1590
  }[];
@@ -1592,12 +1592,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1592
1592
  decisionId: string;
1593
1593
  confidence?: number | undefined;
1594
1594
  } | {
1595
- kind: "conflict_detected";
1596
1595
  summary: string;
1596
+ kind: "conflict_detected";
1597
1597
  evidence: {
1598
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1599
1598
  id: string;
1600
1599
  label: string;
1600
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1601
1601
  capture: "at_action" | "historical_lookup" | "fixture";
1602
1602
  locator?: string | undefined;
1603
1603
  }[];
@@ -1605,14 +1605,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1605
1605
  decisionIds: string[];
1606
1606
  agentIds: string[];
1607
1607
  } | {
1608
- kind: "test_result";
1609
1608
  summary: string;
1610
- command: string;
1611
1609
  status: "error" | "failed" | "passed";
1610
+ kind: "test_result";
1611
+ command: string;
1612
1612
  evidence: {
1613
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1614
1613
  id: string;
1615
1614
  label: string;
1615
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1616
1616
  capture: "at_action" | "historical_lookup" | "fixture";
1617
1617
  locator?: string | undefined;
1618
1618
  }[];
@@ -1625,9 +1625,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1625
1625
  rationale: string;
1626
1626
  statement: string;
1627
1627
  evidence: {
1628
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1629
1628
  id: string;
1630
1629
  label: string;
1630
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1631
1631
  capture: "at_action" | "historical_lookup" | "fixture";
1632
1632
  locator?: string | undefined;
1633
1633
  }[];
@@ -1639,25 +1639,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1639
1639
  } | {
1640
1640
  kind: "correction_approved";
1641
1641
  evidence: {
1642
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1643
1642
  id: string;
1644
1643
  label: string;
1644
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1645
1645
  capture: "at_action" | "historical_lookup" | "fixture";
1646
1646
  locator?: string | undefined;
1647
1647
  }[];
1648
1648
  correctionId: string;
1649
1649
  approvedBy: {
1650
- kind: "agent" | "human";
1651
1650
  id: string;
1652
1651
  label: string;
1652
+ kind: "agent" | "human";
1653
1653
  };
1654
1654
  note?: string | undefined;
1655
1655
  } | {
1656
1656
  kind: "decision_superseded";
1657
1657
  evidence: {
1658
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1659
1658
  id: string;
1660
1659
  label: string;
1660
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1661
1661
  capture: "at_action" | "historical_lookup" | "fixture";
1662
1662
  locator?: string | undefined;
1663
1663
  }[];
@@ -1670,9 +1670,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1670
1670
  agentId: string;
1671
1671
  sessionId: string;
1672
1672
  evidence: {
1673
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1674
1673
  id: string;
1675
1674
  label: string;
1675
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1676
1676
  capture: "at_action" | "historical_lookup" | "fixture";
1677
1677
  locator?: string | undefined;
1678
1678
  }[];
@@ -1684,9 +1684,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1684
1684
  agentId: string;
1685
1685
  sessionId: string;
1686
1686
  evidence: {
1687
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1688
1687
  id: string;
1689
1688
  label: string;
1689
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1690
1690
  capture: "at_action" | "historical_lookup" | "fixture";
1691
1691
  locator?: string | undefined;
1692
1692
  }[];
@@ -1695,13 +1695,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1695
1695
  recallReceiptId: string;
1696
1696
  staleDecisionAbsent: boolean;
1697
1697
  } | {
1698
- kind: "mission_completed";
1699
1698
  summary: string;
1699
+ kind: "mission_completed";
1700
1700
  outcome: "failed" | "recovered" | "inconclusive";
1701
1701
  evidence: {
1702
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1703
1702
  id: string;
1704
1703
  label: string;
1704
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1705
1705
  capture: "at_action" | "historical_lookup" | "fixture";
1706
1706
  locator?: string | undefined;
1707
1707
  }[];
@@ -1711,37 +1711,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1711
1711
  objective: string;
1712
1712
  runMode: "replay" | "fixture" | "live";
1713
1713
  evidence?: {
1714
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1715
1714
  id: string;
1716
1715
  label: string;
1716
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1717
1717
  capture: "at_action" | "historical_lookup" | "fixture";
1718
1718
  locator?: string | undefined;
1719
1719
  }[] | undefined;
1720
1720
  } | {
1721
+ label: string;
1722
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1721
1723
  kind: "agent_status";
1722
1724
  role: string;
1723
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1724
- label: string;
1725
1725
  agentId: string;
1726
1726
  sessionId: string;
1727
1727
  detail?: string | undefined;
1728
1728
  evidence?: {
1729
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1730
1729
  id: string;
1731
1730
  label: string;
1731
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1732
1732
  capture: "at_action" | "historical_lookup" | "fixture";
1733
1733
  locator?: string | undefined;
1734
1734
  }[] | undefined;
1735
1735
  } | {
1736
- kind: "agent_output";
1737
1736
  summary: string;
1737
+ kind: "agent_output";
1738
1738
  agentId: string;
1739
1739
  sessionId: string;
1740
1740
  outputId: string;
1741
1741
  evidence?: {
1742
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1743
1742
  id: string;
1744
1743
  label: string;
1744
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1745
1745
  capture: "at_action" | "historical_lookup" | "fixture";
1746
1746
  locator?: string | undefined;
1747
1747
  }[] | undefined;
@@ -1754,37 +1754,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1754
1754
  decisionId: string;
1755
1755
  confidence?: number | undefined;
1756
1756
  evidence?: {
1757
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1758
1757
  id: string;
1759
1758
  label: string;
1759
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1760
1760
  capture: "at_action" | "historical_lookup" | "fixture";
1761
1761
  locator?: string | undefined;
1762
1762
  }[] | undefined;
1763
1763
  } | {
1764
- kind: "conflict_detected";
1765
1764
  summary: string;
1765
+ kind: "conflict_detected";
1766
1766
  conflictId: string;
1767
1767
  decisionIds: string[];
1768
1768
  agentIds: string[];
1769
1769
  evidence?: {
1770
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1771
1770
  id: string;
1772
1771
  label: string;
1772
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1773
1773
  capture: "at_action" | "historical_lookup" | "fixture";
1774
1774
  locator?: string | undefined;
1775
1775
  }[] | undefined;
1776
1776
  } | {
1777
- kind: "test_result";
1778
1777
  summary: string;
1779
- command: string;
1780
1778
  status: "error" | "failed" | "passed";
1779
+ kind: "test_result";
1780
+ command: string;
1781
1781
  decisionId: string;
1782
1782
  testId: string;
1783
1783
  durationMs?: number | undefined;
1784
1784
  evidence?: {
1785
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1786
1785
  id: string;
1787
1786
  label: string;
1787
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1788
1788
  capture: "at_action" | "historical_lookup" | "fixture";
1789
1789
  locator?: string | undefined;
1790
1790
  }[] | undefined;
@@ -1799,9 +1799,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1799
1799
  supersedesDecisionIds: string[];
1800
1800
  proposedBy: string;
1801
1801
  evidence?: {
1802
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1803
1802
  id: string;
1804
1803
  label: string;
1804
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1805
1805
  capture: "at_action" | "historical_lookup" | "fixture";
1806
1806
  locator?: string | undefined;
1807
1807
  }[] | undefined;
@@ -1809,15 +1809,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1809
1809
  kind: "correction_approved";
1810
1810
  correctionId: string;
1811
1811
  approvedBy: {
1812
- kind: "agent" | "human";
1813
1812
  id: string;
1814
1813
  label: string;
1814
+ kind: "agent" | "human";
1815
1815
  };
1816
1816
  note?: string | undefined;
1817
1817
  evidence?: {
1818
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1819
1818
  id: string;
1820
1819
  label: string;
1820
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1821
1821
  capture: "at_action" | "historical_lookup" | "fixture";
1822
1822
  locator?: string | undefined;
1823
1823
  }[] | undefined;
@@ -1827,9 +1827,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1827
1827
  correctionId: string;
1828
1828
  replacementDecisionId: string;
1829
1829
  evidence?: {
1830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1831
1830
  id: string;
1832
1831
  label: string;
1832
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1833
1833
  capture: "at_action" | "historical_lookup" | "fixture";
1834
1834
  locator?: string | undefined;
1835
1835
  }[] | undefined;
@@ -1842,9 +1842,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1842
1842
  recallReceiptId: string;
1843
1843
  capturedAtAction: boolean;
1844
1844
  evidence?: {
1845
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1846
1845
  id: string;
1847
1846
  label: string;
1847
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1848
1848
  capture: "at_action" | "historical_lookup" | "fixture";
1849
1849
  locator?: string | undefined;
1850
1850
  }[] | undefined;
@@ -1857,20 +1857,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1857
1857
  recallReceiptId: string;
1858
1858
  staleDecisionAbsent: boolean;
1859
1859
  evidence?: {
1860
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1861
1860
  id: string;
1862
1861
  label: string;
1862
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1863
1863
  capture: "at_action" | "historical_lookup" | "fixture";
1864
1864
  locator?: string | undefined;
1865
1865
  }[] | undefined;
1866
1866
  } | {
1867
- kind: "mission_completed";
1868
1867
  summary: string;
1868
+ kind: "mission_completed";
1869
1869
  outcome: "failed" | "recovered" | "inconclusive";
1870
1870
  evidence?: {
1871
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1872
1871
  id: string;
1873
1872
  label: string;
1873
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1874
1874
  capture: "at_action" | "historical_lookup" | "fixture";
1875
1875
  locator?: string | undefined;
1876
1876
  }[] | undefined;
@@ -1891,15 +1891,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1891
1891
  locator: z.ZodOptional<z.ZodString>;
1892
1892
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1893
1893
  }, "strict", z.ZodTypeAny, {
1894
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1895
1894
  id: string;
1896
1895
  label: string;
1896
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1897
1897
  capture: "at_action" | "historical_lookup" | "fixture";
1898
1898
  locator?: string | undefined;
1899
1899
  }, {
1900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1901
1900
  id: string;
1902
1901
  label: string;
1902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1903
1903
  capture: "at_action" | "historical_lookup" | "fixture";
1904
1904
  locator?: string | undefined;
1905
1905
  }>, "many">>;
@@ -1907,9 +1907,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1907
1907
  kind: "mission_started";
1908
1908
  title: string;
1909
1909
  evidence: {
1910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1911
1910
  id: string;
1912
1911
  label: string;
1912
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1913
1913
  capture: "at_action" | "historical_lookup" | "fixture";
1914
1914
  locator?: string | undefined;
1915
1915
  }[];
@@ -1921,9 +1921,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1921
1921
  objective: string;
1922
1922
  runMode: "replay" | "fixture" | "live";
1923
1923
  evidence?: {
1924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1925
1924
  id: string;
1926
1925
  label: string;
1926
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1927
1927
  capture: "at_action" | "historical_lookup" | "fixture";
1928
1928
  locator?: string | undefined;
1929
1929
  }[] | undefined;
@@ -1939,15 +1939,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1939
1939
  locator: z.ZodOptional<z.ZodString>;
1940
1940
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1941
1941
  }, "strict", z.ZodTypeAny, {
1942
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1943
1942
  id: string;
1944
1943
  label: string;
1944
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1945
1945
  capture: "at_action" | "historical_lookup" | "fixture";
1946
1946
  locator?: string | undefined;
1947
1947
  }, {
1948
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1949
1948
  id: string;
1950
1949
  label: string;
1950
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1951
1951
  capture: "at_action" | "historical_lookup" | "fixture";
1952
1952
  locator?: string | undefined;
1953
1953
  }>, "many">>;
@@ -1955,32 +1955,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1955
1955
  sessionId: z.ZodString;
1956
1956
  kind: z.ZodLiteral<"agent_status">;
1957
1957
  }, "strict", z.ZodTypeAny, {
1958
+ label: string;
1959
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1958
1960
  kind: "agent_status";
1959
1961
  role: string;
1960
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1961
- label: string;
1962
1962
  agentId: string;
1963
1963
  sessionId: string;
1964
1964
  evidence: {
1965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1966
1965
  id: string;
1967
1966
  label: string;
1967
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1968
1968
  capture: "at_action" | "historical_lookup" | "fixture";
1969
1969
  locator?: string | undefined;
1970
1970
  }[];
1971
1971
  detail?: string | undefined;
1972
1972
  }, {
1973
+ label: string;
1974
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1973
1975
  kind: "agent_status";
1974
1976
  role: string;
1975
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1976
- label: string;
1977
1977
  agentId: string;
1978
1978
  sessionId: string;
1979
1979
  detail?: string | undefined;
1980
1980
  evidence?: {
1981
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1982
1981
  id: string;
1983
1982
  label: string;
1983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1984
1984
  capture: "at_action" | "historical_lookup" | "fixture";
1985
1985
  locator?: string | undefined;
1986
1986
  }[] | undefined;
@@ -1994,15 +1994,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1994
1994
  locator: z.ZodOptional<z.ZodString>;
1995
1995
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1996
1996
  }, "strict", z.ZodTypeAny, {
1997
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1998
1997
  id: string;
1999
1998
  label: string;
1999
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2000
2000
  capture: "at_action" | "historical_lookup" | "fixture";
2001
2001
  locator?: string | undefined;
2002
2002
  }, {
2003
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2004
2003
  id: string;
2005
2004
  label: string;
2005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2006
2006
  capture: "at_action" | "historical_lookup" | "fixture";
2007
2007
  locator?: string | undefined;
2008
2008
  }>, "many">>;
@@ -2010,28 +2010,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2010
2010
  sessionId: z.ZodString;
2011
2011
  kind: z.ZodLiteral<"agent_output">;
2012
2012
  }, "strict", z.ZodTypeAny, {
2013
- kind: "agent_output";
2014
2013
  summary: string;
2014
+ kind: "agent_output";
2015
2015
  agentId: string;
2016
2016
  sessionId: string;
2017
2017
  evidence: {
2018
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2019
2018
  id: string;
2020
2019
  label: string;
2020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2021
2021
  capture: "at_action" | "historical_lookup" | "fixture";
2022
2022
  locator?: string | undefined;
2023
2023
  }[];
2024
2024
  outputId: string;
2025
2025
  }, {
2026
- kind: "agent_output";
2027
2026
  summary: string;
2027
+ kind: "agent_output";
2028
2028
  agentId: string;
2029
2029
  sessionId: string;
2030
2030
  outputId: string;
2031
2031
  evidence?: {
2032
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
2032
  id: string;
2034
2033
  label: string;
2034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2035
2035
  capture: "at_action" | "historical_lookup" | "fixture";
2036
2036
  locator?: string | undefined;
2037
2037
  }[] | undefined;
@@ -2047,15 +2047,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2047
2047
  locator: z.ZodOptional<z.ZodString>;
2048
2048
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2049
2049
  }, "strict", z.ZodTypeAny, {
2050
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2051
2050
  id: string;
2052
2051
  label: string;
2052
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2053
2053
  capture: "at_action" | "historical_lookup" | "fixture";
2054
2054
  locator?: string | undefined;
2055
2055
  }, {
2056
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
2056
  id: string;
2058
2057
  label: string;
2058
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2059
2059
  capture: "at_action" | "historical_lookup" | "fixture";
2060
2060
  locator?: string | undefined;
2061
2061
  }>, "many">>;
@@ -2068,9 +2068,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2068
2068
  statement: string;
2069
2069
  sessionId: string;
2070
2070
  evidence: {
2071
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2072
2071
  id: string;
2073
2072
  label: string;
2073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2074
2074
  capture: "at_action" | "historical_lookup" | "fixture";
2075
2075
  locator?: string | undefined;
2076
2076
  }[];
@@ -2086,9 +2086,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2086
2086
  decisionId: string;
2087
2087
  confidence?: number | undefined;
2088
2088
  evidence?: {
2089
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2090
2089
  id: string;
2091
2090
  label: string;
2091
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2092
2092
  capture: "at_action" | "historical_lookup" | "fixture";
2093
2093
  locator?: string | undefined;
2094
2094
  }[] | undefined;
@@ -2105,25 +2105,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2105
2105
  locator: z.ZodOptional<z.ZodString>;
2106
2106
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2107
2107
  }, "strict", z.ZodTypeAny, {
2108
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2109
2108
  id: string;
2110
2109
  label: string;
2110
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2111
2111
  capture: "at_action" | "historical_lookup" | "fixture";
2112
2112
  locator?: string | undefined;
2113
2113
  }, {
2114
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2115
2114
  id: string;
2116
2115
  label: string;
2116
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2117
2117
  capture: "at_action" | "historical_lookup" | "fixture";
2118
2118
  locator?: string | undefined;
2119
2119
  }>, "many">>;
2120
2120
  }, "strict", z.ZodTypeAny, {
2121
- kind: "conflict_detected";
2122
2121
  summary: string;
2122
+ kind: "conflict_detected";
2123
2123
  evidence: {
2124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2125
2124
  id: string;
2126
2125
  label: string;
2126
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2127
2127
  capture: "at_action" | "historical_lookup" | "fixture";
2128
2128
  locator?: string | undefined;
2129
2129
  }[];
@@ -2131,15 +2131,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2131
2131
  decisionIds: string[];
2132
2132
  agentIds: string[];
2133
2133
  }, {
2134
- kind: "conflict_detected";
2135
2134
  summary: string;
2135
+ kind: "conflict_detected";
2136
2136
  conflictId: string;
2137
2137
  decisionIds: string[];
2138
2138
  agentIds: string[];
2139
2139
  evidence?: {
2140
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2141
2140
  id: string;
2142
2141
  label: string;
2142
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2143
2143
  capture: "at_action" | "historical_lookup" | "fixture";
2144
2144
  locator?: string | undefined;
2145
2145
  }[] | undefined;
@@ -2159,27 +2159,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2159
2159
  locator: z.ZodOptional<z.ZodString>;
2160
2160
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2161
2161
  }, "strict", z.ZodTypeAny, {
2162
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2163
2162
  id: string;
2164
2163
  label: string;
2164
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2165
2165
  capture: "at_action" | "historical_lookup" | "fixture";
2166
2166
  locator?: string | undefined;
2167
2167
  }, {
2168
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2169
2168
  id: string;
2170
2169
  label: string;
2170
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2171
2171
  capture: "at_action" | "historical_lookup" | "fixture";
2172
2172
  locator?: string | undefined;
2173
2173
  }>, "many">>;
2174
2174
  }, "strict", z.ZodTypeAny, {
2175
- kind: "test_result";
2176
2175
  summary: string;
2177
- command: string;
2178
2176
  status: "error" | "failed" | "passed";
2177
+ kind: "test_result";
2178
+ command: string;
2179
2179
  evidence: {
2180
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2181
2180
  id: string;
2182
2181
  label: string;
2182
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2183
2183
  capture: "at_action" | "historical_lookup" | "fixture";
2184
2184
  locator?: string | undefined;
2185
2185
  }[];
@@ -2188,17 +2188,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2188
2188
  durationMs?: number | undefined;
2189
2189
  correctionId?: string | undefined;
2190
2190
  }, {
2191
- kind: "test_result";
2192
2191
  summary: string;
2193
- command: string;
2194
2192
  status: "error" | "failed" | "passed";
2193
+ kind: "test_result";
2194
+ command: string;
2195
2195
  decisionId: string;
2196
2196
  testId: string;
2197
2197
  durationMs?: number | undefined;
2198
2198
  evidence?: {
2199
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2199
  id: string;
2201
2200
  label: string;
2201
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2202
2202
  capture: "at_action" | "historical_lookup" | "fixture";
2203
2203
  locator?: string | undefined;
2204
2204
  }[] | undefined;
@@ -2219,15 +2219,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2219
2219
  locator: z.ZodOptional<z.ZodString>;
2220
2220
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2221
2221
  }, "strict", z.ZodTypeAny, {
2222
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2223
2222
  id: string;
2224
2223
  label: string;
2224
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2225
2225
  capture: "at_action" | "historical_lookup" | "fixture";
2226
2226
  locator?: string | undefined;
2227
2227
  }, {
2228
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
2228
  id: string;
2230
2229
  label: string;
2230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2231
2231
  capture: "at_action" | "historical_lookup" | "fixture";
2232
2232
  locator?: string | undefined;
2233
2233
  }>, "many">>;
@@ -2236,9 +2236,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2236
2236
  rationale: string;
2237
2237
  statement: string;
2238
2238
  evidence: {
2239
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2240
2239
  id: string;
2241
2240
  label: string;
2241
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2242
2242
  capture: "at_action" | "historical_lookup" | "fixture";
2243
2243
  locator?: string | undefined;
2244
2244
  }[];
@@ -2257,9 +2257,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2257
2257
  supersedesDecisionIds: string[];
2258
2258
  proposedBy: string;
2259
2259
  evidence?: {
2260
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2261
2260
  id: string;
2262
2261
  label: string;
2262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2263
2263
  capture: "at_action" | "historical_lookup" | "fixture";
2264
2264
  locator?: string | undefined;
2265
2265
  }[] | undefined;
@@ -2271,13 +2271,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2271
2271
  id: z.ZodString;
2272
2272
  label: z.ZodString;
2273
2273
  }, "strict", z.ZodTypeAny, {
2274
- kind: "agent" | "human";
2275
2274
  id: string;
2276
2275
  label: string;
2277
- }, {
2278
2276
  kind: "agent" | "human";
2277
+ }, {
2279
2278
  id: string;
2280
2279
  label: string;
2280
+ kind: "agent" | "human";
2281
2281
  }>;
2282
2282
  note: z.ZodOptional<z.ZodString>;
2283
2283
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2287,47 +2287,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2287
2287
  locator: z.ZodOptional<z.ZodString>;
2288
2288
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2289
2289
  }, "strict", z.ZodTypeAny, {
2290
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2291
2290
  id: string;
2292
2291
  label: string;
2292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2293
2293
  capture: "at_action" | "historical_lookup" | "fixture";
2294
2294
  locator?: string | undefined;
2295
2295
  }, {
2296
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2297
2296
  id: string;
2298
2297
  label: string;
2298
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2299
2299
  capture: "at_action" | "historical_lookup" | "fixture";
2300
2300
  locator?: string | undefined;
2301
2301
  }>, "many">>;
2302
2302
  }, "strict", z.ZodTypeAny, {
2303
2303
  kind: "correction_approved";
2304
2304
  evidence: {
2305
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2306
2305
  id: string;
2307
2306
  label: string;
2307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2308
2308
  capture: "at_action" | "historical_lookup" | "fixture";
2309
2309
  locator?: string | undefined;
2310
2310
  }[];
2311
2311
  correctionId: string;
2312
2312
  approvedBy: {
2313
- kind: "agent" | "human";
2314
2313
  id: string;
2315
2314
  label: string;
2315
+ kind: "agent" | "human";
2316
2316
  };
2317
2317
  note?: string | undefined;
2318
2318
  }, {
2319
2319
  kind: "correction_approved";
2320
2320
  correctionId: string;
2321
2321
  approvedBy: {
2322
- kind: "agent" | "human";
2323
2322
  id: string;
2324
2323
  label: string;
2324
+ kind: "agent" | "human";
2325
2325
  };
2326
2326
  note?: string | undefined;
2327
2327
  evidence?: {
2328
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2329
2328
  id: string;
2330
2329
  label: string;
2330
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2331
2331
  capture: "at_action" | "historical_lookup" | "fixture";
2332
2332
  locator?: string | undefined;
2333
2333
  }[] | undefined;
@@ -2343,24 +2343,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2343
2343
  locator: z.ZodOptional<z.ZodString>;
2344
2344
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2345
2345
  }, "strict", z.ZodTypeAny, {
2346
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2347
2346
  id: string;
2348
2347
  label: string;
2348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2349
2349
  capture: "at_action" | "historical_lookup" | "fixture";
2350
2350
  locator?: string | undefined;
2351
2351
  }, {
2352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2353
2352
  id: string;
2354
2353
  label: string;
2354
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2355
2355
  capture: "at_action" | "historical_lookup" | "fixture";
2356
2356
  locator?: string | undefined;
2357
2357
  }>, "many">>;
2358
2358
  }, "strict", z.ZodTypeAny, {
2359
2359
  kind: "decision_superseded";
2360
2360
  evidence: {
2361
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2362
2361
  id: string;
2363
2362
  label: string;
2363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2364
2364
  capture: "at_action" | "historical_lookup" | "fixture";
2365
2365
  locator?: string | undefined;
2366
2366
  }[];
@@ -2373,9 +2373,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2373
2373
  correctionId: string;
2374
2374
  replacementDecisionId: string;
2375
2375
  evidence?: {
2376
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2377
2376
  id: string;
2378
2377
  label: string;
2378
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2379
2379
  capture: "at_action" | "historical_lookup" | "fixture";
2380
2380
  locator?: string | undefined;
2381
2381
  }[] | undefined;
@@ -2391,15 +2391,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2391
2391
  locator: z.ZodOptional<z.ZodString>;
2392
2392
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2393
2393
  }, "strict", z.ZodTypeAny, {
2394
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2395
2394
  id: string;
2396
2395
  label: string;
2396
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2397
2397
  capture: "at_action" | "historical_lookup" | "fixture";
2398
2398
  locator?: string | undefined;
2399
2399
  }, {
2400
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2401
2400
  id: string;
2402
2401
  label: string;
2402
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2403
2403
  capture: "at_action" | "historical_lookup" | "fixture";
2404
2404
  locator?: string | undefined;
2405
2405
  }>, "many">>;
@@ -2412,9 +2412,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2412
2412
  agentId: string;
2413
2413
  sessionId: string;
2414
2414
  evidence: {
2415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2416
2415
  id: string;
2417
2416
  label: string;
2417
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2418
2418
  capture: "at_action" | "historical_lookup" | "fixture";
2419
2419
  locator?: string | undefined;
2420
2420
  }[];
@@ -2430,9 +2430,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2430
2430
  recallReceiptId: string;
2431
2431
  capturedAtAction: boolean;
2432
2432
  evidence?: {
2433
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2434
2433
  id: string;
2435
2434
  label: string;
2435
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2436
2436
  capture: "at_action" | "historical_lookup" | "fixture";
2437
2437
  locator?: string | undefined;
2438
2438
  }[] | undefined;
@@ -2448,15 +2448,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2448
2448
  locator: z.ZodOptional<z.ZodString>;
2449
2449
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2450
2450
  }, "strict", z.ZodTypeAny, {
2451
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2452
2451
  id: string;
2453
2452
  label: string;
2453
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2454
2454
  capture: "at_action" | "historical_lookup" | "fixture";
2455
2455
  locator?: string | undefined;
2456
2456
  }, {
2457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2458
2457
  id: string;
2459
2458
  label: string;
2459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2460
2460
  capture: "at_action" | "historical_lookup" | "fixture";
2461
2461
  locator?: string | undefined;
2462
2462
  }>, "many">>;
@@ -2468,9 +2468,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2468
2468
  agentId: string;
2469
2469
  sessionId: string;
2470
2470
  evidence: {
2471
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2472
2471
  id: string;
2473
2472
  label: string;
2473
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2474
2474
  capture: "at_action" | "historical_lookup" | "fixture";
2475
2475
  locator?: string | undefined;
2476
2476
  }[];
@@ -2487,9 +2487,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2487
2487
  recallReceiptId: string;
2488
2488
  staleDecisionAbsent: boolean;
2489
2489
  evidence?: {
2490
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2491
2490
  id: string;
2492
2491
  label: string;
2492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2493
2493
  capture: "at_action" | "historical_lookup" | "fixture";
2494
2494
  locator?: string | undefined;
2495
2495
  }[] | undefined;
@@ -2504,37 +2504,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2504
2504
  locator: z.ZodOptional<z.ZodString>;
2505
2505
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2506
2506
  }, "strict", z.ZodTypeAny, {
2507
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2508
2507
  id: string;
2509
2508
  label: string;
2509
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2510
2510
  capture: "at_action" | "historical_lookup" | "fixture";
2511
2511
  locator?: string | undefined;
2512
2512
  }, {
2513
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2514
2513
  id: string;
2515
2514
  label: string;
2515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2516
2516
  capture: "at_action" | "historical_lookup" | "fixture";
2517
2517
  locator?: string | undefined;
2518
2518
  }>, "many">>;
2519
2519
  }, "strict", z.ZodTypeAny, {
2520
- kind: "mission_completed";
2521
2520
  summary: string;
2521
+ kind: "mission_completed";
2522
2522
  outcome: "failed" | "recovered" | "inconclusive";
2523
2523
  evidence: {
2524
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2525
2524
  id: string;
2526
2525
  label: string;
2526
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2527
2527
  capture: "at_action" | "historical_lookup" | "fixture";
2528
2528
  locator?: string | undefined;
2529
2529
  }[];
2530
2530
  }, {
2531
- kind: "mission_completed";
2532
2531
  summary: string;
2532
+ kind: "mission_completed";
2533
2533
  outcome: "failed" | "recovered" | "inconclusive";
2534
2534
  evidence?: {
2535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2536
2535
  id: string;
2537
2536
  label: string;
2537
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2539
2539
  locator?: string | undefined;
2540
2540
  }[] | undefined;
@@ -2542,38 +2542,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2542
2542
  kind: "mission_started";
2543
2543
  title: string;
2544
2544
  evidence: {
2545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2546
2545
  id: string;
2547
2546
  label: string;
2547
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2548
2548
  capture: "at_action" | "historical_lookup" | "fixture";
2549
2549
  locator?: string | undefined;
2550
2550
  }[];
2551
2551
  objective: string;
2552
2552
  runMode: "replay" | "fixture" | "live";
2553
2553
  } | {
2554
+ label: string;
2555
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2554
2556
  kind: "agent_status";
2555
2557
  role: string;
2556
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2557
- label: string;
2558
2558
  agentId: string;
2559
2559
  sessionId: string;
2560
2560
  evidence: {
2561
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
2561
  id: string;
2563
2562
  label: string;
2563
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2564
2564
  capture: "at_action" | "historical_lookup" | "fixture";
2565
2565
  locator?: string | undefined;
2566
2566
  }[];
2567
2567
  detail?: string | undefined;
2568
2568
  } | {
2569
- kind: "agent_output";
2570
2569
  summary: string;
2570
+ kind: "agent_output";
2571
2571
  agentId: string;
2572
2572
  sessionId: string;
2573
2573
  evidence: {
2574
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2575
2574
  id: string;
2576
2575
  label: string;
2576
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2577
2577
  capture: "at_action" | "historical_lookup" | "fixture";
2578
2578
  locator?: string | undefined;
2579
2579
  }[];
@@ -2584,9 +2584,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2584
2584
  statement: string;
2585
2585
  sessionId: string;
2586
2586
  evidence: {
2587
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2588
2587
  id: string;
2589
2588
  label: string;
2589
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2590
2590
  capture: "at_action" | "historical_lookup" | "fixture";
2591
2591
  locator?: string | undefined;
2592
2592
  }[];
@@ -2594,12 +2594,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2594
2594
  decisionId: string;
2595
2595
  confidence?: number | undefined;
2596
2596
  } | {
2597
- kind: "conflict_detected";
2598
2597
  summary: string;
2598
+ kind: "conflict_detected";
2599
2599
  evidence: {
2600
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2601
2600
  id: string;
2602
2601
  label: string;
2602
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2603
2603
  capture: "at_action" | "historical_lookup" | "fixture";
2604
2604
  locator?: string | undefined;
2605
2605
  }[];
@@ -2607,14 +2607,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2607
2607
  decisionIds: string[];
2608
2608
  agentIds: string[];
2609
2609
  } | {
2610
- kind: "test_result";
2611
2610
  summary: string;
2612
- command: string;
2613
2611
  status: "error" | "failed" | "passed";
2612
+ kind: "test_result";
2613
+ command: string;
2614
2614
  evidence: {
2615
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2616
2615
  id: string;
2617
2616
  label: string;
2617
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2618
2618
  capture: "at_action" | "historical_lookup" | "fixture";
2619
2619
  locator?: string | undefined;
2620
2620
  }[];
@@ -2627,9 +2627,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2627
2627
  rationale: string;
2628
2628
  statement: string;
2629
2629
  evidence: {
2630
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2631
2630
  id: string;
2632
2631
  label: string;
2632
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2633
2633
  capture: "at_action" | "historical_lookup" | "fixture";
2634
2634
  locator?: string | undefined;
2635
2635
  }[];
@@ -2641,25 +2641,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2641
2641
  } | {
2642
2642
  kind: "correction_approved";
2643
2643
  evidence: {
2644
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2645
2644
  id: string;
2646
2645
  label: string;
2646
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2647
2647
  capture: "at_action" | "historical_lookup" | "fixture";
2648
2648
  locator?: string | undefined;
2649
2649
  }[];
2650
2650
  correctionId: string;
2651
2651
  approvedBy: {
2652
- kind: "agent" | "human";
2653
2652
  id: string;
2654
2653
  label: string;
2654
+ kind: "agent" | "human";
2655
2655
  };
2656
2656
  note?: string | undefined;
2657
2657
  } | {
2658
2658
  kind: "decision_superseded";
2659
2659
  evidence: {
2660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2661
2660
  id: string;
2662
2661
  label: string;
2662
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2663
2663
  capture: "at_action" | "historical_lookup" | "fixture";
2664
2664
  locator?: string | undefined;
2665
2665
  }[];
@@ -2672,9 +2672,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2672
2672
  agentId: string;
2673
2673
  sessionId: string;
2674
2674
  evidence: {
2675
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2676
2675
  id: string;
2677
2676
  label: string;
2677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2678
2678
  capture: "at_action" | "historical_lookup" | "fixture";
2679
2679
  locator?: string | undefined;
2680
2680
  }[];
@@ -2686,9 +2686,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2686
2686
  agentId: string;
2687
2687
  sessionId: string;
2688
2688
  evidence: {
2689
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2690
2689
  id: string;
2691
2690
  label: string;
2691
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2692
2692
  capture: "at_action" | "historical_lookup" | "fixture";
2693
2693
  locator?: string | undefined;
2694
2694
  }[];
@@ -2697,13 +2697,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2697
2697
  recallReceiptId: string;
2698
2698
  staleDecisionAbsent: boolean;
2699
2699
  } | {
2700
- kind: "mission_completed";
2701
2700
  summary: string;
2701
+ kind: "mission_completed";
2702
2702
  outcome: "failed" | "recovered" | "inconclusive";
2703
2703
  evidence: {
2704
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2705
2704
  id: string;
2706
2705
  label: string;
2706
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2707
2707
  capture: "at_action" | "historical_lookup" | "fixture";
2708
2708
  locator?: string | undefined;
2709
2709
  }[];
@@ -2713,37 +2713,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2713
2713
  objective: string;
2714
2714
  runMode: "replay" | "fixture" | "live";
2715
2715
  evidence?: {
2716
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2717
2716
  id: string;
2718
2717
  label: string;
2718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2719
2719
  capture: "at_action" | "historical_lookup" | "fixture";
2720
2720
  locator?: string | undefined;
2721
2721
  }[] | undefined;
2722
2722
  } | {
2723
+ label: string;
2724
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2723
2725
  kind: "agent_status";
2724
2726
  role: string;
2725
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2726
- label: string;
2727
2727
  agentId: string;
2728
2728
  sessionId: string;
2729
2729
  detail?: string | undefined;
2730
2730
  evidence?: {
2731
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2732
2731
  id: string;
2733
2732
  label: string;
2733
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2734
2734
  capture: "at_action" | "historical_lookup" | "fixture";
2735
2735
  locator?: string | undefined;
2736
2736
  }[] | undefined;
2737
2737
  } | {
2738
- kind: "agent_output";
2739
2738
  summary: string;
2739
+ kind: "agent_output";
2740
2740
  agentId: string;
2741
2741
  sessionId: string;
2742
2742
  outputId: string;
2743
2743
  evidence?: {
2744
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2745
2744
  id: string;
2746
2745
  label: string;
2746
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2747
2747
  capture: "at_action" | "historical_lookup" | "fixture";
2748
2748
  locator?: string | undefined;
2749
2749
  }[] | undefined;
@@ -2756,37 +2756,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2756
2756
  decisionId: string;
2757
2757
  confidence?: number | undefined;
2758
2758
  evidence?: {
2759
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2760
2759
  id: string;
2761
2760
  label: string;
2761
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2762
2762
  capture: "at_action" | "historical_lookup" | "fixture";
2763
2763
  locator?: string | undefined;
2764
2764
  }[] | undefined;
2765
2765
  } | {
2766
- kind: "conflict_detected";
2767
2766
  summary: string;
2767
+ kind: "conflict_detected";
2768
2768
  conflictId: string;
2769
2769
  decisionIds: string[];
2770
2770
  agentIds: string[];
2771
2771
  evidence?: {
2772
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2773
2772
  id: string;
2774
2773
  label: string;
2774
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2775
2775
  capture: "at_action" | "historical_lookup" | "fixture";
2776
2776
  locator?: string | undefined;
2777
2777
  }[] | undefined;
2778
2778
  } | {
2779
- kind: "test_result";
2780
2779
  summary: string;
2781
- command: string;
2782
2780
  status: "error" | "failed" | "passed";
2781
+ kind: "test_result";
2782
+ command: string;
2783
2783
  decisionId: string;
2784
2784
  testId: string;
2785
2785
  durationMs?: number | undefined;
2786
2786
  evidence?: {
2787
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2788
2787
  id: string;
2789
2788
  label: string;
2789
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2790
2790
  capture: "at_action" | "historical_lookup" | "fixture";
2791
2791
  locator?: string | undefined;
2792
2792
  }[] | undefined;
@@ -2801,9 +2801,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2801
2801
  supersedesDecisionIds: string[];
2802
2802
  proposedBy: string;
2803
2803
  evidence?: {
2804
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2805
2804
  id: string;
2806
2805
  label: string;
2806
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2807
2807
  capture: "at_action" | "historical_lookup" | "fixture";
2808
2808
  locator?: string | undefined;
2809
2809
  }[] | undefined;
@@ -2811,15 +2811,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2811
2811
  kind: "correction_approved";
2812
2812
  correctionId: string;
2813
2813
  approvedBy: {
2814
- kind: "agent" | "human";
2815
2814
  id: string;
2816
2815
  label: string;
2816
+ kind: "agent" | "human";
2817
2817
  };
2818
2818
  note?: string | undefined;
2819
2819
  evidence?: {
2820
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2821
2820
  id: string;
2822
2821
  label: string;
2822
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2823
2823
  capture: "at_action" | "historical_lookup" | "fixture";
2824
2824
  locator?: string | undefined;
2825
2825
  }[] | undefined;
@@ -2829,9 +2829,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2829
2829
  correctionId: string;
2830
2830
  replacementDecisionId: string;
2831
2831
  evidence?: {
2832
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2833
2832
  id: string;
2834
2833
  label: string;
2834
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2835
2835
  capture: "at_action" | "historical_lookup" | "fixture";
2836
2836
  locator?: string | undefined;
2837
2837
  }[] | undefined;
@@ -2844,9 +2844,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2844
2844
  recallReceiptId: string;
2845
2845
  capturedAtAction: boolean;
2846
2846
  evidence?: {
2847
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2848
2847
  id: string;
2849
2848
  label: string;
2849
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2850
2850
  capture: "at_action" | "historical_lookup" | "fixture";
2851
2851
  locator?: string | undefined;
2852
2852
  }[] | undefined;
@@ -2859,20 +2859,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2859
2859
  recallReceiptId: string;
2860
2860
  staleDecisionAbsent: boolean;
2861
2861
  evidence?: {
2862
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2863
2862
  id: string;
2864
2863
  label: string;
2864
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2865
2865
  capture: "at_action" | "historical_lookup" | "fixture";
2866
2866
  locator?: string | undefined;
2867
2867
  }[] | undefined;
2868
2868
  } | {
2869
- kind: "mission_completed";
2870
2869
  summary: string;
2870
+ kind: "mission_completed";
2871
2871
  outcome: "failed" | "recovered" | "inconclusive";
2872
2872
  evidence?: {
2873
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2874
2873
  id: string;
2875
2874
  label: string;
2875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2876
2876
  capture: "at_action" | "historical_lookup" | "fixture";
2877
2877
  locator?: string | undefined;
2878
2878
  }[] | undefined;
@@ -2882,38 +2882,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2882
2882
  kind: "mission_started";
2883
2883
  title: string;
2884
2884
  evidence: {
2885
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2886
2885
  id: string;
2887
2886
  label: string;
2887
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2888
2888
  capture: "at_action" | "historical_lookup" | "fixture";
2889
2889
  locator?: string | undefined;
2890
2890
  }[];
2891
2891
  objective: string;
2892
2892
  runMode: "replay" | "fixture" | "live";
2893
2893
  } | {
2894
+ label: string;
2895
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2894
2896
  kind: "agent_status";
2895
2897
  role: string;
2896
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2897
- label: string;
2898
2898
  agentId: string;
2899
2899
  sessionId: string;
2900
2900
  evidence: {
2901
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2902
2901
  id: string;
2903
2902
  label: string;
2903
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2904
2904
  capture: "at_action" | "historical_lookup" | "fixture";
2905
2905
  locator?: string | undefined;
2906
2906
  }[];
2907
2907
  detail?: string | undefined;
2908
2908
  } | {
2909
- kind: "agent_output";
2910
2909
  summary: string;
2910
+ kind: "agent_output";
2911
2911
  agentId: string;
2912
2912
  sessionId: string;
2913
2913
  evidence: {
2914
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2915
2914
  id: string;
2916
2915
  label: string;
2916
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2917
2917
  capture: "at_action" | "historical_lookup" | "fixture";
2918
2918
  locator?: string | undefined;
2919
2919
  }[];
@@ -2924,9 +2924,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2924
2924
  statement: string;
2925
2925
  sessionId: string;
2926
2926
  evidence: {
2927
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2928
2927
  id: string;
2929
2928
  label: string;
2929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2930
2930
  capture: "at_action" | "historical_lookup" | "fixture";
2931
2931
  locator?: string | undefined;
2932
2932
  }[];
@@ -2934,12 +2934,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2934
2934
  decisionId: string;
2935
2935
  confidence?: number | undefined;
2936
2936
  } | {
2937
- kind: "conflict_detected";
2938
2937
  summary: string;
2938
+ kind: "conflict_detected";
2939
2939
  evidence: {
2940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2941
2940
  id: string;
2942
2941
  label: string;
2942
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2943
2943
  capture: "at_action" | "historical_lookup" | "fixture";
2944
2944
  locator?: string | undefined;
2945
2945
  }[];
@@ -2947,14 +2947,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2947
2947
  decisionIds: string[];
2948
2948
  agentIds: string[];
2949
2949
  } | {
2950
- kind: "test_result";
2951
2950
  summary: string;
2952
- command: string;
2953
2951
  status: "error" | "failed" | "passed";
2952
+ kind: "test_result";
2953
+ command: string;
2954
2954
  evidence: {
2955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2956
2955
  id: string;
2957
2956
  label: string;
2957
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2958
2958
  capture: "at_action" | "historical_lookup" | "fixture";
2959
2959
  locator?: string | undefined;
2960
2960
  }[];
@@ -2967,9 +2967,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2967
2967
  rationale: string;
2968
2968
  statement: string;
2969
2969
  evidence: {
2970
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2971
2970
  id: string;
2972
2971
  label: string;
2972
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2973
2973
  capture: "at_action" | "historical_lookup" | "fixture";
2974
2974
  locator?: string | undefined;
2975
2975
  }[];
@@ -2981,25 +2981,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2981
2981
  } | {
2982
2982
  kind: "correction_approved";
2983
2983
  evidence: {
2984
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2985
2984
  id: string;
2986
2985
  label: string;
2986
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2987
2987
  capture: "at_action" | "historical_lookup" | "fixture";
2988
2988
  locator?: string | undefined;
2989
2989
  }[];
2990
2990
  correctionId: string;
2991
2991
  approvedBy: {
2992
- kind: "agent" | "human";
2993
2992
  id: string;
2994
2993
  label: string;
2994
+ kind: "agent" | "human";
2995
2995
  };
2996
2996
  note?: string | undefined;
2997
2997
  } | {
2998
2998
  kind: "decision_superseded";
2999
2999
  evidence: {
3000
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3001
3000
  id: string;
3002
3001
  label: string;
3002
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3003
3003
  capture: "at_action" | "historical_lookup" | "fixture";
3004
3004
  locator?: string | undefined;
3005
3005
  }[];
@@ -3012,9 +3012,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3012
3012
  agentId: string;
3013
3013
  sessionId: string;
3014
3014
  evidence: {
3015
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3016
3015
  id: string;
3017
3016
  label: string;
3017
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3018
3018
  capture: "at_action" | "historical_lookup" | "fixture";
3019
3019
  locator?: string | undefined;
3020
3020
  }[];
@@ -3026,9 +3026,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3026
3026
  agentId: string;
3027
3027
  sessionId: string;
3028
3028
  evidence: {
3029
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3030
3029
  id: string;
3031
3030
  label: string;
3031
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3032
3032
  capture: "at_action" | "historical_lookup" | "fixture";
3033
3033
  locator?: string | undefined;
3034
3034
  }[];
@@ -3037,13 +3037,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3037
3037
  recallReceiptId: string;
3038
3038
  staleDecisionAbsent: boolean;
3039
3039
  } | {
3040
- kind: "mission_completed";
3041
3040
  summary: string;
3041
+ kind: "mission_completed";
3042
3042
  outcome: "failed" | "recovered" | "inconclusive";
3043
3043
  evidence: {
3044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3045
3044
  id: string;
3046
3045
  label: string;
3046
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3047
3047
  capture: "at_action" | "historical_lookup" | "fixture";
3048
3048
  locator?: string | undefined;
3049
3049
  }[];
@@ -3057,37 +3057,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3057
3057
  objective: string;
3058
3058
  runMode: "replay" | "fixture" | "live";
3059
3059
  evidence?: {
3060
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3061
3060
  id: string;
3062
3061
  label: string;
3062
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3063
3063
  capture: "at_action" | "historical_lookup" | "fixture";
3064
3064
  locator?: string | undefined;
3065
3065
  }[] | undefined;
3066
3066
  } | {
3067
+ label: string;
3068
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3067
3069
  kind: "agent_status";
3068
3070
  role: string;
3069
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3070
- label: string;
3071
3071
  agentId: string;
3072
3072
  sessionId: string;
3073
3073
  detail?: string | undefined;
3074
3074
  evidence?: {
3075
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3075
  id: string;
3077
3076
  label: string;
3077
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3078
3078
  capture: "at_action" | "historical_lookup" | "fixture";
3079
3079
  locator?: string | undefined;
3080
3080
  }[] | undefined;
3081
3081
  } | {
3082
- kind: "agent_output";
3083
3082
  summary: string;
3083
+ kind: "agent_output";
3084
3084
  agentId: string;
3085
3085
  sessionId: string;
3086
3086
  outputId: string;
3087
3087
  evidence?: {
3088
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3089
3088
  id: string;
3090
3089
  label: string;
3090
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3091
3091
  capture: "at_action" | "historical_lookup" | "fixture";
3092
3092
  locator?: string | undefined;
3093
3093
  }[] | undefined;
@@ -3100,37 +3100,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3100
3100
  decisionId: string;
3101
3101
  confidence?: number | undefined;
3102
3102
  evidence?: {
3103
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3104
3103
  id: string;
3105
3104
  label: string;
3105
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3106
3106
  capture: "at_action" | "historical_lookup" | "fixture";
3107
3107
  locator?: string | undefined;
3108
3108
  }[] | undefined;
3109
3109
  } | {
3110
- kind: "conflict_detected";
3111
3110
  summary: string;
3111
+ kind: "conflict_detected";
3112
3112
  conflictId: string;
3113
3113
  decisionIds: string[];
3114
3114
  agentIds: string[];
3115
3115
  evidence?: {
3116
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3117
3116
  id: string;
3118
3117
  label: string;
3118
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3119
3119
  capture: "at_action" | "historical_lookup" | "fixture";
3120
3120
  locator?: string | undefined;
3121
3121
  }[] | undefined;
3122
3122
  } | {
3123
- kind: "test_result";
3124
3123
  summary: string;
3125
- command: string;
3126
3124
  status: "error" | "failed" | "passed";
3125
+ kind: "test_result";
3126
+ command: string;
3127
3127
  decisionId: string;
3128
3128
  testId: string;
3129
3129
  durationMs?: number | undefined;
3130
3130
  evidence?: {
3131
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3132
3131
  id: string;
3133
3132
  label: string;
3133
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3134
3134
  capture: "at_action" | "historical_lookup" | "fixture";
3135
3135
  locator?: string | undefined;
3136
3136
  }[] | undefined;
@@ -3145,9 +3145,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3145
3145
  supersedesDecisionIds: string[];
3146
3146
  proposedBy: string;
3147
3147
  evidence?: {
3148
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3149
3148
  id: string;
3150
3149
  label: string;
3150
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3151
3151
  capture: "at_action" | "historical_lookup" | "fixture";
3152
3152
  locator?: string | undefined;
3153
3153
  }[] | undefined;
@@ -3155,15 +3155,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3155
3155
  kind: "correction_approved";
3156
3156
  correctionId: string;
3157
3157
  approvedBy: {
3158
- kind: "agent" | "human";
3159
3158
  id: string;
3160
3159
  label: string;
3160
+ kind: "agent" | "human";
3161
3161
  };
3162
3162
  note?: string | undefined;
3163
3163
  evidence?: {
3164
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3165
3164
  id: string;
3166
3165
  label: string;
3166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3167
3167
  capture: "at_action" | "historical_lookup" | "fixture";
3168
3168
  locator?: string | undefined;
3169
3169
  }[] | undefined;
@@ -3173,9 +3173,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3173
3173
  correctionId: string;
3174
3174
  replacementDecisionId: string;
3175
3175
  evidence?: {
3176
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3177
3176
  id: string;
3178
3177
  label: string;
3178
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3179
3179
  capture: "at_action" | "historical_lookup" | "fixture";
3180
3180
  locator?: string | undefined;
3181
3181
  }[] | undefined;
@@ -3188,9 +3188,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3188
3188
  recallReceiptId: string;
3189
3189
  capturedAtAction: boolean;
3190
3190
  evidence?: {
3191
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3192
3191
  id: string;
3193
3192
  label: string;
3193
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3194
3194
  capture: "at_action" | "historical_lookup" | "fixture";
3195
3195
  locator?: string | undefined;
3196
3196
  }[] | undefined;
@@ -3203,20 +3203,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3203
3203
  recallReceiptId: string;
3204
3204
  staleDecisionAbsent: boolean;
3205
3205
  evidence?: {
3206
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3207
3206
  id: string;
3208
3207
  label: string;
3208
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3209
3209
  capture: "at_action" | "historical_lookup" | "fixture";
3210
3210
  locator?: string | undefined;
3211
3211
  }[] | undefined;
3212
3212
  } | {
3213
- kind: "mission_completed";
3214
3213
  summary: string;
3214
+ kind: "mission_completed";
3215
3215
  outcome: "failed" | "recovered" | "inconclusive";
3216
3216
  evidence?: {
3217
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3218
3217
  id: string;
3219
3218
  label: string;
3219
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3220
3220
  capture: "at_action" | "historical_lookup" | "fixture";
3221
3221
  locator?: string | undefined;
3222
3222
  }[] | undefined;
@@ -3246,15 +3246,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3246
3246
  locator: z.ZodOptional<z.ZodString>;
3247
3247
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3248
3248
  }, "strict", z.ZodTypeAny, {
3249
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3250
3249
  id: string;
3251
3250
  label: string;
3251
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3252
3252
  capture: "at_action" | "historical_lookup" | "fixture";
3253
3253
  locator?: string | undefined;
3254
3254
  }, {
3255
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3256
3255
  id: string;
3257
3256
  label: string;
3257
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3258
3258
  capture: "at_action" | "historical_lookup" | "fixture";
3259
3259
  locator?: string | undefined;
3260
3260
  }>, "many">>;
@@ -3262,9 +3262,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3262
3262
  kind: "mission_started";
3263
3263
  title: string;
3264
3264
  evidence: {
3265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3266
3265
  id: string;
3267
3266
  label: string;
3267
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3268
3268
  capture: "at_action" | "historical_lookup" | "fixture";
3269
3269
  locator?: string | undefined;
3270
3270
  }[];
@@ -3276,9 +3276,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3276
3276
  objective: string;
3277
3277
  runMode: "replay" | "fixture" | "live";
3278
3278
  evidence?: {
3279
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3280
3279
  id: string;
3281
3280
  label: string;
3281
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3282
3282
  capture: "at_action" | "historical_lookup" | "fixture";
3283
3283
  locator?: string | undefined;
3284
3284
  }[] | undefined;
@@ -3294,15 +3294,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3294
3294
  locator: z.ZodOptional<z.ZodString>;
3295
3295
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3296
3296
  }, "strict", z.ZodTypeAny, {
3297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3298
3297
  id: string;
3299
3298
  label: string;
3299
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3300
3300
  capture: "at_action" | "historical_lookup" | "fixture";
3301
3301
  locator?: string | undefined;
3302
3302
  }, {
3303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3304
3303
  id: string;
3305
3304
  label: string;
3305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3306
3306
  capture: "at_action" | "historical_lookup" | "fixture";
3307
3307
  locator?: string | undefined;
3308
3308
  }>, "many">>;
@@ -3310,32 +3310,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3310
3310
  sessionId: z.ZodString;
3311
3311
  kind: z.ZodLiteral<"agent_status">;
3312
3312
  }, "strict", z.ZodTypeAny, {
3313
+ label: string;
3314
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3313
3315
  kind: "agent_status";
3314
3316
  role: string;
3315
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3316
- label: string;
3317
3317
  agentId: string;
3318
3318
  sessionId: string;
3319
3319
  evidence: {
3320
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3321
3320
  id: string;
3322
3321
  label: string;
3322
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3323
3323
  capture: "at_action" | "historical_lookup" | "fixture";
3324
3324
  locator?: string | undefined;
3325
3325
  }[];
3326
3326
  detail?: string | undefined;
3327
3327
  }, {
3328
+ label: string;
3329
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3328
3330
  kind: "agent_status";
3329
3331
  role: string;
3330
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3331
- label: string;
3332
3332
  agentId: string;
3333
3333
  sessionId: string;
3334
3334
  detail?: string | undefined;
3335
3335
  evidence?: {
3336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3337
3336
  id: string;
3338
3337
  label: string;
3338
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3339
3339
  capture: "at_action" | "historical_lookup" | "fixture";
3340
3340
  locator?: string | undefined;
3341
3341
  }[] | undefined;
@@ -3349,15 +3349,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3349
3349
  locator: z.ZodOptional<z.ZodString>;
3350
3350
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3351
3351
  }, "strict", z.ZodTypeAny, {
3352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3353
3352
  id: string;
3354
3353
  label: string;
3354
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3355
3355
  capture: "at_action" | "historical_lookup" | "fixture";
3356
3356
  locator?: string | undefined;
3357
3357
  }, {
3358
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3359
3358
  id: string;
3360
3359
  label: string;
3360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3361
3361
  capture: "at_action" | "historical_lookup" | "fixture";
3362
3362
  locator?: string | undefined;
3363
3363
  }>, "many">>;
@@ -3365,28 +3365,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3365
3365
  sessionId: z.ZodString;
3366
3366
  kind: z.ZodLiteral<"agent_output">;
3367
3367
  }, "strict", z.ZodTypeAny, {
3368
- kind: "agent_output";
3369
3368
  summary: string;
3369
+ kind: "agent_output";
3370
3370
  agentId: string;
3371
3371
  sessionId: string;
3372
3372
  evidence: {
3373
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3374
3373
  id: string;
3375
3374
  label: string;
3375
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3376
3376
  capture: "at_action" | "historical_lookup" | "fixture";
3377
3377
  locator?: string | undefined;
3378
3378
  }[];
3379
3379
  outputId: string;
3380
3380
  }, {
3381
- kind: "agent_output";
3382
3381
  summary: string;
3382
+ kind: "agent_output";
3383
3383
  agentId: string;
3384
3384
  sessionId: string;
3385
3385
  outputId: string;
3386
3386
  evidence?: {
3387
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3388
3387
  id: string;
3389
3388
  label: string;
3389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3390
3390
  capture: "at_action" | "historical_lookup" | "fixture";
3391
3391
  locator?: string | undefined;
3392
3392
  }[] | undefined;
@@ -3402,15 +3402,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3402
3402
  locator: z.ZodOptional<z.ZodString>;
3403
3403
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3404
3404
  }, "strict", z.ZodTypeAny, {
3405
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3406
3405
  id: string;
3407
3406
  label: string;
3407
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3408
3408
  capture: "at_action" | "historical_lookup" | "fixture";
3409
3409
  locator?: string | undefined;
3410
3410
  }, {
3411
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3412
3411
  id: string;
3413
3412
  label: string;
3413
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3414
3414
  capture: "at_action" | "historical_lookup" | "fixture";
3415
3415
  locator?: string | undefined;
3416
3416
  }>, "many">>;
@@ -3423,9 +3423,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3423
3423
  statement: string;
3424
3424
  sessionId: string;
3425
3425
  evidence: {
3426
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3427
3426
  id: string;
3428
3427
  label: string;
3428
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3429
3429
  capture: "at_action" | "historical_lookup" | "fixture";
3430
3430
  locator?: string | undefined;
3431
3431
  }[];
@@ -3441,9 +3441,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3441
3441
  decisionId: string;
3442
3442
  confidence?: number | undefined;
3443
3443
  evidence?: {
3444
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3445
3444
  id: string;
3446
3445
  label: string;
3446
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3447
3447
  capture: "at_action" | "historical_lookup" | "fixture";
3448
3448
  locator?: string | undefined;
3449
3449
  }[] | undefined;
@@ -3460,25 +3460,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3460
3460
  locator: z.ZodOptional<z.ZodString>;
3461
3461
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3462
3462
  }, "strict", z.ZodTypeAny, {
3463
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3464
3463
  id: string;
3465
3464
  label: string;
3465
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3466
3466
  capture: "at_action" | "historical_lookup" | "fixture";
3467
3467
  locator?: string | undefined;
3468
3468
  }, {
3469
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3470
3469
  id: string;
3471
3470
  label: string;
3471
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3472
3472
  capture: "at_action" | "historical_lookup" | "fixture";
3473
3473
  locator?: string | undefined;
3474
3474
  }>, "many">>;
3475
3475
  }, "strict", z.ZodTypeAny, {
3476
- kind: "conflict_detected";
3477
3476
  summary: string;
3477
+ kind: "conflict_detected";
3478
3478
  evidence: {
3479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3480
3479
  id: string;
3481
3480
  label: string;
3481
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3482
3482
  capture: "at_action" | "historical_lookup" | "fixture";
3483
3483
  locator?: string | undefined;
3484
3484
  }[];
@@ -3486,15 +3486,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3486
3486
  decisionIds: string[];
3487
3487
  agentIds: string[];
3488
3488
  }, {
3489
- kind: "conflict_detected";
3490
3489
  summary: string;
3490
+ kind: "conflict_detected";
3491
3491
  conflictId: string;
3492
3492
  decisionIds: string[];
3493
3493
  agentIds: string[];
3494
3494
  evidence?: {
3495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3496
3495
  id: string;
3497
3496
  label: string;
3497
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3498
3498
  capture: "at_action" | "historical_lookup" | "fixture";
3499
3499
  locator?: string | undefined;
3500
3500
  }[] | undefined;
@@ -3514,27 +3514,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3514
3514
  locator: z.ZodOptional<z.ZodString>;
3515
3515
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3516
3516
  }, "strict", z.ZodTypeAny, {
3517
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3518
3517
  id: string;
3519
3518
  label: string;
3519
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3520
3520
  capture: "at_action" | "historical_lookup" | "fixture";
3521
3521
  locator?: string | undefined;
3522
3522
  }, {
3523
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3524
3523
  id: string;
3525
3524
  label: string;
3525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3526
3526
  capture: "at_action" | "historical_lookup" | "fixture";
3527
3527
  locator?: string | undefined;
3528
3528
  }>, "many">>;
3529
3529
  }, "strict", z.ZodTypeAny, {
3530
- kind: "test_result";
3531
3530
  summary: string;
3532
- command: string;
3533
3531
  status: "error" | "failed" | "passed";
3532
+ kind: "test_result";
3533
+ command: string;
3534
3534
  evidence: {
3535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3536
3535
  id: string;
3537
3536
  label: string;
3537
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3538
3538
  capture: "at_action" | "historical_lookup" | "fixture";
3539
3539
  locator?: string | undefined;
3540
3540
  }[];
@@ -3543,17 +3543,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3543
3543
  durationMs?: number | undefined;
3544
3544
  correctionId?: string | undefined;
3545
3545
  }, {
3546
- kind: "test_result";
3547
3546
  summary: string;
3548
- command: string;
3549
3547
  status: "error" | "failed" | "passed";
3548
+ kind: "test_result";
3549
+ command: string;
3550
3550
  decisionId: string;
3551
3551
  testId: string;
3552
3552
  durationMs?: number | undefined;
3553
3553
  evidence?: {
3554
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3555
3554
  id: string;
3556
3555
  label: string;
3556
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3557
3557
  capture: "at_action" | "historical_lookup" | "fixture";
3558
3558
  locator?: string | undefined;
3559
3559
  }[] | undefined;
@@ -3574,15 +3574,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3574
3574
  locator: z.ZodOptional<z.ZodString>;
3575
3575
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3576
3576
  }, "strict", z.ZodTypeAny, {
3577
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3578
3577
  id: string;
3579
3578
  label: string;
3579
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3580
3580
  capture: "at_action" | "historical_lookup" | "fixture";
3581
3581
  locator?: string | undefined;
3582
3582
  }, {
3583
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3584
3583
  id: string;
3585
3584
  label: string;
3585
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3586
3586
  capture: "at_action" | "historical_lookup" | "fixture";
3587
3587
  locator?: string | undefined;
3588
3588
  }>, "many">>;
@@ -3591,9 +3591,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3591
3591
  rationale: string;
3592
3592
  statement: string;
3593
3593
  evidence: {
3594
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3595
3594
  id: string;
3596
3595
  label: string;
3596
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3597
3597
  capture: "at_action" | "historical_lookup" | "fixture";
3598
3598
  locator?: string | undefined;
3599
3599
  }[];
@@ -3612,9 +3612,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3612
3612
  supersedesDecisionIds: string[];
3613
3613
  proposedBy: string;
3614
3614
  evidence?: {
3615
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3616
3615
  id: string;
3617
3616
  label: string;
3617
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3618
3618
  capture: "at_action" | "historical_lookup" | "fixture";
3619
3619
  locator?: string | undefined;
3620
3620
  }[] | undefined;
@@ -3626,13 +3626,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3626
3626
  id: z.ZodString;
3627
3627
  label: z.ZodString;
3628
3628
  }, "strict", z.ZodTypeAny, {
3629
- kind: "agent" | "human";
3630
3629
  id: string;
3631
3630
  label: string;
3632
- }, {
3633
3631
  kind: "agent" | "human";
3632
+ }, {
3634
3633
  id: string;
3635
3634
  label: string;
3635
+ kind: "agent" | "human";
3636
3636
  }>;
3637
3637
  note: z.ZodOptional<z.ZodString>;
3638
3638
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3642,47 +3642,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3642
3642
  locator: z.ZodOptional<z.ZodString>;
3643
3643
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3644
3644
  }, "strict", z.ZodTypeAny, {
3645
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3646
3645
  id: string;
3647
3646
  label: string;
3647
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3648
3648
  capture: "at_action" | "historical_lookup" | "fixture";
3649
3649
  locator?: string | undefined;
3650
3650
  }, {
3651
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3652
3651
  id: string;
3653
3652
  label: string;
3653
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3654
3654
  capture: "at_action" | "historical_lookup" | "fixture";
3655
3655
  locator?: string | undefined;
3656
3656
  }>, "many">>;
3657
3657
  }, "strict", z.ZodTypeAny, {
3658
3658
  kind: "correction_approved";
3659
3659
  evidence: {
3660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3661
3660
  id: string;
3662
3661
  label: string;
3662
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3663
3663
  capture: "at_action" | "historical_lookup" | "fixture";
3664
3664
  locator?: string | undefined;
3665
3665
  }[];
3666
3666
  correctionId: string;
3667
3667
  approvedBy: {
3668
- kind: "agent" | "human";
3669
3668
  id: string;
3670
3669
  label: string;
3670
+ kind: "agent" | "human";
3671
3671
  };
3672
3672
  note?: string | undefined;
3673
3673
  }, {
3674
3674
  kind: "correction_approved";
3675
3675
  correctionId: string;
3676
3676
  approvedBy: {
3677
- kind: "agent" | "human";
3678
3677
  id: string;
3679
3678
  label: string;
3679
+ kind: "agent" | "human";
3680
3680
  };
3681
3681
  note?: string | undefined;
3682
3682
  evidence?: {
3683
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3684
3683
  id: string;
3685
3684
  label: string;
3685
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3686
3686
  capture: "at_action" | "historical_lookup" | "fixture";
3687
3687
  locator?: string | undefined;
3688
3688
  }[] | undefined;
@@ -3698,24 +3698,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3698
3698
  locator: z.ZodOptional<z.ZodString>;
3699
3699
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3700
3700
  }, "strict", z.ZodTypeAny, {
3701
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3702
3701
  id: string;
3703
3702
  label: string;
3703
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3704
3704
  capture: "at_action" | "historical_lookup" | "fixture";
3705
3705
  locator?: string | undefined;
3706
3706
  }, {
3707
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3708
3707
  id: string;
3709
3708
  label: string;
3709
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3710
3710
  capture: "at_action" | "historical_lookup" | "fixture";
3711
3711
  locator?: string | undefined;
3712
3712
  }>, "many">>;
3713
3713
  }, "strict", z.ZodTypeAny, {
3714
3714
  kind: "decision_superseded";
3715
3715
  evidence: {
3716
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3717
3716
  id: string;
3718
3717
  label: string;
3718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3719
3719
  capture: "at_action" | "historical_lookup" | "fixture";
3720
3720
  locator?: string | undefined;
3721
3721
  }[];
@@ -3728,9 +3728,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3728
3728
  correctionId: string;
3729
3729
  replacementDecisionId: string;
3730
3730
  evidence?: {
3731
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3732
3731
  id: string;
3733
3732
  label: string;
3733
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3734
3734
  capture: "at_action" | "historical_lookup" | "fixture";
3735
3735
  locator?: string | undefined;
3736
3736
  }[] | undefined;
@@ -3746,15 +3746,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3746
3746
  locator: z.ZodOptional<z.ZodString>;
3747
3747
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3748
3748
  }, "strict", z.ZodTypeAny, {
3749
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3750
3749
  id: string;
3751
3750
  label: string;
3751
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3752
3752
  capture: "at_action" | "historical_lookup" | "fixture";
3753
3753
  locator?: string | undefined;
3754
3754
  }, {
3755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3756
3755
  id: string;
3757
3756
  label: string;
3757
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3758
3758
  capture: "at_action" | "historical_lookup" | "fixture";
3759
3759
  locator?: string | undefined;
3760
3760
  }>, "many">>;
@@ -3767,9 +3767,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3767
3767
  agentId: string;
3768
3768
  sessionId: string;
3769
3769
  evidence: {
3770
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3771
3770
  id: string;
3772
3771
  label: string;
3772
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3773
3773
  capture: "at_action" | "historical_lookup" | "fixture";
3774
3774
  locator?: string | undefined;
3775
3775
  }[];
@@ -3785,9 +3785,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3785
3785
  recallReceiptId: string;
3786
3786
  capturedAtAction: boolean;
3787
3787
  evidence?: {
3788
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3789
3788
  id: string;
3790
3789
  label: string;
3790
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3791
3791
  capture: "at_action" | "historical_lookup" | "fixture";
3792
3792
  locator?: string | undefined;
3793
3793
  }[] | undefined;
@@ -3803,15 +3803,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3803
3803
  locator: z.ZodOptional<z.ZodString>;
3804
3804
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3805
3805
  }, "strict", z.ZodTypeAny, {
3806
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3807
3806
  id: string;
3808
3807
  label: string;
3808
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3809
3809
  capture: "at_action" | "historical_lookup" | "fixture";
3810
3810
  locator?: string | undefined;
3811
3811
  }, {
3812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3813
3812
  id: string;
3814
3813
  label: string;
3814
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3815
3815
  capture: "at_action" | "historical_lookup" | "fixture";
3816
3816
  locator?: string | undefined;
3817
3817
  }>, "many">>;
@@ -3823,9 +3823,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3823
3823
  agentId: string;
3824
3824
  sessionId: string;
3825
3825
  evidence: {
3826
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3827
3826
  id: string;
3828
3827
  label: string;
3828
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3829
3829
  capture: "at_action" | "historical_lookup" | "fixture";
3830
3830
  locator?: string | undefined;
3831
3831
  }[];
@@ -3842,9 +3842,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3842
3842
  recallReceiptId: string;
3843
3843
  staleDecisionAbsent: boolean;
3844
3844
  evidence?: {
3845
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3846
3845
  id: string;
3847
3846
  label: string;
3847
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3848
3848
  capture: "at_action" | "historical_lookup" | "fixture";
3849
3849
  locator?: string | undefined;
3850
3850
  }[] | undefined;
@@ -3859,37 +3859,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3859
3859
  locator: z.ZodOptional<z.ZodString>;
3860
3860
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3861
3861
  }, "strict", z.ZodTypeAny, {
3862
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3863
3862
  id: string;
3864
3863
  label: string;
3864
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3865
3865
  capture: "at_action" | "historical_lookup" | "fixture";
3866
3866
  locator?: string | undefined;
3867
3867
  }, {
3868
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3869
3868
  id: string;
3870
3869
  label: string;
3870
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3871
3871
  capture: "at_action" | "historical_lookup" | "fixture";
3872
3872
  locator?: string | undefined;
3873
3873
  }>, "many">>;
3874
3874
  }, "strict", z.ZodTypeAny, {
3875
- kind: "mission_completed";
3876
3875
  summary: string;
3876
+ kind: "mission_completed";
3877
3877
  outcome: "failed" | "recovered" | "inconclusive";
3878
3878
  evidence: {
3879
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3880
3879
  id: string;
3881
3880
  label: string;
3881
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3882
3882
  capture: "at_action" | "historical_lookup" | "fixture";
3883
3883
  locator?: string | undefined;
3884
3884
  }[];
3885
3885
  }, {
3886
- kind: "mission_completed";
3887
3886
  summary: string;
3887
+ kind: "mission_completed";
3888
3888
  outcome: "failed" | "recovered" | "inconclusive";
3889
3889
  evidence?: {
3890
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3891
3890
  id: string;
3892
3891
  label: string;
3892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3893
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3894
3894
  locator?: string | undefined;
3895
3895
  }[] | undefined;
@@ -3897,38 +3897,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3897
3897
  kind: "mission_started";
3898
3898
  title: string;
3899
3899
  evidence: {
3900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3901
3900
  id: string;
3902
3901
  label: string;
3902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3903
3903
  capture: "at_action" | "historical_lookup" | "fixture";
3904
3904
  locator?: string | undefined;
3905
3905
  }[];
3906
3906
  objective: string;
3907
3907
  runMode: "replay" | "fixture" | "live";
3908
3908
  } | {
3909
+ label: string;
3910
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3909
3911
  kind: "agent_status";
3910
3912
  role: string;
3911
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3912
- label: string;
3913
3913
  agentId: string;
3914
3914
  sessionId: string;
3915
3915
  evidence: {
3916
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3917
3916
  id: string;
3918
3917
  label: string;
3918
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3919
3919
  capture: "at_action" | "historical_lookup" | "fixture";
3920
3920
  locator?: string | undefined;
3921
3921
  }[];
3922
3922
  detail?: string | undefined;
3923
3923
  } | {
3924
- kind: "agent_output";
3925
3924
  summary: string;
3925
+ kind: "agent_output";
3926
3926
  agentId: string;
3927
3927
  sessionId: string;
3928
3928
  evidence: {
3929
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3930
3929
  id: string;
3931
3930
  label: string;
3931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3932
3932
  capture: "at_action" | "historical_lookup" | "fixture";
3933
3933
  locator?: string | undefined;
3934
3934
  }[];
@@ -3939,9 +3939,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3939
3939
  statement: string;
3940
3940
  sessionId: string;
3941
3941
  evidence: {
3942
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3943
3942
  id: string;
3944
3943
  label: string;
3944
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3945
3945
  capture: "at_action" | "historical_lookup" | "fixture";
3946
3946
  locator?: string | undefined;
3947
3947
  }[];
@@ -3949,12 +3949,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3949
3949
  decisionId: string;
3950
3950
  confidence?: number | undefined;
3951
3951
  } | {
3952
- kind: "conflict_detected";
3953
3952
  summary: string;
3953
+ kind: "conflict_detected";
3954
3954
  evidence: {
3955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3956
3955
  id: string;
3957
3956
  label: string;
3957
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3958
3958
  capture: "at_action" | "historical_lookup" | "fixture";
3959
3959
  locator?: string | undefined;
3960
3960
  }[];
@@ -3962,14 +3962,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3962
3962
  decisionIds: string[];
3963
3963
  agentIds: string[];
3964
3964
  } | {
3965
- kind: "test_result";
3966
3965
  summary: string;
3967
- command: string;
3968
3966
  status: "error" | "failed" | "passed";
3967
+ kind: "test_result";
3968
+ command: string;
3969
3969
  evidence: {
3970
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3971
3970
  id: string;
3972
3971
  label: string;
3972
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3973
3973
  capture: "at_action" | "historical_lookup" | "fixture";
3974
3974
  locator?: string | undefined;
3975
3975
  }[];
@@ -3982,9 +3982,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3982
3982
  rationale: string;
3983
3983
  statement: string;
3984
3984
  evidence: {
3985
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3986
3985
  id: string;
3987
3986
  label: string;
3987
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3988
3988
  capture: "at_action" | "historical_lookup" | "fixture";
3989
3989
  locator?: string | undefined;
3990
3990
  }[];
@@ -3996,25 +3996,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3996
3996
  } | {
3997
3997
  kind: "correction_approved";
3998
3998
  evidence: {
3999
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4000
3999
  id: string;
4001
4000
  label: string;
4001
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4002
4002
  capture: "at_action" | "historical_lookup" | "fixture";
4003
4003
  locator?: string | undefined;
4004
4004
  }[];
4005
4005
  correctionId: string;
4006
4006
  approvedBy: {
4007
- kind: "agent" | "human";
4008
4007
  id: string;
4009
4008
  label: string;
4009
+ kind: "agent" | "human";
4010
4010
  };
4011
4011
  note?: string | undefined;
4012
4012
  } | {
4013
4013
  kind: "decision_superseded";
4014
4014
  evidence: {
4015
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4016
4015
  id: string;
4017
4016
  label: string;
4017
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4018
4018
  capture: "at_action" | "historical_lookup" | "fixture";
4019
4019
  locator?: string | undefined;
4020
4020
  }[];
@@ -4027,9 +4027,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4027
4027
  agentId: string;
4028
4028
  sessionId: string;
4029
4029
  evidence: {
4030
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4031
4030
  id: string;
4032
4031
  label: string;
4032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4033
4033
  capture: "at_action" | "historical_lookup" | "fixture";
4034
4034
  locator?: string | undefined;
4035
4035
  }[];
@@ -4041,9 +4041,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4041
4041
  agentId: string;
4042
4042
  sessionId: string;
4043
4043
  evidence: {
4044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4045
4044
  id: string;
4046
4045
  label: string;
4046
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4047
4047
  capture: "at_action" | "historical_lookup" | "fixture";
4048
4048
  locator?: string | undefined;
4049
4049
  }[];
@@ -4052,13 +4052,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4052
4052
  recallReceiptId: string;
4053
4053
  staleDecisionAbsent: boolean;
4054
4054
  } | {
4055
- kind: "mission_completed";
4056
4055
  summary: string;
4056
+ kind: "mission_completed";
4057
4057
  outcome: "failed" | "recovered" | "inconclusive";
4058
4058
  evidence: {
4059
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4060
4059
  id: string;
4061
4060
  label: string;
4061
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4062
4062
  capture: "at_action" | "historical_lookup" | "fixture";
4063
4063
  locator?: string | undefined;
4064
4064
  }[];
@@ -4068,37 +4068,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4068
4068
  objective: string;
4069
4069
  runMode: "replay" | "fixture" | "live";
4070
4070
  evidence?: {
4071
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4072
4071
  id: string;
4073
4072
  label: string;
4073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4074
4074
  capture: "at_action" | "historical_lookup" | "fixture";
4075
4075
  locator?: string | undefined;
4076
4076
  }[] | undefined;
4077
4077
  } | {
4078
+ label: string;
4079
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4078
4080
  kind: "agent_status";
4079
4081
  role: string;
4080
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4081
- label: string;
4082
4082
  agentId: string;
4083
4083
  sessionId: string;
4084
4084
  detail?: string | undefined;
4085
4085
  evidence?: {
4086
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4087
4086
  id: string;
4088
4087
  label: string;
4088
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4089
4089
  capture: "at_action" | "historical_lookup" | "fixture";
4090
4090
  locator?: string | undefined;
4091
4091
  }[] | undefined;
4092
4092
  } | {
4093
- kind: "agent_output";
4094
4093
  summary: string;
4094
+ kind: "agent_output";
4095
4095
  agentId: string;
4096
4096
  sessionId: string;
4097
4097
  outputId: string;
4098
4098
  evidence?: {
4099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4100
4099
  id: string;
4101
4100
  label: string;
4101
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4102
4102
  capture: "at_action" | "historical_lookup" | "fixture";
4103
4103
  locator?: string | undefined;
4104
4104
  }[] | undefined;
@@ -4111,37 +4111,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4111
4111
  decisionId: string;
4112
4112
  confidence?: number | undefined;
4113
4113
  evidence?: {
4114
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4115
4114
  id: string;
4116
4115
  label: string;
4116
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4117
4117
  capture: "at_action" | "historical_lookup" | "fixture";
4118
4118
  locator?: string | undefined;
4119
4119
  }[] | undefined;
4120
4120
  } | {
4121
- kind: "conflict_detected";
4122
4121
  summary: string;
4122
+ kind: "conflict_detected";
4123
4123
  conflictId: string;
4124
4124
  decisionIds: string[];
4125
4125
  agentIds: string[];
4126
4126
  evidence?: {
4127
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4128
4127
  id: string;
4129
4128
  label: string;
4129
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4130
4130
  capture: "at_action" | "historical_lookup" | "fixture";
4131
4131
  locator?: string | undefined;
4132
4132
  }[] | undefined;
4133
4133
  } | {
4134
- kind: "test_result";
4135
4134
  summary: string;
4136
- command: string;
4137
4135
  status: "error" | "failed" | "passed";
4136
+ kind: "test_result";
4137
+ command: string;
4138
4138
  decisionId: string;
4139
4139
  testId: string;
4140
4140
  durationMs?: number | undefined;
4141
4141
  evidence?: {
4142
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4143
4142
  id: string;
4144
4143
  label: string;
4144
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4145
4145
  capture: "at_action" | "historical_lookup" | "fixture";
4146
4146
  locator?: string | undefined;
4147
4147
  }[] | undefined;
@@ -4156,9 +4156,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4156
4156
  supersedesDecisionIds: string[];
4157
4157
  proposedBy: string;
4158
4158
  evidence?: {
4159
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4160
4159
  id: string;
4161
4160
  label: string;
4161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4162
4162
  capture: "at_action" | "historical_lookup" | "fixture";
4163
4163
  locator?: string | undefined;
4164
4164
  }[] | undefined;
@@ -4166,15 +4166,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4166
4166
  kind: "correction_approved";
4167
4167
  correctionId: string;
4168
4168
  approvedBy: {
4169
- kind: "agent" | "human";
4170
4169
  id: string;
4171
4170
  label: string;
4171
+ kind: "agent" | "human";
4172
4172
  };
4173
4173
  note?: string | undefined;
4174
4174
  evidence?: {
4175
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4176
4175
  id: string;
4177
4176
  label: string;
4177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4178
4178
  capture: "at_action" | "historical_lookup" | "fixture";
4179
4179
  locator?: string | undefined;
4180
4180
  }[] | undefined;
@@ -4184,9 +4184,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4184
4184
  correctionId: string;
4185
4185
  replacementDecisionId: string;
4186
4186
  evidence?: {
4187
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4188
4187
  id: string;
4189
4188
  label: string;
4189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4190
4190
  capture: "at_action" | "historical_lookup" | "fixture";
4191
4191
  locator?: string | undefined;
4192
4192
  }[] | undefined;
@@ -4199,9 +4199,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4199
4199
  recallReceiptId: string;
4200
4200
  capturedAtAction: boolean;
4201
4201
  evidence?: {
4202
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4203
4202
  id: string;
4204
4203
  label: string;
4204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4205
4205
  capture: "at_action" | "historical_lookup" | "fixture";
4206
4206
  locator?: string | undefined;
4207
4207
  }[] | undefined;
@@ -4214,63 +4214,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4214
4214
  recallReceiptId: string;
4215
4215
  staleDecisionAbsent: boolean;
4216
4216
  evidence?: {
4217
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4218
4217
  id: string;
4219
4218
  label: string;
4219
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4220
4220
  capture: "at_action" | "historical_lookup" | "fixture";
4221
4221
  locator?: string | undefined;
4222
4222
  }[] | undefined;
4223
4223
  } | {
4224
- kind: "mission_completed";
4225
4224
  summary: string;
4225
+ kind: "mission_completed";
4226
4226
  outcome: "failed" | "recovered" | "inconclusive";
4227
4227
  evidence?: {
4228
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4229
4228
  id: string;
4230
4229
  label: string;
4230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4231
4231
  capture: "at_action" | "historical_lookup" | "fixture";
4232
4232
  locator?: string | undefined;
4233
4233
  }[] | undefined;
4234
4234
  }>;
4235
4235
  }, "strict", z.ZodTypeAny, {
4236
- schemaVersion: "1";
4236
+ namespace: string;
4237
4237
  recordedAt: string;
4238
+ schemaVersion: "1";
4238
4239
  payload: {
4239
4240
  kind: "mission_started";
4240
4241
  title: string;
4241
4242
  evidence: {
4242
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4243
4243
  id: string;
4244
4244
  label: string;
4245
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4245
4246
  capture: "at_action" | "historical_lookup" | "fixture";
4246
4247
  locator?: string | undefined;
4247
4248
  }[];
4248
4249
  objective: string;
4249
4250
  runMode: "replay" | "fixture" | "live";
4250
4251
  } | {
4252
+ label: string;
4253
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4251
4254
  kind: "agent_status";
4252
4255
  role: string;
4253
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4254
- label: string;
4255
4256
  agentId: string;
4256
4257
  sessionId: string;
4257
4258
  evidence: {
4258
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4259
4259
  id: string;
4260
4260
  label: string;
4261
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4261
4262
  capture: "at_action" | "historical_lookup" | "fixture";
4262
4263
  locator?: string | undefined;
4263
4264
  }[];
4264
4265
  detail?: string | undefined;
4265
4266
  } | {
4266
- kind: "agent_output";
4267
4267
  summary: string;
4268
+ kind: "agent_output";
4268
4269
  agentId: string;
4269
4270
  sessionId: string;
4270
4271
  evidence: {
4271
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4272
4272
  id: string;
4273
4273
  label: string;
4274
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4274
4275
  capture: "at_action" | "historical_lookup" | "fixture";
4275
4276
  locator?: string | undefined;
4276
4277
  }[];
@@ -4281,9 +4282,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4281
4282
  statement: string;
4282
4283
  sessionId: string;
4283
4284
  evidence: {
4284
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4285
4285
  id: string;
4286
4286
  label: string;
4287
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4287
4288
  capture: "at_action" | "historical_lookup" | "fixture";
4288
4289
  locator?: string | undefined;
4289
4290
  }[];
@@ -4291,12 +4292,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4291
4292
  decisionId: string;
4292
4293
  confidence?: number | undefined;
4293
4294
  } | {
4294
- kind: "conflict_detected";
4295
4295
  summary: string;
4296
+ kind: "conflict_detected";
4296
4297
  evidence: {
4297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4298
4298
  id: string;
4299
4299
  label: string;
4300
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4300
4301
  capture: "at_action" | "historical_lookup" | "fixture";
4301
4302
  locator?: string | undefined;
4302
4303
  }[];
@@ -4304,14 +4305,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4304
4305
  decisionIds: string[];
4305
4306
  agentIds: string[];
4306
4307
  } | {
4307
- kind: "test_result";
4308
4308
  summary: string;
4309
- command: string;
4310
4309
  status: "error" | "failed" | "passed";
4310
+ kind: "test_result";
4311
+ command: string;
4311
4312
  evidence: {
4312
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4313
4313
  id: string;
4314
4314
  label: string;
4315
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4315
4316
  capture: "at_action" | "historical_lookup" | "fixture";
4316
4317
  locator?: string | undefined;
4317
4318
  }[];
@@ -4324,9 +4325,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4324
4325
  rationale: string;
4325
4326
  statement: string;
4326
4327
  evidence: {
4327
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4328
4328
  id: string;
4329
4329
  label: string;
4330
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4330
4331
  capture: "at_action" | "historical_lookup" | "fixture";
4331
4332
  locator?: string | undefined;
4332
4333
  }[];
@@ -4338,25 +4339,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4338
4339
  } | {
4339
4340
  kind: "correction_approved";
4340
4341
  evidence: {
4341
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4342
4342
  id: string;
4343
4343
  label: string;
4344
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4344
4345
  capture: "at_action" | "historical_lookup" | "fixture";
4345
4346
  locator?: string | undefined;
4346
4347
  }[];
4347
4348
  correctionId: string;
4348
4349
  approvedBy: {
4349
- kind: "agent" | "human";
4350
4350
  id: string;
4351
4351
  label: string;
4352
+ kind: "agent" | "human";
4352
4353
  };
4353
4354
  note?: string | undefined;
4354
4355
  } | {
4355
4356
  kind: "decision_superseded";
4356
4357
  evidence: {
4357
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4358
4358
  id: string;
4359
4359
  label: string;
4360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4360
4361
  capture: "at_action" | "historical_lookup" | "fixture";
4361
4362
  locator?: string | undefined;
4362
4363
  }[];
@@ -4369,9 +4370,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4369
4370
  agentId: string;
4370
4371
  sessionId: string;
4371
4372
  evidence: {
4372
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4373
4373
  id: string;
4374
4374
  label: string;
4375
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4375
4376
  capture: "at_action" | "historical_lookup" | "fixture";
4376
4377
  locator?: string | undefined;
4377
4378
  }[];
@@ -4383,9 +4384,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4383
4384
  agentId: string;
4384
4385
  sessionId: string;
4385
4386
  evidence: {
4386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4387
4387
  id: string;
4388
4388
  label: string;
4389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4389
4390
  capture: "at_action" | "historical_lookup" | "fixture";
4390
4391
  locator?: string | undefined;
4391
4392
  }[];
@@ -4394,63 +4395,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4394
4395
  recallReceiptId: string;
4395
4396
  staleDecisionAbsent: boolean;
4396
4397
  } | {
4397
- kind: "mission_completed";
4398
4398
  summary: string;
4399
+ kind: "mission_completed";
4399
4400
  outcome: "failed" | "recovered" | "inconclusive";
4400
4401
  evidence: {
4401
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4402
4402
  id: string;
4403
4403
  label: string;
4404
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4404
4405
  capture: "at_action" | "historical_lookup" | "fixture";
4405
4406
  locator?: string | undefined;
4406
4407
  }[];
4407
4408
  };
4408
- namespace: string;
4409
4409
  eventId: string;
4410
4410
  occurredAt: string;
4411
4411
  missionId: string;
4412
4412
  authenticatedPrincipal?: string | undefined;
4413
4413
  idempotencyKey?: string | undefined;
4414
4414
  }, {
4415
- schemaVersion: "1";
4415
+ namespace: string;
4416
4416
  recordedAt: string;
4417
+ schemaVersion: "1";
4417
4418
  payload: {
4418
4419
  kind: "mission_started";
4419
4420
  title: string;
4420
4421
  objective: string;
4421
4422
  runMode: "replay" | "fixture" | "live";
4422
4423
  evidence?: {
4423
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4424
4424
  id: string;
4425
4425
  label: string;
4426
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4426
4427
  capture: "at_action" | "historical_lookup" | "fixture";
4427
4428
  locator?: string | undefined;
4428
4429
  }[] | undefined;
4429
4430
  } | {
4431
+ label: string;
4432
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4430
4433
  kind: "agent_status";
4431
4434
  role: string;
4432
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4433
- label: string;
4434
4435
  agentId: string;
4435
4436
  sessionId: string;
4436
4437
  detail?: string | undefined;
4437
4438
  evidence?: {
4438
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4439
4439
  id: string;
4440
4440
  label: string;
4441
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4441
4442
  capture: "at_action" | "historical_lookup" | "fixture";
4442
4443
  locator?: string | undefined;
4443
4444
  }[] | undefined;
4444
4445
  } | {
4445
- kind: "agent_output";
4446
4446
  summary: string;
4447
+ kind: "agent_output";
4447
4448
  agentId: string;
4448
4449
  sessionId: string;
4449
4450
  outputId: string;
4450
4451
  evidence?: {
4451
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4452
4452
  id: string;
4453
4453
  label: string;
4454
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4454
4455
  capture: "at_action" | "historical_lookup" | "fixture";
4455
4456
  locator?: string | undefined;
4456
4457
  }[] | undefined;
@@ -4463,37 +4464,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4463
4464
  decisionId: string;
4464
4465
  confidence?: number | undefined;
4465
4466
  evidence?: {
4466
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4467
4467
  id: string;
4468
4468
  label: string;
4469
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4469
4470
  capture: "at_action" | "historical_lookup" | "fixture";
4470
4471
  locator?: string | undefined;
4471
4472
  }[] | undefined;
4472
4473
  } | {
4473
- kind: "conflict_detected";
4474
4474
  summary: string;
4475
+ kind: "conflict_detected";
4475
4476
  conflictId: string;
4476
4477
  decisionIds: string[];
4477
4478
  agentIds: string[];
4478
4479
  evidence?: {
4479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4480
4480
  id: string;
4481
4481
  label: string;
4482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4482
4483
  capture: "at_action" | "historical_lookup" | "fixture";
4483
4484
  locator?: string | undefined;
4484
4485
  }[] | undefined;
4485
4486
  } | {
4486
- kind: "test_result";
4487
4487
  summary: string;
4488
- command: string;
4489
4488
  status: "error" | "failed" | "passed";
4489
+ kind: "test_result";
4490
+ command: string;
4490
4491
  decisionId: string;
4491
4492
  testId: string;
4492
4493
  durationMs?: number | undefined;
4493
4494
  evidence?: {
4494
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4495
4495
  id: string;
4496
4496
  label: string;
4497
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4497
4498
  capture: "at_action" | "historical_lookup" | "fixture";
4498
4499
  locator?: string | undefined;
4499
4500
  }[] | undefined;
@@ -4508,9 +4509,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4508
4509
  supersedesDecisionIds: string[];
4509
4510
  proposedBy: string;
4510
4511
  evidence?: {
4511
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4512
4512
  id: string;
4513
4513
  label: string;
4514
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4514
4515
  capture: "at_action" | "historical_lookup" | "fixture";
4515
4516
  locator?: string | undefined;
4516
4517
  }[] | undefined;
@@ -4518,15 +4519,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4518
4519
  kind: "correction_approved";
4519
4520
  correctionId: string;
4520
4521
  approvedBy: {
4521
- kind: "agent" | "human";
4522
4522
  id: string;
4523
4523
  label: string;
4524
+ kind: "agent" | "human";
4524
4525
  };
4525
4526
  note?: string | undefined;
4526
4527
  evidence?: {
4527
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4528
4528
  id: string;
4529
4529
  label: string;
4530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4530
4531
  capture: "at_action" | "historical_lookup" | "fixture";
4531
4532
  locator?: string | undefined;
4532
4533
  }[] | undefined;
@@ -4536,9 +4537,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4536
4537
  correctionId: string;
4537
4538
  replacementDecisionId: string;
4538
4539
  evidence?: {
4539
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4540
4540
  id: string;
4541
4541
  label: string;
4542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4542
4543
  capture: "at_action" | "historical_lookup" | "fixture";
4543
4544
  locator?: string | undefined;
4544
4545
  }[] | undefined;
@@ -4551,9 +4552,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4551
4552
  recallReceiptId: string;
4552
4553
  capturedAtAction: boolean;
4553
4554
  evidence?: {
4554
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4555
4555
  id: string;
4556
4556
  label: string;
4557
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4557
4558
  capture: "at_action" | "historical_lookup" | "fixture";
4558
4559
  locator?: string | undefined;
4559
4560
  }[] | undefined;
@@ -4566,25 +4567,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4566
4567
  recallReceiptId: string;
4567
4568
  staleDecisionAbsent: boolean;
4568
4569
  evidence?: {
4569
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4570
4570
  id: string;
4571
4571
  label: string;
4572
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4572
4573
  capture: "at_action" | "historical_lookup" | "fixture";
4573
4574
  locator?: string | undefined;
4574
4575
  }[] | undefined;
4575
4576
  } | {
4576
- kind: "mission_completed";
4577
4577
  summary: string;
4578
+ kind: "mission_completed";
4578
4579
  outcome: "failed" | "recovered" | "inconclusive";
4579
4580
  evidence?: {
4580
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4581
4581
  id: string;
4582
4582
  label: string;
4583
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4583
4584
  capture: "at_action" | "historical_lookup" | "fixture";
4584
4585
  locator?: string | undefined;
4585
4586
  }[] | undefined;
4586
4587
  };
4587
- namespace: string;
4588
4588
  eventId: string;
4589
4589
  occurredAt: string;
4590
4590
  missionId: string;