@remnic/core 9.63.10 → 9.63.12

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 (96) hide show
  1. package/dist/access-admin-ops-surface.d.ts +2 -1
  2. package/dist/access-admin-ops-surface.js +1 -1
  3. package/dist/access-authorization-probe.d.ts +2 -1
  4. package/dist/access-authorization-probe.js +2 -2
  5. package/dist/access-boundary.d.ts +2 -1
  6. package/dist/access-boundary.js +1 -1
  7. package/dist/access-cli.js +14 -14
  8. package/dist/access-extraction-force-flush.d.ts +2 -1
  9. package/dist/access-extraction-force-flush.js +1 -1
  10. package/dist/access-http-lcm-compaction.d.ts +1 -1
  11. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  12. package/dist/access-http-offline-stream.d.ts +2 -1
  13. package/dist/access-http-query.js +1 -1
  14. package/dist/access-http.d.ts +3 -2
  15. package/dist/access-http.js +11 -11
  16. package/dist/access-identity-continuity-surface.js +1 -1
  17. package/dist/access-lcm-surface.d.ts +2 -1
  18. package/dist/access-lcm-surface.js +1 -1
  19. package/dist/access-mcp.d.ts +2 -1
  20. package/dist/access-mcp.js +7 -7
  21. package/dist/access-namespace-preflight.js +1 -1
  22. package/dist/access-observe-write-surface.d.ts +2 -1
  23. package/dist/access-observe-write-surface.js +1 -1
  24. package/dist/access-operations-batch.js +3 -2
  25. package/dist/access-operations.d.ts +4 -4
  26. package/dist/access-operations.js +6 -6
  27. package/dist/access-recall-concurrency.d.ts +2 -1
  28. package/dist/access-recall-concurrency.js +1 -1
  29. package/dist/access-recall-response.d.ts +2 -1
  30. package/dist/access-recall-response.js +1 -1
  31. package/dist/access-recall-surface.d.ts +2 -1
  32. package/dist/access-recall-surface.js +1 -1
  33. package/dist/access-schema.d.ts +92 -92
  34. package/dist/access-schema.js +1 -1
  35. package/dist/{access-service-C0AE0jLs.d.ts → access-service-U6jiERic.d.ts} +80 -155
  36. package/dist/access-service-helpers.d.ts +2 -1
  37. package/dist/access-service.d.ts +2 -1
  38. package/dist/access-service.js +1 -1
  39. package/dist/access-surface-catalog.d.ts +2 -1
  40. package/dist/access-surface-catalog.js +3 -3
  41. package/dist/{chunk-R7FQQQ23.js → chunk-36XS2ASP.js} +2 -2
  42. package/dist/{chunk-EPRBTGLM.js → chunk-57WMVU4D.js} +50 -41
  43. package/dist/chunk-57WMVU4D.js.map +1 -0
  44. package/dist/{chunk-34E5NBQI.js → chunk-BYFKJXIR.js} +2 -2
  45. package/dist/{chunk-LQNBQEMC.js → chunk-DIJCMHUE.js} +2 -2
  46. package/dist/{chunk-MNI7KB4Q.js → chunk-HP6B732E.js} +4 -4
  47. package/dist/{chunk-XFJUPJD7.js → chunk-IRXMJLTW.js} +11 -2
  48. package/dist/{chunk-XFJUPJD7.js.map → chunk-IRXMJLTW.js.map} +1 -1
  49. package/dist/{chunk-SAWGVTCE.js → chunk-IUSV4XJC.js} +2 -2
  50. package/dist/{chunk-K477BTF4.js → chunk-JASFZQ76.js} +4 -4
  51. package/dist/{chunk-SILX74CP.js → chunk-NWHKHBL4.js} +43 -63
  52. package/dist/chunk-NWHKHBL4.js.map +1 -0
  53. package/dist/{chunk-JJ45UTNT.js → chunk-R5AWIILH.js} +22 -27
  54. package/dist/chunk-R5AWIILH.js.map +1 -0
  55. package/dist/{chunk-IOE75NA4.js → chunk-V2YH7T6T.js} +2 -2
  56. package/dist/{chunk-H5VDBZLZ.js → chunk-VCEE4YNA.js} +2 -2
  57. package/dist/{chunk-U5XC6DIS.js → chunk-XREXYQ5U.js} +4 -4
  58. package/dist/{chunk-MIM7QT6H.js → chunk-YI25J2JD.js} +1 -1
  59. package/dist/chunk-YI25J2JD.js.map +1 -0
  60. package/dist/{cli-xoJTOdMQ.d.ts → cli-BsaYHAH9.d.ts} +1 -1
  61. package/dist/cli.d.ts +3 -2
  62. package/dist/cli.js +12 -12
  63. package/dist/external-wiki-access.d.ts +2 -1
  64. package/dist/external-wiki-access.js +2 -2
  65. package/dist/external-wiki-mcp-tools.d.ts +2 -1
  66. package/dist/index.d.ts +680 -680
  67. package/dist/index.js +21 -21
  68. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  69. package/dist/orchestrator.js +14 -14
  70. package/dist/{public-http-DR3sHfwk.d.ts → public-http-jMlmLny4.d.ts} +1 -1
  71. package/dist/schemas.d.ts +108 -108
  72. package/dist/shared-context/manager.d.ts +8 -8
  73. package/dist/support-passport/index.d.ts +5 -4
  74. package/dist/support-passport/index.js +4 -4
  75. package/dist/transfer/types.d.ts +66 -66
  76. package/package.json +2 -2
  77. package/src/access-http.ts +47 -60
  78. package/src/access-mcp.test.ts +6 -10
  79. package/src/access-mcp.ts +21 -22
  80. package/src/access-operations-batch.ts +66 -18
  81. package/src/access-schema.ts +12 -1
  82. package/src/access-service.ts +18 -91
  83. package/src/recall-disclosure.test.ts +1 -1
  84. package/dist/chunk-EPRBTGLM.js.map +0 -1
  85. package/dist/chunk-JJ45UTNT.js.map +0 -1
  86. package/dist/chunk-MIM7QT6H.js.map +0 -1
  87. package/dist/chunk-SILX74CP.js.map +0 -1
  88. /package/dist/{chunk-R7FQQQ23.js.map → chunk-36XS2ASP.js.map} +0 -0
  89. /package/dist/{chunk-34E5NBQI.js.map → chunk-BYFKJXIR.js.map} +0 -0
  90. /package/dist/{chunk-LQNBQEMC.js.map → chunk-DIJCMHUE.js.map} +0 -0
  91. /package/dist/{chunk-MNI7KB4Q.js.map → chunk-HP6B732E.js.map} +0 -0
  92. /package/dist/{chunk-SAWGVTCE.js.map → chunk-IUSV4XJC.js.map} +0 -0
  93. /package/dist/{chunk-K477BTF4.js.map → chunk-JASFZQ76.js.map} +0 -0
  94. /package/dist/{chunk-IOE75NA4.js.map → chunk-V2YH7T6T.js.map} +0 -0
  95. /package/dist/{chunk-H5VDBZLZ.js.map → chunk-VCEE4YNA.js.map} +0 -0
  96. /package/dist/{chunk-U5XC6DIS.js.map → chunk-XREXYQ5U.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -31,8 +31,8 @@ export { bA as ActivityExtractionMode, aK as ActivitySourceConfig, w as AgentAcc
31
31
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
32
32
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
33
33
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
34
- import { f as EngramAccessService } from './access-service-C0AE0jLs.js';
35
- export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Y as SupportPassportAnswerOutput, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, $ as SupportPassportCard, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a3 as SupportPassportCardMutationInput, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a6 as SupportPassportCardServiceDependencies, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, aa as SupportPassportCreateGrantInput, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, af as SupportPassportCreatedGrant, ag as SupportPassportCreatedGrantSchema, ah as SupportPassportDraftCard, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, ap as SupportPassportGrantCardRef, aq as SupportPassportGrantCardRefSchema, ar as SupportPassportGrantState, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, av as SupportPassportManualDraftInput, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, az as SupportPassportModelAdapter, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aD as SupportPassportModelAuditSink, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aK as SupportPassportModelRoute, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aR as SupportPassportOwnerGrant, aS as SupportPassportOwnerGrantSchema, aT as SupportPassportOwnerScope, aU as SupportPassportPublicCardSchema, aV as SupportPassportPublicGuide, aW as SupportPassportPublicGuideSchema, aX as SupportPassportReplaceCardInput, aY as SupportPassportReplaceCardInputSchema, aZ as SupportPassportRevokeGrantInput, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b3 as computeProcedureStats, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b6 as formatProcedureStatsText, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from './access-service-C0AE0jLs.js';
34
+ import { f as EngramAccessService } from './access-service-U6jiERic.js';
35
+ export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, S as SUPPORT_PASSPORT_CARD_CATEGORIES, N as SUPPORT_PASSPORT_CARD_STATUSES, O as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, Q as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, R as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, T as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, U as SupportPassportAccessSurface, V as SupportPassportAccessSurfaceDependencies, W as SupportPassportAnswerModelInput, X as SupportPassportAnswerModelInputSchema, Y as SupportPassportAnswerOutput, Z as SupportPassportAnswerOutputSchema, _ as SupportPassportAnswerResult, $ as SupportPassportCard, a0 as SupportPassportCardCategory, a1 as SupportPassportCardCategorySchema, a2 as SupportPassportCardListSchema, a3 as SupportPassportCardMutationInput, a4 as SupportPassportCardMutationInputSchema, a5 as SupportPassportCardSchema, a6 as SupportPassportCardServiceDependencies, a7 as SupportPassportCardStatus, a8 as SupportPassportCardStatusSchema, a9 as SupportPassportCardTitleSchema, aa as SupportPassportCreateGrantInput, ab as SupportPassportCreateGrantInputSchema, ac as SupportPassportCreateGrantRequest, ad as SupportPassportCreateGrantRequestSchema, ae as SupportPassportCreateGrantResult, af as SupportPassportCreatedGrant, ag as SupportPassportCreatedGrantSchema, ah as SupportPassportDraftCard, ai as SupportPassportDraftCardSchema, aj as SupportPassportDraftModelInput, ak as SupportPassportDraftModelInputSchema, al as SupportPassportDraftOutputSchema, am as SupportPassportDraftResult, an as SupportPassportError, ao as SupportPassportErrorCode, ap as SupportPassportGrantCardRef, aq as SupportPassportGrantCardRefSchema, ar as SupportPassportGrantState, as as SupportPassportGrantStateSchema, at as SupportPassportListCardsInputSchema, au as SupportPassportListGrantsInputSchema, av as SupportPassportManualDraftInput, aw as SupportPassportManualDraftInputSchema, ax as SupportPassportMemoryIdSchema, ay as SupportPassportMemoryPreview, az as SupportPassportModelAdapter, aA as SupportPassportModelAdapterOptions, aB as SupportPassportModelAuditRecord, aC as SupportPassportModelAuditRecordSchema, aD as SupportPassportModelAuditSink, aE as SupportPassportModelAuditStore, aF as SupportPassportModelCallError, aG as SupportPassportModelClients, aH as SupportPassportModelFailureMetadata, aI as SupportPassportModelMessage, aJ as SupportPassportModelResultMetadata, aK as SupportPassportModelRoute, aL as SupportPassportModelRouteKind, aM as SupportPassportModelRouteResult, aN as SupportPassportModelUsage, aO as SupportPassportNamespaceSchema, aP as SupportPassportOwnerCreateGrantRequest, aQ as SupportPassportOwnerCreateGrantRequestSchema, aR as SupportPassportOwnerGrant, aS as SupportPassportOwnerGrantSchema, aT as SupportPassportOwnerScope, aU as SupportPassportPublicCardSchema, aV as SupportPassportPublicGuide, aW as SupportPassportPublicGuideSchema, aX as SupportPassportReplaceCardInput, aY as SupportPassportReplaceCardInputSchema, aZ as SupportPassportRevokeGrantInput, a_ as SupportPassportRevokeGrantInputSchema, a$ as SupportPassportRevokeGrantResult, b0 as SupportPassportSourceMemoryIdSchema, b1 as acceptsSupportPassportModelResponse, b2 as buildSupportPassportDirectGatewayConfig, b3 as computeProcedureStats, b4 as computeSupportPassportCardRevision, b5 as createSupportPassportModelAdapter, b6 as formatProcedureStatsText, b7 as hashSupportPassportAuditValues, b8 as resolveSupportPassportModelRoutePlan } from './access-service-U6jiERic.js';
36
36
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
37
37
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
38
38
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -50,13 +50,13 @@ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatal
50
50
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
51
51
  export { storagePathHash } from './storage-paths.js';
52
52
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
53
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-xoJTOdMQ.js';
53
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-BsaYHAH9.js';
54
54
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
55
55
  export { EngramMcpServer } from './access-mcp.js';
56
56
  import { BoundOperation } from './access-boundary.js';
57
57
  export { OPERATION_NAMES, OperationName } from './access-boundary.js';
58
58
  export { CreateStoredGrantInput, DEFAULT_SUPPORT_PASSPORT_CONFIG, SUPPORT_PASSPORT_ATTRIBUTE_KEYS, SUPPORT_PASSPORT_AUDIT_TAG, SUPPORT_PASSPORT_CARD_TAG, SUPPORT_PASSPORT_MODEL_ACK_PATH, SUPPORT_PASSPORT_MODEL_JOB_PATH, SUPPORT_PASSPORT_MODEL_RESULT_PATH, StoredSupportPassportCard, SupportPassportCardService, SupportPassportDraftService, SupportPassportDraftServiceDependencies, SupportPassportGrantMutationHooks, SupportPassportGrantService, SupportPassportGrantServiceDependencies, SupportPassportGrantStore, SupportPassportGrantStoreOptions, SupportPassportModelBridge, SupportPassportModelBridgeOptions, SupportPassportModelJob, SupportPassportQuestionService, SupportPassportQuestionServiceDependencies, activeSupportPassportReplacementPredecessorIds, computeSupportPassportOwnerKey, computeSupportPassportSourceRevision, createSupportPassportPrivateFileExclusion, decodeSupportPassportNamespaceAttributes, encodeSupportPassportNamespaceAttributes, excludeSupportPassportPrivateMemories, hasLiveSupportPassportCard, isSupportPassportPrivateMemory, isSupportPassportSourceEligible, notifySupportPassportCommitted, parseSupportPassportConfig, parseSupportPassportModelJob, projectSupportPassportCard, syncDirectoryForDurability } from './support-passport/index.js';
59
- export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-DR3sHfwk.js';
59
+ export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-jMlmLny4.js';
60
60
  import { z } from 'zod';
61
61
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
62
62
  export { CuriosityQuestion, MEMORY_CONTEXT_HEADER, MEMORY_CONTEXT_INSTRUCTION, RECALL_CONTEXT_SEPARATOR, RecallAuthorityRenderOptions, RecallContextComposition, RenderMemoryContextPromptInput, RenderedMemoryContextPrompt, boundRecallContextComposition, composeRecallContext, contextBudgetForFooter, formatCuriosityFooter, renderAuthorityBoundContent, renderMemoryContextPrompt, selectCuriosityQuestion } from './recall-context-composition.js';
@@ -952,15 +952,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
952
952
  locator: z.ZodOptional<z.ZodString>;
953
953
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
954
954
  }, "strict", z.ZodTypeAny, {
955
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
956
- label: string;
957
955
  id: string;
956
+ label: string;
957
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
958
958
  capture: "at_action" | "historical_lookup" | "fixture";
959
959
  locator?: string | undefined;
960
960
  }, {
961
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
962
- label: string;
963
961
  id: string;
962
+ label: string;
963
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
964
964
  capture: "at_action" | "historical_lookup" | "fixture";
965
965
  locator?: string | undefined;
966
966
  }>;
@@ -977,15 +977,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
977
977
  locator: z.ZodOptional<z.ZodString>;
978
978
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
979
979
  }, "strict", z.ZodTypeAny, {
980
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
981
- label: string;
982
980
  id: string;
981
+ label: string;
982
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
983
983
  capture: "at_action" | "historical_lookup" | "fixture";
984
984
  locator?: string | undefined;
985
985
  }, {
986
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
987
- label: string;
988
986
  id: string;
987
+ label: string;
988
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
989
989
  capture: "at_action" | "historical_lookup" | "fixture";
990
990
  locator?: string | undefined;
991
991
  }>, "many">>;
@@ -993,9 +993,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
993
993
  kind: "mission_started";
994
994
  title: string;
995
995
  evidence: {
996
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
997
- label: string;
998
996
  id: string;
997
+ label: string;
998
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
999
999
  capture: "at_action" | "historical_lookup" | "fixture";
1000
1000
  locator?: string | undefined;
1001
1001
  }[];
@@ -1007,9 +1007,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1007
1007
  objective: string;
1008
1008
  runMode: "replay" | "fixture" | "live";
1009
1009
  evidence?: {
1010
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1011
- label: string;
1012
1010
  id: string;
1011
+ label: string;
1012
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1013
1013
  capture: "at_action" | "historical_lookup" | "fixture";
1014
1014
  locator?: string | undefined;
1015
1015
  }[] | undefined;
@@ -1025,15 +1025,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1025
1025
  locator: z.ZodOptional<z.ZodString>;
1026
1026
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1027
1027
  }, "strict", z.ZodTypeAny, {
1028
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1029
- label: string;
1030
1028
  id: string;
1029
+ label: string;
1030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1031
1031
  capture: "at_action" | "historical_lookup" | "fixture";
1032
1032
  locator?: string | undefined;
1033
1033
  }, {
1034
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1035
- label: string;
1036
1034
  id: string;
1035
+ label: string;
1036
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1037
1037
  capture: "at_action" | "historical_lookup" | "fixture";
1038
1038
  locator?: string | undefined;
1039
1039
  }>, "many">>;
@@ -1041,32 +1041,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1041
1041
  sessionId: z.ZodString;
1042
1042
  kind: z.ZodLiteral<"agent_status">;
1043
1043
  }, "strict", z.ZodTypeAny, {
1044
- kind: "agent_status";
1045
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1046
1044
  label: string;
1045
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1046
+ kind: "agent_status";
1047
1047
  role: string;
1048
1048
  agentId: string;
1049
1049
  sessionId: string;
1050
1050
  evidence: {
1051
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1052
- label: string;
1053
1051
  id: string;
1052
+ label: string;
1053
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1054
1054
  capture: "at_action" | "historical_lookup" | "fixture";
1055
1055
  locator?: string | undefined;
1056
1056
  }[];
1057
1057
  detail?: string | undefined;
1058
1058
  }, {
1059
- kind: "agent_status";
1060
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1061
1059
  label: string;
1060
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1061
+ kind: "agent_status";
1062
1062
  role: string;
1063
1063
  agentId: string;
1064
1064
  sessionId: string;
1065
1065
  detail?: string | undefined;
1066
1066
  evidence?: {
1067
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1068
- label: string;
1069
1067
  id: string;
1068
+ label: string;
1069
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1070
1070
  capture: "at_action" | "historical_lookup" | "fixture";
1071
1071
  locator?: string | undefined;
1072
1072
  }[] | undefined;
@@ -1080,15 +1080,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1080
1080
  locator: z.ZodOptional<z.ZodString>;
1081
1081
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1082
1082
  }, "strict", z.ZodTypeAny, {
1083
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1084
- label: string;
1085
1083
  id: string;
1084
+ label: string;
1085
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1086
1086
  capture: "at_action" | "historical_lookup" | "fixture";
1087
1087
  locator?: string | undefined;
1088
1088
  }, {
1089
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1090
- label: string;
1091
1089
  id: string;
1090
+ label: string;
1091
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1092
1092
  capture: "at_action" | "historical_lookup" | "fixture";
1093
1093
  locator?: string | undefined;
1094
1094
  }>, "many">>;
@@ -1096,28 +1096,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1096
1096
  sessionId: z.ZodString;
1097
1097
  kind: z.ZodLiteral<"agent_output">;
1098
1098
  }, "strict", z.ZodTypeAny, {
1099
- kind: "agent_output";
1100
1099
  summary: string;
1100
+ kind: "agent_output";
1101
1101
  agentId: string;
1102
1102
  sessionId: string;
1103
1103
  evidence: {
1104
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1105
- label: string;
1106
1104
  id: string;
1105
+ label: string;
1106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1107
1107
  capture: "at_action" | "historical_lookup" | "fixture";
1108
1108
  locator?: string | undefined;
1109
1109
  }[];
1110
1110
  outputId: string;
1111
1111
  }, {
1112
- kind: "agent_output";
1113
1112
  summary: string;
1113
+ kind: "agent_output";
1114
1114
  agentId: string;
1115
1115
  sessionId: string;
1116
1116
  outputId: string;
1117
1117
  evidence?: {
1118
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1119
- label: string;
1120
1118
  id: string;
1119
+ label: string;
1120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1121
1121
  capture: "at_action" | "historical_lookup" | "fixture";
1122
1122
  locator?: string | undefined;
1123
1123
  }[] | undefined;
@@ -1133,15 +1133,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1133
1133
  locator: z.ZodOptional<z.ZodString>;
1134
1134
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1135
1135
  }, "strict", z.ZodTypeAny, {
1136
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1137
- label: string;
1138
1136
  id: string;
1137
+ label: string;
1138
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1139
1139
  capture: "at_action" | "historical_lookup" | "fixture";
1140
1140
  locator?: string | undefined;
1141
1141
  }, {
1142
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1143
- label: string;
1144
1142
  id: string;
1143
+ label: string;
1144
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1145
1145
  capture: "at_action" | "historical_lookup" | "fixture";
1146
1146
  locator?: string | undefined;
1147
1147
  }>, "many">>;
@@ -1154,9 +1154,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1154
1154
  statement: string;
1155
1155
  sessionId: string;
1156
1156
  evidence: {
1157
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1158
- label: string;
1159
1157
  id: string;
1158
+ label: string;
1159
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1160
1160
  capture: "at_action" | "historical_lookup" | "fixture";
1161
1161
  locator?: string | undefined;
1162
1162
  }[];
@@ -1172,9 +1172,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1172
1172
  decisionId: string;
1173
1173
  confidence?: number | undefined;
1174
1174
  evidence?: {
1175
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1176
- label: string;
1177
1175
  id: string;
1176
+ label: string;
1177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1178
1178
  capture: "at_action" | "historical_lookup" | "fixture";
1179
1179
  locator?: string | undefined;
1180
1180
  }[] | undefined;
@@ -1191,25 +1191,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1191
1191
  locator: z.ZodOptional<z.ZodString>;
1192
1192
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1193
1193
  }, "strict", z.ZodTypeAny, {
1194
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1195
- label: string;
1196
1194
  id: string;
1195
+ label: string;
1196
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1197
1197
  capture: "at_action" | "historical_lookup" | "fixture";
1198
1198
  locator?: string | undefined;
1199
1199
  }, {
1200
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1201
- label: string;
1202
1200
  id: string;
1201
+ label: string;
1202
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1203
1203
  capture: "at_action" | "historical_lookup" | "fixture";
1204
1204
  locator?: string | undefined;
1205
1205
  }>, "many">>;
1206
1206
  }, "strict", z.ZodTypeAny, {
1207
- kind: "conflict_detected";
1208
1207
  summary: string;
1208
+ kind: "conflict_detected";
1209
1209
  evidence: {
1210
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1211
- label: string;
1212
1210
  id: string;
1211
+ label: string;
1212
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1213
1213
  capture: "at_action" | "historical_lookup" | "fixture";
1214
1214
  locator?: string | undefined;
1215
1215
  }[];
@@ -1217,15 +1217,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1217
1217
  decisionIds: string[];
1218
1218
  agentIds: string[];
1219
1219
  }, {
1220
- kind: "conflict_detected";
1221
1220
  summary: string;
1221
+ kind: "conflict_detected";
1222
1222
  conflictId: string;
1223
1223
  decisionIds: string[];
1224
1224
  agentIds: string[];
1225
1225
  evidence?: {
1226
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1227
- label: string;
1228
1226
  id: string;
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
  }[] | undefined;
@@ -1245,27 +1245,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1245
1245
  locator: z.ZodOptional<z.ZodString>;
1246
1246
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1247
1247
  }, "strict", z.ZodTypeAny, {
1248
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1249
- label: string;
1250
1248
  id: string;
1249
+ label: string;
1250
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1251
1251
  capture: "at_action" | "historical_lookup" | "fixture";
1252
1252
  locator?: string | undefined;
1253
1253
  }, {
1254
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1255
- label: string;
1256
1254
  id: string;
1255
+ label: string;
1256
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1257
1257
  capture: "at_action" | "historical_lookup" | "fixture";
1258
1258
  locator?: string | undefined;
1259
1259
  }>, "many">>;
1260
1260
  }, "strict", z.ZodTypeAny, {
1261
- kind: "test_result";
1262
1261
  summary: string;
1263
1262
  status: "error" | "failed" | "passed";
1263
+ kind: "test_result";
1264
1264
  command: string;
1265
1265
  evidence: {
1266
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1267
- label: string;
1268
1266
  id: string;
1267
+ label: string;
1268
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1269
1269
  capture: "at_action" | "historical_lookup" | "fixture";
1270
1270
  locator?: string | undefined;
1271
1271
  }[];
@@ -1274,17 +1274,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1274
1274
  durationMs?: number | undefined;
1275
1275
  correctionId?: string | undefined;
1276
1276
  }, {
1277
- kind: "test_result";
1278
1277
  summary: string;
1279
1278
  status: "error" | "failed" | "passed";
1279
+ kind: "test_result";
1280
1280
  command: string;
1281
1281
  decisionId: string;
1282
1282
  testId: string;
1283
1283
  durationMs?: number | undefined;
1284
1284
  evidence?: {
1285
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1286
- label: string;
1287
1285
  id: string;
1286
+ label: string;
1287
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1288
1288
  capture: "at_action" | "historical_lookup" | "fixture";
1289
1289
  locator?: string | undefined;
1290
1290
  }[] | undefined;
@@ -1305,15 +1305,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1305
1305
  locator: z.ZodOptional<z.ZodString>;
1306
1306
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1307
1307
  }, "strict", z.ZodTypeAny, {
1308
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1309
- label: string;
1310
1308
  id: string;
1309
+ label: string;
1310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1311
1311
  capture: "at_action" | "historical_lookup" | "fixture";
1312
1312
  locator?: string | undefined;
1313
1313
  }, {
1314
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1315
- label: string;
1316
1314
  id: string;
1315
+ label: string;
1316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
1317
  capture: "at_action" | "historical_lookup" | "fixture";
1318
1318
  locator?: string | undefined;
1319
1319
  }>, "many">>;
@@ -1322,9 +1322,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1322
1322
  statement: string;
1323
1323
  rationale: string;
1324
1324
  evidence: {
1325
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1326
- label: string;
1327
1325
  id: string;
1326
+ label: string;
1327
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1328
1328
  capture: "at_action" | "historical_lookup" | "fixture";
1329
1329
  locator?: string | undefined;
1330
1330
  }[];
@@ -1343,9 +1343,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1343
1343
  supersedesDecisionIds: string[];
1344
1344
  proposedBy: string;
1345
1345
  evidence?: {
1346
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1347
- label: string;
1348
1346
  id: string;
1347
+ label: string;
1348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1349
1349
  capture: "at_action" | "historical_lookup" | "fixture";
1350
1350
  locator?: string | undefined;
1351
1351
  }[] | undefined;
@@ -1357,13 +1357,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1357
1357
  id: z.ZodString;
1358
1358
  label: z.ZodString;
1359
1359
  }, "strict", z.ZodTypeAny, {
1360
- kind: "agent" | "human";
1361
- label: string;
1362
1360
  id: string;
1363
- }, {
1364
- kind: "agent" | "human";
1365
1361
  label: string;
1362
+ kind: "agent" | "human";
1363
+ }, {
1366
1364
  id: string;
1365
+ label: string;
1366
+ kind: "agent" | "human";
1367
1367
  }>;
1368
1368
  note: z.ZodOptional<z.ZodString>;
1369
1369
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1373,47 +1373,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1373
1373
  locator: z.ZodOptional<z.ZodString>;
1374
1374
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1375
1375
  }, "strict", z.ZodTypeAny, {
1376
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1377
- label: string;
1378
1376
  id: string;
1377
+ label: string;
1378
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1379
1379
  capture: "at_action" | "historical_lookup" | "fixture";
1380
1380
  locator?: string | undefined;
1381
1381
  }, {
1382
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
- label: string;
1384
1382
  id: string;
1383
+ label: string;
1384
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1385
1385
  capture: "at_action" | "historical_lookup" | "fixture";
1386
1386
  locator?: string | undefined;
1387
1387
  }>, "many">>;
1388
1388
  }, "strict", z.ZodTypeAny, {
1389
1389
  kind: "correction_approved";
1390
1390
  evidence: {
1391
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1392
- label: string;
1393
1391
  id: string;
1392
+ label: string;
1393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1394
1394
  capture: "at_action" | "historical_lookup" | "fixture";
1395
1395
  locator?: string | undefined;
1396
1396
  }[];
1397
1397
  correctionId: string;
1398
1398
  approvedBy: {
1399
- kind: "agent" | "human";
1400
- label: string;
1401
1399
  id: string;
1400
+ label: string;
1401
+ kind: "agent" | "human";
1402
1402
  };
1403
1403
  note?: string | undefined;
1404
1404
  }, {
1405
1405
  kind: "correction_approved";
1406
1406
  correctionId: string;
1407
1407
  approvedBy: {
1408
- kind: "agent" | "human";
1409
- label: string;
1410
1408
  id: string;
1409
+ label: string;
1410
+ kind: "agent" | "human";
1411
1411
  };
1412
1412
  note?: string | undefined;
1413
1413
  evidence?: {
1414
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1415
- label: string;
1416
1414
  id: string;
1415
+ label: string;
1416
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1417
1417
  capture: "at_action" | "historical_lookup" | "fixture";
1418
1418
  locator?: string | undefined;
1419
1419
  }[] | undefined;
@@ -1429,24 +1429,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1429
1429
  locator: z.ZodOptional<z.ZodString>;
1430
1430
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1431
1431
  }, "strict", z.ZodTypeAny, {
1432
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1433
- label: string;
1434
1432
  id: string;
1433
+ label: string;
1434
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1435
1435
  capture: "at_action" | "historical_lookup" | "fixture";
1436
1436
  locator?: string | undefined;
1437
1437
  }, {
1438
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1439
- label: string;
1440
1438
  id: string;
1439
+ label: string;
1440
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1441
1441
  capture: "at_action" | "historical_lookup" | "fixture";
1442
1442
  locator?: string | undefined;
1443
1443
  }>, "many">>;
1444
1444
  }, "strict", z.ZodTypeAny, {
1445
1445
  kind: "decision_superseded";
1446
1446
  evidence: {
1447
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1448
- label: string;
1449
1447
  id: string;
1448
+ label: string;
1449
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1450
1450
  capture: "at_action" | "historical_lookup" | "fixture";
1451
1451
  locator?: string | undefined;
1452
1452
  }[];
@@ -1459,9 +1459,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1459
1459
  correctionId: string;
1460
1460
  replacementDecisionId: string;
1461
1461
  evidence?: {
1462
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1463
- label: string;
1464
1462
  id: string;
1463
+ label: string;
1464
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1465
1465
  capture: "at_action" | "historical_lookup" | "fixture";
1466
1466
  locator?: string | undefined;
1467
1467
  }[] | undefined;
@@ -1477,15 +1477,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1477
1477
  locator: z.ZodOptional<z.ZodString>;
1478
1478
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1479
1479
  }, "strict", z.ZodTypeAny, {
1480
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1481
- label: string;
1482
1480
  id: string;
1481
+ label: string;
1482
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1483
1483
  capture: "at_action" | "historical_lookup" | "fixture";
1484
1484
  locator?: string | undefined;
1485
1485
  }, {
1486
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1487
- label: string;
1488
1486
  id: string;
1487
+ label: string;
1488
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1489
1489
  capture: "at_action" | "historical_lookup" | "fixture";
1490
1490
  locator?: string | undefined;
1491
1491
  }>, "many">>;
@@ -1498,9 +1498,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1498
1498
  agentId: string;
1499
1499
  sessionId: string;
1500
1500
  evidence: {
1501
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1502
- label: string;
1503
1501
  id: string;
1502
+ label: string;
1503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1504
1504
  capture: "at_action" | "historical_lookup" | "fixture";
1505
1505
  locator?: string | undefined;
1506
1506
  }[];
@@ -1516,9 +1516,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1516
1516
  recallReceiptId: string;
1517
1517
  capturedAtAction: boolean;
1518
1518
  evidence?: {
1519
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1520
- label: string;
1521
1519
  id: string;
1520
+ label: string;
1521
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1522
1522
  capture: "at_action" | "historical_lookup" | "fixture";
1523
1523
  locator?: string | undefined;
1524
1524
  }[] | undefined;
@@ -1534,15 +1534,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1534
1534
  locator: z.ZodOptional<z.ZodString>;
1535
1535
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1536
1536
  }, "strict", z.ZodTypeAny, {
1537
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1538
- label: string;
1539
1537
  id: string;
1538
+ label: string;
1539
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1540
1540
  capture: "at_action" | "historical_lookup" | "fixture";
1541
1541
  locator?: string | undefined;
1542
1542
  }, {
1543
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1544
- label: string;
1545
1543
  id: string;
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
  }>, "many">>;
@@ -1554,9 +1554,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1554
1554
  agentId: string;
1555
1555
  sessionId: string;
1556
1556
  evidence: {
1557
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1558
- label: string;
1559
1557
  id: string;
1558
+ label: string;
1559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1560
1560
  capture: "at_action" | "historical_lookup" | "fixture";
1561
1561
  locator?: string | undefined;
1562
1562
  }[];
@@ -1573,9 +1573,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1573
1573
  recallReceiptId: string;
1574
1574
  staleDecisionAbsent: boolean;
1575
1575
  evidence?: {
1576
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1577
- label: string;
1578
1576
  id: string;
1577
+ label: string;
1578
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1579
1579
  capture: "at_action" | "historical_lookup" | "fixture";
1580
1580
  locator?: string | undefined;
1581
1581
  }[] | undefined;
@@ -1590,37 +1590,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1590
1590
  locator: z.ZodOptional<z.ZodString>;
1591
1591
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1592
1592
  }, "strict", z.ZodTypeAny, {
1593
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1594
- label: string;
1595
1593
  id: string;
1594
+ label: string;
1595
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
1596
  capture: "at_action" | "historical_lookup" | "fixture";
1597
1597
  locator?: string | undefined;
1598
1598
  }, {
1599
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1600
- label: string;
1601
1599
  id: string;
1600
+ label: string;
1601
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1602
1602
  capture: "at_action" | "historical_lookup" | "fixture";
1603
1603
  locator?: string | undefined;
1604
1604
  }>, "many">>;
1605
1605
  }, "strict", z.ZodTypeAny, {
1606
- kind: "mission_completed";
1607
1606
  summary: string;
1607
+ kind: "mission_completed";
1608
1608
  outcome: "failed" | "recovered" | "inconclusive";
1609
1609
  evidence: {
1610
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1611
- label: string;
1612
1610
  id: string;
1611
+ label: string;
1612
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1613
1613
  capture: "at_action" | "historical_lookup" | "fixture";
1614
1614
  locator?: string | undefined;
1615
1615
  }[];
1616
1616
  }, {
1617
- kind: "mission_completed";
1618
1617
  summary: string;
1618
+ kind: "mission_completed";
1619
1619
  outcome: "failed" | "recovered" | "inconclusive";
1620
1620
  evidence?: {
1621
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1622
- label: string;
1623
1621
  id: string;
1622
+ label: string;
1623
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1624
1624
  capture: "at_action" | "historical_lookup" | "fixture";
1625
1625
  locator?: string | undefined;
1626
1626
  }[] | undefined;
@@ -1628,38 +1628,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1628
1628
  kind: "mission_started";
1629
1629
  title: string;
1630
1630
  evidence: {
1631
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1632
- label: string;
1633
1631
  id: string;
1632
+ label: string;
1633
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1634
1634
  capture: "at_action" | "historical_lookup" | "fixture";
1635
1635
  locator?: string | undefined;
1636
1636
  }[];
1637
1637
  objective: string;
1638
1638
  runMode: "replay" | "fixture" | "live";
1639
1639
  } | {
1640
- kind: "agent_status";
1641
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1642
1640
  label: string;
1641
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1642
+ kind: "agent_status";
1643
1643
  role: string;
1644
1644
  agentId: string;
1645
1645
  sessionId: string;
1646
1646
  evidence: {
1647
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1648
- label: string;
1649
1647
  id: string;
1648
+ label: string;
1649
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1650
1650
  capture: "at_action" | "historical_lookup" | "fixture";
1651
1651
  locator?: string | undefined;
1652
1652
  }[];
1653
1653
  detail?: string | undefined;
1654
1654
  } | {
1655
- kind: "agent_output";
1656
1655
  summary: string;
1656
+ kind: "agent_output";
1657
1657
  agentId: string;
1658
1658
  sessionId: string;
1659
1659
  evidence: {
1660
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1661
- label: string;
1662
1660
  id: string;
1661
+ label: string;
1662
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1663
1663
  capture: "at_action" | "historical_lookup" | "fixture";
1664
1664
  locator?: string | undefined;
1665
1665
  }[];
@@ -1670,9 +1670,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1670
1670
  statement: string;
1671
1671
  sessionId: string;
1672
1672
  evidence: {
1673
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1674
- label: string;
1675
1673
  id: string;
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
  }[];
@@ -1680,12 +1680,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1680
1680
  decisionId: string;
1681
1681
  confidence?: number | undefined;
1682
1682
  } | {
1683
- kind: "conflict_detected";
1684
1683
  summary: string;
1684
+ kind: "conflict_detected";
1685
1685
  evidence: {
1686
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1687
- label: string;
1688
1686
  id: string;
1687
+ label: string;
1688
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1689
1689
  capture: "at_action" | "historical_lookup" | "fixture";
1690
1690
  locator?: string | undefined;
1691
1691
  }[];
@@ -1693,14 +1693,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1693
1693
  decisionIds: string[];
1694
1694
  agentIds: string[];
1695
1695
  } | {
1696
- kind: "test_result";
1697
1696
  summary: string;
1698
1697
  status: "error" | "failed" | "passed";
1698
+ kind: "test_result";
1699
1699
  command: string;
1700
1700
  evidence: {
1701
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1702
- label: string;
1703
1701
  id: string;
1702
+ label: string;
1703
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1704
1704
  capture: "at_action" | "historical_lookup" | "fixture";
1705
1705
  locator?: string | undefined;
1706
1706
  }[];
@@ -1713,9 +1713,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1713
1713
  statement: string;
1714
1714
  rationale: string;
1715
1715
  evidence: {
1716
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1717
- label: string;
1718
1716
  id: string;
1717
+ label: string;
1718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1719
1719
  capture: "at_action" | "historical_lookup" | "fixture";
1720
1720
  locator?: string | undefined;
1721
1721
  }[];
@@ -1727,25 +1727,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1727
1727
  } | {
1728
1728
  kind: "correction_approved";
1729
1729
  evidence: {
1730
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1731
- label: string;
1732
1730
  id: string;
1731
+ label: string;
1732
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1733
1733
  capture: "at_action" | "historical_lookup" | "fixture";
1734
1734
  locator?: string | undefined;
1735
1735
  }[];
1736
1736
  correctionId: string;
1737
1737
  approvedBy: {
1738
- kind: "agent" | "human";
1739
- label: string;
1740
1738
  id: string;
1739
+ label: string;
1740
+ kind: "agent" | "human";
1741
1741
  };
1742
1742
  note?: string | undefined;
1743
1743
  } | {
1744
1744
  kind: "decision_superseded";
1745
1745
  evidence: {
1746
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1747
- label: string;
1748
1746
  id: string;
1747
+ label: string;
1748
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1749
1749
  capture: "at_action" | "historical_lookup" | "fixture";
1750
1750
  locator?: string | undefined;
1751
1751
  }[];
@@ -1758,9 +1758,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1758
1758
  agentId: string;
1759
1759
  sessionId: string;
1760
1760
  evidence: {
1761
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1762
- label: string;
1763
1761
  id: string;
1762
+ label: string;
1763
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1764
1764
  capture: "at_action" | "historical_lookup" | "fixture";
1765
1765
  locator?: string | undefined;
1766
1766
  }[];
@@ -1772,9 +1772,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1772
1772
  agentId: string;
1773
1773
  sessionId: string;
1774
1774
  evidence: {
1775
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1776
- label: string;
1777
1775
  id: string;
1776
+ label: string;
1777
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1778
1778
  capture: "at_action" | "historical_lookup" | "fixture";
1779
1779
  locator?: string | undefined;
1780
1780
  }[];
@@ -1783,13 +1783,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1783
1783
  recallReceiptId: string;
1784
1784
  staleDecisionAbsent: boolean;
1785
1785
  } | {
1786
- kind: "mission_completed";
1787
1786
  summary: string;
1787
+ kind: "mission_completed";
1788
1788
  outcome: "failed" | "recovered" | "inconclusive";
1789
1789
  evidence: {
1790
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1791
- label: string;
1792
1790
  id: string;
1791
+ label: string;
1792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
1793
  capture: "at_action" | "historical_lookup" | "fixture";
1794
1794
  locator?: string | undefined;
1795
1795
  }[];
@@ -1799,37 +1799,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1799
1799
  objective: string;
1800
1800
  runMode: "replay" | "fixture" | "live";
1801
1801
  evidence?: {
1802
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1803
- label: string;
1804
1802
  id: string;
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;
1808
1808
  } | {
1809
- kind: "agent_status";
1810
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1811
1809
  label: string;
1810
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1811
+ kind: "agent_status";
1812
1812
  role: string;
1813
1813
  agentId: string;
1814
1814
  sessionId: string;
1815
1815
  detail?: string | undefined;
1816
1816
  evidence?: {
1817
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1818
- label: string;
1819
1817
  id: string;
1818
+ label: string;
1819
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1820
1820
  capture: "at_action" | "historical_lookup" | "fixture";
1821
1821
  locator?: string | undefined;
1822
1822
  }[] | undefined;
1823
1823
  } | {
1824
- kind: "agent_output";
1825
1824
  summary: string;
1825
+ kind: "agent_output";
1826
1826
  agentId: string;
1827
1827
  sessionId: string;
1828
1828
  outputId: string;
1829
1829
  evidence?: {
1830
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1831
- label: string;
1832
1830
  id: string;
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,37 +1842,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1842
1842
  decisionId: string;
1843
1843
  confidence?: number | undefined;
1844
1844
  evidence?: {
1845
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1846
- label: string;
1847
1845
  id: string;
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;
1851
1851
  } | {
1852
- kind: "conflict_detected";
1853
1852
  summary: string;
1853
+ kind: "conflict_detected";
1854
1854
  conflictId: string;
1855
1855
  decisionIds: string[];
1856
1856
  agentIds: string[];
1857
1857
  evidence?: {
1858
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1859
- label: string;
1860
1858
  id: string;
1859
+ label: string;
1860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1861
1861
  capture: "at_action" | "historical_lookup" | "fixture";
1862
1862
  locator?: string | undefined;
1863
1863
  }[] | undefined;
1864
1864
  } | {
1865
- kind: "test_result";
1866
1865
  summary: string;
1867
1866
  status: "error" | "failed" | "passed";
1867
+ kind: "test_result";
1868
1868
  command: string;
1869
1869
  decisionId: string;
1870
1870
  testId: string;
1871
1871
  durationMs?: number | undefined;
1872
1872
  evidence?: {
1873
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1874
- label: string;
1875
1873
  id: string;
1874
+ label: string;
1875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1876
1876
  capture: "at_action" | "historical_lookup" | "fixture";
1877
1877
  locator?: string | undefined;
1878
1878
  }[] | undefined;
@@ -1887,9 +1887,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1887
1887
  supersedesDecisionIds: string[];
1888
1888
  proposedBy: string;
1889
1889
  evidence?: {
1890
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1891
- label: string;
1892
1890
  id: string;
1891
+ label: string;
1892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1893
1893
  capture: "at_action" | "historical_lookup" | "fixture";
1894
1894
  locator?: string | undefined;
1895
1895
  }[] | undefined;
@@ -1897,15 +1897,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1897
1897
  kind: "correction_approved";
1898
1898
  correctionId: string;
1899
1899
  approvedBy: {
1900
- kind: "agent" | "human";
1901
- label: string;
1902
1900
  id: string;
1901
+ label: string;
1902
+ kind: "agent" | "human";
1903
1903
  };
1904
1904
  note?: string | undefined;
1905
1905
  evidence?: {
1906
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1907
- label: string;
1908
1906
  id: string;
1907
+ label: string;
1908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1909
1909
  capture: "at_action" | "historical_lookup" | "fixture";
1910
1910
  locator?: string | undefined;
1911
1911
  }[] | undefined;
@@ -1915,9 +1915,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1915
1915
  correctionId: string;
1916
1916
  replacementDecisionId: string;
1917
1917
  evidence?: {
1918
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1919
- label: string;
1920
1918
  id: string;
1919
+ label: string;
1920
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1921
1921
  capture: "at_action" | "historical_lookup" | "fixture";
1922
1922
  locator?: string | undefined;
1923
1923
  }[] | undefined;
@@ -1930,9 +1930,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1930
1930
  recallReceiptId: string;
1931
1931
  capturedAtAction: boolean;
1932
1932
  evidence?: {
1933
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1934
- label: string;
1935
1933
  id: string;
1934
+ label: string;
1935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1936
1936
  capture: "at_action" | "historical_lookup" | "fixture";
1937
1937
  locator?: string | undefined;
1938
1938
  }[] | undefined;
@@ -1945,20 +1945,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1945
1945
  recallReceiptId: string;
1946
1946
  staleDecisionAbsent: boolean;
1947
1947
  evidence?: {
1948
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1949
- label: string;
1950
1948
  id: string;
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
  }[] | undefined;
1954
1954
  } | {
1955
- kind: "mission_completed";
1956
1955
  summary: string;
1956
+ kind: "mission_completed";
1957
1957
  outcome: "failed" | "recovered" | "inconclusive";
1958
1958
  evidence?: {
1959
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1960
- label: string;
1961
1959
  id: string;
1960
+ label: string;
1961
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1962
1962
  capture: "at_action" | "historical_lookup" | "fixture";
1963
1963
  locator?: string | undefined;
1964
1964
  }[] | undefined;
@@ -1979,15 +1979,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1979
1979
  locator: z.ZodOptional<z.ZodString>;
1980
1980
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1981
1981
  }, "strict", z.ZodTypeAny, {
1982
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1983
- label: string;
1984
1982
  id: string;
1983
+ label: string;
1984
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1985
1985
  capture: "at_action" | "historical_lookup" | "fixture";
1986
1986
  locator?: string | undefined;
1987
1987
  }, {
1988
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1989
- label: string;
1990
1988
  id: string;
1989
+ label: string;
1990
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1991
1991
  capture: "at_action" | "historical_lookup" | "fixture";
1992
1992
  locator?: string | undefined;
1993
1993
  }>, "many">>;
@@ -1995,9 +1995,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1995
1995
  kind: "mission_started";
1996
1996
  title: string;
1997
1997
  evidence: {
1998
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1999
- label: string;
2000
1998
  id: string;
1999
+ label: string;
2000
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2001
2001
  capture: "at_action" | "historical_lookup" | "fixture";
2002
2002
  locator?: string | undefined;
2003
2003
  }[];
@@ -2009,9 +2009,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2009
2009
  objective: string;
2010
2010
  runMode: "replay" | "fixture" | "live";
2011
2011
  evidence?: {
2012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2013
- label: string;
2014
2012
  id: string;
2013
+ label: string;
2014
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2015
2015
  capture: "at_action" | "historical_lookup" | "fixture";
2016
2016
  locator?: string | undefined;
2017
2017
  }[] | undefined;
@@ -2027,15 +2027,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2027
2027
  locator: z.ZodOptional<z.ZodString>;
2028
2028
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2029
2029
  }, "strict", z.ZodTypeAny, {
2030
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2031
- label: string;
2032
2030
  id: string;
2031
+ label: string;
2032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
2033
  capture: "at_action" | "historical_lookup" | "fixture";
2034
2034
  locator?: string | undefined;
2035
2035
  }, {
2036
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2037
- label: string;
2038
2036
  id: string;
2037
+ label: string;
2038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2039
2039
  capture: "at_action" | "historical_lookup" | "fixture";
2040
2040
  locator?: string | undefined;
2041
2041
  }>, "many">>;
@@ -2043,32 +2043,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2043
2043
  sessionId: z.ZodString;
2044
2044
  kind: z.ZodLiteral<"agent_status">;
2045
2045
  }, "strict", z.ZodTypeAny, {
2046
- kind: "agent_status";
2047
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2048
2046
  label: string;
2047
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2048
+ kind: "agent_status";
2049
2049
  role: string;
2050
2050
  agentId: string;
2051
2051
  sessionId: string;
2052
2052
  evidence: {
2053
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2054
- label: string;
2055
2053
  id: string;
2054
+ label: string;
2055
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2056
2056
  capture: "at_action" | "historical_lookup" | "fixture";
2057
2057
  locator?: string | undefined;
2058
2058
  }[];
2059
2059
  detail?: string | undefined;
2060
2060
  }, {
2061
- kind: "agent_status";
2062
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2063
2061
  label: string;
2062
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2063
+ kind: "agent_status";
2064
2064
  role: string;
2065
2065
  agentId: string;
2066
2066
  sessionId: string;
2067
2067
  detail?: string | undefined;
2068
2068
  evidence?: {
2069
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2070
- label: string;
2071
2069
  id: string;
2070
+ label: string;
2071
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2072
2072
  capture: "at_action" | "historical_lookup" | "fixture";
2073
2073
  locator?: string | undefined;
2074
2074
  }[] | undefined;
@@ -2082,15 +2082,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2082
2082
  locator: z.ZodOptional<z.ZodString>;
2083
2083
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2084
2084
  }, "strict", z.ZodTypeAny, {
2085
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2086
- label: string;
2087
2085
  id: string;
2086
+ label: string;
2087
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2088
2088
  capture: "at_action" | "historical_lookup" | "fixture";
2089
2089
  locator?: string | undefined;
2090
2090
  }, {
2091
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2092
- label: string;
2093
2091
  id: string;
2092
+ label: string;
2093
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2094
2094
  capture: "at_action" | "historical_lookup" | "fixture";
2095
2095
  locator?: string | undefined;
2096
2096
  }>, "many">>;
@@ -2098,28 +2098,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2098
2098
  sessionId: z.ZodString;
2099
2099
  kind: z.ZodLiteral<"agent_output">;
2100
2100
  }, "strict", z.ZodTypeAny, {
2101
- kind: "agent_output";
2102
2101
  summary: string;
2102
+ kind: "agent_output";
2103
2103
  agentId: string;
2104
2104
  sessionId: string;
2105
2105
  evidence: {
2106
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2107
- label: string;
2108
2106
  id: string;
2107
+ label: string;
2108
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2109
2109
  capture: "at_action" | "historical_lookup" | "fixture";
2110
2110
  locator?: string | undefined;
2111
2111
  }[];
2112
2112
  outputId: string;
2113
2113
  }, {
2114
- kind: "agent_output";
2115
2114
  summary: string;
2115
+ kind: "agent_output";
2116
2116
  agentId: string;
2117
2117
  sessionId: string;
2118
2118
  outputId: string;
2119
2119
  evidence?: {
2120
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2121
- label: string;
2122
2120
  id: string;
2121
+ label: string;
2122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2123
2123
  capture: "at_action" | "historical_lookup" | "fixture";
2124
2124
  locator?: string | undefined;
2125
2125
  }[] | undefined;
@@ -2135,15 +2135,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2135
2135
  locator: z.ZodOptional<z.ZodString>;
2136
2136
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2137
2137
  }, "strict", z.ZodTypeAny, {
2138
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2139
- label: string;
2140
2138
  id: string;
2139
+ label: string;
2140
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2141
2141
  capture: "at_action" | "historical_lookup" | "fixture";
2142
2142
  locator?: string | undefined;
2143
2143
  }, {
2144
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2145
- label: string;
2146
2144
  id: string;
2145
+ label: string;
2146
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2147
2147
  capture: "at_action" | "historical_lookup" | "fixture";
2148
2148
  locator?: string | undefined;
2149
2149
  }>, "many">>;
@@ -2156,9 +2156,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2156
2156
  statement: string;
2157
2157
  sessionId: string;
2158
2158
  evidence: {
2159
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2160
- label: string;
2161
2159
  id: string;
2160
+ label: string;
2161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2162
2162
  capture: "at_action" | "historical_lookup" | "fixture";
2163
2163
  locator?: string | undefined;
2164
2164
  }[];
@@ -2174,9 +2174,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2174
2174
  decisionId: string;
2175
2175
  confidence?: number | undefined;
2176
2176
  evidence?: {
2177
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2178
- label: string;
2179
2177
  id: string;
2178
+ label: string;
2179
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2180
2180
  capture: "at_action" | "historical_lookup" | "fixture";
2181
2181
  locator?: string | undefined;
2182
2182
  }[] | undefined;
@@ -2193,25 +2193,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2193
2193
  locator: z.ZodOptional<z.ZodString>;
2194
2194
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2195
2195
  }, "strict", z.ZodTypeAny, {
2196
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2197
- label: string;
2198
2196
  id: string;
2197
+ label: string;
2198
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2199
2199
  capture: "at_action" | "historical_lookup" | "fixture";
2200
2200
  locator?: string | undefined;
2201
2201
  }, {
2202
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2203
- label: string;
2204
2202
  id: string;
2203
+ label: string;
2204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2205
2205
  capture: "at_action" | "historical_lookup" | "fixture";
2206
2206
  locator?: string | undefined;
2207
2207
  }>, "many">>;
2208
2208
  }, "strict", z.ZodTypeAny, {
2209
- kind: "conflict_detected";
2210
2209
  summary: string;
2210
+ kind: "conflict_detected";
2211
2211
  evidence: {
2212
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2213
- label: string;
2214
2212
  id: string;
2213
+ label: string;
2214
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2215
2215
  capture: "at_action" | "historical_lookup" | "fixture";
2216
2216
  locator?: string | undefined;
2217
2217
  }[];
@@ -2219,15 +2219,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2219
2219
  decisionIds: string[];
2220
2220
  agentIds: string[];
2221
2221
  }, {
2222
- kind: "conflict_detected";
2223
2222
  summary: string;
2223
+ kind: "conflict_detected";
2224
2224
  conflictId: string;
2225
2225
  decisionIds: string[];
2226
2226
  agentIds: string[];
2227
2227
  evidence?: {
2228
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
- label: string;
2230
2228
  id: string;
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
  }[] | undefined;
@@ -2247,27 +2247,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2247
2247
  locator: z.ZodOptional<z.ZodString>;
2248
2248
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2249
2249
  }, "strict", z.ZodTypeAny, {
2250
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2251
- label: string;
2252
2250
  id: string;
2251
+ label: string;
2252
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2253
2253
  capture: "at_action" | "historical_lookup" | "fixture";
2254
2254
  locator?: string | undefined;
2255
2255
  }, {
2256
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2257
- label: string;
2258
2256
  id: string;
2257
+ label: string;
2258
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2259
2259
  capture: "at_action" | "historical_lookup" | "fixture";
2260
2260
  locator?: string | undefined;
2261
2261
  }>, "many">>;
2262
2262
  }, "strict", z.ZodTypeAny, {
2263
- kind: "test_result";
2264
2263
  summary: string;
2265
2264
  status: "error" | "failed" | "passed";
2265
+ kind: "test_result";
2266
2266
  command: string;
2267
2267
  evidence: {
2268
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2269
- label: string;
2270
2268
  id: string;
2269
+ label: string;
2270
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2271
2271
  capture: "at_action" | "historical_lookup" | "fixture";
2272
2272
  locator?: string | undefined;
2273
2273
  }[];
@@ -2276,17 +2276,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2276
2276
  durationMs?: number | undefined;
2277
2277
  correctionId?: string | undefined;
2278
2278
  }, {
2279
- kind: "test_result";
2280
2279
  summary: string;
2281
2280
  status: "error" | "failed" | "passed";
2281
+ kind: "test_result";
2282
2282
  command: string;
2283
2283
  decisionId: string;
2284
2284
  testId: string;
2285
2285
  durationMs?: number | undefined;
2286
2286
  evidence?: {
2287
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2288
- label: string;
2289
2287
  id: string;
2288
+ label: string;
2289
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2290
2290
  capture: "at_action" | "historical_lookup" | "fixture";
2291
2291
  locator?: string | undefined;
2292
2292
  }[] | undefined;
@@ -2307,15 +2307,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2307
2307
  locator: z.ZodOptional<z.ZodString>;
2308
2308
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2309
2309
  }, "strict", z.ZodTypeAny, {
2310
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2311
- label: string;
2312
2310
  id: string;
2311
+ label: string;
2312
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2313
2313
  capture: "at_action" | "historical_lookup" | "fixture";
2314
2314
  locator?: string | undefined;
2315
2315
  }, {
2316
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2317
- label: string;
2318
2316
  id: string;
2317
+ label: string;
2318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
2319
  capture: "at_action" | "historical_lookup" | "fixture";
2320
2320
  locator?: string | undefined;
2321
2321
  }>, "many">>;
@@ -2324,9 +2324,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2324
2324
  statement: string;
2325
2325
  rationale: string;
2326
2326
  evidence: {
2327
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2328
- label: string;
2329
2327
  id: string;
2328
+ label: string;
2329
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2330
2330
  capture: "at_action" | "historical_lookup" | "fixture";
2331
2331
  locator?: string | undefined;
2332
2332
  }[];
@@ -2345,9 +2345,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2345
2345
  supersedesDecisionIds: string[];
2346
2346
  proposedBy: string;
2347
2347
  evidence?: {
2348
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2349
- label: string;
2350
2348
  id: string;
2349
+ label: string;
2350
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2351
2351
  capture: "at_action" | "historical_lookup" | "fixture";
2352
2352
  locator?: string | undefined;
2353
2353
  }[] | undefined;
@@ -2359,13 +2359,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2359
2359
  id: z.ZodString;
2360
2360
  label: z.ZodString;
2361
2361
  }, "strict", z.ZodTypeAny, {
2362
- kind: "agent" | "human";
2363
- label: string;
2364
2362
  id: string;
2365
- }, {
2366
- kind: "agent" | "human";
2367
2363
  label: string;
2364
+ kind: "agent" | "human";
2365
+ }, {
2368
2366
  id: string;
2367
+ label: string;
2368
+ kind: "agent" | "human";
2369
2369
  }>;
2370
2370
  note: z.ZodOptional<z.ZodString>;
2371
2371
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2375,47 +2375,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2375
2375
  locator: z.ZodOptional<z.ZodString>;
2376
2376
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2377
2377
  }, "strict", z.ZodTypeAny, {
2378
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2379
- label: string;
2380
2378
  id: string;
2379
+ label: string;
2380
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2381
2381
  capture: "at_action" | "historical_lookup" | "fixture";
2382
2382
  locator?: string | undefined;
2383
2383
  }, {
2384
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
- label: string;
2386
2384
  id: string;
2385
+ label: string;
2386
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2387
2387
  capture: "at_action" | "historical_lookup" | "fixture";
2388
2388
  locator?: string | undefined;
2389
2389
  }>, "many">>;
2390
2390
  }, "strict", z.ZodTypeAny, {
2391
2391
  kind: "correction_approved";
2392
2392
  evidence: {
2393
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2394
- label: string;
2395
2393
  id: string;
2394
+ label: string;
2395
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2396
2396
  capture: "at_action" | "historical_lookup" | "fixture";
2397
2397
  locator?: string | undefined;
2398
2398
  }[];
2399
2399
  correctionId: string;
2400
2400
  approvedBy: {
2401
- kind: "agent" | "human";
2402
- label: string;
2403
2401
  id: string;
2402
+ label: string;
2403
+ kind: "agent" | "human";
2404
2404
  };
2405
2405
  note?: string | undefined;
2406
2406
  }, {
2407
2407
  kind: "correction_approved";
2408
2408
  correctionId: string;
2409
2409
  approvedBy: {
2410
- kind: "agent" | "human";
2411
- label: string;
2412
2410
  id: string;
2411
+ label: string;
2412
+ kind: "agent" | "human";
2413
2413
  };
2414
2414
  note?: string | undefined;
2415
2415
  evidence?: {
2416
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2417
- label: string;
2418
2416
  id: string;
2417
+ label: string;
2418
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2419
2419
  capture: "at_action" | "historical_lookup" | "fixture";
2420
2420
  locator?: string | undefined;
2421
2421
  }[] | undefined;
@@ -2431,24 +2431,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2431
2431
  locator: z.ZodOptional<z.ZodString>;
2432
2432
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2433
2433
  }, "strict", z.ZodTypeAny, {
2434
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2435
- label: string;
2436
2434
  id: string;
2435
+ label: string;
2436
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2437
2437
  capture: "at_action" | "historical_lookup" | "fixture";
2438
2438
  locator?: string | undefined;
2439
2439
  }, {
2440
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2441
- label: string;
2442
2440
  id: string;
2441
+ label: string;
2442
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2443
2443
  capture: "at_action" | "historical_lookup" | "fixture";
2444
2444
  locator?: string | undefined;
2445
2445
  }>, "many">>;
2446
2446
  }, "strict", z.ZodTypeAny, {
2447
2447
  kind: "decision_superseded";
2448
2448
  evidence: {
2449
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2450
- label: string;
2451
2449
  id: string;
2450
+ label: string;
2451
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2452
2452
  capture: "at_action" | "historical_lookup" | "fixture";
2453
2453
  locator?: string | undefined;
2454
2454
  }[];
@@ -2461,9 +2461,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2461
2461
  correctionId: string;
2462
2462
  replacementDecisionId: string;
2463
2463
  evidence?: {
2464
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2465
- label: string;
2466
2464
  id: string;
2465
+ label: string;
2466
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2467
2467
  capture: "at_action" | "historical_lookup" | "fixture";
2468
2468
  locator?: string | undefined;
2469
2469
  }[] | undefined;
@@ -2479,15 +2479,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2479
2479
  locator: z.ZodOptional<z.ZodString>;
2480
2480
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2481
2481
  }, "strict", z.ZodTypeAny, {
2482
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2483
- label: string;
2484
2482
  id: string;
2483
+ label: string;
2484
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2485
2485
  capture: "at_action" | "historical_lookup" | "fixture";
2486
2486
  locator?: string | undefined;
2487
2487
  }, {
2488
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2489
- label: string;
2490
2488
  id: string;
2489
+ label: string;
2490
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2491
2491
  capture: "at_action" | "historical_lookup" | "fixture";
2492
2492
  locator?: string | undefined;
2493
2493
  }>, "many">>;
@@ -2500,9 +2500,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2500
2500
  agentId: string;
2501
2501
  sessionId: string;
2502
2502
  evidence: {
2503
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2504
- label: string;
2505
2503
  id: string;
2504
+ label: string;
2505
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2506
2506
  capture: "at_action" | "historical_lookup" | "fixture";
2507
2507
  locator?: string | undefined;
2508
2508
  }[];
@@ -2518,9 +2518,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2518
2518
  recallReceiptId: string;
2519
2519
  capturedAtAction: boolean;
2520
2520
  evidence?: {
2521
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2522
- label: string;
2523
2521
  id: string;
2522
+ label: string;
2523
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2524
2524
  capture: "at_action" | "historical_lookup" | "fixture";
2525
2525
  locator?: string | undefined;
2526
2526
  }[] | undefined;
@@ -2536,15 +2536,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2536
2536
  locator: z.ZodOptional<z.ZodString>;
2537
2537
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2538
2538
  }, "strict", z.ZodTypeAny, {
2539
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2540
- label: string;
2541
2539
  id: string;
2540
+ label: string;
2541
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2542
2542
  capture: "at_action" | "historical_lookup" | "fixture";
2543
2543
  locator?: string | undefined;
2544
2544
  }, {
2545
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2546
- label: string;
2547
2545
  id: string;
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
  }>, "many">>;
@@ -2556,9 +2556,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2556
2556
  agentId: string;
2557
2557
  sessionId: string;
2558
2558
  evidence: {
2559
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2560
- label: string;
2561
2559
  id: string;
2560
+ label: string;
2561
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2562
2562
  capture: "at_action" | "historical_lookup" | "fixture";
2563
2563
  locator?: string | undefined;
2564
2564
  }[];
@@ -2575,9 +2575,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2575
2575
  recallReceiptId: string;
2576
2576
  staleDecisionAbsent: boolean;
2577
2577
  evidence?: {
2578
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2579
- label: string;
2580
2578
  id: string;
2579
+ label: string;
2580
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2581
2581
  capture: "at_action" | "historical_lookup" | "fixture";
2582
2582
  locator?: string | undefined;
2583
2583
  }[] | undefined;
@@ -2592,37 +2592,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2592
2592
  locator: z.ZodOptional<z.ZodString>;
2593
2593
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2594
2594
  }, "strict", z.ZodTypeAny, {
2595
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2596
- label: string;
2597
2595
  id: string;
2596
+ label: string;
2597
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
2598
  capture: "at_action" | "historical_lookup" | "fixture";
2599
2599
  locator?: string | undefined;
2600
2600
  }, {
2601
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2602
- label: string;
2603
2601
  id: string;
2602
+ label: string;
2603
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2604
2604
  capture: "at_action" | "historical_lookup" | "fixture";
2605
2605
  locator?: string | undefined;
2606
2606
  }>, "many">>;
2607
2607
  }, "strict", z.ZodTypeAny, {
2608
- kind: "mission_completed";
2609
2608
  summary: string;
2609
+ kind: "mission_completed";
2610
2610
  outcome: "failed" | "recovered" | "inconclusive";
2611
2611
  evidence: {
2612
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2613
- label: string;
2614
2612
  id: string;
2613
+ label: string;
2614
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2615
2615
  capture: "at_action" | "historical_lookup" | "fixture";
2616
2616
  locator?: string | undefined;
2617
2617
  }[];
2618
2618
  }, {
2619
- kind: "mission_completed";
2620
2619
  summary: string;
2620
+ kind: "mission_completed";
2621
2621
  outcome: "failed" | "recovered" | "inconclusive";
2622
2622
  evidence?: {
2623
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2624
- label: string;
2625
2623
  id: string;
2624
+ label: string;
2625
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2626
2626
  capture: "at_action" | "historical_lookup" | "fixture";
2627
2627
  locator?: string | undefined;
2628
2628
  }[] | undefined;
@@ -2630,38 +2630,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2630
2630
  kind: "mission_started";
2631
2631
  title: string;
2632
2632
  evidence: {
2633
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2634
- label: string;
2635
2633
  id: string;
2634
+ label: string;
2635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2636
2636
  capture: "at_action" | "historical_lookup" | "fixture";
2637
2637
  locator?: string | undefined;
2638
2638
  }[];
2639
2639
  objective: string;
2640
2640
  runMode: "replay" | "fixture" | "live";
2641
2641
  } | {
2642
- kind: "agent_status";
2643
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2644
2642
  label: string;
2643
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2644
+ kind: "agent_status";
2645
2645
  role: string;
2646
2646
  agentId: string;
2647
2647
  sessionId: string;
2648
2648
  evidence: {
2649
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2650
- label: string;
2651
2649
  id: string;
2650
+ label: string;
2651
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2652
2652
  capture: "at_action" | "historical_lookup" | "fixture";
2653
2653
  locator?: string | undefined;
2654
2654
  }[];
2655
2655
  detail?: string | undefined;
2656
2656
  } | {
2657
- kind: "agent_output";
2658
2657
  summary: string;
2658
+ kind: "agent_output";
2659
2659
  agentId: string;
2660
2660
  sessionId: string;
2661
2661
  evidence: {
2662
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2663
- label: string;
2664
2662
  id: string;
2663
+ label: string;
2664
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2665
2665
  capture: "at_action" | "historical_lookup" | "fixture";
2666
2666
  locator?: string | undefined;
2667
2667
  }[];
@@ -2672,9 +2672,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2672
2672
  statement: string;
2673
2673
  sessionId: string;
2674
2674
  evidence: {
2675
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2676
- label: string;
2677
2675
  id: string;
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
  }[];
@@ -2682,12 +2682,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2682
2682
  decisionId: string;
2683
2683
  confidence?: number | undefined;
2684
2684
  } | {
2685
- kind: "conflict_detected";
2686
2685
  summary: string;
2686
+ kind: "conflict_detected";
2687
2687
  evidence: {
2688
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2689
- label: string;
2690
2688
  id: string;
2689
+ label: string;
2690
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2691
2691
  capture: "at_action" | "historical_lookup" | "fixture";
2692
2692
  locator?: string | undefined;
2693
2693
  }[];
@@ -2695,14 +2695,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2695
2695
  decisionIds: string[];
2696
2696
  agentIds: string[];
2697
2697
  } | {
2698
- kind: "test_result";
2699
2698
  summary: string;
2700
2699
  status: "error" | "failed" | "passed";
2700
+ kind: "test_result";
2701
2701
  command: string;
2702
2702
  evidence: {
2703
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2704
- label: string;
2705
2703
  id: string;
2704
+ label: string;
2705
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2706
2706
  capture: "at_action" | "historical_lookup" | "fixture";
2707
2707
  locator?: string | undefined;
2708
2708
  }[];
@@ -2715,9 +2715,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2715
2715
  statement: string;
2716
2716
  rationale: string;
2717
2717
  evidence: {
2718
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2719
- label: string;
2720
2718
  id: string;
2719
+ label: string;
2720
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2721
2721
  capture: "at_action" | "historical_lookup" | "fixture";
2722
2722
  locator?: string | undefined;
2723
2723
  }[];
@@ -2729,25 +2729,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2729
2729
  } | {
2730
2730
  kind: "correction_approved";
2731
2731
  evidence: {
2732
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2733
- label: string;
2734
2732
  id: string;
2733
+ label: string;
2734
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2735
2735
  capture: "at_action" | "historical_lookup" | "fixture";
2736
2736
  locator?: string | undefined;
2737
2737
  }[];
2738
2738
  correctionId: string;
2739
2739
  approvedBy: {
2740
- kind: "agent" | "human";
2741
- label: string;
2742
2740
  id: string;
2741
+ label: string;
2742
+ kind: "agent" | "human";
2743
2743
  };
2744
2744
  note?: string | undefined;
2745
2745
  } | {
2746
2746
  kind: "decision_superseded";
2747
2747
  evidence: {
2748
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2749
- label: string;
2750
2748
  id: string;
2749
+ label: string;
2750
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2751
2751
  capture: "at_action" | "historical_lookup" | "fixture";
2752
2752
  locator?: string | undefined;
2753
2753
  }[];
@@ -2760,9 +2760,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2760
2760
  agentId: string;
2761
2761
  sessionId: string;
2762
2762
  evidence: {
2763
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2764
- label: string;
2765
2763
  id: string;
2764
+ label: string;
2765
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2766
2766
  capture: "at_action" | "historical_lookup" | "fixture";
2767
2767
  locator?: string | undefined;
2768
2768
  }[];
@@ -2774,9 +2774,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2774
2774
  agentId: string;
2775
2775
  sessionId: string;
2776
2776
  evidence: {
2777
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2778
- label: string;
2779
2777
  id: string;
2778
+ label: string;
2779
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2780
2780
  capture: "at_action" | "historical_lookup" | "fixture";
2781
2781
  locator?: string | undefined;
2782
2782
  }[];
@@ -2785,13 +2785,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2785
2785
  recallReceiptId: string;
2786
2786
  staleDecisionAbsent: boolean;
2787
2787
  } | {
2788
- kind: "mission_completed";
2789
2788
  summary: string;
2789
+ kind: "mission_completed";
2790
2790
  outcome: "failed" | "recovered" | "inconclusive";
2791
2791
  evidence: {
2792
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2793
- label: string;
2794
2792
  id: string;
2793
+ label: string;
2794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
2795
  capture: "at_action" | "historical_lookup" | "fixture";
2796
2796
  locator?: string | undefined;
2797
2797
  }[];
@@ -2801,37 +2801,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2801
2801
  objective: string;
2802
2802
  runMode: "replay" | "fixture" | "live";
2803
2803
  evidence?: {
2804
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2805
- label: string;
2806
2804
  id: string;
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;
2810
2810
  } | {
2811
- kind: "agent_status";
2812
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2813
2811
  label: string;
2812
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2813
+ kind: "agent_status";
2814
2814
  role: string;
2815
2815
  agentId: string;
2816
2816
  sessionId: string;
2817
2817
  detail?: string | undefined;
2818
2818
  evidence?: {
2819
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2820
- label: string;
2821
2819
  id: string;
2820
+ label: string;
2821
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2822
2822
  capture: "at_action" | "historical_lookup" | "fixture";
2823
2823
  locator?: string | undefined;
2824
2824
  }[] | undefined;
2825
2825
  } | {
2826
- kind: "agent_output";
2827
2826
  summary: string;
2827
+ kind: "agent_output";
2828
2828
  agentId: string;
2829
2829
  sessionId: string;
2830
2830
  outputId: string;
2831
2831
  evidence?: {
2832
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2833
- label: string;
2834
2832
  id: string;
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,37 +2844,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2844
2844
  decisionId: string;
2845
2845
  confidence?: number | undefined;
2846
2846
  evidence?: {
2847
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2848
- label: string;
2849
2847
  id: string;
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;
2853
2853
  } | {
2854
- kind: "conflict_detected";
2855
2854
  summary: string;
2855
+ kind: "conflict_detected";
2856
2856
  conflictId: string;
2857
2857
  decisionIds: string[];
2858
2858
  agentIds: string[];
2859
2859
  evidence?: {
2860
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2861
- label: string;
2862
2860
  id: string;
2861
+ label: string;
2862
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2863
2863
  capture: "at_action" | "historical_lookup" | "fixture";
2864
2864
  locator?: string | undefined;
2865
2865
  }[] | undefined;
2866
2866
  } | {
2867
- kind: "test_result";
2868
2867
  summary: string;
2869
2868
  status: "error" | "failed" | "passed";
2869
+ kind: "test_result";
2870
2870
  command: string;
2871
2871
  decisionId: string;
2872
2872
  testId: string;
2873
2873
  durationMs?: number | undefined;
2874
2874
  evidence?: {
2875
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2876
- label: string;
2877
2875
  id: string;
2876
+ label: string;
2877
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2878
2878
  capture: "at_action" | "historical_lookup" | "fixture";
2879
2879
  locator?: string | undefined;
2880
2880
  }[] | undefined;
@@ -2889,9 +2889,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2889
2889
  supersedesDecisionIds: string[];
2890
2890
  proposedBy: string;
2891
2891
  evidence?: {
2892
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2893
- label: string;
2894
2892
  id: string;
2893
+ label: string;
2894
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2895
2895
  capture: "at_action" | "historical_lookup" | "fixture";
2896
2896
  locator?: string | undefined;
2897
2897
  }[] | undefined;
@@ -2899,15 +2899,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2899
2899
  kind: "correction_approved";
2900
2900
  correctionId: string;
2901
2901
  approvedBy: {
2902
- kind: "agent" | "human";
2903
- label: string;
2904
2902
  id: string;
2903
+ label: string;
2904
+ kind: "agent" | "human";
2905
2905
  };
2906
2906
  note?: string | undefined;
2907
2907
  evidence?: {
2908
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
- label: string;
2910
2908
  id: string;
2909
+ label: string;
2910
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2911
2911
  capture: "at_action" | "historical_lookup" | "fixture";
2912
2912
  locator?: string | undefined;
2913
2913
  }[] | undefined;
@@ -2917,9 +2917,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2917
2917
  correctionId: string;
2918
2918
  replacementDecisionId: string;
2919
2919
  evidence?: {
2920
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2921
- label: string;
2922
2920
  id: string;
2921
+ label: string;
2922
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2923
2923
  capture: "at_action" | "historical_lookup" | "fixture";
2924
2924
  locator?: string | undefined;
2925
2925
  }[] | undefined;
@@ -2932,9 +2932,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2932
2932
  recallReceiptId: string;
2933
2933
  capturedAtAction: boolean;
2934
2934
  evidence?: {
2935
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2936
- label: string;
2937
2935
  id: string;
2936
+ label: string;
2937
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2938
2938
  capture: "at_action" | "historical_lookup" | "fixture";
2939
2939
  locator?: string | undefined;
2940
2940
  }[] | undefined;
@@ -2947,20 +2947,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2947
2947
  recallReceiptId: string;
2948
2948
  staleDecisionAbsent: boolean;
2949
2949
  evidence?: {
2950
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2951
- label: string;
2952
2950
  id: string;
2951
+ label: string;
2952
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2953
2953
  capture: "at_action" | "historical_lookup" | "fixture";
2954
2954
  locator?: string | undefined;
2955
2955
  }[] | undefined;
2956
2956
  } | {
2957
- kind: "mission_completed";
2958
2957
  summary: string;
2958
+ kind: "mission_completed";
2959
2959
  outcome: "failed" | "recovered" | "inconclusive";
2960
2960
  evidence?: {
2961
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2962
- label: string;
2963
2961
  id: string;
2962
+ label: string;
2963
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2964
2964
  capture: "at_action" | "historical_lookup" | "fixture";
2965
2965
  locator?: string | undefined;
2966
2966
  }[] | undefined;
@@ -2970,38 +2970,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2970
2970
  kind: "mission_started";
2971
2971
  title: string;
2972
2972
  evidence: {
2973
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2974
- label: string;
2975
2973
  id: string;
2974
+ label: string;
2975
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2976
2976
  capture: "at_action" | "historical_lookup" | "fixture";
2977
2977
  locator?: string | undefined;
2978
2978
  }[];
2979
2979
  objective: string;
2980
2980
  runMode: "replay" | "fixture" | "live";
2981
2981
  } | {
2982
- kind: "agent_status";
2983
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2984
2982
  label: string;
2983
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2984
+ kind: "agent_status";
2985
2985
  role: string;
2986
2986
  agentId: string;
2987
2987
  sessionId: string;
2988
2988
  evidence: {
2989
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2990
- label: string;
2991
2989
  id: string;
2990
+ label: string;
2991
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2992
2992
  capture: "at_action" | "historical_lookup" | "fixture";
2993
2993
  locator?: string | undefined;
2994
2994
  }[];
2995
2995
  detail?: string | undefined;
2996
2996
  } | {
2997
- kind: "agent_output";
2998
2997
  summary: string;
2998
+ kind: "agent_output";
2999
2999
  agentId: string;
3000
3000
  sessionId: string;
3001
3001
  evidence: {
3002
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3003
- label: string;
3004
3002
  id: string;
3003
+ label: string;
3004
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3005
3005
  capture: "at_action" | "historical_lookup" | "fixture";
3006
3006
  locator?: string | undefined;
3007
3007
  }[];
@@ -3012,9 +3012,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3012
3012
  statement: string;
3013
3013
  sessionId: string;
3014
3014
  evidence: {
3015
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3016
- label: string;
3017
3015
  id: string;
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
  }[];
@@ -3022,12 +3022,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3022
3022
  decisionId: string;
3023
3023
  confidence?: number | undefined;
3024
3024
  } | {
3025
- kind: "conflict_detected";
3026
3025
  summary: string;
3026
+ kind: "conflict_detected";
3027
3027
  evidence: {
3028
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3029
- label: string;
3030
3028
  id: string;
3029
+ label: string;
3030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3031
3031
  capture: "at_action" | "historical_lookup" | "fixture";
3032
3032
  locator?: string | undefined;
3033
3033
  }[];
@@ -3035,14 +3035,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3035
3035
  decisionIds: string[];
3036
3036
  agentIds: string[];
3037
3037
  } | {
3038
- kind: "test_result";
3039
3038
  summary: string;
3040
3039
  status: "error" | "failed" | "passed";
3040
+ kind: "test_result";
3041
3041
  command: string;
3042
3042
  evidence: {
3043
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3044
- label: string;
3045
3043
  id: string;
3044
+ label: string;
3045
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3046
3046
  capture: "at_action" | "historical_lookup" | "fixture";
3047
3047
  locator?: string | undefined;
3048
3048
  }[];
@@ -3055,9 +3055,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3055
3055
  statement: string;
3056
3056
  rationale: string;
3057
3057
  evidence: {
3058
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3059
- label: string;
3060
3058
  id: string;
3059
+ label: string;
3060
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3061
3061
  capture: "at_action" | "historical_lookup" | "fixture";
3062
3062
  locator?: string | undefined;
3063
3063
  }[];
@@ -3069,25 +3069,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3069
3069
  } | {
3070
3070
  kind: "correction_approved";
3071
3071
  evidence: {
3072
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3073
- label: string;
3074
3072
  id: string;
3073
+ label: string;
3074
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3075
3075
  capture: "at_action" | "historical_lookup" | "fixture";
3076
3076
  locator?: string | undefined;
3077
3077
  }[];
3078
3078
  correctionId: string;
3079
3079
  approvedBy: {
3080
- kind: "agent" | "human";
3081
- label: string;
3082
3080
  id: string;
3081
+ label: string;
3082
+ kind: "agent" | "human";
3083
3083
  };
3084
3084
  note?: string | undefined;
3085
3085
  } | {
3086
3086
  kind: "decision_superseded";
3087
3087
  evidence: {
3088
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3089
- label: string;
3090
3088
  id: string;
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
  }[];
@@ -3100,9 +3100,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3100
3100
  agentId: string;
3101
3101
  sessionId: string;
3102
3102
  evidence: {
3103
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3104
- label: string;
3105
3103
  id: string;
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
  }[];
@@ -3114,9 +3114,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3114
3114
  agentId: string;
3115
3115
  sessionId: string;
3116
3116
  evidence: {
3117
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3118
- label: string;
3119
3117
  id: string;
3118
+ label: string;
3119
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3120
3120
  capture: "at_action" | "historical_lookup" | "fixture";
3121
3121
  locator?: string | undefined;
3122
3122
  }[];
@@ -3125,13 +3125,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3125
3125
  recallReceiptId: string;
3126
3126
  staleDecisionAbsent: boolean;
3127
3127
  } | {
3128
- kind: "mission_completed";
3129
3128
  summary: string;
3129
+ kind: "mission_completed";
3130
3130
  outcome: "failed" | "recovered" | "inconclusive";
3131
3131
  evidence: {
3132
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3133
- label: string;
3134
3132
  id: string;
3133
+ label: string;
3134
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3135
3135
  capture: "at_action" | "historical_lookup" | "fixture";
3136
3136
  locator?: string | undefined;
3137
3137
  }[];
@@ -3145,37 +3145,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3145
3145
  objective: string;
3146
3146
  runMode: "replay" | "fixture" | "live";
3147
3147
  evidence?: {
3148
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3149
- label: string;
3150
3148
  id: string;
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;
3154
3154
  } | {
3155
- kind: "agent_status";
3156
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3157
3155
  label: string;
3156
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3157
+ kind: "agent_status";
3158
3158
  role: string;
3159
3159
  agentId: string;
3160
3160
  sessionId: string;
3161
3161
  detail?: string | undefined;
3162
3162
  evidence?: {
3163
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3164
- label: string;
3165
3163
  id: string;
3164
+ label: string;
3165
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3166
3166
  capture: "at_action" | "historical_lookup" | "fixture";
3167
3167
  locator?: string | undefined;
3168
3168
  }[] | undefined;
3169
3169
  } | {
3170
- kind: "agent_output";
3171
3170
  summary: string;
3171
+ kind: "agent_output";
3172
3172
  agentId: string;
3173
3173
  sessionId: string;
3174
3174
  outputId: string;
3175
3175
  evidence?: {
3176
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3177
- label: string;
3178
3176
  id: string;
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,37 +3188,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3188
3188
  decisionId: string;
3189
3189
  confidence?: number | undefined;
3190
3190
  evidence?: {
3191
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3192
- label: string;
3193
3191
  id: string;
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;
3197
3197
  } | {
3198
- kind: "conflict_detected";
3199
3198
  summary: string;
3199
+ kind: "conflict_detected";
3200
3200
  conflictId: string;
3201
3201
  decisionIds: string[];
3202
3202
  agentIds: string[];
3203
3203
  evidence?: {
3204
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3205
- label: string;
3206
3204
  id: string;
3205
+ label: string;
3206
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3207
3207
  capture: "at_action" | "historical_lookup" | "fixture";
3208
3208
  locator?: string | undefined;
3209
3209
  }[] | undefined;
3210
3210
  } | {
3211
- kind: "test_result";
3212
3211
  summary: string;
3213
3212
  status: "error" | "failed" | "passed";
3213
+ kind: "test_result";
3214
3214
  command: string;
3215
3215
  decisionId: string;
3216
3216
  testId: string;
3217
3217
  durationMs?: number | undefined;
3218
3218
  evidence?: {
3219
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3220
- label: string;
3221
3219
  id: string;
3220
+ label: string;
3221
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3222
3222
  capture: "at_action" | "historical_lookup" | "fixture";
3223
3223
  locator?: string | undefined;
3224
3224
  }[] | undefined;
@@ -3233,9 +3233,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3233
3233
  supersedesDecisionIds: string[];
3234
3234
  proposedBy: string;
3235
3235
  evidence?: {
3236
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3237
- label: string;
3238
3236
  id: string;
3237
+ label: string;
3238
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3239
3239
  capture: "at_action" | "historical_lookup" | "fixture";
3240
3240
  locator?: string | undefined;
3241
3241
  }[] | undefined;
@@ -3243,15 +3243,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3243
3243
  kind: "correction_approved";
3244
3244
  correctionId: string;
3245
3245
  approvedBy: {
3246
- kind: "agent" | "human";
3247
- label: string;
3248
3246
  id: string;
3247
+ label: string;
3248
+ kind: "agent" | "human";
3249
3249
  };
3250
3250
  note?: string | undefined;
3251
3251
  evidence?: {
3252
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3253
- label: string;
3254
3252
  id: string;
3253
+ label: string;
3254
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3255
3255
  capture: "at_action" | "historical_lookup" | "fixture";
3256
3256
  locator?: string | undefined;
3257
3257
  }[] | undefined;
@@ -3261,9 +3261,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3261
3261
  correctionId: string;
3262
3262
  replacementDecisionId: string;
3263
3263
  evidence?: {
3264
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3265
- label: string;
3266
3264
  id: string;
3265
+ label: string;
3266
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3267
3267
  capture: "at_action" | "historical_lookup" | "fixture";
3268
3268
  locator?: string | undefined;
3269
3269
  }[] | undefined;
@@ -3276,9 +3276,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3276
3276
  recallReceiptId: string;
3277
3277
  capturedAtAction: boolean;
3278
3278
  evidence?: {
3279
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3280
- label: string;
3281
3279
  id: string;
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;
@@ -3291,20 +3291,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3291
3291
  recallReceiptId: string;
3292
3292
  staleDecisionAbsent: boolean;
3293
3293
  evidence?: {
3294
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3295
- label: string;
3296
3294
  id: string;
3295
+ label: string;
3296
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3297
3297
  capture: "at_action" | "historical_lookup" | "fixture";
3298
3298
  locator?: string | undefined;
3299
3299
  }[] | undefined;
3300
3300
  } | {
3301
- kind: "mission_completed";
3302
3301
  summary: string;
3302
+ kind: "mission_completed";
3303
3303
  outcome: "failed" | "recovered" | "inconclusive";
3304
3304
  evidence?: {
3305
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3306
- label: string;
3307
3305
  id: string;
3306
+ label: string;
3307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3308
3308
  capture: "at_action" | "historical_lookup" | "fixture";
3309
3309
  locator?: string | undefined;
3310
3310
  }[] | undefined;
@@ -3334,15 +3334,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3334
3334
  locator: z.ZodOptional<z.ZodString>;
3335
3335
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3336
3336
  }, "strict", z.ZodTypeAny, {
3337
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3338
- label: string;
3339
3337
  id: string;
3338
+ label: string;
3339
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3340
3340
  capture: "at_action" | "historical_lookup" | "fixture";
3341
3341
  locator?: string | undefined;
3342
3342
  }, {
3343
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
- label: string;
3345
3343
  id: string;
3344
+ label: string;
3345
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3346
3346
  capture: "at_action" | "historical_lookup" | "fixture";
3347
3347
  locator?: string | undefined;
3348
3348
  }>, "many">>;
@@ -3350,9 +3350,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3350
3350
  kind: "mission_started";
3351
3351
  title: string;
3352
3352
  evidence: {
3353
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3354
- label: string;
3355
3353
  id: string;
3354
+ label: string;
3355
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3356
3356
  capture: "at_action" | "historical_lookup" | "fixture";
3357
3357
  locator?: string | undefined;
3358
3358
  }[];
@@ -3364,9 +3364,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3364
3364
  objective: string;
3365
3365
  runMode: "replay" | "fixture" | "live";
3366
3366
  evidence?: {
3367
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3368
- label: string;
3369
3367
  id: string;
3368
+ label: string;
3369
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3370
3370
  capture: "at_action" | "historical_lookup" | "fixture";
3371
3371
  locator?: string | undefined;
3372
3372
  }[] | undefined;
@@ -3382,15 +3382,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3382
3382
  locator: z.ZodOptional<z.ZodString>;
3383
3383
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3384
3384
  }, "strict", z.ZodTypeAny, {
3385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3386
- label: string;
3387
3385
  id: string;
3386
+ label: string;
3387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3388
3388
  capture: "at_action" | "historical_lookup" | "fixture";
3389
3389
  locator?: string | undefined;
3390
3390
  }, {
3391
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3392
- label: string;
3393
3391
  id: string;
3392
+ label: string;
3393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3394
3394
  capture: "at_action" | "historical_lookup" | "fixture";
3395
3395
  locator?: string | undefined;
3396
3396
  }>, "many">>;
@@ -3398,32 +3398,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3398
3398
  sessionId: z.ZodString;
3399
3399
  kind: z.ZodLiteral<"agent_status">;
3400
3400
  }, "strict", z.ZodTypeAny, {
3401
- kind: "agent_status";
3402
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3403
3401
  label: string;
3402
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3403
+ kind: "agent_status";
3404
3404
  role: string;
3405
3405
  agentId: string;
3406
3406
  sessionId: string;
3407
3407
  evidence: {
3408
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3409
- label: string;
3410
3408
  id: string;
3409
+ label: string;
3410
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3411
3411
  capture: "at_action" | "historical_lookup" | "fixture";
3412
3412
  locator?: string | undefined;
3413
3413
  }[];
3414
3414
  detail?: string | undefined;
3415
3415
  }, {
3416
- kind: "agent_status";
3417
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3418
3416
  label: string;
3417
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3418
+ kind: "agent_status";
3419
3419
  role: string;
3420
3420
  agentId: string;
3421
3421
  sessionId: string;
3422
3422
  detail?: string | undefined;
3423
3423
  evidence?: {
3424
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3425
- label: string;
3426
3424
  id: string;
3425
+ label: string;
3426
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3427
3427
  capture: "at_action" | "historical_lookup" | "fixture";
3428
3428
  locator?: string | undefined;
3429
3429
  }[] | undefined;
@@ -3437,15 +3437,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3437
3437
  locator: z.ZodOptional<z.ZodString>;
3438
3438
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3439
3439
  }, "strict", z.ZodTypeAny, {
3440
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3441
- label: string;
3442
3440
  id: string;
3441
+ label: string;
3442
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3443
3443
  capture: "at_action" | "historical_lookup" | "fixture";
3444
3444
  locator?: string | undefined;
3445
3445
  }, {
3446
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3447
- label: string;
3448
3446
  id: string;
3447
+ label: string;
3448
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3449
3449
  capture: "at_action" | "historical_lookup" | "fixture";
3450
3450
  locator?: string | undefined;
3451
3451
  }>, "many">>;
@@ -3453,28 +3453,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3453
3453
  sessionId: z.ZodString;
3454
3454
  kind: z.ZodLiteral<"agent_output">;
3455
3455
  }, "strict", z.ZodTypeAny, {
3456
- kind: "agent_output";
3457
3456
  summary: string;
3457
+ kind: "agent_output";
3458
3458
  agentId: string;
3459
3459
  sessionId: string;
3460
3460
  evidence: {
3461
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3462
- label: string;
3463
3461
  id: string;
3462
+ label: string;
3463
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3464
3464
  capture: "at_action" | "historical_lookup" | "fixture";
3465
3465
  locator?: string | undefined;
3466
3466
  }[];
3467
3467
  outputId: string;
3468
3468
  }, {
3469
- kind: "agent_output";
3470
3469
  summary: string;
3470
+ kind: "agent_output";
3471
3471
  agentId: string;
3472
3472
  sessionId: string;
3473
3473
  outputId: string;
3474
3474
  evidence?: {
3475
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3476
- label: string;
3477
3475
  id: string;
3476
+ label: string;
3477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3478
3478
  capture: "at_action" | "historical_lookup" | "fixture";
3479
3479
  locator?: string | undefined;
3480
3480
  }[] | undefined;
@@ -3490,15 +3490,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3490
3490
  locator: z.ZodOptional<z.ZodString>;
3491
3491
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3492
3492
  }, "strict", z.ZodTypeAny, {
3493
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3494
- label: string;
3495
3493
  id: string;
3494
+ label: string;
3495
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3496
3496
  capture: "at_action" | "historical_lookup" | "fixture";
3497
3497
  locator?: string | undefined;
3498
3498
  }, {
3499
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3500
- label: string;
3501
3499
  id: string;
3500
+ label: string;
3501
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3502
3502
  capture: "at_action" | "historical_lookup" | "fixture";
3503
3503
  locator?: string | undefined;
3504
3504
  }>, "many">>;
@@ -3511,9 +3511,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3511
3511
  statement: string;
3512
3512
  sessionId: string;
3513
3513
  evidence: {
3514
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3515
- label: string;
3516
3514
  id: string;
3515
+ label: string;
3516
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3517
3517
  capture: "at_action" | "historical_lookup" | "fixture";
3518
3518
  locator?: string | undefined;
3519
3519
  }[];
@@ -3529,9 +3529,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3529
3529
  decisionId: string;
3530
3530
  confidence?: number | undefined;
3531
3531
  evidence?: {
3532
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3533
- label: string;
3534
3532
  id: string;
3533
+ label: string;
3534
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3535
3535
  capture: "at_action" | "historical_lookup" | "fixture";
3536
3536
  locator?: string | undefined;
3537
3537
  }[] | undefined;
@@ -3548,25 +3548,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3548
3548
  locator: z.ZodOptional<z.ZodString>;
3549
3549
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3550
3550
  }, "strict", z.ZodTypeAny, {
3551
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3552
- label: string;
3553
3551
  id: string;
3552
+ label: string;
3553
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3554
3554
  capture: "at_action" | "historical_lookup" | "fixture";
3555
3555
  locator?: string | undefined;
3556
3556
  }, {
3557
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3558
- label: string;
3559
3557
  id: string;
3558
+ label: string;
3559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3560
3560
  capture: "at_action" | "historical_lookup" | "fixture";
3561
3561
  locator?: string | undefined;
3562
3562
  }>, "many">>;
3563
3563
  }, "strict", z.ZodTypeAny, {
3564
- kind: "conflict_detected";
3565
3564
  summary: string;
3565
+ kind: "conflict_detected";
3566
3566
  evidence: {
3567
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3568
- label: string;
3569
3567
  id: string;
3568
+ label: string;
3569
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3570
3570
  capture: "at_action" | "historical_lookup" | "fixture";
3571
3571
  locator?: string | undefined;
3572
3572
  }[];
@@ -3574,15 +3574,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3574
3574
  decisionIds: string[];
3575
3575
  agentIds: string[];
3576
3576
  }, {
3577
- kind: "conflict_detected";
3578
3577
  summary: string;
3578
+ kind: "conflict_detected";
3579
3579
  conflictId: string;
3580
3580
  decisionIds: string[];
3581
3581
  agentIds: string[];
3582
3582
  evidence?: {
3583
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3584
- label: string;
3585
3583
  id: string;
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
  }[] | undefined;
@@ -3602,27 +3602,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3602
3602
  locator: z.ZodOptional<z.ZodString>;
3603
3603
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3604
3604
  }, "strict", z.ZodTypeAny, {
3605
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3606
- label: string;
3607
3605
  id: string;
3606
+ label: string;
3607
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3608
3608
  capture: "at_action" | "historical_lookup" | "fixture";
3609
3609
  locator?: string | undefined;
3610
3610
  }, {
3611
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3612
- label: string;
3613
3611
  id: string;
3612
+ label: string;
3613
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3614
3614
  capture: "at_action" | "historical_lookup" | "fixture";
3615
3615
  locator?: string | undefined;
3616
3616
  }>, "many">>;
3617
3617
  }, "strict", z.ZodTypeAny, {
3618
- kind: "test_result";
3619
3618
  summary: string;
3620
3619
  status: "error" | "failed" | "passed";
3620
+ kind: "test_result";
3621
3621
  command: string;
3622
3622
  evidence: {
3623
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3624
- label: string;
3625
3623
  id: string;
3624
+ label: string;
3625
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3626
3626
  capture: "at_action" | "historical_lookup" | "fixture";
3627
3627
  locator?: string | undefined;
3628
3628
  }[];
@@ -3631,17 +3631,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3631
3631
  durationMs?: number | undefined;
3632
3632
  correctionId?: string | undefined;
3633
3633
  }, {
3634
- kind: "test_result";
3635
3634
  summary: string;
3636
3635
  status: "error" | "failed" | "passed";
3636
+ kind: "test_result";
3637
3637
  command: string;
3638
3638
  decisionId: string;
3639
3639
  testId: string;
3640
3640
  durationMs?: number | undefined;
3641
3641
  evidence?: {
3642
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3643
- label: string;
3644
3642
  id: string;
3643
+ label: string;
3644
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3645
3645
  capture: "at_action" | "historical_lookup" | "fixture";
3646
3646
  locator?: string | undefined;
3647
3647
  }[] | undefined;
@@ -3662,15 +3662,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3662
3662
  locator: z.ZodOptional<z.ZodString>;
3663
3663
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3664
3664
  }, "strict", z.ZodTypeAny, {
3665
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3666
- label: string;
3667
3665
  id: string;
3666
+ label: string;
3667
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3668
3668
  capture: "at_action" | "historical_lookup" | "fixture";
3669
3669
  locator?: string | undefined;
3670
3670
  }, {
3671
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3672
- label: string;
3673
3671
  id: string;
3672
+ label: string;
3673
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
3674
  capture: "at_action" | "historical_lookup" | "fixture";
3675
3675
  locator?: string | undefined;
3676
3676
  }>, "many">>;
@@ -3679,9 +3679,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3679
3679
  statement: string;
3680
3680
  rationale: string;
3681
3681
  evidence: {
3682
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3683
- label: string;
3684
3682
  id: string;
3683
+ label: string;
3684
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3685
3685
  capture: "at_action" | "historical_lookup" | "fixture";
3686
3686
  locator?: string | undefined;
3687
3687
  }[];
@@ -3700,9 +3700,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3700
3700
  supersedesDecisionIds: string[];
3701
3701
  proposedBy: string;
3702
3702
  evidence?: {
3703
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3704
- label: string;
3705
3703
  id: string;
3704
+ label: string;
3705
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3706
3706
  capture: "at_action" | "historical_lookup" | "fixture";
3707
3707
  locator?: string | undefined;
3708
3708
  }[] | undefined;
@@ -3714,13 +3714,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3714
3714
  id: z.ZodString;
3715
3715
  label: z.ZodString;
3716
3716
  }, "strict", z.ZodTypeAny, {
3717
- kind: "agent" | "human";
3718
- label: string;
3719
3717
  id: string;
3720
- }, {
3721
- kind: "agent" | "human";
3722
3718
  label: string;
3719
+ kind: "agent" | "human";
3720
+ }, {
3723
3721
  id: string;
3722
+ label: string;
3723
+ kind: "agent" | "human";
3724
3724
  }>;
3725
3725
  note: z.ZodOptional<z.ZodString>;
3726
3726
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3730,47 +3730,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3730
3730
  locator: z.ZodOptional<z.ZodString>;
3731
3731
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3732
3732
  }, "strict", z.ZodTypeAny, {
3733
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3734
- label: string;
3735
3733
  id: string;
3734
+ label: string;
3735
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3736
3736
  capture: "at_action" | "historical_lookup" | "fixture";
3737
3737
  locator?: string | undefined;
3738
3738
  }, {
3739
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
- label: string;
3741
3739
  id: string;
3740
+ label: string;
3741
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3742
3742
  capture: "at_action" | "historical_lookup" | "fixture";
3743
3743
  locator?: string | undefined;
3744
3744
  }>, "many">>;
3745
3745
  }, "strict", z.ZodTypeAny, {
3746
3746
  kind: "correction_approved";
3747
3747
  evidence: {
3748
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3749
- label: string;
3750
3748
  id: string;
3749
+ label: string;
3750
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3751
3751
  capture: "at_action" | "historical_lookup" | "fixture";
3752
3752
  locator?: string | undefined;
3753
3753
  }[];
3754
3754
  correctionId: string;
3755
3755
  approvedBy: {
3756
- kind: "agent" | "human";
3757
- label: string;
3758
3756
  id: string;
3757
+ label: string;
3758
+ kind: "agent" | "human";
3759
3759
  };
3760
3760
  note?: string | undefined;
3761
3761
  }, {
3762
3762
  kind: "correction_approved";
3763
3763
  correctionId: string;
3764
3764
  approvedBy: {
3765
- kind: "agent" | "human";
3766
- label: string;
3767
3765
  id: string;
3766
+ label: string;
3767
+ kind: "agent" | "human";
3768
3768
  };
3769
3769
  note?: string | undefined;
3770
3770
  evidence?: {
3771
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3772
- label: string;
3773
3771
  id: string;
3772
+ label: string;
3773
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3774
3774
  capture: "at_action" | "historical_lookup" | "fixture";
3775
3775
  locator?: string | undefined;
3776
3776
  }[] | undefined;
@@ -3786,24 +3786,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3786
3786
  locator: z.ZodOptional<z.ZodString>;
3787
3787
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3788
3788
  }, "strict", z.ZodTypeAny, {
3789
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3790
- label: string;
3791
3789
  id: string;
3790
+ label: string;
3791
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3792
3792
  capture: "at_action" | "historical_lookup" | "fixture";
3793
3793
  locator?: string | undefined;
3794
3794
  }, {
3795
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3796
- label: string;
3797
3795
  id: string;
3796
+ label: string;
3797
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3798
3798
  capture: "at_action" | "historical_lookup" | "fixture";
3799
3799
  locator?: string | undefined;
3800
3800
  }>, "many">>;
3801
3801
  }, "strict", z.ZodTypeAny, {
3802
3802
  kind: "decision_superseded";
3803
3803
  evidence: {
3804
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3805
- label: string;
3806
3804
  id: string;
3805
+ label: string;
3806
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3807
3807
  capture: "at_action" | "historical_lookup" | "fixture";
3808
3808
  locator?: string | undefined;
3809
3809
  }[];
@@ -3816,9 +3816,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3816
3816
  correctionId: string;
3817
3817
  replacementDecisionId: string;
3818
3818
  evidence?: {
3819
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3820
- label: string;
3821
3819
  id: string;
3820
+ label: string;
3821
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3822
3822
  capture: "at_action" | "historical_lookup" | "fixture";
3823
3823
  locator?: string | undefined;
3824
3824
  }[] | undefined;
@@ -3834,15 +3834,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3834
3834
  locator: z.ZodOptional<z.ZodString>;
3835
3835
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3836
3836
  }, "strict", z.ZodTypeAny, {
3837
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3838
- label: string;
3839
3837
  id: string;
3838
+ label: string;
3839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3840
3840
  capture: "at_action" | "historical_lookup" | "fixture";
3841
3841
  locator?: string | undefined;
3842
3842
  }, {
3843
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3844
- label: string;
3845
3843
  id: string;
3844
+ label: string;
3845
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3846
3846
  capture: "at_action" | "historical_lookup" | "fixture";
3847
3847
  locator?: string | undefined;
3848
3848
  }>, "many">>;
@@ -3855,9 +3855,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3855
3855
  agentId: string;
3856
3856
  sessionId: string;
3857
3857
  evidence: {
3858
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3859
- label: string;
3860
3858
  id: string;
3859
+ label: string;
3860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3861
3861
  capture: "at_action" | "historical_lookup" | "fixture";
3862
3862
  locator?: string | undefined;
3863
3863
  }[];
@@ -3873,9 +3873,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3873
3873
  recallReceiptId: string;
3874
3874
  capturedAtAction: boolean;
3875
3875
  evidence?: {
3876
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3877
- label: string;
3878
3876
  id: string;
3877
+ label: string;
3878
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3879
3879
  capture: "at_action" | "historical_lookup" | "fixture";
3880
3880
  locator?: string | undefined;
3881
3881
  }[] | undefined;
@@ -3891,15 +3891,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3891
3891
  locator: z.ZodOptional<z.ZodString>;
3892
3892
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3893
3893
  }, "strict", z.ZodTypeAny, {
3894
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3895
- label: string;
3896
3894
  id: string;
3895
+ label: string;
3896
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3897
3897
  capture: "at_action" | "historical_lookup" | "fixture";
3898
3898
  locator?: string | undefined;
3899
3899
  }, {
3900
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3901
- label: string;
3902
3900
  id: string;
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
  }>, "many">>;
@@ -3911,9 +3911,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3911
3911
  agentId: string;
3912
3912
  sessionId: string;
3913
3913
  evidence: {
3914
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3915
- label: string;
3916
3914
  id: string;
3915
+ label: string;
3916
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3917
3917
  capture: "at_action" | "historical_lookup" | "fixture";
3918
3918
  locator?: string | undefined;
3919
3919
  }[];
@@ -3930,9 +3930,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3930
3930
  recallReceiptId: string;
3931
3931
  staleDecisionAbsent: boolean;
3932
3932
  evidence?: {
3933
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3934
- label: string;
3935
3933
  id: string;
3934
+ label: string;
3935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3936
3936
  capture: "at_action" | "historical_lookup" | "fixture";
3937
3937
  locator?: string | undefined;
3938
3938
  }[] | undefined;
@@ -3947,37 +3947,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3947
3947
  locator: z.ZodOptional<z.ZodString>;
3948
3948
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3949
3949
  }, "strict", z.ZodTypeAny, {
3950
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3951
- label: string;
3952
3950
  id: string;
3951
+ label: string;
3952
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
3953
  capture: "at_action" | "historical_lookup" | "fixture";
3954
3954
  locator?: string | undefined;
3955
3955
  }, {
3956
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3957
- label: string;
3958
3956
  id: string;
3957
+ label: string;
3958
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3959
3959
  capture: "at_action" | "historical_lookup" | "fixture";
3960
3960
  locator?: string | undefined;
3961
3961
  }>, "many">>;
3962
3962
  }, "strict", z.ZodTypeAny, {
3963
- kind: "mission_completed";
3964
3963
  summary: string;
3964
+ kind: "mission_completed";
3965
3965
  outcome: "failed" | "recovered" | "inconclusive";
3966
3966
  evidence: {
3967
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3968
- label: string;
3969
3967
  id: string;
3968
+ label: string;
3969
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3970
3970
  capture: "at_action" | "historical_lookup" | "fixture";
3971
3971
  locator?: string | undefined;
3972
3972
  }[];
3973
3973
  }, {
3974
- kind: "mission_completed";
3975
3974
  summary: string;
3975
+ kind: "mission_completed";
3976
3976
  outcome: "failed" | "recovered" | "inconclusive";
3977
3977
  evidence?: {
3978
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3979
- label: string;
3980
3978
  id: string;
3979
+ label: string;
3980
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3981
3981
  capture: "at_action" | "historical_lookup" | "fixture";
3982
3982
  locator?: string | undefined;
3983
3983
  }[] | undefined;
@@ -3985,38 +3985,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3985
3985
  kind: "mission_started";
3986
3986
  title: string;
3987
3987
  evidence: {
3988
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3989
- label: string;
3990
3988
  id: string;
3989
+ label: string;
3990
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3991
3991
  capture: "at_action" | "historical_lookup" | "fixture";
3992
3992
  locator?: string | undefined;
3993
3993
  }[];
3994
3994
  objective: string;
3995
3995
  runMode: "replay" | "fixture" | "live";
3996
3996
  } | {
3997
- kind: "agent_status";
3998
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3999
3997
  label: string;
3998
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3999
+ kind: "agent_status";
4000
4000
  role: string;
4001
4001
  agentId: string;
4002
4002
  sessionId: string;
4003
4003
  evidence: {
4004
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4005
- label: string;
4006
4004
  id: string;
4005
+ label: string;
4006
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4007
4007
  capture: "at_action" | "historical_lookup" | "fixture";
4008
4008
  locator?: string | undefined;
4009
4009
  }[];
4010
4010
  detail?: string | undefined;
4011
4011
  } | {
4012
- kind: "agent_output";
4013
4012
  summary: string;
4013
+ kind: "agent_output";
4014
4014
  agentId: string;
4015
4015
  sessionId: string;
4016
4016
  evidence: {
4017
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4018
- label: string;
4019
4017
  id: string;
4018
+ label: string;
4019
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4020
4020
  capture: "at_action" | "historical_lookup" | "fixture";
4021
4021
  locator?: string | undefined;
4022
4022
  }[];
@@ -4027,9 +4027,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4027
4027
  statement: string;
4028
4028
  sessionId: string;
4029
4029
  evidence: {
4030
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4031
- label: string;
4032
4030
  id: string;
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
  }[];
@@ -4037,12 +4037,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4037
4037
  decisionId: string;
4038
4038
  confidence?: number | undefined;
4039
4039
  } | {
4040
- kind: "conflict_detected";
4041
4040
  summary: string;
4041
+ kind: "conflict_detected";
4042
4042
  evidence: {
4043
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4044
- label: string;
4045
4043
  id: string;
4044
+ label: string;
4045
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4046
4046
  capture: "at_action" | "historical_lookup" | "fixture";
4047
4047
  locator?: string | undefined;
4048
4048
  }[];
@@ -4050,14 +4050,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4050
4050
  decisionIds: string[];
4051
4051
  agentIds: string[];
4052
4052
  } | {
4053
- kind: "test_result";
4054
4053
  summary: string;
4055
4054
  status: "error" | "failed" | "passed";
4055
+ kind: "test_result";
4056
4056
  command: string;
4057
4057
  evidence: {
4058
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4059
- label: string;
4060
4058
  id: string;
4059
+ label: string;
4060
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4061
4061
  capture: "at_action" | "historical_lookup" | "fixture";
4062
4062
  locator?: string | undefined;
4063
4063
  }[];
@@ -4070,9 +4070,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4070
4070
  statement: string;
4071
4071
  rationale: string;
4072
4072
  evidence: {
4073
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4074
- label: string;
4075
4073
  id: string;
4074
+ label: string;
4075
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4076
4076
  capture: "at_action" | "historical_lookup" | "fixture";
4077
4077
  locator?: string | undefined;
4078
4078
  }[];
@@ -4084,25 +4084,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4084
4084
  } | {
4085
4085
  kind: "correction_approved";
4086
4086
  evidence: {
4087
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4088
- label: string;
4089
4087
  id: string;
4088
+ label: string;
4089
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4090
4090
  capture: "at_action" | "historical_lookup" | "fixture";
4091
4091
  locator?: string | undefined;
4092
4092
  }[];
4093
4093
  correctionId: string;
4094
4094
  approvedBy: {
4095
- kind: "agent" | "human";
4096
- label: string;
4097
4095
  id: string;
4096
+ label: string;
4097
+ kind: "agent" | "human";
4098
4098
  };
4099
4099
  note?: string | undefined;
4100
4100
  } | {
4101
4101
  kind: "decision_superseded";
4102
4102
  evidence: {
4103
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4104
- label: string;
4105
4103
  id: string;
4104
+ label: string;
4105
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4106
4106
  capture: "at_action" | "historical_lookup" | "fixture";
4107
4107
  locator?: string | undefined;
4108
4108
  }[];
@@ -4115,9 +4115,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4115
4115
  agentId: string;
4116
4116
  sessionId: string;
4117
4117
  evidence: {
4118
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4119
- label: string;
4120
4118
  id: string;
4119
+ label: string;
4120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4121
4121
  capture: "at_action" | "historical_lookup" | "fixture";
4122
4122
  locator?: string | undefined;
4123
4123
  }[];
@@ -4129,9 +4129,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4129
4129
  agentId: string;
4130
4130
  sessionId: string;
4131
4131
  evidence: {
4132
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4133
- label: string;
4134
4132
  id: string;
4133
+ label: string;
4134
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4135
4135
  capture: "at_action" | "historical_lookup" | "fixture";
4136
4136
  locator?: string | undefined;
4137
4137
  }[];
@@ -4140,13 +4140,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4140
4140
  recallReceiptId: string;
4141
4141
  staleDecisionAbsent: boolean;
4142
4142
  } | {
4143
- kind: "mission_completed";
4144
4143
  summary: string;
4144
+ kind: "mission_completed";
4145
4145
  outcome: "failed" | "recovered" | "inconclusive";
4146
4146
  evidence: {
4147
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4148
- label: string;
4149
4147
  id: string;
4148
+ label: string;
4149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
4150
  capture: "at_action" | "historical_lookup" | "fixture";
4151
4151
  locator?: string | undefined;
4152
4152
  }[];
@@ -4156,37 +4156,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4156
4156
  objective: string;
4157
4157
  runMode: "replay" | "fixture" | "live";
4158
4158
  evidence?: {
4159
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4160
- label: string;
4161
4159
  id: string;
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;
4165
4165
  } | {
4166
- kind: "agent_status";
4167
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4168
4166
  label: string;
4167
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4168
+ kind: "agent_status";
4169
4169
  role: string;
4170
4170
  agentId: string;
4171
4171
  sessionId: string;
4172
4172
  detail?: string | undefined;
4173
4173
  evidence?: {
4174
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4175
- label: string;
4176
4174
  id: string;
4175
+ label: string;
4176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4177
4177
  capture: "at_action" | "historical_lookup" | "fixture";
4178
4178
  locator?: string | undefined;
4179
4179
  }[] | undefined;
4180
4180
  } | {
4181
- kind: "agent_output";
4182
4181
  summary: string;
4182
+ kind: "agent_output";
4183
4183
  agentId: string;
4184
4184
  sessionId: string;
4185
4185
  outputId: string;
4186
4186
  evidence?: {
4187
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4188
- label: string;
4189
4187
  id: string;
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,37 +4199,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4199
4199
  decisionId: string;
4200
4200
  confidence?: number | undefined;
4201
4201
  evidence?: {
4202
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4203
- label: string;
4204
4202
  id: string;
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;
4208
4208
  } | {
4209
- kind: "conflict_detected";
4210
4209
  summary: string;
4210
+ kind: "conflict_detected";
4211
4211
  conflictId: string;
4212
4212
  decisionIds: string[];
4213
4213
  agentIds: string[];
4214
4214
  evidence?: {
4215
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4216
- label: string;
4217
4215
  id: string;
4216
+ label: string;
4217
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4218
4218
  capture: "at_action" | "historical_lookup" | "fixture";
4219
4219
  locator?: string | undefined;
4220
4220
  }[] | undefined;
4221
4221
  } | {
4222
- kind: "test_result";
4223
4222
  summary: string;
4224
4223
  status: "error" | "failed" | "passed";
4224
+ kind: "test_result";
4225
4225
  command: string;
4226
4226
  decisionId: string;
4227
4227
  testId: string;
4228
4228
  durationMs?: number | undefined;
4229
4229
  evidence?: {
4230
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4231
- label: string;
4232
4230
  id: string;
4231
+ label: string;
4232
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4233
4233
  capture: "at_action" | "historical_lookup" | "fixture";
4234
4234
  locator?: string | undefined;
4235
4235
  }[] | undefined;
@@ -4244,9 +4244,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4244
4244
  supersedesDecisionIds: string[];
4245
4245
  proposedBy: string;
4246
4246
  evidence?: {
4247
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4248
- label: string;
4249
4247
  id: string;
4248
+ label: string;
4249
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4250
4250
  capture: "at_action" | "historical_lookup" | "fixture";
4251
4251
  locator?: string | undefined;
4252
4252
  }[] | undefined;
@@ -4254,15 +4254,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4254
4254
  kind: "correction_approved";
4255
4255
  correctionId: string;
4256
4256
  approvedBy: {
4257
- kind: "agent" | "human";
4258
- label: string;
4259
4257
  id: string;
4258
+ label: string;
4259
+ kind: "agent" | "human";
4260
4260
  };
4261
4261
  note?: string | undefined;
4262
4262
  evidence?: {
4263
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4264
- label: string;
4265
4263
  id: string;
4264
+ label: string;
4265
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4266
4266
  capture: "at_action" | "historical_lookup" | "fixture";
4267
4267
  locator?: string | undefined;
4268
4268
  }[] | undefined;
@@ -4272,9 +4272,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4272
4272
  correctionId: string;
4273
4273
  replacementDecisionId: string;
4274
4274
  evidence?: {
4275
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4276
- label: string;
4277
4275
  id: string;
4276
+ label: string;
4277
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4278
4278
  capture: "at_action" | "historical_lookup" | "fixture";
4279
4279
  locator?: string | undefined;
4280
4280
  }[] | undefined;
@@ -4287,9 +4287,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4287
4287
  recallReceiptId: string;
4288
4288
  capturedAtAction: boolean;
4289
4289
  evidence?: {
4290
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4291
- label: string;
4292
4290
  id: string;
4291
+ label: string;
4292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4293
4293
  capture: "at_action" | "historical_lookup" | "fixture";
4294
4294
  locator?: string | undefined;
4295
4295
  }[] | undefined;
@@ -4302,63 +4302,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4302
4302
  recallReceiptId: string;
4303
4303
  staleDecisionAbsent: boolean;
4304
4304
  evidence?: {
4305
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4306
- label: string;
4307
4305
  id: string;
4306
+ label: string;
4307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4308
4308
  capture: "at_action" | "historical_lookup" | "fixture";
4309
4309
  locator?: string | undefined;
4310
4310
  }[] | undefined;
4311
4311
  } | {
4312
- kind: "mission_completed";
4313
4312
  summary: string;
4313
+ kind: "mission_completed";
4314
4314
  outcome: "failed" | "recovered" | "inconclusive";
4315
4315
  evidence?: {
4316
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4317
- label: string;
4318
4316
  id: string;
4317
+ label: string;
4318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4319
4319
  capture: "at_action" | "historical_lookup" | "fixture";
4320
4320
  locator?: string | undefined;
4321
4321
  }[] | undefined;
4322
4322
  }>;
4323
4323
  }, "strict", z.ZodTypeAny, {
4324
- schemaVersion: "1";
4324
+ namespace: string;
4325
4325
  recordedAt: string;
4326
+ schemaVersion: "1";
4326
4327
  payload: {
4327
4328
  kind: "mission_started";
4328
4329
  title: string;
4329
4330
  evidence: {
4330
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4331
- label: string;
4332
4331
  id: string;
4332
+ label: string;
4333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4333
4334
  capture: "at_action" | "historical_lookup" | "fixture";
4334
4335
  locator?: string | undefined;
4335
4336
  }[];
4336
4337
  objective: string;
4337
4338
  runMode: "replay" | "fixture" | "live";
4338
4339
  } | {
4339
- kind: "agent_status";
4340
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4341
4340
  label: string;
4341
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4342
+ kind: "agent_status";
4342
4343
  role: string;
4343
4344
  agentId: string;
4344
4345
  sessionId: string;
4345
4346
  evidence: {
4346
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4347
- label: string;
4348
4347
  id: string;
4348
+ label: string;
4349
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4349
4350
  capture: "at_action" | "historical_lookup" | "fixture";
4350
4351
  locator?: string | undefined;
4351
4352
  }[];
4352
4353
  detail?: string | undefined;
4353
4354
  } | {
4354
- kind: "agent_output";
4355
4355
  summary: string;
4356
+ kind: "agent_output";
4356
4357
  agentId: string;
4357
4358
  sessionId: string;
4358
4359
  evidence: {
4359
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4360
- label: string;
4361
4360
  id: string;
4361
+ label: string;
4362
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4362
4363
  capture: "at_action" | "historical_lookup" | "fixture";
4363
4364
  locator?: string | undefined;
4364
4365
  }[];
@@ -4369,9 +4370,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4369
4370
  statement: string;
4370
4371
  sessionId: string;
4371
4372
  evidence: {
4372
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4373
- label: string;
4374
4373
  id: string;
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
  }[];
@@ -4379,12 +4380,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4379
4380
  decisionId: string;
4380
4381
  confidence?: number | undefined;
4381
4382
  } | {
4382
- kind: "conflict_detected";
4383
4383
  summary: string;
4384
+ kind: "conflict_detected";
4384
4385
  evidence: {
4385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4386
- label: string;
4387
4386
  id: string;
4387
+ label: string;
4388
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4388
4389
  capture: "at_action" | "historical_lookup" | "fixture";
4389
4390
  locator?: string | undefined;
4390
4391
  }[];
@@ -4392,14 +4393,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4392
4393
  decisionIds: string[];
4393
4394
  agentIds: string[];
4394
4395
  } | {
4395
- kind: "test_result";
4396
4396
  summary: string;
4397
4397
  status: "error" | "failed" | "passed";
4398
+ kind: "test_result";
4398
4399
  command: string;
4399
4400
  evidence: {
4400
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4401
- label: string;
4402
4401
  id: string;
4402
+ label: string;
4403
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4403
4404
  capture: "at_action" | "historical_lookup" | "fixture";
4404
4405
  locator?: string | undefined;
4405
4406
  }[];
@@ -4412,9 +4413,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4412
4413
  statement: string;
4413
4414
  rationale: string;
4414
4415
  evidence: {
4415
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4416
- label: string;
4417
4416
  id: string;
4417
+ label: string;
4418
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4418
4419
  capture: "at_action" | "historical_lookup" | "fixture";
4419
4420
  locator?: string | undefined;
4420
4421
  }[];
@@ -4426,25 +4427,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4426
4427
  } | {
4427
4428
  kind: "correction_approved";
4428
4429
  evidence: {
4429
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4430
- label: string;
4431
4430
  id: string;
4431
+ label: string;
4432
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4432
4433
  capture: "at_action" | "historical_lookup" | "fixture";
4433
4434
  locator?: string | undefined;
4434
4435
  }[];
4435
4436
  correctionId: string;
4436
4437
  approvedBy: {
4437
- kind: "agent" | "human";
4438
- label: string;
4439
4438
  id: string;
4439
+ label: string;
4440
+ kind: "agent" | "human";
4440
4441
  };
4441
4442
  note?: string | undefined;
4442
4443
  } | {
4443
4444
  kind: "decision_superseded";
4444
4445
  evidence: {
4445
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4446
- label: string;
4447
4446
  id: string;
4447
+ label: string;
4448
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4448
4449
  capture: "at_action" | "historical_lookup" | "fixture";
4449
4450
  locator?: string | undefined;
4450
4451
  }[];
@@ -4457,9 +4458,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4457
4458
  agentId: string;
4458
4459
  sessionId: string;
4459
4460
  evidence: {
4460
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4461
- label: string;
4462
4461
  id: string;
4462
+ label: string;
4463
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4463
4464
  capture: "at_action" | "historical_lookup" | "fixture";
4464
4465
  locator?: string | undefined;
4465
4466
  }[];
@@ -4471,9 +4472,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4471
4472
  agentId: string;
4472
4473
  sessionId: string;
4473
4474
  evidence: {
4474
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4475
- label: string;
4476
4475
  id: string;
4476
+ label: string;
4477
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4477
4478
  capture: "at_action" | "historical_lookup" | "fixture";
4478
4479
  locator?: string | undefined;
4479
4480
  }[];
@@ -4482,63 +4483,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4482
4483
  recallReceiptId: string;
4483
4484
  staleDecisionAbsent: boolean;
4484
4485
  } | {
4485
- kind: "mission_completed";
4486
4486
  summary: string;
4487
+ kind: "mission_completed";
4487
4488
  outcome: "failed" | "recovered" | "inconclusive";
4488
4489
  evidence: {
4489
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4490
- label: string;
4491
4490
  id: string;
4491
+ label: string;
4492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4492
4493
  capture: "at_action" | "historical_lookup" | "fixture";
4493
4494
  locator?: string | undefined;
4494
4495
  }[];
4495
4496
  };
4496
- namespace: string;
4497
4497
  eventId: string;
4498
4498
  occurredAt: string;
4499
4499
  missionId: string;
4500
4500
  authenticatedPrincipal?: string | undefined;
4501
4501
  idempotencyKey?: string | undefined;
4502
4502
  }, {
4503
- schemaVersion: "1";
4503
+ namespace: string;
4504
4504
  recordedAt: string;
4505
+ schemaVersion: "1";
4505
4506
  payload: {
4506
4507
  kind: "mission_started";
4507
4508
  title: string;
4508
4509
  objective: string;
4509
4510
  runMode: "replay" | "fixture" | "live";
4510
4511
  evidence?: {
4511
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4512
- label: string;
4513
4512
  id: string;
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;
4517
4518
  } | {
4518
- kind: "agent_status";
4519
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4520
4519
  label: string;
4520
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4521
+ kind: "agent_status";
4521
4522
  role: string;
4522
4523
  agentId: string;
4523
4524
  sessionId: string;
4524
4525
  detail?: string | undefined;
4525
4526
  evidence?: {
4526
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4527
- label: string;
4528
4527
  id: string;
4528
+ label: string;
4529
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4529
4530
  capture: "at_action" | "historical_lookup" | "fixture";
4530
4531
  locator?: string | undefined;
4531
4532
  }[] | undefined;
4532
4533
  } | {
4533
- kind: "agent_output";
4534
4534
  summary: string;
4535
+ kind: "agent_output";
4535
4536
  agentId: string;
4536
4537
  sessionId: string;
4537
4538
  outputId: string;
4538
4539
  evidence?: {
4539
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4540
- label: string;
4541
4540
  id: string;
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,37 +4552,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4551
4552
  decisionId: string;
4552
4553
  confidence?: number | undefined;
4553
4554
  evidence?: {
4554
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4555
- label: string;
4556
4555
  id: string;
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;
4560
4561
  } | {
4561
- kind: "conflict_detected";
4562
4562
  summary: string;
4563
+ kind: "conflict_detected";
4563
4564
  conflictId: string;
4564
4565
  decisionIds: string[];
4565
4566
  agentIds: string[];
4566
4567
  evidence?: {
4567
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4568
- label: string;
4569
4568
  id: string;
4569
+ label: string;
4570
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4570
4571
  capture: "at_action" | "historical_lookup" | "fixture";
4571
4572
  locator?: string | undefined;
4572
4573
  }[] | undefined;
4573
4574
  } | {
4574
- kind: "test_result";
4575
4575
  summary: string;
4576
4576
  status: "error" | "failed" | "passed";
4577
+ kind: "test_result";
4577
4578
  command: string;
4578
4579
  decisionId: string;
4579
4580
  testId: string;
4580
4581
  durationMs?: number | undefined;
4581
4582
  evidence?: {
4582
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4583
- label: string;
4584
4583
  id: string;
4584
+ label: string;
4585
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4585
4586
  capture: "at_action" | "historical_lookup" | "fixture";
4586
4587
  locator?: string | undefined;
4587
4588
  }[] | undefined;
@@ -4596,9 +4597,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4596
4597
  supersedesDecisionIds: string[];
4597
4598
  proposedBy: string;
4598
4599
  evidence?: {
4599
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4600
- label: string;
4601
4600
  id: string;
4601
+ label: string;
4602
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4602
4603
  capture: "at_action" | "historical_lookup" | "fixture";
4603
4604
  locator?: string | undefined;
4604
4605
  }[] | undefined;
@@ -4606,15 +4607,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4606
4607
  kind: "correction_approved";
4607
4608
  correctionId: string;
4608
4609
  approvedBy: {
4609
- kind: "agent" | "human";
4610
- label: string;
4611
4610
  id: string;
4611
+ label: string;
4612
+ kind: "agent" | "human";
4612
4613
  };
4613
4614
  note?: string | undefined;
4614
4615
  evidence?: {
4615
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4616
- label: string;
4617
4616
  id: string;
4617
+ label: string;
4618
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4618
4619
  capture: "at_action" | "historical_lookup" | "fixture";
4619
4620
  locator?: string | undefined;
4620
4621
  }[] | undefined;
@@ -4624,9 +4625,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4624
4625
  correctionId: string;
4625
4626
  replacementDecisionId: string;
4626
4627
  evidence?: {
4627
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4628
- label: string;
4629
4628
  id: string;
4629
+ label: string;
4630
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4630
4631
  capture: "at_action" | "historical_lookup" | "fixture";
4631
4632
  locator?: string | undefined;
4632
4633
  }[] | undefined;
@@ -4639,9 +4640,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4639
4640
  recallReceiptId: string;
4640
4641
  capturedAtAction: boolean;
4641
4642
  evidence?: {
4642
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4643
- label: string;
4644
4643
  id: string;
4644
+ label: string;
4645
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4645
4646
  capture: "at_action" | "historical_lookup" | "fixture";
4646
4647
  locator?: string | undefined;
4647
4648
  }[] | undefined;
@@ -4654,25 +4655,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4654
4655
  recallReceiptId: string;
4655
4656
  staleDecisionAbsent: boolean;
4656
4657
  evidence?: {
4657
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4658
- label: string;
4659
4658
  id: string;
4659
+ label: string;
4660
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4660
4661
  capture: "at_action" | "historical_lookup" | "fixture";
4661
4662
  locator?: string | undefined;
4662
4663
  }[] | undefined;
4663
4664
  } | {
4664
- kind: "mission_completed";
4665
4665
  summary: string;
4666
+ kind: "mission_completed";
4666
4667
  outcome: "failed" | "recovered" | "inconclusive";
4667
4668
  evidence?: {
4668
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4669
- label: string;
4670
4669
  id: string;
4670
+ label: string;
4671
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4671
4672
  capture: "at_action" | "historical_lookup" | "fixture";
4672
4673
  locator?: string | undefined;
4673
4674
  }[] | undefined;
4674
4675
  };
4675
- namespace: string;
4676
4676
  eventId: string;
4677
4677
  occurredAt: string;
4678
4678
  missionId: string;