@remnic/core 9.69.30 → 9.69.31

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 (39) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-authorization-probe.d.ts +1 -1
  3. package/dist/access-boundary.d.ts +1 -1
  4. package/dist/access-extraction-force-flush.d.ts +1 -1
  5. package/dist/access-http-briefing.d.ts +1 -1
  6. package/dist/access-http-lcm-compaction.d.ts +1 -1
  7. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  8. package/dist/access-http-offline-stream.d.ts +1 -1
  9. package/dist/access-http.d.ts +2 -2
  10. package/dist/access-lcm-surface.d.ts +1 -1
  11. package/dist/access-mcp.d.ts +1 -1
  12. package/dist/access-observe-write-surface.d.ts +1 -1
  13. package/dist/access-operations.d.ts +6 -6
  14. package/dist/access-recall-concurrency.d.ts +1 -1
  15. package/dist/access-recall-response.d.ts +1 -1
  16. package/dist/access-recall-surface.d.ts +1 -1
  17. package/dist/access-schema.d.ts +91 -91
  18. package/dist/access-service-helpers.d.ts +1 -1
  19. package/dist/access-service.d.ts +1 -1
  20. package/dist/access-surface-catalog.d.ts +1 -1
  21. package/dist/{cli-DD0P-lu8.d.ts → cli-B_YwqoIr.d.ts} +1 -1
  22. package/dist/cli.d.ts +2 -2
  23. package/dist/deep-recall-http-glue.d.ts +1 -1
  24. package/dist/deep-recall-mcp-tools.d.ts +1 -1
  25. package/dist/external-wiki-access.d.ts +1 -1
  26. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  27. package/dist/index.d.ts +680 -680
  28. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  29. package/dist/memory-subject-cli.d.ts +1 -1
  30. package/dist/memory-subject.d.ts +1 -1
  31. package/dist/{public-http-C4i8Opxc.d.ts → public-http-D6d4W8x-.d.ts} +1 -1
  32. package/dist/schemas.d.ts +176 -176
  33. package/dist/shared-context/manager.d.ts +6 -6
  34. package/dist/support-passport/index.d.ts +4 -4
  35. package/dist/transfer/types.d.ts +78 -78
  36. package/dist/who-knows-cli.d.ts +1 -1
  37. package/dist/who-knows.d.ts +1 -1
  38. package/package.json +2 -2
  39. package/dist/{access-service-DWdY9Mlk.d.ts → access-service-Cv8Rizo0.d.ts} +64 -64
package/dist/index.d.ts CHANGED
@@ -36,8 +36,8 @@ export { bT as ACTION_GATE_DEFAULTS, bU as ACTION_GATE_DEFAULT_MAX_ADVISORIES_PE
36
36
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
37
37
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
38
38
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
39
- import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-DWdY9Mlk.js';
40
- export { N as EngramMcpServer, Q as OPERATION_NAMES, O as OperationName, T as PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS, U as PROMOTION_CANDIDATES_MCP_TOOLS, V as ProcedureLibraryMaintenanceReport, X as ProcedureMaintenanceAction, Y as ProcedureMaintenanceActionKind, Z as ProcedureMaintenanceEvidence, _ as ProcedureMaintenanceMarker, $ as ProcedureMaintenanceReasonCode, a0 as ProcedureStatsConfigSnapshot, a1 as ProcedureStatsRecent, a2 as ProcedureStatsReport, a3 as ProcedureStatusCounts, a4 as PromotionCandidate, P as PromotionCandidatesResult, a5 as PromotionReuseSignal, a6 as ReviewDeckActionReceipt, a7 as ReviewDeckActionRequest, a8 as ReviewDeckChoice, a9 as ReviewDeckCursorError, aa as ReviewDeckCursorScope, ab as ReviewDeckEvidence, ac as ReviewDeckItem, ad as ReviewDeckPage, ae as ReviewDeckRisk, af as ReviewDeckUndoRequest, ag as SUBJECT_GUARD_MODES, ah as SUBJECT_GUARD_OVERRIDE_FLAG, ai as SUBJECT_VALUES, aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, S as SubjectBackfillReport, ap as SubjectBackfillStorage, aq as SubjectGuardDecision, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, av as SupportPassportAnswerOutput, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, ay as SupportPassportCard, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aC as SupportPassportCardMutationInput, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aF as SupportPassportCardServiceDependencies, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aJ as SupportPassportCreateGrantInput, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aO as SupportPassportCreatedGrant, aP as SupportPassportCreatedGrantSchema, aQ as SupportPassportDraftCard, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aY as SupportPassportGrantCardRef, aZ as SupportPassportGrantCardRefSchema, a_ as SupportPassportGrantState, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b2 as SupportPassportManualDraftInput, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b6 as SupportPassportModelAdapter, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, ba as SupportPassportModelAuditSink, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bh as SupportPassportModelRoute, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bo as SupportPassportOwnerGrant, bp as SupportPassportOwnerGrantSchema, bq as SupportPassportOwnerScope, br as SupportPassportPublicCardSchema, bs as SupportPassportPublicGuide, bt as SupportPassportPublicGuideSchema, bu as SupportPassportReplaceCardInput, bv as SupportPassportReplaceCardInputSchema, bw as SupportPassportRevokeGrantInput, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bK as acceptsSupportPassportModelResponse, bL as backfillMemorySubjects, bM as buildReviewDeckPage, bN as buildSupportPassportDirectGatewayConfig, bO as compareReviewDeckRows, bP as computeProcedureStats, bQ as computePromotionCandidates, bR as computeReviewItemRevision, bS as computeSupportPassportCardRevision, bT as computeWhoKnows, bU as createSupportPassportModelAdapter, bV as decodeReviewDeckCursor, bW as encodeReviewDeckCursor, bX as evaluateSubjectGuard, bY as formatProcedureStatsText, bZ as handleWhoKnowsHttpQuery, b_ as hashSupportPassportAuditValues, b$ as isMemorySubject, c0 as isSharedPromotionTarget, c1 as isSubjectGuardMode, c2 as loadWhoKnowsEntities, c3 as projectReviewDeckItem, c4 as promotionCandidateKey, c5 as resolveSupportPassportModelRoutePlan, c6 as resolveWriteSubject, c7 as runProcedureLibraryMaintenance, c8 as subjectDefaultForCategory, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-DWdY9Mlk.js';
39
+ import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-Cv8Rizo0.js';
40
+ export { N as EngramMcpServer, Q as OPERATION_NAMES, O as OperationName, T as PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS, U as PROMOTION_CANDIDATES_MCP_TOOLS, V as ProcedureLibraryMaintenanceReport, X as ProcedureMaintenanceAction, Y as ProcedureMaintenanceActionKind, Z as ProcedureMaintenanceEvidence, _ as ProcedureMaintenanceMarker, $ as ProcedureMaintenanceReasonCode, a0 as ProcedureStatsConfigSnapshot, a1 as ProcedureStatsRecent, a2 as ProcedureStatsReport, a3 as ProcedureStatusCounts, a4 as PromotionCandidate, P as PromotionCandidatesResult, a5 as PromotionReuseSignal, a6 as ReviewDeckActionReceipt, a7 as ReviewDeckActionRequest, a8 as ReviewDeckChoice, a9 as ReviewDeckCursorError, aa as ReviewDeckCursorScope, ab as ReviewDeckEvidence, ac as ReviewDeckItem, ad as ReviewDeckPage, ae as ReviewDeckRisk, af as ReviewDeckUndoRequest, ag as SUBJECT_GUARD_MODES, ah as SUBJECT_GUARD_OVERRIDE_FLAG, ai as SUBJECT_VALUES, aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, S as SubjectBackfillReport, ap as SubjectBackfillStorage, aq as SubjectGuardDecision, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, av as SupportPassportAnswerOutput, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, ay as SupportPassportCard, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aC as SupportPassportCardMutationInput, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aF as SupportPassportCardServiceDependencies, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aJ as SupportPassportCreateGrantInput, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aO as SupportPassportCreatedGrant, aP as SupportPassportCreatedGrantSchema, aQ as SupportPassportDraftCard, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aY as SupportPassportGrantCardRef, aZ as SupportPassportGrantCardRefSchema, a_ as SupportPassportGrantState, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b2 as SupportPassportManualDraftInput, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b6 as SupportPassportModelAdapter, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, ba as SupportPassportModelAuditSink, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bh as SupportPassportModelRoute, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bo as SupportPassportOwnerGrant, bp as SupportPassportOwnerGrantSchema, bq as SupportPassportOwnerScope, br as SupportPassportPublicCardSchema, bs as SupportPassportPublicGuide, bt as SupportPassportPublicGuideSchema, bu as SupportPassportReplaceCardInput, bv as SupportPassportReplaceCardInputSchema, bw as SupportPassportRevokeGrantInput, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bK as acceptsSupportPassportModelResponse, bL as backfillMemorySubjects, bM as buildReviewDeckPage, bN as buildSupportPassportDirectGatewayConfig, bO as compareReviewDeckRows, bP as computeProcedureStats, bQ as computePromotionCandidates, bR as computeReviewItemRevision, bS as computeSupportPassportCardRevision, bT as computeWhoKnows, bU as createSupportPassportModelAdapter, bV as decodeReviewDeckCursor, bW as encodeReviewDeckCursor, bX as evaluateSubjectGuard, bY as formatProcedureStatsText, bZ as handleWhoKnowsHttpQuery, b_ as hashSupportPassportAuditValues, b$ as isMemorySubject, c0 as isSharedPromotionTarget, c1 as isSubjectGuardMode, c2 as loadWhoKnowsEntities, c3 as projectReviewDeckItem, c4 as promotionCandidateKey, c5 as resolveSupportPassportModelRoutePlan, c6 as resolveWriteSubject, c7 as runProcedureLibraryMaintenance, c8 as subjectDefaultForCategory, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-Cv8Rizo0.js';
41
41
  import { LocalLlmClient } from './local-llm.js';
42
42
  import { FallbackLlmClient } from './fallback-llm.js';
43
43
  export { FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -60,10 +60,10 @@ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatal
60
60
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
61
61
  export { storagePathHash } from './storage-paths.js';
62
62
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
63
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-DD0P-lu8.js';
63
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-B_YwqoIr.js';
64
64
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
65
65
  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';
66
- 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-C4i8Opxc.js';
66
+ 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-D6d4W8x-.js';
67
67
  import { z } from 'zod';
68
68
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
69
69
  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';
@@ -1237,15 +1237,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
1237
1237
  locator: z.ZodOptional<z.ZodString>;
1238
1238
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1239
1239
  }, "strict", z.ZodTypeAny, {
1240
- id: string;
1240
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1241
1241
  label: string;
1242
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1242
+ id: string;
1243
1243
  capture: "at_action" | "historical_lookup" | "fixture";
1244
1244
  locator?: string | undefined;
1245
1245
  }, {
1246
- id: string;
1246
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1247
1247
  label: string;
1248
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1248
+ id: string;
1249
1249
  capture: "at_action" | "historical_lookup" | "fixture";
1250
1250
  locator?: string | undefined;
1251
1251
  }>;
@@ -1262,15 +1262,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1262
1262
  locator: z.ZodOptional<z.ZodString>;
1263
1263
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1264
1264
  }, "strict", z.ZodTypeAny, {
1265
- id: string;
1265
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1266
1266
  label: string;
1267
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1267
+ id: string;
1268
1268
  capture: "at_action" | "historical_lookup" | "fixture";
1269
1269
  locator?: string | undefined;
1270
1270
  }, {
1271
- id: string;
1271
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1272
1272
  label: string;
1273
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1273
+ id: string;
1274
1274
  capture: "at_action" | "historical_lookup" | "fixture";
1275
1275
  locator?: string | undefined;
1276
1276
  }>, "many">>;
@@ -1278,9 +1278,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1278
1278
  kind: "mission_started";
1279
1279
  title: string;
1280
1280
  evidence: {
1281
- id: string;
1281
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1282
1282
  label: string;
1283
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1283
+ id: string;
1284
1284
  capture: "at_action" | "historical_lookup" | "fixture";
1285
1285
  locator?: string | undefined;
1286
1286
  }[];
@@ -1292,9 +1292,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1292
1292
  objective: string;
1293
1293
  runMode: "replay" | "fixture" | "live";
1294
1294
  evidence?: {
1295
- id: string;
1295
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1296
1296
  label: string;
1297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1297
+ id: string;
1298
1298
  capture: "at_action" | "historical_lookup" | "fixture";
1299
1299
  locator?: string | undefined;
1300
1300
  }[] | undefined;
@@ -1310,15 +1310,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1310
1310
  locator: z.ZodOptional<z.ZodString>;
1311
1311
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1312
1312
  }, "strict", z.ZodTypeAny, {
1313
- id: string;
1313
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1314
1314
  label: string;
1315
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1315
+ id: string;
1316
1316
  capture: "at_action" | "historical_lookup" | "fixture";
1317
1317
  locator?: string | undefined;
1318
1318
  }, {
1319
- id: string;
1319
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1320
1320
  label: string;
1321
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1321
+ id: string;
1322
1322
  capture: "at_action" | "historical_lookup" | "fixture";
1323
1323
  locator?: string | undefined;
1324
1324
  }>, "many">>;
@@ -1326,32 +1326,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1326
1326
  sessionId: z.ZodString;
1327
1327
  kind: z.ZodLiteral<"agent_status">;
1328
1328
  }, "strict", z.ZodTypeAny, {
1329
- label: string;
1330
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1331
1329
  kind: "agent_status";
1330
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1331
+ label: string;
1332
1332
  role: string;
1333
1333
  agentId: string;
1334
1334
  sessionId: string;
1335
1335
  evidence: {
1336
- id: string;
1336
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1337
1337
  label: string;
1338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1338
+ id: string;
1339
1339
  capture: "at_action" | "historical_lookup" | "fixture";
1340
1340
  locator?: string | undefined;
1341
1341
  }[];
1342
1342
  detail?: string | undefined;
1343
1343
  }, {
1344
- label: string;
1345
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1346
1344
  kind: "agent_status";
1345
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1346
+ label: string;
1347
1347
  role: string;
1348
1348
  agentId: string;
1349
1349
  sessionId: string;
1350
1350
  detail?: string | undefined;
1351
1351
  evidence?: {
1352
- id: string;
1352
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1353
1353
  label: string;
1354
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1354
+ id: string;
1355
1355
  capture: "at_action" | "historical_lookup" | "fixture";
1356
1356
  locator?: string | undefined;
1357
1357
  }[] | undefined;
@@ -1365,15 +1365,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1365
1365
  locator: z.ZodOptional<z.ZodString>;
1366
1366
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1367
1367
  }, "strict", z.ZodTypeAny, {
1368
- id: string;
1368
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1369
1369
  label: string;
1370
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1370
+ id: string;
1371
1371
  capture: "at_action" | "historical_lookup" | "fixture";
1372
1372
  locator?: string | undefined;
1373
1373
  }, {
1374
- id: string;
1374
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1375
1375
  label: string;
1376
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1376
+ id: string;
1377
1377
  capture: "at_action" | "historical_lookup" | "fixture";
1378
1378
  locator?: string | undefined;
1379
1379
  }>, "many">>;
@@ -1381,28 +1381,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1381
1381
  sessionId: z.ZodString;
1382
1382
  kind: z.ZodLiteral<"agent_output">;
1383
1383
  }, "strict", z.ZodTypeAny, {
1384
- summary: string;
1385
1384
  kind: "agent_output";
1385
+ summary: string;
1386
1386
  agentId: string;
1387
1387
  sessionId: string;
1388
1388
  evidence: {
1389
- id: string;
1389
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1390
1390
  label: string;
1391
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1391
+ id: string;
1392
1392
  capture: "at_action" | "historical_lookup" | "fixture";
1393
1393
  locator?: string | undefined;
1394
1394
  }[];
1395
1395
  outputId: string;
1396
1396
  }, {
1397
- summary: string;
1398
1397
  kind: "agent_output";
1398
+ summary: string;
1399
1399
  agentId: string;
1400
1400
  sessionId: string;
1401
1401
  outputId: string;
1402
1402
  evidence?: {
1403
- id: string;
1403
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1404
1404
  label: string;
1405
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1405
+ id: string;
1406
1406
  capture: "at_action" | "historical_lookup" | "fixture";
1407
1407
  locator?: string | undefined;
1408
1408
  }[] | undefined;
@@ -1418,15 +1418,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1418
1418
  locator: z.ZodOptional<z.ZodString>;
1419
1419
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1420
1420
  }, "strict", z.ZodTypeAny, {
1421
- id: string;
1421
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1422
1422
  label: string;
1423
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1423
+ id: string;
1424
1424
  capture: "at_action" | "historical_lookup" | "fixture";
1425
1425
  locator?: string | undefined;
1426
1426
  }, {
1427
- id: string;
1427
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1428
1428
  label: string;
1429
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1429
+ id: string;
1430
1430
  capture: "at_action" | "historical_lookup" | "fixture";
1431
1431
  locator?: string | undefined;
1432
1432
  }>, "many">>;
@@ -1439,9 +1439,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1439
1439
  statement: string;
1440
1440
  sessionId: string;
1441
1441
  evidence: {
1442
- id: string;
1442
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1443
1443
  label: string;
1444
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1444
+ id: string;
1445
1445
  capture: "at_action" | "historical_lookup" | "fixture";
1446
1446
  locator?: string | undefined;
1447
1447
  }[];
@@ -1457,9 +1457,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1457
1457
  decisionId: string;
1458
1458
  confidence?: number | undefined;
1459
1459
  evidence?: {
1460
- id: string;
1460
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1461
1461
  label: string;
1462
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1462
+ id: string;
1463
1463
  capture: "at_action" | "historical_lookup" | "fixture";
1464
1464
  locator?: string | undefined;
1465
1465
  }[] | undefined;
@@ -1476,25 +1476,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1476
1476
  locator: z.ZodOptional<z.ZodString>;
1477
1477
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1478
1478
  }, "strict", z.ZodTypeAny, {
1479
- id: string;
1479
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1480
1480
  label: string;
1481
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1481
+ id: string;
1482
1482
  capture: "at_action" | "historical_lookup" | "fixture";
1483
1483
  locator?: string | undefined;
1484
1484
  }, {
1485
- id: string;
1485
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1486
1486
  label: string;
1487
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1487
+ id: string;
1488
1488
  capture: "at_action" | "historical_lookup" | "fixture";
1489
1489
  locator?: string | undefined;
1490
1490
  }>, "many">>;
1491
1491
  }, "strict", z.ZodTypeAny, {
1492
- summary: string;
1493
1492
  kind: "conflict_detected";
1493
+ summary: string;
1494
1494
  evidence: {
1495
- id: string;
1495
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1496
1496
  label: string;
1497
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1497
+ id: string;
1498
1498
  capture: "at_action" | "historical_lookup" | "fixture";
1499
1499
  locator?: string | undefined;
1500
1500
  }[];
@@ -1502,15 +1502,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1502
1502
  decisionIds: string[];
1503
1503
  agentIds: string[];
1504
1504
  }, {
1505
- summary: string;
1506
1505
  kind: "conflict_detected";
1506
+ summary: string;
1507
1507
  conflictId: string;
1508
1508
  decisionIds: string[];
1509
1509
  agentIds: string[];
1510
1510
  evidence?: {
1511
- id: string;
1511
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
1512
  label: string;
1513
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
+ id: string;
1514
1514
  capture: "at_action" | "historical_lookup" | "fixture";
1515
1515
  locator?: string | undefined;
1516
1516
  }[] | undefined;
@@ -1530,27 +1530,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1530
1530
  locator: z.ZodOptional<z.ZodString>;
1531
1531
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1532
1532
  }, "strict", z.ZodTypeAny, {
1533
- id: string;
1533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1534
1534
  label: string;
1535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1535
+ id: string;
1536
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1537
1537
  locator?: string | undefined;
1538
1538
  }, {
1539
- id: string;
1539
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1540
1540
  label: string;
1541
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
+ id: string;
1542
1542
  capture: "at_action" | "historical_lookup" | "fixture";
1543
1543
  locator?: string | undefined;
1544
1544
  }>, "many">>;
1545
1545
  }, "strict", z.ZodTypeAny, {
1546
+ kind: "test_result";
1546
1547
  summary: string;
1547
1548
  status: "error" | "failed" | "passed";
1548
- kind: "test_result";
1549
1549
  command: string;
1550
1550
  evidence: {
1551
- id: string;
1551
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1552
1552
  label: string;
1553
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1553
+ id: string;
1554
1554
  capture: "at_action" | "historical_lookup" | "fixture";
1555
1555
  locator?: string | undefined;
1556
1556
  }[];
@@ -1559,17 +1559,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1559
1559
  durationMs?: number | undefined;
1560
1560
  correctionId?: string | undefined;
1561
1561
  }, {
1562
+ kind: "test_result";
1562
1563
  summary: string;
1563
1564
  status: "error" | "failed" | "passed";
1564
- kind: "test_result";
1565
1565
  command: string;
1566
1566
  decisionId: string;
1567
1567
  testId: string;
1568
1568
  durationMs?: number | undefined;
1569
1569
  evidence?: {
1570
- id: string;
1570
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1571
1571
  label: string;
1572
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1572
+ id: string;
1573
1573
  capture: "at_action" | "historical_lookup" | "fixture";
1574
1574
  locator?: string | undefined;
1575
1575
  }[] | undefined;
@@ -1590,15 +1590,15 @@ 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
- id: string;
1593
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1594
1594
  label: string;
1595
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
+ id: string;
1596
1596
  capture: "at_action" | "historical_lookup" | "fixture";
1597
1597
  locator?: string | undefined;
1598
1598
  }, {
1599
- id: string;
1599
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1600
1600
  label: string;
1601
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1601
+ id: string;
1602
1602
  capture: "at_action" | "historical_lookup" | "fixture";
1603
1603
  locator?: string | undefined;
1604
1604
  }>, "many">>;
@@ -1607,9 +1607,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1607
1607
  statement: string;
1608
1608
  rationale: string;
1609
1609
  evidence: {
1610
- id: string;
1610
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1611
1611
  label: string;
1612
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1612
+ id: string;
1613
1613
  capture: "at_action" | "historical_lookup" | "fixture";
1614
1614
  locator?: string | undefined;
1615
1615
  }[];
@@ -1628,9 +1628,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1628
1628
  supersedesDecisionIds: string[];
1629
1629
  proposedBy: string;
1630
1630
  evidence?: {
1631
- id: string;
1631
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1632
1632
  label: string;
1633
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1633
+ id: string;
1634
1634
  capture: "at_action" | "historical_lookup" | "fixture";
1635
1635
  locator?: string | undefined;
1636
1636
  }[] | undefined;
@@ -1642,13 +1642,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1642
1642
  id: z.ZodString;
1643
1643
  label: z.ZodString;
1644
1644
  }, "strict", z.ZodTypeAny, {
1645
- id: string;
1646
- label: string;
1647
1645
  kind: "agent" | "human";
1648
- }, {
1649
- id: string;
1650
1646
  label: string;
1647
+ id: string;
1648
+ }, {
1651
1649
  kind: "agent" | "human";
1650
+ label: string;
1651
+ id: string;
1652
1652
  }>;
1653
1653
  note: z.ZodOptional<z.ZodString>;
1654
1654
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1658,47 +1658,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1658
1658
  locator: z.ZodOptional<z.ZodString>;
1659
1659
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1660
1660
  }, "strict", z.ZodTypeAny, {
1661
- id: string;
1661
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1662
1662
  label: string;
1663
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1663
+ id: string;
1664
1664
  capture: "at_action" | "historical_lookup" | "fixture";
1665
1665
  locator?: string | undefined;
1666
1666
  }, {
1667
- id: string;
1667
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1668
1668
  label: string;
1669
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1669
+ id: string;
1670
1670
  capture: "at_action" | "historical_lookup" | "fixture";
1671
1671
  locator?: string | undefined;
1672
1672
  }>, "many">>;
1673
1673
  }, "strict", z.ZodTypeAny, {
1674
1674
  kind: "correction_approved";
1675
1675
  evidence: {
1676
- id: string;
1676
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1677
1677
  label: string;
1678
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1678
+ id: string;
1679
1679
  capture: "at_action" | "historical_lookup" | "fixture";
1680
1680
  locator?: string | undefined;
1681
1681
  }[];
1682
1682
  correctionId: string;
1683
1683
  approvedBy: {
1684
- id: string;
1685
- label: string;
1686
1684
  kind: "agent" | "human";
1685
+ label: string;
1686
+ id: string;
1687
1687
  };
1688
1688
  note?: string | undefined;
1689
1689
  }, {
1690
1690
  kind: "correction_approved";
1691
1691
  correctionId: string;
1692
1692
  approvedBy: {
1693
- id: string;
1694
- label: string;
1695
1693
  kind: "agent" | "human";
1694
+ label: string;
1695
+ id: string;
1696
1696
  };
1697
1697
  note?: string | undefined;
1698
1698
  evidence?: {
1699
- id: string;
1699
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1700
1700
  label: string;
1701
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1701
+ id: string;
1702
1702
  capture: "at_action" | "historical_lookup" | "fixture";
1703
1703
  locator?: string | undefined;
1704
1704
  }[] | undefined;
@@ -1714,24 +1714,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1714
1714
  locator: z.ZodOptional<z.ZodString>;
1715
1715
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1716
1716
  }, "strict", z.ZodTypeAny, {
1717
- id: string;
1717
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1718
1718
  label: string;
1719
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1719
+ id: string;
1720
1720
  capture: "at_action" | "historical_lookup" | "fixture";
1721
1721
  locator?: string | undefined;
1722
1722
  }, {
1723
- id: string;
1723
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1724
1724
  label: string;
1725
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1725
+ id: string;
1726
1726
  capture: "at_action" | "historical_lookup" | "fixture";
1727
1727
  locator?: string | undefined;
1728
1728
  }>, "many">>;
1729
1729
  }, "strict", z.ZodTypeAny, {
1730
1730
  kind: "decision_superseded";
1731
1731
  evidence: {
1732
- id: string;
1732
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1733
1733
  label: string;
1734
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1734
+ id: string;
1735
1735
  capture: "at_action" | "historical_lookup" | "fixture";
1736
1736
  locator?: string | undefined;
1737
1737
  }[];
@@ -1744,9 +1744,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1744
1744
  correctionId: string;
1745
1745
  replacementDecisionId: string;
1746
1746
  evidence?: {
1747
- id: string;
1747
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1748
1748
  label: string;
1749
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1749
+ id: string;
1750
1750
  capture: "at_action" | "historical_lookup" | "fixture";
1751
1751
  locator?: string | undefined;
1752
1752
  }[] | undefined;
@@ -1762,15 +1762,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1762
1762
  locator: z.ZodOptional<z.ZodString>;
1763
1763
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1764
1764
  }, "strict", z.ZodTypeAny, {
1765
- id: string;
1765
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1766
1766
  label: string;
1767
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1767
+ id: string;
1768
1768
  capture: "at_action" | "historical_lookup" | "fixture";
1769
1769
  locator?: string | undefined;
1770
1770
  }, {
1771
- id: string;
1771
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1772
1772
  label: string;
1773
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1773
+ id: string;
1774
1774
  capture: "at_action" | "historical_lookup" | "fixture";
1775
1775
  locator?: string | undefined;
1776
1776
  }>, "many">>;
@@ -1783,9 +1783,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1783
1783
  agentId: string;
1784
1784
  sessionId: string;
1785
1785
  evidence: {
1786
- id: string;
1786
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1787
1787
  label: string;
1788
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1788
+ id: string;
1789
1789
  capture: "at_action" | "historical_lookup" | "fixture";
1790
1790
  locator?: string | undefined;
1791
1791
  }[];
@@ -1801,9 +1801,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1801
1801
  recallReceiptId: string;
1802
1802
  capturedAtAction: boolean;
1803
1803
  evidence?: {
1804
- id: string;
1804
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1805
1805
  label: string;
1806
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1806
+ id: string;
1807
1807
  capture: "at_action" | "historical_lookup" | "fixture";
1808
1808
  locator?: string | undefined;
1809
1809
  }[] | undefined;
@@ -1819,15 +1819,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1819
1819
  locator: z.ZodOptional<z.ZodString>;
1820
1820
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1821
1821
  }, "strict", z.ZodTypeAny, {
1822
- id: string;
1822
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1823
1823
  label: string;
1824
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1824
+ id: string;
1825
1825
  capture: "at_action" | "historical_lookup" | "fixture";
1826
1826
  locator?: string | undefined;
1827
1827
  }, {
1828
- id: string;
1828
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1829
1829
  label: string;
1830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1830
+ id: string;
1831
1831
  capture: "at_action" | "historical_lookup" | "fixture";
1832
1832
  locator?: string | undefined;
1833
1833
  }>, "many">>;
@@ -1839,9 +1839,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1839
1839
  agentId: string;
1840
1840
  sessionId: string;
1841
1841
  evidence: {
1842
- id: string;
1842
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1843
1843
  label: string;
1844
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1844
+ id: string;
1845
1845
  capture: "at_action" | "historical_lookup" | "fixture";
1846
1846
  locator?: string | undefined;
1847
1847
  }[];
@@ -1858,9 +1858,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1858
1858
  recallReceiptId: string;
1859
1859
  staleDecisionAbsent: boolean;
1860
1860
  evidence?: {
1861
- id: string;
1861
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1862
1862
  label: string;
1863
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1863
+ id: string;
1864
1864
  capture: "at_action" | "historical_lookup" | "fixture";
1865
1865
  locator?: string | undefined;
1866
1866
  }[] | undefined;
@@ -1875,37 +1875,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1875
1875
  locator: z.ZodOptional<z.ZodString>;
1876
1876
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1877
1877
  }, "strict", z.ZodTypeAny, {
1878
- id: string;
1878
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1879
1879
  label: string;
1880
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1880
+ id: string;
1881
1881
  capture: "at_action" | "historical_lookup" | "fixture";
1882
1882
  locator?: string | undefined;
1883
1883
  }, {
1884
- id: string;
1884
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1885
1885
  label: string;
1886
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1886
+ id: string;
1887
1887
  capture: "at_action" | "historical_lookup" | "fixture";
1888
1888
  locator?: string | undefined;
1889
1889
  }>, "many">>;
1890
1890
  }, "strict", z.ZodTypeAny, {
1891
- summary: string;
1892
1891
  kind: "mission_completed";
1892
+ summary: string;
1893
1893
  outcome: "failed" | "recovered" | "inconclusive";
1894
1894
  evidence: {
1895
- id: string;
1895
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1896
1896
  label: string;
1897
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1897
+ id: string;
1898
1898
  capture: "at_action" | "historical_lookup" | "fixture";
1899
1899
  locator?: string | undefined;
1900
1900
  }[];
1901
1901
  }, {
1902
- summary: string;
1903
1902
  kind: "mission_completed";
1903
+ summary: string;
1904
1904
  outcome: "failed" | "recovered" | "inconclusive";
1905
1905
  evidence?: {
1906
- id: string;
1906
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1907
1907
  label: string;
1908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
+ id: string;
1909
1909
  capture: "at_action" | "historical_lookup" | "fixture";
1910
1910
  locator?: string | undefined;
1911
1911
  }[] | undefined;
@@ -1913,38 +1913,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1913
1913
  kind: "mission_started";
1914
1914
  title: string;
1915
1915
  evidence: {
1916
- id: string;
1916
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1917
1917
  label: string;
1918
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1918
+ id: string;
1919
1919
  capture: "at_action" | "historical_lookup" | "fixture";
1920
1920
  locator?: string | undefined;
1921
1921
  }[];
1922
1922
  objective: string;
1923
1923
  runMode: "replay" | "fixture" | "live";
1924
1924
  } | {
1925
- label: string;
1926
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1927
1925
  kind: "agent_status";
1926
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1927
+ label: string;
1928
1928
  role: string;
1929
1929
  agentId: string;
1930
1930
  sessionId: string;
1931
1931
  evidence: {
1932
- id: string;
1932
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1933
1933
  label: string;
1934
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1934
+ id: string;
1935
1935
  capture: "at_action" | "historical_lookup" | "fixture";
1936
1936
  locator?: string | undefined;
1937
1937
  }[];
1938
1938
  detail?: string | undefined;
1939
1939
  } | {
1940
- summary: string;
1941
1940
  kind: "agent_output";
1941
+ summary: string;
1942
1942
  agentId: string;
1943
1943
  sessionId: string;
1944
1944
  evidence: {
1945
- id: string;
1945
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1946
1946
  label: string;
1947
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1947
+ id: string;
1948
1948
  capture: "at_action" | "historical_lookup" | "fixture";
1949
1949
  locator?: string | undefined;
1950
1950
  }[];
@@ -1955,9 +1955,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1955
1955
  statement: string;
1956
1956
  sessionId: string;
1957
1957
  evidence: {
1958
- id: string;
1958
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1959
1959
  label: string;
1960
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1960
+ id: string;
1961
1961
  capture: "at_action" | "historical_lookup" | "fixture";
1962
1962
  locator?: string | undefined;
1963
1963
  }[];
@@ -1965,12 +1965,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1965
1965
  decisionId: string;
1966
1966
  confidence?: number | undefined;
1967
1967
  } | {
1968
- summary: string;
1969
1968
  kind: "conflict_detected";
1969
+ summary: string;
1970
1970
  evidence: {
1971
- id: string;
1971
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
1972
  label: string;
1973
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1973
+ id: string;
1974
1974
  capture: "at_action" | "historical_lookup" | "fixture";
1975
1975
  locator?: string | undefined;
1976
1976
  }[];
@@ -1978,14 +1978,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1978
1978
  decisionIds: string[];
1979
1979
  agentIds: string[];
1980
1980
  } | {
1981
+ kind: "test_result";
1981
1982
  summary: string;
1982
1983
  status: "error" | "failed" | "passed";
1983
- kind: "test_result";
1984
1984
  command: string;
1985
1985
  evidence: {
1986
- id: string;
1986
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1987
1987
  label: string;
1988
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1988
+ id: string;
1989
1989
  capture: "at_action" | "historical_lookup" | "fixture";
1990
1990
  locator?: string | undefined;
1991
1991
  }[];
@@ -1998,9 +1998,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1998
1998
  statement: string;
1999
1999
  rationale: string;
2000
2000
  evidence: {
2001
- id: string;
2001
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2002
2002
  label: string;
2003
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2003
+ id: string;
2004
2004
  capture: "at_action" | "historical_lookup" | "fixture";
2005
2005
  locator?: string | undefined;
2006
2006
  }[];
@@ -2012,25 +2012,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2012
2012
  } | {
2013
2013
  kind: "correction_approved";
2014
2014
  evidence: {
2015
- id: string;
2015
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2016
2016
  label: string;
2017
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2017
+ id: string;
2018
2018
  capture: "at_action" | "historical_lookup" | "fixture";
2019
2019
  locator?: string | undefined;
2020
2020
  }[];
2021
2021
  correctionId: string;
2022
2022
  approvedBy: {
2023
- id: string;
2024
- label: string;
2025
2023
  kind: "agent" | "human";
2024
+ label: string;
2025
+ id: string;
2026
2026
  };
2027
2027
  note?: string | undefined;
2028
2028
  } | {
2029
2029
  kind: "decision_superseded";
2030
2030
  evidence: {
2031
- id: string;
2031
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2032
2032
  label: string;
2033
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
+ id: string;
2034
2034
  capture: "at_action" | "historical_lookup" | "fixture";
2035
2035
  locator?: string | undefined;
2036
2036
  }[];
@@ -2043,9 +2043,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2043
2043
  agentId: string;
2044
2044
  sessionId: string;
2045
2045
  evidence: {
2046
- id: string;
2046
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2047
2047
  label: string;
2048
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2048
+ id: string;
2049
2049
  capture: "at_action" | "historical_lookup" | "fixture";
2050
2050
  locator?: string | undefined;
2051
2051
  }[];
@@ -2057,9 +2057,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2057
2057
  agentId: string;
2058
2058
  sessionId: string;
2059
2059
  evidence: {
2060
- id: string;
2060
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2061
2061
  label: string;
2062
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2062
+ id: string;
2063
2063
  capture: "at_action" | "historical_lookup" | "fixture";
2064
2064
  locator?: string | undefined;
2065
2065
  }[];
@@ -2068,13 +2068,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2068
2068
  recallReceiptId: string;
2069
2069
  staleDecisionAbsent: boolean;
2070
2070
  } | {
2071
- summary: string;
2072
2071
  kind: "mission_completed";
2072
+ summary: string;
2073
2073
  outcome: "failed" | "recovered" | "inconclusive";
2074
2074
  evidence: {
2075
- id: string;
2075
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2076
2076
  label: string;
2077
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2077
+ id: string;
2078
2078
  capture: "at_action" | "historical_lookup" | "fixture";
2079
2079
  locator?: string | undefined;
2080
2080
  }[];
@@ -2084,37 +2084,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2084
2084
  objective: string;
2085
2085
  runMode: "replay" | "fixture" | "live";
2086
2086
  evidence?: {
2087
- id: string;
2087
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2088
2088
  label: string;
2089
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2089
+ id: string;
2090
2090
  capture: "at_action" | "historical_lookup" | "fixture";
2091
2091
  locator?: string | undefined;
2092
2092
  }[] | undefined;
2093
2093
  } | {
2094
- label: string;
2095
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2096
2094
  kind: "agent_status";
2095
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2096
+ label: string;
2097
2097
  role: string;
2098
2098
  agentId: string;
2099
2099
  sessionId: string;
2100
2100
  detail?: string | undefined;
2101
2101
  evidence?: {
2102
- id: string;
2102
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2103
2103
  label: string;
2104
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2104
+ id: string;
2105
2105
  capture: "at_action" | "historical_lookup" | "fixture";
2106
2106
  locator?: string | undefined;
2107
2107
  }[] | undefined;
2108
2108
  } | {
2109
- summary: string;
2110
2109
  kind: "agent_output";
2110
+ summary: string;
2111
2111
  agentId: string;
2112
2112
  sessionId: string;
2113
2113
  outputId: string;
2114
2114
  evidence?: {
2115
- id: string;
2115
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2116
2116
  label: string;
2117
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2117
+ id: string;
2118
2118
  capture: "at_action" | "historical_lookup" | "fixture";
2119
2119
  locator?: string | undefined;
2120
2120
  }[] | undefined;
@@ -2127,37 +2127,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2127
2127
  decisionId: string;
2128
2128
  confidence?: number | undefined;
2129
2129
  evidence?: {
2130
- id: string;
2130
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2131
2131
  label: string;
2132
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2132
+ id: string;
2133
2133
  capture: "at_action" | "historical_lookup" | "fixture";
2134
2134
  locator?: string | undefined;
2135
2135
  }[] | undefined;
2136
2136
  } | {
2137
- summary: string;
2138
2137
  kind: "conflict_detected";
2138
+ summary: string;
2139
2139
  conflictId: string;
2140
2140
  decisionIds: string[];
2141
2141
  agentIds: string[];
2142
2142
  evidence?: {
2143
- id: string;
2143
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2144
2144
  label: string;
2145
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2145
+ id: string;
2146
2146
  capture: "at_action" | "historical_lookup" | "fixture";
2147
2147
  locator?: string | undefined;
2148
2148
  }[] | undefined;
2149
2149
  } | {
2150
+ kind: "test_result";
2150
2151
  summary: string;
2151
2152
  status: "error" | "failed" | "passed";
2152
- kind: "test_result";
2153
2153
  command: string;
2154
2154
  decisionId: string;
2155
2155
  testId: string;
2156
2156
  durationMs?: number | undefined;
2157
2157
  evidence?: {
2158
- id: string;
2158
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2159
2159
  label: string;
2160
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2160
+ id: string;
2161
2161
  capture: "at_action" | "historical_lookup" | "fixture";
2162
2162
  locator?: string | undefined;
2163
2163
  }[] | undefined;
@@ -2172,9 +2172,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2172
2172
  supersedesDecisionIds: string[];
2173
2173
  proposedBy: string;
2174
2174
  evidence?: {
2175
- id: string;
2175
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2176
2176
  label: string;
2177
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2177
+ id: string;
2178
2178
  capture: "at_action" | "historical_lookup" | "fixture";
2179
2179
  locator?: string | undefined;
2180
2180
  }[] | undefined;
@@ -2182,15 +2182,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2182
2182
  kind: "correction_approved";
2183
2183
  correctionId: string;
2184
2184
  approvedBy: {
2185
- id: string;
2186
- label: string;
2187
2185
  kind: "agent" | "human";
2186
+ label: string;
2187
+ id: string;
2188
2188
  };
2189
2189
  note?: string | undefined;
2190
2190
  evidence?: {
2191
- id: string;
2191
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2192
2192
  label: string;
2193
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2193
+ id: string;
2194
2194
  capture: "at_action" | "historical_lookup" | "fixture";
2195
2195
  locator?: string | undefined;
2196
2196
  }[] | undefined;
@@ -2200,9 +2200,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2200
2200
  correctionId: string;
2201
2201
  replacementDecisionId: string;
2202
2202
  evidence?: {
2203
- id: string;
2203
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2204
2204
  label: string;
2205
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2205
+ id: string;
2206
2206
  capture: "at_action" | "historical_lookup" | "fixture";
2207
2207
  locator?: string | undefined;
2208
2208
  }[] | undefined;
@@ -2215,9 +2215,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2215
2215
  recallReceiptId: string;
2216
2216
  capturedAtAction: boolean;
2217
2217
  evidence?: {
2218
- id: string;
2218
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2219
2219
  label: string;
2220
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2220
+ id: string;
2221
2221
  capture: "at_action" | "historical_lookup" | "fixture";
2222
2222
  locator?: string | undefined;
2223
2223
  }[] | undefined;
@@ -2230,20 +2230,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2230
2230
  recallReceiptId: string;
2231
2231
  staleDecisionAbsent: boolean;
2232
2232
  evidence?: {
2233
- id: string;
2233
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2234
2234
  label: string;
2235
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2235
+ id: string;
2236
2236
  capture: "at_action" | "historical_lookup" | "fixture";
2237
2237
  locator?: string | undefined;
2238
2238
  }[] | undefined;
2239
2239
  } | {
2240
- summary: string;
2241
2240
  kind: "mission_completed";
2241
+ summary: string;
2242
2242
  outcome: "failed" | "recovered" | "inconclusive";
2243
2243
  evidence?: {
2244
- id: string;
2244
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2245
2245
  label: string;
2246
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2246
+ id: string;
2247
2247
  capture: "at_action" | "historical_lookup" | "fixture";
2248
2248
  locator?: string | undefined;
2249
2249
  }[] | undefined;
@@ -2264,15 +2264,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2264
2264
  locator: z.ZodOptional<z.ZodString>;
2265
2265
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2266
2266
  }, "strict", z.ZodTypeAny, {
2267
- id: string;
2267
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2268
2268
  label: string;
2269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2269
+ id: string;
2270
2270
  capture: "at_action" | "historical_lookup" | "fixture";
2271
2271
  locator?: string | undefined;
2272
2272
  }, {
2273
- id: string;
2273
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2274
2274
  label: string;
2275
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2275
+ id: string;
2276
2276
  capture: "at_action" | "historical_lookup" | "fixture";
2277
2277
  locator?: string | undefined;
2278
2278
  }>, "many">>;
@@ -2280,9 +2280,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2280
2280
  kind: "mission_started";
2281
2281
  title: string;
2282
2282
  evidence: {
2283
- id: string;
2283
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2284
2284
  label: string;
2285
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2285
+ id: string;
2286
2286
  capture: "at_action" | "historical_lookup" | "fixture";
2287
2287
  locator?: string | undefined;
2288
2288
  }[];
@@ -2294,9 +2294,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2294
2294
  objective: string;
2295
2295
  runMode: "replay" | "fixture" | "live";
2296
2296
  evidence?: {
2297
- id: string;
2297
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2298
2298
  label: string;
2299
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2299
+ id: string;
2300
2300
  capture: "at_action" | "historical_lookup" | "fixture";
2301
2301
  locator?: string | undefined;
2302
2302
  }[] | undefined;
@@ -2312,15 +2312,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2312
2312
  locator: z.ZodOptional<z.ZodString>;
2313
2313
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2314
2314
  }, "strict", z.ZodTypeAny, {
2315
- id: string;
2315
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2316
2316
  label: string;
2317
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2317
+ id: string;
2318
2318
  capture: "at_action" | "historical_lookup" | "fixture";
2319
2319
  locator?: string | undefined;
2320
2320
  }, {
2321
- id: string;
2321
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2322
2322
  label: string;
2323
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2323
+ id: string;
2324
2324
  capture: "at_action" | "historical_lookup" | "fixture";
2325
2325
  locator?: string | undefined;
2326
2326
  }>, "many">>;
@@ -2328,32 +2328,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2328
2328
  sessionId: z.ZodString;
2329
2329
  kind: z.ZodLiteral<"agent_status">;
2330
2330
  }, "strict", z.ZodTypeAny, {
2331
- label: string;
2332
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2333
2331
  kind: "agent_status";
2332
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2333
+ label: string;
2334
2334
  role: string;
2335
2335
  agentId: string;
2336
2336
  sessionId: string;
2337
2337
  evidence: {
2338
- id: string;
2338
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2339
2339
  label: string;
2340
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2340
+ id: string;
2341
2341
  capture: "at_action" | "historical_lookup" | "fixture";
2342
2342
  locator?: string | undefined;
2343
2343
  }[];
2344
2344
  detail?: string | undefined;
2345
2345
  }, {
2346
- label: string;
2347
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2348
2346
  kind: "agent_status";
2347
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2348
+ label: string;
2349
2349
  role: string;
2350
2350
  agentId: string;
2351
2351
  sessionId: string;
2352
2352
  detail?: string | undefined;
2353
2353
  evidence?: {
2354
- id: string;
2354
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2355
2355
  label: string;
2356
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2356
+ id: string;
2357
2357
  capture: "at_action" | "historical_lookup" | "fixture";
2358
2358
  locator?: string | undefined;
2359
2359
  }[] | undefined;
@@ -2367,15 +2367,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2367
2367
  locator: z.ZodOptional<z.ZodString>;
2368
2368
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2369
2369
  }, "strict", z.ZodTypeAny, {
2370
- id: string;
2370
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2371
2371
  label: string;
2372
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2372
+ id: string;
2373
2373
  capture: "at_action" | "historical_lookup" | "fixture";
2374
2374
  locator?: string | undefined;
2375
2375
  }, {
2376
- id: string;
2376
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2377
2377
  label: string;
2378
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2378
+ id: string;
2379
2379
  capture: "at_action" | "historical_lookup" | "fixture";
2380
2380
  locator?: string | undefined;
2381
2381
  }>, "many">>;
@@ -2383,28 +2383,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2383
2383
  sessionId: z.ZodString;
2384
2384
  kind: z.ZodLiteral<"agent_output">;
2385
2385
  }, "strict", z.ZodTypeAny, {
2386
- summary: string;
2387
2386
  kind: "agent_output";
2387
+ summary: string;
2388
2388
  agentId: string;
2389
2389
  sessionId: string;
2390
2390
  evidence: {
2391
- id: string;
2391
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2392
2392
  label: string;
2393
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2393
+ id: string;
2394
2394
  capture: "at_action" | "historical_lookup" | "fixture";
2395
2395
  locator?: string | undefined;
2396
2396
  }[];
2397
2397
  outputId: string;
2398
2398
  }, {
2399
- summary: string;
2400
2399
  kind: "agent_output";
2400
+ summary: string;
2401
2401
  agentId: string;
2402
2402
  sessionId: string;
2403
2403
  outputId: string;
2404
2404
  evidence?: {
2405
- id: string;
2405
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2406
2406
  label: string;
2407
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2407
+ id: string;
2408
2408
  capture: "at_action" | "historical_lookup" | "fixture";
2409
2409
  locator?: string | undefined;
2410
2410
  }[] | undefined;
@@ -2420,15 +2420,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2420
2420
  locator: z.ZodOptional<z.ZodString>;
2421
2421
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2422
2422
  }, "strict", z.ZodTypeAny, {
2423
- id: string;
2423
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2424
2424
  label: string;
2425
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2425
+ id: string;
2426
2426
  capture: "at_action" | "historical_lookup" | "fixture";
2427
2427
  locator?: string | undefined;
2428
2428
  }, {
2429
- id: string;
2429
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2430
2430
  label: string;
2431
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2431
+ id: string;
2432
2432
  capture: "at_action" | "historical_lookup" | "fixture";
2433
2433
  locator?: string | undefined;
2434
2434
  }>, "many">>;
@@ -2441,9 +2441,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2441
2441
  statement: string;
2442
2442
  sessionId: string;
2443
2443
  evidence: {
2444
- id: string;
2444
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2445
2445
  label: string;
2446
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2446
+ id: string;
2447
2447
  capture: "at_action" | "historical_lookup" | "fixture";
2448
2448
  locator?: string | undefined;
2449
2449
  }[];
@@ -2459,9 +2459,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2459
2459
  decisionId: string;
2460
2460
  confidence?: number | undefined;
2461
2461
  evidence?: {
2462
- id: string;
2462
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2463
2463
  label: string;
2464
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2464
+ id: string;
2465
2465
  capture: "at_action" | "historical_lookup" | "fixture";
2466
2466
  locator?: string | undefined;
2467
2467
  }[] | undefined;
@@ -2478,25 +2478,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2478
2478
  locator: z.ZodOptional<z.ZodString>;
2479
2479
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2480
2480
  }, "strict", z.ZodTypeAny, {
2481
- id: string;
2481
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2482
2482
  label: string;
2483
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2483
+ id: string;
2484
2484
  capture: "at_action" | "historical_lookup" | "fixture";
2485
2485
  locator?: string | undefined;
2486
2486
  }, {
2487
- id: string;
2487
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2488
2488
  label: string;
2489
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2489
+ id: string;
2490
2490
  capture: "at_action" | "historical_lookup" | "fixture";
2491
2491
  locator?: string | undefined;
2492
2492
  }>, "many">>;
2493
2493
  }, "strict", z.ZodTypeAny, {
2494
- summary: string;
2495
2494
  kind: "conflict_detected";
2495
+ summary: string;
2496
2496
  evidence: {
2497
- id: string;
2497
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2498
2498
  label: string;
2499
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2499
+ id: string;
2500
2500
  capture: "at_action" | "historical_lookup" | "fixture";
2501
2501
  locator?: string | undefined;
2502
2502
  }[];
@@ -2504,15 +2504,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2504
2504
  decisionIds: string[];
2505
2505
  agentIds: string[];
2506
2506
  }, {
2507
- summary: string;
2508
2507
  kind: "conflict_detected";
2508
+ summary: string;
2509
2509
  conflictId: string;
2510
2510
  decisionIds: string[];
2511
2511
  agentIds: string[];
2512
2512
  evidence?: {
2513
- id: string;
2513
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2514
2514
  label: string;
2515
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
+ id: string;
2516
2516
  capture: "at_action" | "historical_lookup" | "fixture";
2517
2517
  locator?: string | undefined;
2518
2518
  }[] | undefined;
@@ -2532,27 +2532,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2532
2532
  locator: z.ZodOptional<z.ZodString>;
2533
2533
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2534
2534
  }, "strict", z.ZodTypeAny, {
2535
- id: string;
2535
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2536
2536
  label: string;
2537
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2537
+ id: string;
2538
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2539
2539
  locator?: string | undefined;
2540
2540
  }, {
2541
- id: string;
2541
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2542
2542
  label: string;
2543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
+ id: string;
2544
2544
  capture: "at_action" | "historical_lookup" | "fixture";
2545
2545
  locator?: string | undefined;
2546
2546
  }>, "many">>;
2547
2547
  }, "strict", z.ZodTypeAny, {
2548
+ kind: "test_result";
2548
2549
  summary: string;
2549
2550
  status: "error" | "failed" | "passed";
2550
- kind: "test_result";
2551
2551
  command: string;
2552
2552
  evidence: {
2553
- id: string;
2553
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2554
2554
  label: string;
2555
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2555
+ id: string;
2556
2556
  capture: "at_action" | "historical_lookup" | "fixture";
2557
2557
  locator?: string | undefined;
2558
2558
  }[];
@@ -2561,17 +2561,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2561
2561
  durationMs?: number | undefined;
2562
2562
  correctionId?: string | undefined;
2563
2563
  }, {
2564
+ kind: "test_result";
2564
2565
  summary: string;
2565
2566
  status: "error" | "failed" | "passed";
2566
- kind: "test_result";
2567
2567
  command: string;
2568
2568
  decisionId: string;
2569
2569
  testId: string;
2570
2570
  durationMs?: number | undefined;
2571
2571
  evidence?: {
2572
- id: string;
2572
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2573
2573
  label: string;
2574
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2574
+ id: string;
2575
2575
  capture: "at_action" | "historical_lookup" | "fixture";
2576
2576
  locator?: string | undefined;
2577
2577
  }[] | undefined;
@@ -2592,15 +2592,15 @@ 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
- id: string;
2595
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2596
2596
  label: string;
2597
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
+ id: string;
2598
2598
  capture: "at_action" | "historical_lookup" | "fixture";
2599
2599
  locator?: string | undefined;
2600
2600
  }, {
2601
- id: string;
2601
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2602
2602
  label: string;
2603
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2603
+ id: string;
2604
2604
  capture: "at_action" | "historical_lookup" | "fixture";
2605
2605
  locator?: string | undefined;
2606
2606
  }>, "many">>;
@@ -2609,9 +2609,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2609
2609
  statement: string;
2610
2610
  rationale: string;
2611
2611
  evidence: {
2612
- id: string;
2612
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2613
2613
  label: string;
2614
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2614
+ id: string;
2615
2615
  capture: "at_action" | "historical_lookup" | "fixture";
2616
2616
  locator?: string | undefined;
2617
2617
  }[];
@@ -2630,9 +2630,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2630
2630
  supersedesDecisionIds: string[];
2631
2631
  proposedBy: string;
2632
2632
  evidence?: {
2633
- id: string;
2633
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2634
2634
  label: string;
2635
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2635
+ id: string;
2636
2636
  capture: "at_action" | "historical_lookup" | "fixture";
2637
2637
  locator?: string | undefined;
2638
2638
  }[] | undefined;
@@ -2644,13 +2644,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2644
2644
  id: z.ZodString;
2645
2645
  label: z.ZodString;
2646
2646
  }, "strict", z.ZodTypeAny, {
2647
- id: string;
2648
- label: string;
2649
2647
  kind: "agent" | "human";
2650
- }, {
2651
- id: string;
2652
2648
  label: string;
2649
+ id: string;
2650
+ }, {
2653
2651
  kind: "agent" | "human";
2652
+ label: string;
2653
+ id: string;
2654
2654
  }>;
2655
2655
  note: z.ZodOptional<z.ZodString>;
2656
2656
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2660,47 +2660,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2660
2660
  locator: z.ZodOptional<z.ZodString>;
2661
2661
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2662
2662
  }, "strict", z.ZodTypeAny, {
2663
- id: string;
2663
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2664
2664
  label: string;
2665
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2665
+ id: string;
2666
2666
  capture: "at_action" | "historical_lookup" | "fixture";
2667
2667
  locator?: string | undefined;
2668
2668
  }, {
2669
- id: string;
2669
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2670
2670
  label: string;
2671
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2671
+ id: string;
2672
2672
  capture: "at_action" | "historical_lookup" | "fixture";
2673
2673
  locator?: string | undefined;
2674
2674
  }>, "many">>;
2675
2675
  }, "strict", z.ZodTypeAny, {
2676
2676
  kind: "correction_approved";
2677
2677
  evidence: {
2678
- id: string;
2678
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2679
2679
  label: string;
2680
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2680
+ id: string;
2681
2681
  capture: "at_action" | "historical_lookup" | "fixture";
2682
2682
  locator?: string | undefined;
2683
2683
  }[];
2684
2684
  correctionId: string;
2685
2685
  approvedBy: {
2686
- id: string;
2687
- label: string;
2688
2686
  kind: "agent" | "human";
2687
+ label: string;
2688
+ id: string;
2689
2689
  };
2690
2690
  note?: string | undefined;
2691
2691
  }, {
2692
2692
  kind: "correction_approved";
2693
2693
  correctionId: string;
2694
2694
  approvedBy: {
2695
- id: string;
2696
- label: string;
2697
2695
  kind: "agent" | "human";
2696
+ label: string;
2697
+ id: string;
2698
2698
  };
2699
2699
  note?: string | undefined;
2700
2700
  evidence?: {
2701
- id: string;
2701
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2702
2702
  label: string;
2703
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2703
+ id: string;
2704
2704
  capture: "at_action" | "historical_lookup" | "fixture";
2705
2705
  locator?: string | undefined;
2706
2706
  }[] | undefined;
@@ -2716,24 +2716,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2716
2716
  locator: z.ZodOptional<z.ZodString>;
2717
2717
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2718
2718
  }, "strict", z.ZodTypeAny, {
2719
- id: string;
2719
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2720
2720
  label: string;
2721
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2721
+ id: string;
2722
2722
  capture: "at_action" | "historical_lookup" | "fixture";
2723
2723
  locator?: string | undefined;
2724
2724
  }, {
2725
- id: string;
2725
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2726
2726
  label: string;
2727
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2727
+ id: string;
2728
2728
  capture: "at_action" | "historical_lookup" | "fixture";
2729
2729
  locator?: string | undefined;
2730
2730
  }>, "many">>;
2731
2731
  }, "strict", z.ZodTypeAny, {
2732
2732
  kind: "decision_superseded";
2733
2733
  evidence: {
2734
- id: string;
2734
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2735
2735
  label: string;
2736
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2736
+ id: string;
2737
2737
  capture: "at_action" | "historical_lookup" | "fixture";
2738
2738
  locator?: string | undefined;
2739
2739
  }[];
@@ -2746,9 +2746,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2746
2746
  correctionId: string;
2747
2747
  replacementDecisionId: string;
2748
2748
  evidence?: {
2749
- id: string;
2749
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2750
2750
  label: string;
2751
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2751
+ id: string;
2752
2752
  capture: "at_action" | "historical_lookup" | "fixture";
2753
2753
  locator?: string | undefined;
2754
2754
  }[] | undefined;
@@ -2764,15 +2764,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2764
2764
  locator: z.ZodOptional<z.ZodString>;
2765
2765
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2766
2766
  }, "strict", z.ZodTypeAny, {
2767
- id: string;
2767
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2768
2768
  label: string;
2769
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2769
+ id: string;
2770
2770
  capture: "at_action" | "historical_lookup" | "fixture";
2771
2771
  locator?: string | undefined;
2772
2772
  }, {
2773
- id: string;
2773
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2774
2774
  label: string;
2775
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2775
+ id: string;
2776
2776
  capture: "at_action" | "historical_lookup" | "fixture";
2777
2777
  locator?: string | undefined;
2778
2778
  }>, "many">>;
@@ -2785,9 +2785,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2785
2785
  agentId: string;
2786
2786
  sessionId: string;
2787
2787
  evidence: {
2788
- id: string;
2788
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2789
2789
  label: string;
2790
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2790
+ id: string;
2791
2791
  capture: "at_action" | "historical_lookup" | "fixture";
2792
2792
  locator?: string | undefined;
2793
2793
  }[];
@@ -2803,9 +2803,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2803
2803
  recallReceiptId: string;
2804
2804
  capturedAtAction: boolean;
2805
2805
  evidence?: {
2806
- id: string;
2806
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2807
2807
  label: string;
2808
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2808
+ id: string;
2809
2809
  capture: "at_action" | "historical_lookup" | "fixture";
2810
2810
  locator?: string | undefined;
2811
2811
  }[] | undefined;
@@ -2821,15 +2821,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2821
2821
  locator: z.ZodOptional<z.ZodString>;
2822
2822
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2823
2823
  }, "strict", z.ZodTypeAny, {
2824
- id: string;
2824
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2825
2825
  label: string;
2826
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2826
+ id: string;
2827
2827
  capture: "at_action" | "historical_lookup" | "fixture";
2828
2828
  locator?: string | undefined;
2829
2829
  }, {
2830
- id: string;
2830
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2831
2831
  label: string;
2832
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2832
+ id: string;
2833
2833
  capture: "at_action" | "historical_lookup" | "fixture";
2834
2834
  locator?: string | undefined;
2835
2835
  }>, "many">>;
@@ -2841,9 +2841,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2841
2841
  agentId: string;
2842
2842
  sessionId: string;
2843
2843
  evidence: {
2844
- id: string;
2844
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2845
2845
  label: string;
2846
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2846
+ id: string;
2847
2847
  capture: "at_action" | "historical_lookup" | "fixture";
2848
2848
  locator?: string | undefined;
2849
2849
  }[];
@@ -2860,9 +2860,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2860
2860
  recallReceiptId: string;
2861
2861
  staleDecisionAbsent: boolean;
2862
2862
  evidence?: {
2863
- id: string;
2863
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2864
2864
  label: string;
2865
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2865
+ id: string;
2866
2866
  capture: "at_action" | "historical_lookup" | "fixture";
2867
2867
  locator?: string | undefined;
2868
2868
  }[] | undefined;
@@ -2877,37 +2877,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2877
2877
  locator: z.ZodOptional<z.ZodString>;
2878
2878
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2879
2879
  }, "strict", z.ZodTypeAny, {
2880
- id: string;
2880
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2881
2881
  label: string;
2882
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2882
+ id: string;
2883
2883
  capture: "at_action" | "historical_lookup" | "fixture";
2884
2884
  locator?: string | undefined;
2885
2885
  }, {
2886
- id: string;
2886
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2887
2887
  label: string;
2888
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2888
+ id: string;
2889
2889
  capture: "at_action" | "historical_lookup" | "fixture";
2890
2890
  locator?: string | undefined;
2891
2891
  }>, "many">>;
2892
2892
  }, "strict", z.ZodTypeAny, {
2893
- summary: string;
2894
2893
  kind: "mission_completed";
2894
+ summary: string;
2895
2895
  outcome: "failed" | "recovered" | "inconclusive";
2896
2896
  evidence: {
2897
- id: string;
2897
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2898
2898
  label: string;
2899
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2899
+ id: string;
2900
2900
  capture: "at_action" | "historical_lookup" | "fixture";
2901
2901
  locator?: string | undefined;
2902
2902
  }[];
2903
2903
  }, {
2904
- summary: string;
2905
2904
  kind: "mission_completed";
2905
+ summary: string;
2906
2906
  outcome: "failed" | "recovered" | "inconclusive";
2907
2907
  evidence?: {
2908
- id: string;
2908
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
2909
  label: string;
2910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2910
+ id: string;
2911
2911
  capture: "at_action" | "historical_lookup" | "fixture";
2912
2912
  locator?: string | undefined;
2913
2913
  }[] | undefined;
@@ -2915,38 +2915,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2915
2915
  kind: "mission_started";
2916
2916
  title: string;
2917
2917
  evidence: {
2918
- id: string;
2918
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2919
2919
  label: string;
2920
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2920
+ id: string;
2921
2921
  capture: "at_action" | "historical_lookup" | "fixture";
2922
2922
  locator?: string | undefined;
2923
2923
  }[];
2924
2924
  objective: string;
2925
2925
  runMode: "replay" | "fixture" | "live";
2926
2926
  } | {
2927
- label: string;
2928
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2929
2927
  kind: "agent_status";
2928
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2929
+ label: string;
2930
2930
  role: string;
2931
2931
  agentId: string;
2932
2932
  sessionId: string;
2933
2933
  evidence: {
2934
- id: string;
2934
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2935
2935
  label: string;
2936
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2936
+ id: string;
2937
2937
  capture: "at_action" | "historical_lookup" | "fixture";
2938
2938
  locator?: string | undefined;
2939
2939
  }[];
2940
2940
  detail?: string | undefined;
2941
2941
  } | {
2942
- summary: string;
2943
2942
  kind: "agent_output";
2943
+ summary: string;
2944
2944
  agentId: string;
2945
2945
  sessionId: string;
2946
2946
  evidence: {
2947
- id: string;
2947
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2948
2948
  label: string;
2949
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2949
+ id: string;
2950
2950
  capture: "at_action" | "historical_lookup" | "fixture";
2951
2951
  locator?: string | undefined;
2952
2952
  }[];
@@ -2957,9 +2957,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2957
2957
  statement: string;
2958
2958
  sessionId: string;
2959
2959
  evidence: {
2960
- id: string;
2960
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2961
2961
  label: string;
2962
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2962
+ id: string;
2963
2963
  capture: "at_action" | "historical_lookup" | "fixture";
2964
2964
  locator?: string | undefined;
2965
2965
  }[];
@@ -2967,12 +2967,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2967
2967
  decisionId: string;
2968
2968
  confidence?: number | undefined;
2969
2969
  } | {
2970
- summary: string;
2971
2970
  kind: "conflict_detected";
2971
+ summary: string;
2972
2972
  evidence: {
2973
- id: string;
2973
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2974
2974
  label: string;
2975
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2975
+ id: string;
2976
2976
  capture: "at_action" | "historical_lookup" | "fixture";
2977
2977
  locator?: string | undefined;
2978
2978
  }[];
@@ -2980,14 +2980,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2980
2980
  decisionIds: string[];
2981
2981
  agentIds: string[];
2982
2982
  } | {
2983
+ kind: "test_result";
2983
2984
  summary: string;
2984
2985
  status: "error" | "failed" | "passed";
2985
- kind: "test_result";
2986
2986
  command: string;
2987
2987
  evidence: {
2988
- id: string;
2988
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2989
2989
  label: string;
2990
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2990
+ id: string;
2991
2991
  capture: "at_action" | "historical_lookup" | "fixture";
2992
2992
  locator?: string | undefined;
2993
2993
  }[];
@@ -3000,9 +3000,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3000
3000
  statement: string;
3001
3001
  rationale: string;
3002
3002
  evidence: {
3003
- id: string;
3003
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3004
3004
  label: string;
3005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3005
+ id: string;
3006
3006
  capture: "at_action" | "historical_lookup" | "fixture";
3007
3007
  locator?: string | undefined;
3008
3008
  }[];
@@ -3014,25 +3014,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3014
3014
  } | {
3015
3015
  kind: "correction_approved";
3016
3016
  evidence: {
3017
- id: string;
3017
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3018
3018
  label: string;
3019
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3019
+ id: string;
3020
3020
  capture: "at_action" | "historical_lookup" | "fixture";
3021
3021
  locator?: string | undefined;
3022
3022
  }[];
3023
3023
  correctionId: string;
3024
3024
  approvedBy: {
3025
- id: string;
3026
- label: string;
3027
3025
  kind: "agent" | "human";
3026
+ label: string;
3027
+ id: string;
3028
3028
  };
3029
3029
  note?: string | undefined;
3030
3030
  } | {
3031
3031
  kind: "decision_superseded";
3032
3032
  evidence: {
3033
- id: string;
3033
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3034
3034
  label: string;
3035
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3035
+ id: string;
3036
3036
  capture: "at_action" | "historical_lookup" | "fixture";
3037
3037
  locator?: string | undefined;
3038
3038
  }[];
@@ -3045,9 +3045,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3045
3045
  agentId: string;
3046
3046
  sessionId: string;
3047
3047
  evidence: {
3048
- id: string;
3048
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3049
3049
  label: string;
3050
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3050
+ id: string;
3051
3051
  capture: "at_action" | "historical_lookup" | "fixture";
3052
3052
  locator?: string | undefined;
3053
3053
  }[];
@@ -3059,9 +3059,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3059
3059
  agentId: string;
3060
3060
  sessionId: string;
3061
3061
  evidence: {
3062
- id: string;
3062
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3063
3063
  label: string;
3064
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3064
+ id: string;
3065
3065
  capture: "at_action" | "historical_lookup" | "fixture";
3066
3066
  locator?: string | undefined;
3067
3067
  }[];
@@ -3070,13 +3070,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3070
3070
  recallReceiptId: string;
3071
3071
  staleDecisionAbsent: boolean;
3072
3072
  } | {
3073
- summary: string;
3074
3073
  kind: "mission_completed";
3074
+ summary: string;
3075
3075
  outcome: "failed" | "recovered" | "inconclusive";
3076
3076
  evidence: {
3077
- id: string;
3077
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3078
3078
  label: string;
3079
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3079
+ id: string;
3080
3080
  capture: "at_action" | "historical_lookup" | "fixture";
3081
3081
  locator?: string | undefined;
3082
3082
  }[];
@@ -3086,37 +3086,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3086
3086
  objective: string;
3087
3087
  runMode: "replay" | "fixture" | "live";
3088
3088
  evidence?: {
3089
- id: string;
3089
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3090
3090
  label: string;
3091
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3091
+ id: string;
3092
3092
  capture: "at_action" | "historical_lookup" | "fixture";
3093
3093
  locator?: string | undefined;
3094
3094
  }[] | undefined;
3095
3095
  } | {
3096
- label: string;
3097
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3098
3096
  kind: "agent_status";
3097
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3098
+ label: string;
3099
3099
  role: string;
3100
3100
  agentId: string;
3101
3101
  sessionId: string;
3102
3102
  detail?: string | undefined;
3103
3103
  evidence?: {
3104
- id: string;
3104
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3105
3105
  label: string;
3106
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3106
+ id: string;
3107
3107
  capture: "at_action" | "historical_lookup" | "fixture";
3108
3108
  locator?: string | undefined;
3109
3109
  }[] | undefined;
3110
3110
  } | {
3111
- summary: string;
3112
3111
  kind: "agent_output";
3112
+ summary: string;
3113
3113
  agentId: string;
3114
3114
  sessionId: string;
3115
3115
  outputId: string;
3116
3116
  evidence?: {
3117
- id: string;
3117
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3118
3118
  label: string;
3119
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3119
+ id: string;
3120
3120
  capture: "at_action" | "historical_lookup" | "fixture";
3121
3121
  locator?: string | undefined;
3122
3122
  }[] | undefined;
@@ -3129,37 +3129,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3129
3129
  decisionId: string;
3130
3130
  confidence?: number | undefined;
3131
3131
  evidence?: {
3132
- id: string;
3132
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3133
3133
  label: string;
3134
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3134
+ id: string;
3135
3135
  capture: "at_action" | "historical_lookup" | "fixture";
3136
3136
  locator?: string | undefined;
3137
3137
  }[] | undefined;
3138
3138
  } | {
3139
- summary: string;
3140
3139
  kind: "conflict_detected";
3140
+ summary: string;
3141
3141
  conflictId: string;
3142
3142
  decisionIds: string[];
3143
3143
  agentIds: string[];
3144
3144
  evidence?: {
3145
- id: string;
3145
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3146
3146
  label: string;
3147
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3147
+ id: string;
3148
3148
  capture: "at_action" | "historical_lookup" | "fixture";
3149
3149
  locator?: string | undefined;
3150
3150
  }[] | undefined;
3151
3151
  } | {
3152
+ kind: "test_result";
3152
3153
  summary: string;
3153
3154
  status: "error" | "failed" | "passed";
3154
- kind: "test_result";
3155
3155
  command: string;
3156
3156
  decisionId: string;
3157
3157
  testId: string;
3158
3158
  durationMs?: number | undefined;
3159
3159
  evidence?: {
3160
- id: string;
3160
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3161
3161
  label: string;
3162
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3162
+ id: string;
3163
3163
  capture: "at_action" | "historical_lookup" | "fixture";
3164
3164
  locator?: string | undefined;
3165
3165
  }[] | undefined;
@@ -3174,9 +3174,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3174
3174
  supersedesDecisionIds: string[];
3175
3175
  proposedBy: string;
3176
3176
  evidence?: {
3177
- id: string;
3177
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3178
3178
  label: string;
3179
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3179
+ id: string;
3180
3180
  capture: "at_action" | "historical_lookup" | "fixture";
3181
3181
  locator?: string | undefined;
3182
3182
  }[] | undefined;
@@ -3184,15 +3184,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3184
3184
  kind: "correction_approved";
3185
3185
  correctionId: string;
3186
3186
  approvedBy: {
3187
- id: string;
3188
- label: string;
3189
3187
  kind: "agent" | "human";
3188
+ label: string;
3189
+ id: string;
3190
3190
  };
3191
3191
  note?: string | undefined;
3192
3192
  evidence?: {
3193
- id: string;
3193
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3194
3194
  label: string;
3195
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3195
+ id: string;
3196
3196
  capture: "at_action" | "historical_lookup" | "fixture";
3197
3197
  locator?: string | undefined;
3198
3198
  }[] | undefined;
@@ -3202,9 +3202,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3202
3202
  correctionId: string;
3203
3203
  replacementDecisionId: string;
3204
3204
  evidence?: {
3205
- id: string;
3205
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3206
3206
  label: string;
3207
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3207
+ id: string;
3208
3208
  capture: "at_action" | "historical_lookup" | "fixture";
3209
3209
  locator?: string | undefined;
3210
3210
  }[] | undefined;
@@ -3217,9 +3217,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3217
3217
  recallReceiptId: string;
3218
3218
  capturedAtAction: boolean;
3219
3219
  evidence?: {
3220
- id: string;
3220
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3221
3221
  label: string;
3222
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3222
+ id: string;
3223
3223
  capture: "at_action" | "historical_lookup" | "fixture";
3224
3224
  locator?: string | undefined;
3225
3225
  }[] | undefined;
@@ -3232,20 +3232,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3232
3232
  recallReceiptId: string;
3233
3233
  staleDecisionAbsent: boolean;
3234
3234
  evidence?: {
3235
- id: string;
3235
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3236
3236
  label: string;
3237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3237
+ id: string;
3238
3238
  capture: "at_action" | "historical_lookup" | "fixture";
3239
3239
  locator?: string | undefined;
3240
3240
  }[] | undefined;
3241
3241
  } | {
3242
- summary: string;
3243
3242
  kind: "mission_completed";
3243
+ summary: string;
3244
3244
  outcome: "failed" | "recovered" | "inconclusive";
3245
3245
  evidence?: {
3246
- id: string;
3246
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3247
3247
  label: string;
3248
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3248
+ id: string;
3249
3249
  capture: "at_action" | "historical_lookup" | "fixture";
3250
3250
  locator?: string | undefined;
3251
3251
  }[] | undefined;
@@ -3255,38 +3255,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3255
3255
  kind: "mission_started";
3256
3256
  title: string;
3257
3257
  evidence: {
3258
- id: string;
3258
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3259
3259
  label: string;
3260
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3260
+ id: string;
3261
3261
  capture: "at_action" | "historical_lookup" | "fixture";
3262
3262
  locator?: string | undefined;
3263
3263
  }[];
3264
3264
  objective: string;
3265
3265
  runMode: "replay" | "fixture" | "live";
3266
3266
  } | {
3267
- label: string;
3268
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3269
3267
  kind: "agent_status";
3268
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3269
+ label: string;
3270
3270
  role: string;
3271
3271
  agentId: string;
3272
3272
  sessionId: string;
3273
3273
  evidence: {
3274
- id: string;
3274
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3275
3275
  label: string;
3276
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3276
+ id: string;
3277
3277
  capture: "at_action" | "historical_lookup" | "fixture";
3278
3278
  locator?: string | undefined;
3279
3279
  }[];
3280
3280
  detail?: string | undefined;
3281
3281
  } | {
3282
- summary: string;
3283
3282
  kind: "agent_output";
3283
+ summary: string;
3284
3284
  agentId: string;
3285
3285
  sessionId: string;
3286
3286
  evidence: {
3287
- id: string;
3287
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3288
3288
  label: string;
3289
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3289
+ id: string;
3290
3290
  capture: "at_action" | "historical_lookup" | "fixture";
3291
3291
  locator?: string | undefined;
3292
3292
  }[];
@@ -3297,9 +3297,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3297
3297
  statement: string;
3298
3298
  sessionId: string;
3299
3299
  evidence: {
3300
- id: string;
3300
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3301
3301
  label: string;
3302
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3302
+ id: string;
3303
3303
  capture: "at_action" | "historical_lookup" | "fixture";
3304
3304
  locator?: string | undefined;
3305
3305
  }[];
@@ -3307,12 +3307,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3307
3307
  decisionId: string;
3308
3308
  confidence?: number | undefined;
3309
3309
  } | {
3310
- summary: string;
3311
3310
  kind: "conflict_detected";
3311
+ summary: string;
3312
3312
  evidence: {
3313
- id: string;
3313
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3314
3314
  label: string;
3315
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3315
+ id: string;
3316
3316
  capture: "at_action" | "historical_lookup" | "fixture";
3317
3317
  locator?: string | undefined;
3318
3318
  }[];
@@ -3320,14 +3320,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3320
3320
  decisionIds: string[];
3321
3321
  agentIds: string[];
3322
3322
  } | {
3323
+ kind: "test_result";
3323
3324
  summary: string;
3324
3325
  status: "error" | "failed" | "passed";
3325
- kind: "test_result";
3326
3326
  command: string;
3327
3327
  evidence: {
3328
- id: string;
3328
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3329
3329
  label: string;
3330
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3330
+ id: string;
3331
3331
  capture: "at_action" | "historical_lookup" | "fixture";
3332
3332
  locator?: string | undefined;
3333
3333
  }[];
@@ -3340,9 +3340,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3340
3340
  statement: string;
3341
3341
  rationale: string;
3342
3342
  evidence: {
3343
- id: string;
3343
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
3344
  label: string;
3345
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3345
+ id: string;
3346
3346
  capture: "at_action" | "historical_lookup" | "fixture";
3347
3347
  locator?: string | undefined;
3348
3348
  }[];
@@ -3354,25 +3354,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3354
3354
  } | {
3355
3355
  kind: "correction_approved";
3356
3356
  evidence: {
3357
- id: string;
3357
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3358
3358
  label: string;
3359
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3359
+ id: string;
3360
3360
  capture: "at_action" | "historical_lookup" | "fixture";
3361
3361
  locator?: string | undefined;
3362
3362
  }[];
3363
3363
  correctionId: string;
3364
3364
  approvedBy: {
3365
- id: string;
3366
- label: string;
3367
3365
  kind: "agent" | "human";
3366
+ label: string;
3367
+ id: string;
3368
3368
  };
3369
3369
  note?: string | undefined;
3370
3370
  } | {
3371
3371
  kind: "decision_superseded";
3372
3372
  evidence: {
3373
- id: string;
3373
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3374
3374
  label: string;
3375
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3375
+ id: string;
3376
3376
  capture: "at_action" | "historical_lookup" | "fixture";
3377
3377
  locator?: string | undefined;
3378
3378
  }[];
@@ -3385,9 +3385,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3385
3385
  agentId: string;
3386
3386
  sessionId: string;
3387
3387
  evidence: {
3388
- id: string;
3388
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3389
3389
  label: string;
3390
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3390
+ id: string;
3391
3391
  capture: "at_action" | "historical_lookup" | "fixture";
3392
3392
  locator?: string | undefined;
3393
3393
  }[];
@@ -3399,9 +3399,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3399
3399
  agentId: string;
3400
3400
  sessionId: string;
3401
3401
  evidence: {
3402
- id: string;
3402
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3403
3403
  label: string;
3404
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3404
+ id: string;
3405
3405
  capture: "at_action" | "historical_lookup" | "fixture";
3406
3406
  locator?: string | undefined;
3407
3407
  }[];
@@ -3410,13 +3410,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3410
3410
  recallReceiptId: string;
3411
3411
  staleDecisionAbsent: boolean;
3412
3412
  } | {
3413
- summary: string;
3414
3413
  kind: "mission_completed";
3414
+ summary: string;
3415
3415
  outcome: "failed" | "recovered" | "inconclusive";
3416
3416
  evidence: {
3417
- id: string;
3417
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3418
3418
  label: string;
3419
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3419
+ id: string;
3420
3420
  capture: "at_action" | "historical_lookup" | "fixture";
3421
3421
  locator?: string | undefined;
3422
3422
  }[];
@@ -3430,37 +3430,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3430
3430
  objective: string;
3431
3431
  runMode: "replay" | "fixture" | "live";
3432
3432
  evidence?: {
3433
- id: string;
3433
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3434
3434
  label: string;
3435
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3435
+ id: string;
3436
3436
  capture: "at_action" | "historical_lookup" | "fixture";
3437
3437
  locator?: string | undefined;
3438
3438
  }[] | undefined;
3439
3439
  } | {
3440
- label: string;
3441
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3442
3440
  kind: "agent_status";
3441
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3442
+ label: string;
3443
3443
  role: string;
3444
3444
  agentId: string;
3445
3445
  sessionId: string;
3446
3446
  detail?: string | undefined;
3447
3447
  evidence?: {
3448
- id: string;
3448
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3449
3449
  label: string;
3450
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3450
+ id: string;
3451
3451
  capture: "at_action" | "historical_lookup" | "fixture";
3452
3452
  locator?: string | undefined;
3453
3453
  }[] | undefined;
3454
3454
  } | {
3455
- summary: string;
3456
3455
  kind: "agent_output";
3456
+ summary: string;
3457
3457
  agentId: string;
3458
3458
  sessionId: string;
3459
3459
  outputId: string;
3460
3460
  evidence?: {
3461
- id: string;
3461
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3462
3462
  label: string;
3463
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3463
+ id: string;
3464
3464
  capture: "at_action" | "historical_lookup" | "fixture";
3465
3465
  locator?: string | undefined;
3466
3466
  }[] | undefined;
@@ -3473,37 +3473,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3473
3473
  decisionId: string;
3474
3474
  confidence?: number | undefined;
3475
3475
  evidence?: {
3476
- id: string;
3476
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
3477
  label: string;
3478
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3478
+ id: string;
3479
3479
  capture: "at_action" | "historical_lookup" | "fixture";
3480
3480
  locator?: string | undefined;
3481
3481
  }[] | undefined;
3482
3482
  } | {
3483
- summary: string;
3484
3483
  kind: "conflict_detected";
3484
+ summary: string;
3485
3485
  conflictId: string;
3486
3486
  decisionIds: string[];
3487
3487
  agentIds: string[];
3488
3488
  evidence?: {
3489
- id: string;
3489
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3490
3490
  label: string;
3491
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3491
+ id: string;
3492
3492
  capture: "at_action" | "historical_lookup" | "fixture";
3493
3493
  locator?: string | undefined;
3494
3494
  }[] | undefined;
3495
3495
  } | {
3496
+ kind: "test_result";
3496
3497
  summary: string;
3497
3498
  status: "error" | "failed" | "passed";
3498
- kind: "test_result";
3499
3499
  command: string;
3500
3500
  decisionId: string;
3501
3501
  testId: string;
3502
3502
  durationMs?: number | undefined;
3503
3503
  evidence?: {
3504
- id: string;
3504
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3505
3505
  label: string;
3506
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3506
+ id: string;
3507
3507
  capture: "at_action" | "historical_lookup" | "fixture";
3508
3508
  locator?: string | undefined;
3509
3509
  }[] | undefined;
@@ -3518,9 +3518,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3518
3518
  supersedesDecisionIds: string[];
3519
3519
  proposedBy: string;
3520
3520
  evidence?: {
3521
- id: string;
3521
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3522
3522
  label: string;
3523
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3523
+ id: string;
3524
3524
  capture: "at_action" | "historical_lookup" | "fixture";
3525
3525
  locator?: string | undefined;
3526
3526
  }[] | undefined;
@@ -3528,15 +3528,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3528
3528
  kind: "correction_approved";
3529
3529
  correctionId: string;
3530
3530
  approvedBy: {
3531
- id: string;
3532
- label: string;
3533
3531
  kind: "agent" | "human";
3532
+ label: string;
3533
+ id: string;
3534
3534
  };
3535
3535
  note?: string | undefined;
3536
3536
  evidence?: {
3537
- id: string;
3537
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3538
3538
  label: string;
3539
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3539
+ id: string;
3540
3540
  capture: "at_action" | "historical_lookup" | "fixture";
3541
3541
  locator?: string | undefined;
3542
3542
  }[] | undefined;
@@ -3546,9 +3546,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3546
3546
  correctionId: string;
3547
3547
  replacementDecisionId: string;
3548
3548
  evidence?: {
3549
- id: string;
3549
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3550
3550
  label: string;
3551
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3551
+ id: string;
3552
3552
  capture: "at_action" | "historical_lookup" | "fixture";
3553
3553
  locator?: string | undefined;
3554
3554
  }[] | undefined;
@@ -3561,9 +3561,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3561
3561
  recallReceiptId: string;
3562
3562
  capturedAtAction: boolean;
3563
3563
  evidence?: {
3564
- id: string;
3564
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3565
3565
  label: string;
3566
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3566
+ id: string;
3567
3567
  capture: "at_action" | "historical_lookup" | "fixture";
3568
3568
  locator?: string | undefined;
3569
3569
  }[] | undefined;
@@ -3576,20 +3576,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3576
3576
  recallReceiptId: string;
3577
3577
  staleDecisionAbsent: boolean;
3578
3578
  evidence?: {
3579
- id: string;
3579
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3580
3580
  label: string;
3581
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3581
+ id: string;
3582
3582
  capture: "at_action" | "historical_lookup" | "fixture";
3583
3583
  locator?: string | undefined;
3584
3584
  }[] | undefined;
3585
3585
  } | {
3586
- summary: string;
3587
3586
  kind: "mission_completed";
3587
+ summary: string;
3588
3588
  outcome: "failed" | "recovered" | "inconclusive";
3589
3589
  evidence?: {
3590
- id: string;
3590
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3591
3591
  label: string;
3592
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3592
+ id: string;
3593
3593
  capture: "at_action" | "historical_lookup" | "fixture";
3594
3594
  locator?: string | undefined;
3595
3595
  }[] | undefined;
@@ -3619,15 +3619,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3619
3619
  locator: z.ZodOptional<z.ZodString>;
3620
3620
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3621
3621
  }, "strict", z.ZodTypeAny, {
3622
- id: string;
3622
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3623
3623
  label: string;
3624
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3624
+ id: string;
3625
3625
  capture: "at_action" | "historical_lookup" | "fixture";
3626
3626
  locator?: string | undefined;
3627
3627
  }, {
3628
- id: string;
3628
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3629
3629
  label: string;
3630
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3630
+ id: string;
3631
3631
  capture: "at_action" | "historical_lookup" | "fixture";
3632
3632
  locator?: string | undefined;
3633
3633
  }>, "many">>;
@@ -3635,9 +3635,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3635
3635
  kind: "mission_started";
3636
3636
  title: string;
3637
3637
  evidence: {
3638
- id: string;
3638
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3639
3639
  label: string;
3640
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3640
+ id: string;
3641
3641
  capture: "at_action" | "historical_lookup" | "fixture";
3642
3642
  locator?: string | undefined;
3643
3643
  }[];
@@ -3649,9 +3649,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3649
3649
  objective: string;
3650
3650
  runMode: "replay" | "fixture" | "live";
3651
3651
  evidence?: {
3652
- id: string;
3652
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3653
3653
  label: string;
3654
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3654
+ id: string;
3655
3655
  capture: "at_action" | "historical_lookup" | "fixture";
3656
3656
  locator?: string | undefined;
3657
3657
  }[] | undefined;
@@ -3667,15 +3667,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3667
3667
  locator: z.ZodOptional<z.ZodString>;
3668
3668
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3669
3669
  }, "strict", z.ZodTypeAny, {
3670
- id: string;
3670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3671
3671
  label: string;
3672
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3672
+ id: string;
3673
3673
  capture: "at_action" | "historical_lookup" | "fixture";
3674
3674
  locator?: string | undefined;
3675
3675
  }, {
3676
- id: string;
3676
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3677
3677
  label: string;
3678
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3678
+ id: string;
3679
3679
  capture: "at_action" | "historical_lookup" | "fixture";
3680
3680
  locator?: string | undefined;
3681
3681
  }>, "many">>;
@@ -3683,32 +3683,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3683
3683
  sessionId: z.ZodString;
3684
3684
  kind: z.ZodLiteral<"agent_status">;
3685
3685
  }, "strict", z.ZodTypeAny, {
3686
- label: string;
3687
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3688
3686
  kind: "agent_status";
3687
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3688
+ label: string;
3689
3689
  role: string;
3690
3690
  agentId: string;
3691
3691
  sessionId: string;
3692
3692
  evidence: {
3693
- id: string;
3693
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3694
3694
  label: string;
3695
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3695
+ id: string;
3696
3696
  capture: "at_action" | "historical_lookup" | "fixture";
3697
3697
  locator?: string | undefined;
3698
3698
  }[];
3699
3699
  detail?: string | undefined;
3700
3700
  }, {
3701
- label: string;
3702
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3703
3701
  kind: "agent_status";
3702
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3703
+ label: string;
3704
3704
  role: string;
3705
3705
  agentId: string;
3706
3706
  sessionId: string;
3707
3707
  detail?: string | undefined;
3708
3708
  evidence?: {
3709
- id: string;
3709
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3710
3710
  label: string;
3711
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3711
+ id: string;
3712
3712
  capture: "at_action" | "historical_lookup" | "fixture";
3713
3713
  locator?: string | undefined;
3714
3714
  }[] | undefined;
@@ -3722,15 +3722,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3722
3722
  locator: z.ZodOptional<z.ZodString>;
3723
3723
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3724
3724
  }, "strict", z.ZodTypeAny, {
3725
- id: string;
3725
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3726
3726
  label: string;
3727
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3727
+ id: string;
3728
3728
  capture: "at_action" | "historical_lookup" | "fixture";
3729
3729
  locator?: string | undefined;
3730
3730
  }, {
3731
- id: string;
3731
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3732
3732
  label: string;
3733
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3733
+ id: string;
3734
3734
  capture: "at_action" | "historical_lookup" | "fixture";
3735
3735
  locator?: string | undefined;
3736
3736
  }>, "many">>;
@@ -3738,28 +3738,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3738
3738
  sessionId: z.ZodString;
3739
3739
  kind: z.ZodLiteral<"agent_output">;
3740
3740
  }, "strict", z.ZodTypeAny, {
3741
- summary: string;
3742
3741
  kind: "agent_output";
3742
+ summary: string;
3743
3743
  agentId: string;
3744
3744
  sessionId: string;
3745
3745
  evidence: {
3746
- id: string;
3746
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3747
3747
  label: string;
3748
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3748
+ id: string;
3749
3749
  capture: "at_action" | "historical_lookup" | "fixture";
3750
3750
  locator?: string | undefined;
3751
3751
  }[];
3752
3752
  outputId: string;
3753
3753
  }, {
3754
- summary: string;
3755
3754
  kind: "agent_output";
3755
+ summary: string;
3756
3756
  agentId: string;
3757
3757
  sessionId: string;
3758
3758
  outputId: string;
3759
3759
  evidence?: {
3760
- id: string;
3760
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3761
3761
  label: string;
3762
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3762
+ id: string;
3763
3763
  capture: "at_action" | "historical_lookup" | "fixture";
3764
3764
  locator?: string | undefined;
3765
3765
  }[] | undefined;
@@ -3775,15 +3775,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3775
3775
  locator: z.ZodOptional<z.ZodString>;
3776
3776
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3777
3777
  }, "strict", z.ZodTypeAny, {
3778
- id: string;
3778
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3779
3779
  label: string;
3780
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3780
+ id: string;
3781
3781
  capture: "at_action" | "historical_lookup" | "fixture";
3782
3782
  locator?: string | undefined;
3783
3783
  }, {
3784
- id: string;
3784
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3785
3785
  label: string;
3786
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3786
+ id: string;
3787
3787
  capture: "at_action" | "historical_lookup" | "fixture";
3788
3788
  locator?: string | undefined;
3789
3789
  }>, "many">>;
@@ -3796,9 +3796,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3796
3796
  statement: string;
3797
3797
  sessionId: string;
3798
3798
  evidence: {
3799
- id: string;
3799
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3800
3800
  label: string;
3801
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3801
+ id: string;
3802
3802
  capture: "at_action" | "historical_lookup" | "fixture";
3803
3803
  locator?: string | undefined;
3804
3804
  }[];
@@ -3814,9 +3814,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3814
3814
  decisionId: string;
3815
3815
  confidence?: number | undefined;
3816
3816
  evidence?: {
3817
- id: string;
3817
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3818
3818
  label: string;
3819
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3819
+ id: string;
3820
3820
  capture: "at_action" | "historical_lookup" | "fixture";
3821
3821
  locator?: string | undefined;
3822
3822
  }[] | undefined;
@@ -3833,25 +3833,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3833
3833
  locator: z.ZodOptional<z.ZodString>;
3834
3834
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3835
3835
  }, "strict", z.ZodTypeAny, {
3836
- id: string;
3836
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3837
3837
  label: string;
3838
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3838
+ id: string;
3839
3839
  capture: "at_action" | "historical_lookup" | "fixture";
3840
3840
  locator?: string | undefined;
3841
3841
  }, {
3842
- id: string;
3842
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3843
3843
  label: string;
3844
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3844
+ id: string;
3845
3845
  capture: "at_action" | "historical_lookup" | "fixture";
3846
3846
  locator?: string | undefined;
3847
3847
  }>, "many">>;
3848
3848
  }, "strict", z.ZodTypeAny, {
3849
- summary: string;
3850
3849
  kind: "conflict_detected";
3850
+ summary: string;
3851
3851
  evidence: {
3852
- id: string;
3852
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3853
3853
  label: string;
3854
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3854
+ id: string;
3855
3855
  capture: "at_action" | "historical_lookup" | "fixture";
3856
3856
  locator?: string | undefined;
3857
3857
  }[];
@@ -3859,15 +3859,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3859
3859
  decisionIds: string[];
3860
3860
  agentIds: string[];
3861
3861
  }, {
3862
- summary: string;
3863
3862
  kind: "conflict_detected";
3863
+ summary: string;
3864
3864
  conflictId: string;
3865
3865
  decisionIds: string[];
3866
3866
  agentIds: string[];
3867
3867
  evidence?: {
3868
- id: string;
3868
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3869
3869
  label: string;
3870
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
+ id: string;
3871
3871
  capture: "at_action" | "historical_lookup" | "fixture";
3872
3872
  locator?: string | undefined;
3873
3873
  }[] | undefined;
@@ -3887,27 +3887,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3887
3887
  locator: z.ZodOptional<z.ZodString>;
3888
3888
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3889
3889
  }, "strict", z.ZodTypeAny, {
3890
- id: string;
3890
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3891
3891
  label: string;
3892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3892
+ id: string;
3893
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3894
3894
  locator?: string | undefined;
3895
3895
  }, {
3896
- id: string;
3896
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3897
3897
  label: string;
3898
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
+ id: string;
3899
3899
  capture: "at_action" | "historical_lookup" | "fixture";
3900
3900
  locator?: string | undefined;
3901
3901
  }>, "many">>;
3902
3902
  }, "strict", z.ZodTypeAny, {
3903
+ kind: "test_result";
3903
3904
  summary: string;
3904
3905
  status: "error" | "failed" | "passed";
3905
- kind: "test_result";
3906
3906
  command: string;
3907
3907
  evidence: {
3908
- id: string;
3908
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3909
3909
  label: string;
3910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3910
+ id: string;
3911
3911
  capture: "at_action" | "historical_lookup" | "fixture";
3912
3912
  locator?: string | undefined;
3913
3913
  }[];
@@ -3916,17 +3916,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3916
3916
  durationMs?: number | undefined;
3917
3917
  correctionId?: string | undefined;
3918
3918
  }, {
3919
+ kind: "test_result";
3919
3920
  summary: string;
3920
3921
  status: "error" | "failed" | "passed";
3921
- kind: "test_result";
3922
3922
  command: string;
3923
3923
  decisionId: string;
3924
3924
  testId: string;
3925
3925
  durationMs?: number | undefined;
3926
3926
  evidence?: {
3927
- id: string;
3927
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3928
3928
  label: string;
3929
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3929
+ id: string;
3930
3930
  capture: "at_action" | "historical_lookup" | "fixture";
3931
3931
  locator?: string | undefined;
3932
3932
  }[] | undefined;
@@ -3947,15 +3947,15 @@ 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
- id: string;
3950
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3951
3951
  label: string;
3952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
+ id: string;
3953
3953
  capture: "at_action" | "historical_lookup" | "fixture";
3954
3954
  locator?: string | undefined;
3955
3955
  }, {
3956
- id: string;
3956
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3957
3957
  label: string;
3958
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3958
+ id: string;
3959
3959
  capture: "at_action" | "historical_lookup" | "fixture";
3960
3960
  locator?: string | undefined;
3961
3961
  }>, "many">>;
@@ -3964,9 +3964,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3964
3964
  statement: string;
3965
3965
  rationale: string;
3966
3966
  evidence: {
3967
- id: string;
3967
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3968
3968
  label: string;
3969
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3969
+ id: string;
3970
3970
  capture: "at_action" | "historical_lookup" | "fixture";
3971
3971
  locator?: string | undefined;
3972
3972
  }[];
@@ -3985,9 +3985,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3985
3985
  supersedesDecisionIds: string[];
3986
3986
  proposedBy: string;
3987
3987
  evidence?: {
3988
- id: string;
3988
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3989
3989
  label: string;
3990
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3990
+ id: string;
3991
3991
  capture: "at_action" | "historical_lookup" | "fixture";
3992
3992
  locator?: string | undefined;
3993
3993
  }[] | undefined;
@@ -3999,13 +3999,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3999
3999
  id: z.ZodString;
4000
4000
  label: z.ZodString;
4001
4001
  }, "strict", z.ZodTypeAny, {
4002
- id: string;
4003
- label: string;
4004
4002
  kind: "agent" | "human";
4005
- }, {
4006
- id: string;
4007
4003
  label: string;
4004
+ id: string;
4005
+ }, {
4008
4006
  kind: "agent" | "human";
4007
+ label: string;
4008
+ id: string;
4009
4009
  }>;
4010
4010
  note: z.ZodOptional<z.ZodString>;
4011
4011
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -4015,47 +4015,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4015
4015
  locator: z.ZodOptional<z.ZodString>;
4016
4016
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4017
4017
  }, "strict", z.ZodTypeAny, {
4018
- id: string;
4018
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4019
4019
  label: string;
4020
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4020
+ id: string;
4021
4021
  capture: "at_action" | "historical_lookup" | "fixture";
4022
4022
  locator?: string | undefined;
4023
4023
  }, {
4024
- id: string;
4024
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4025
4025
  label: string;
4026
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4026
+ id: string;
4027
4027
  capture: "at_action" | "historical_lookup" | "fixture";
4028
4028
  locator?: string | undefined;
4029
4029
  }>, "many">>;
4030
4030
  }, "strict", z.ZodTypeAny, {
4031
4031
  kind: "correction_approved";
4032
4032
  evidence: {
4033
- id: string;
4033
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4034
4034
  label: string;
4035
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4035
+ id: string;
4036
4036
  capture: "at_action" | "historical_lookup" | "fixture";
4037
4037
  locator?: string | undefined;
4038
4038
  }[];
4039
4039
  correctionId: string;
4040
4040
  approvedBy: {
4041
- id: string;
4042
- label: string;
4043
4041
  kind: "agent" | "human";
4042
+ label: string;
4043
+ id: string;
4044
4044
  };
4045
4045
  note?: string | undefined;
4046
4046
  }, {
4047
4047
  kind: "correction_approved";
4048
4048
  correctionId: string;
4049
4049
  approvedBy: {
4050
- id: string;
4051
- label: string;
4052
4050
  kind: "agent" | "human";
4051
+ label: string;
4052
+ id: string;
4053
4053
  };
4054
4054
  note?: string | undefined;
4055
4055
  evidence?: {
4056
- id: string;
4056
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4057
4057
  label: string;
4058
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4058
+ id: string;
4059
4059
  capture: "at_action" | "historical_lookup" | "fixture";
4060
4060
  locator?: string | undefined;
4061
4061
  }[] | undefined;
@@ -4071,24 +4071,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4071
4071
  locator: z.ZodOptional<z.ZodString>;
4072
4072
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4073
4073
  }, "strict", z.ZodTypeAny, {
4074
- id: string;
4074
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4075
4075
  label: string;
4076
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4076
+ id: string;
4077
4077
  capture: "at_action" | "historical_lookup" | "fixture";
4078
4078
  locator?: string | undefined;
4079
4079
  }, {
4080
- id: string;
4080
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4081
4081
  label: string;
4082
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4082
+ id: string;
4083
4083
  capture: "at_action" | "historical_lookup" | "fixture";
4084
4084
  locator?: string | undefined;
4085
4085
  }>, "many">>;
4086
4086
  }, "strict", z.ZodTypeAny, {
4087
4087
  kind: "decision_superseded";
4088
4088
  evidence: {
4089
- id: string;
4089
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4090
4090
  label: string;
4091
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4091
+ id: string;
4092
4092
  capture: "at_action" | "historical_lookup" | "fixture";
4093
4093
  locator?: string | undefined;
4094
4094
  }[];
@@ -4101,9 +4101,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4101
4101
  correctionId: string;
4102
4102
  replacementDecisionId: string;
4103
4103
  evidence?: {
4104
- id: string;
4104
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4105
4105
  label: string;
4106
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4106
+ id: string;
4107
4107
  capture: "at_action" | "historical_lookup" | "fixture";
4108
4108
  locator?: string | undefined;
4109
4109
  }[] | undefined;
@@ -4119,15 +4119,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4119
4119
  locator: z.ZodOptional<z.ZodString>;
4120
4120
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4121
4121
  }, "strict", z.ZodTypeAny, {
4122
- id: string;
4122
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4123
4123
  label: string;
4124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4124
+ id: string;
4125
4125
  capture: "at_action" | "historical_lookup" | "fixture";
4126
4126
  locator?: string | undefined;
4127
4127
  }, {
4128
- id: string;
4128
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4129
4129
  label: string;
4130
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4130
+ id: string;
4131
4131
  capture: "at_action" | "historical_lookup" | "fixture";
4132
4132
  locator?: string | undefined;
4133
4133
  }>, "many">>;
@@ -4140,9 +4140,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4140
4140
  agentId: string;
4141
4141
  sessionId: string;
4142
4142
  evidence: {
4143
- id: string;
4143
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4144
4144
  label: string;
4145
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4145
+ id: string;
4146
4146
  capture: "at_action" | "historical_lookup" | "fixture";
4147
4147
  locator?: string | undefined;
4148
4148
  }[];
@@ -4158,9 +4158,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4158
4158
  recallReceiptId: string;
4159
4159
  capturedAtAction: boolean;
4160
4160
  evidence?: {
4161
- id: string;
4161
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4162
4162
  label: string;
4163
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4163
+ id: string;
4164
4164
  capture: "at_action" | "historical_lookup" | "fixture";
4165
4165
  locator?: string | undefined;
4166
4166
  }[] | undefined;
@@ -4176,15 +4176,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4176
4176
  locator: z.ZodOptional<z.ZodString>;
4177
4177
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4178
4178
  }, "strict", z.ZodTypeAny, {
4179
- id: string;
4179
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4180
4180
  label: string;
4181
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4181
+ id: string;
4182
4182
  capture: "at_action" | "historical_lookup" | "fixture";
4183
4183
  locator?: string | undefined;
4184
4184
  }, {
4185
- id: string;
4185
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4186
4186
  label: string;
4187
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4187
+ id: string;
4188
4188
  capture: "at_action" | "historical_lookup" | "fixture";
4189
4189
  locator?: string | undefined;
4190
4190
  }>, "many">>;
@@ -4196,9 +4196,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4196
4196
  agentId: string;
4197
4197
  sessionId: string;
4198
4198
  evidence: {
4199
- id: string;
4199
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4200
4200
  label: string;
4201
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4201
+ id: string;
4202
4202
  capture: "at_action" | "historical_lookup" | "fixture";
4203
4203
  locator?: string | undefined;
4204
4204
  }[];
@@ -4215,9 +4215,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4215
4215
  recallReceiptId: string;
4216
4216
  staleDecisionAbsent: boolean;
4217
4217
  evidence?: {
4218
- id: string;
4218
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4219
4219
  label: string;
4220
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4220
+ id: string;
4221
4221
  capture: "at_action" | "historical_lookup" | "fixture";
4222
4222
  locator?: string | undefined;
4223
4223
  }[] | undefined;
@@ -4232,37 +4232,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4232
4232
  locator: z.ZodOptional<z.ZodString>;
4233
4233
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4234
4234
  }, "strict", z.ZodTypeAny, {
4235
- id: string;
4235
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4236
4236
  label: string;
4237
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4237
+ id: string;
4238
4238
  capture: "at_action" | "historical_lookup" | "fixture";
4239
4239
  locator?: string | undefined;
4240
4240
  }, {
4241
- id: string;
4241
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4242
4242
  label: string;
4243
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4243
+ id: string;
4244
4244
  capture: "at_action" | "historical_lookup" | "fixture";
4245
4245
  locator?: string | undefined;
4246
4246
  }>, "many">>;
4247
4247
  }, "strict", z.ZodTypeAny, {
4248
- summary: string;
4249
4248
  kind: "mission_completed";
4249
+ summary: string;
4250
4250
  outcome: "failed" | "recovered" | "inconclusive";
4251
4251
  evidence: {
4252
- id: string;
4252
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4253
4253
  label: string;
4254
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4254
+ id: string;
4255
4255
  capture: "at_action" | "historical_lookup" | "fixture";
4256
4256
  locator?: string | undefined;
4257
4257
  }[];
4258
4258
  }, {
4259
- summary: string;
4260
4259
  kind: "mission_completed";
4260
+ summary: string;
4261
4261
  outcome: "failed" | "recovered" | "inconclusive";
4262
4262
  evidence?: {
4263
- id: string;
4263
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4264
4264
  label: string;
4265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4265
+ id: string;
4266
4266
  capture: "at_action" | "historical_lookup" | "fixture";
4267
4267
  locator?: string | undefined;
4268
4268
  }[] | undefined;
@@ -4270,38 +4270,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4270
4270
  kind: "mission_started";
4271
4271
  title: string;
4272
4272
  evidence: {
4273
- id: string;
4273
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4274
4274
  label: string;
4275
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4275
+ id: string;
4276
4276
  capture: "at_action" | "historical_lookup" | "fixture";
4277
4277
  locator?: string | undefined;
4278
4278
  }[];
4279
4279
  objective: string;
4280
4280
  runMode: "replay" | "fixture" | "live";
4281
4281
  } | {
4282
- label: string;
4283
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4284
4282
  kind: "agent_status";
4283
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4284
+ label: string;
4285
4285
  role: string;
4286
4286
  agentId: string;
4287
4287
  sessionId: string;
4288
4288
  evidence: {
4289
- id: string;
4289
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4290
4290
  label: string;
4291
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4291
+ id: string;
4292
4292
  capture: "at_action" | "historical_lookup" | "fixture";
4293
4293
  locator?: string | undefined;
4294
4294
  }[];
4295
4295
  detail?: string | undefined;
4296
4296
  } | {
4297
- summary: string;
4298
4297
  kind: "agent_output";
4298
+ summary: string;
4299
4299
  agentId: string;
4300
4300
  sessionId: string;
4301
4301
  evidence: {
4302
- id: string;
4302
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4303
4303
  label: string;
4304
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4304
+ id: string;
4305
4305
  capture: "at_action" | "historical_lookup" | "fixture";
4306
4306
  locator?: string | undefined;
4307
4307
  }[];
@@ -4312,9 +4312,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4312
4312
  statement: string;
4313
4313
  sessionId: string;
4314
4314
  evidence: {
4315
- id: string;
4315
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4316
4316
  label: string;
4317
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4317
+ id: string;
4318
4318
  capture: "at_action" | "historical_lookup" | "fixture";
4319
4319
  locator?: string | undefined;
4320
4320
  }[];
@@ -4322,12 +4322,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4322
4322
  decisionId: string;
4323
4323
  confidence?: number | undefined;
4324
4324
  } | {
4325
- summary: string;
4326
4325
  kind: "conflict_detected";
4326
+ summary: string;
4327
4327
  evidence: {
4328
- id: string;
4328
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4329
4329
  label: string;
4330
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4330
+ id: string;
4331
4331
  capture: "at_action" | "historical_lookup" | "fixture";
4332
4332
  locator?: string | undefined;
4333
4333
  }[];
@@ -4335,14 +4335,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4335
4335
  decisionIds: string[];
4336
4336
  agentIds: string[];
4337
4337
  } | {
4338
+ kind: "test_result";
4338
4339
  summary: string;
4339
4340
  status: "error" | "failed" | "passed";
4340
- kind: "test_result";
4341
4341
  command: string;
4342
4342
  evidence: {
4343
- id: string;
4343
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4344
4344
  label: string;
4345
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4345
+ id: string;
4346
4346
  capture: "at_action" | "historical_lookup" | "fixture";
4347
4347
  locator?: string | undefined;
4348
4348
  }[];
@@ -4355,9 +4355,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4355
4355
  statement: string;
4356
4356
  rationale: string;
4357
4357
  evidence: {
4358
- id: string;
4358
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4359
4359
  label: string;
4360
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4360
+ id: string;
4361
4361
  capture: "at_action" | "historical_lookup" | "fixture";
4362
4362
  locator?: string | undefined;
4363
4363
  }[];
@@ -4369,25 +4369,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4369
4369
  } | {
4370
4370
  kind: "correction_approved";
4371
4371
  evidence: {
4372
- id: string;
4372
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4373
4373
  label: string;
4374
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4374
+ id: string;
4375
4375
  capture: "at_action" | "historical_lookup" | "fixture";
4376
4376
  locator?: string | undefined;
4377
4377
  }[];
4378
4378
  correctionId: string;
4379
4379
  approvedBy: {
4380
- id: string;
4381
- label: string;
4382
4380
  kind: "agent" | "human";
4381
+ label: string;
4382
+ id: string;
4383
4383
  };
4384
4384
  note?: string | undefined;
4385
4385
  } | {
4386
4386
  kind: "decision_superseded";
4387
4387
  evidence: {
4388
- id: string;
4388
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4389
4389
  label: string;
4390
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4390
+ id: string;
4391
4391
  capture: "at_action" | "historical_lookup" | "fixture";
4392
4392
  locator?: string | undefined;
4393
4393
  }[];
@@ -4400,9 +4400,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4400
4400
  agentId: string;
4401
4401
  sessionId: string;
4402
4402
  evidence: {
4403
- id: string;
4403
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4404
4404
  label: string;
4405
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4405
+ id: string;
4406
4406
  capture: "at_action" | "historical_lookup" | "fixture";
4407
4407
  locator?: string | undefined;
4408
4408
  }[];
@@ -4414,9 +4414,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4414
4414
  agentId: string;
4415
4415
  sessionId: string;
4416
4416
  evidence: {
4417
- id: string;
4417
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4418
4418
  label: string;
4419
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4419
+ id: string;
4420
4420
  capture: "at_action" | "historical_lookup" | "fixture";
4421
4421
  locator?: string | undefined;
4422
4422
  }[];
@@ -4425,13 +4425,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4425
4425
  recallReceiptId: string;
4426
4426
  staleDecisionAbsent: boolean;
4427
4427
  } | {
4428
- summary: string;
4429
4428
  kind: "mission_completed";
4429
+ summary: string;
4430
4430
  outcome: "failed" | "recovered" | "inconclusive";
4431
4431
  evidence: {
4432
- id: string;
4432
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4433
4433
  label: string;
4434
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4434
+ id: string;
4435
4435
  capture: "at_action" | "historical_lookup" | "fixture";
4436
4436
  locator?: string | undefined;
4437
4437
  }[];
@@ -4441,37 +4441,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4441
4441
  objective: string;
4442
4442
  runMode: "replay" | "fixture" | "live";
4443
4443
  evidence?: {
4444
- id: string;
4444
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4445
4445
  label: string;
4446
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4446
+ id: string;
4447
4447
  capture: "at_action" | "historical_lookup" | "fixture";
4448
4448
  locator?: string | undefined;
4449
4449
  }[] | undefined;
4450
4450
  } | {
4451
- label: string;
4452
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4453
4451
  kind: "agent_status";
4452
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4453
+ label: string;
4454
4454
  role: string;
4455
4455
  agentId: string;
4456
4456
  sessionId: string;
4457
4457
  detail?: string | undefined;
4458
4458
  evidence?: {
4459
- id: string;
4459
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4460
4460
  label: string;
4461
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4461
+ id: string;
4462
4462
  capture: "at_action" | "historical_lookup" | "fixture";
4463
4463
  locator?: string | undefined;
4464
4464
  }[] | undefined;
4465
4465
  } | {
4466
- summary: string;
4467
4466
  kind: "agent_output";
4467
+ summary: string;
4468
4468
  agentId: string;
4469
4469
  sessionId: string;
4470
4470
  outputId: string;
4471
4471
  evidence?: {
4472
- id: string;
4472
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4473
4473
  label: string;
4474
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4474
+ id: string;
4475
4475
  capture: "at_action" | "historical_lookup" | "fixture";
4476
4476
  locator?: string | undefined;
4477
4477
  }[] | undefined;
@@ -4484,37 +4484,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4484
4484
  decisionId: string;
4485
4485
  confidence?: number | undefined;
4486
4486
  evidence?: {
4487
- id: string;
4487
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4488
4488
  label: string;
4489
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4489
+ id: string;
4490
4490
  capture: "at_action" | "historical_lookup" | "fixture";
4491
4491
  locator?: string | undefined;
4492
4492
  }[] | undefined;
4493
4493
  } | {
4494
- summary: string;
4495
4494
  kind: "conflict_detected";
4495
+ summary: string;
4496
4496
  conflictId: string;
4497
4497
  decisionIds: string[];
4498
4498
  agentIds: string[];
4499
4499
  evidence?: {
4500
- id: string;
4500
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4501
4501
  label: string;
4502
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4502
+ id: string;
4503
4503
  capture: "at_action" | "historical_lookup" | "fixture";
4504
4504
  locator?: string | undefined;
4505
4505
  }[] | undefined;
4506
4506
  } | {
4507
+ kind: "test_result";
4507
4508
  summary: string;
4508
4509
  status: "error" | "failed" | "passed";
4509
- kind: "test_result";
4510
4510
  command: string;
4511
4511
  decisionId: string;
4512
4512
  testId: string;
4513
4513
  durationMs?: number | undefined;
4514
4514
  evidence?: {
4515
- id: string;
4515
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4516
4516
  label: string;
4517
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4517
+ id: string;
4518
4518
  capture: "at_action" | "historical_lookup" | "fixture";
4519
4519
  locator?: string | undefined;
4520
4520
  }[] | undefined;
@@ -4529,9 +4529,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4529
4529
  supersedesDecisionIds: string[];
4530
4530
  proposedBy: string;
4531
4531
  evidence?: {
4532
- id: string;
4532
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4533
4533
  label: string;
4534
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4534
+ id: string;
4535
4535
  capture: "at_action" | "historical_lookup" | "fixture";
4536
4536
  locator?: string | undefined;
4537
4537
  }[] | undefined;
@@ -4539,15 +4539,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4539
4539
  kind: "correction_approved";
4540
4540
  correctionId: string;
4541
4541
  approvedBy: {
4542
- id: string;
4543
- label: string;
4544
4542
  kind: "agent" | "human";
4543
+ label: string;
4544
+ id: string;
4545
4545
  };
4546
4546
  note?: string | undefined;
4547
4547
  evidence?: {
4548
- id: string;
4548
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4549
4549
  label: string;
4550
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4550
+ id: string;
4551
4551
  capture: "at_action" | "historical_lookup" | "fixture";
4552
4552
  locator?: string | undefined;
4553
4553
  }[] | undefined;
@@ -4557,9 +4557,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4557
4557
  correctionId: string;
4558
4558
  replacementDecisionId: string;
4559
4559
  evidence?: {
4560
- id: string;
4560
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4561
4561
  label: string;
4562
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4562
+ id: string;
4563
4563
  capture: "at_action" | "historical_lookup" | "fixture";
4564
4564
  locator?: string | undefined;
4565
4565
  }[] | undefined;
@@ -4572,9 +4572,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4572
4572
  recallReceiptId: string;
4573
4573
  capturedAtAction: boolean;
4574
4574
  evidence?: {
4575
- id: string;
4575
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4576
4576
  label: string;
4577
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4577
+ id: string;
4578
4578
  capture: "at_action" | "historical_lookup" | "fixture";
4579
4579
  locator?: string | undefined;
4580
4580
  }[] | undefined;
@@ -4587,64 +4587,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4587
4587
  recallReceiptId: string;
4588
4588
  staleDecisionAbsent: boolean;
4589
4589
  evidence?: {
4590
- id: string;
4590
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4591
4591
  label: string;
4592
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4592
+ id: string;
4593
4593
  capture: "at_action" | "historical_lookup" | "fixture";
4594
4594
  locator?: string | undefined;
4595
4595
  }[] | undefined;
4596
4596
  } | {
4597
- summary: string;
4598
4597
  kind: "mission_completed";
4598
+ summary: string;
4599
4599
  outcome: "failed" | "recovered" | "inconclusive";
4600
4600
  evidence?: {
4601
- id: string;
4601
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4602
4602
  label: string;
4603
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4603
+ id: string;
4604
4604
  capture: "at_action" | "historical_lookup" | "fixture";
4605
4605
  locator?: string | undefined;
4606
4606
  }[] | undefined;
4607
4607
  }>;
4608
4608
  }, "strict", z.ZodTypeAny, {
4609
- namespace: string;
4610
- recordedAt: string;
4611
4609
  schemaVersion: "1";
4610
+ recordedAt: string;
4612
4611
  payload: {
4613
4612
  kind: "mission_started";
4614
4613
  title: string;
4615
4614
  evidence: {
4616
- id: string;
4615
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4617
4616
  label: string;
4618
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4617
+ id: string;
4619
4618
  capture: "at_action" | "historical_lookup" | "fixture";
4620
4619
  locator?: string | undefined;
4621
4620
  }[];
4622
4621
  objective: string;
4623
4622
  runMode: "replay" | "fixture" | "live";
4624
4623
  } | {
4625
- label: string;
4626
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4627
4624
  kind: "agent_status";
4625
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4626
+ label: string;
4628
4627
  role: string;
4629
4628
  agentId: string;
4630
4629
  sessionId: string;
4631
4630
  evidence: {
4632
- id: string;
4631
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4633
4632
  label: string;
4634
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4633
+ id: string;
4635
4634
  capture: "at_action" | "historical_lookup" | "fixture";
4636
4635
  locator?: string | undefined;
4637
4636
  }[];
4638
4637
  detail?: string | undefined;
4639
4638
  } | {
4640
- summary: string;
4641
4639
  kind: "agent_output";
4640
+ summary: string;
4642
4641
  agentId: string;
4643
4642
  sessionId: string;
4644
4643
  evidence: {
4645
- id: string;
4644
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4646
4645
  label: string;
4647
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4646
+ id: string;
4648
4647
  capture: "at_action" | "historical_lookup" | "fixture";
4649
4648
  locator?: string | undefined;
4650
4649
  }[];
@@ -4655,9 +4654,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4655
4654
  statement: string;
4656
4655
  sessionId: string;
4657
4656
  evidence: {
4658
- id: string;
4657
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4659
4658
  label: string;
4660
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4659
+ id: string;
4661
4660
  capture: "at_action" | "historical_lookup" | "fixture";
4662
4661
  locator?: string | undefined;
4663
4662
  }[];
@@ -4665,12 +4664,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4665
4664
  decisionId: string;
4666
4665
  confidence?: number | undefined;
4667
4666
  } | {
4668
- summary: string;
4669
4667
  kind: "conflict_detected";
4668
+ summary: string;
4670
4669
  evidence: {
4671
- id: string;
4670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4672
4671
  label: string;
4673
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4672
+ id: string;
4674
4673
  capture: "at_action" | "historical_lookup" | "fixture";
4675
4674
  locator?: string | undefined;
4676
4675
  }[];
@@ -4678,14 +4677,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4678
4677
  decisionIds: string[];
4679
4678
  agentIds: string[];
4680
4679
  } | {
4680
+ kind: "test_result";
4681
4681
  summary: string;
4682
4682
  status: "error" | "failed" | "passed";
4683
- kind: "test_result";
4684
4683
  command: string;
4685
4684
  evidence: {
4686
- id: string;
4685
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4687
4686
  label: string;
4688
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4687
+ id: string;
4689
4688
  capture: "at_action" | "historical_lookup" | "fixture";
4690
4689
  locator?: string | undefined;
4691
4690
  }[];
@@ -4698,9 +4697,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4698
4697
  statement: string;
4699
4698
  rationale: string;
4700
4699
  evidence: {
4701
- id: string;
4700
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4702
4701
  label: string;
4703
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4702
+ id: string;
4704
4703
  capture: "at_action" | "historical_lookup" | "fixture";
4705
4704
  locator?: string | undefined;
4706
4705
  }[];
@@ -4712,25 +4711,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4712
4711
  } | {
4713
4712
  kind: "correction_approved";
4714
4713
  evidence: {
4715
- id: string;
4714
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4716
4715
  label: string;
4717
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4716
+ id: string;
4718
4717
  capture: "at_action" | "historical_lookup" | "fixture";
4719
4718
  locator?: string | undefined;
4720
4719
  }[];
4721
4720
  correctionId: string;
4722
4721
  approvedBy: {
4723
- id: string;
4724
- label: string;
4725
4722
  kind: "agent" | "human";
4723
+ label: string;
4724
+ id: string;
4726
4725
  };
4727
4726
  note?: string | undefined;
4728
4727
  } | {
4729
4728
  kind: "decision_superseded";
4730
4729
  evidence: {
4731
- id: string;
4730
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4732
4731
  label: string;
4733
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4732
+ id: string;
4734
4733
  capture: "at_action" | "historical_lookup" | "fixture";
4735
4734
  locator?: string | undefined;
4736
4735
  }[];
@@ -4743,9 +4742,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4743
4742
  agentId: string;
4744
4743
  sessionId: string;
4745
4744
  evidence: {
4746
- id: string;
4745
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4747
4746
  label: string;
4748
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4747
+ id: string;
4749
4748
  capture: "at_action" | "historical_lookup" | "fixture";
4750
4749
  locator?: string | undefined;
4751
4750
  }[];
@@ -4757,9 +4756,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4757
4756
  agentId: string;
4758
4757
  sessionId: string;
4759
4758
  evidence: {
4760
- id: string;
4759
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4761
4760
  label: string;
4762
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4761
+ id: string;
4763
4762
  capture: "at_action" | "historical_lookup" | "fixture";
4764
4763
  locator?: string | undefined;
4765
4764
  }[];
@@ -4768,63 +4767,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4768
4767
  recallReceiptId: string;
4769
4768
  staleDecisionAbsent: boolean;
4770
4769
  } | {
4771
- summary: string;
4772
4770
  kind: "mission_completed";
4771
+ summary: string;
4773
4772
  outcome: "failed" | "recovered" | "inconclusive";
4774
4773
  evidence: {
4775
- id: string;
4774
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4776
4775
  label: string;
4777
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4776
+ id: string;
4778
4777
  capture: "at_action" | "historical_lookup" | "fixture";
4779
4778
  locator?: string | undefined;
4780
4779
  }[];
4781
4780
  };
4781
+ namespace: string;
4782
4782
  eventId: string;
4783
4783
  occurredAt: string;
4784
4784
  missionId: string;
4785
4785
  idempotencyKey?: string | undefined;
4786
4786
  authenticatedPrincipal?: string | undefined;
4787
4787
  }, {
4788
- namespace: string;
4789
- recordedAt: string;
4790
4788
  schemaVersion: "1";
4789
+ recordedAt: string;
4791
4790
  payload: {
4792
4791
  kind: "mission_started";
4793
4792
  title: string;
4794
4793
  objective: string;
4795
4794
  runMode: "replay" | "fixture" | "live";
4796
4795
  evidence?: {
4797
- id: string;
4796
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4798
4797
  label: string;
4799
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4798
+ id: string;
4800
4799
  capture: "at_action" | "historical_lookup" | "fixture";
4801
4800
  locator?: string | undefined;
4802
4801
  }[] | undefined;
4803
4802
  } | {
4804
- label: string;
4805
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4806
4803
  kind: "agent_status";
4804
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4805
+ label: string;
4807
4806
  role: string;
4808
4807
  agentId: string;
4809
4808
  sessionId: string;
4810
4809
  detail?: string | undefined;
4811
4810
  evidence?: {
4812
- id: string;
4811
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4813
4812
  label: string;
4814
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4813
+ id: string;
4815
4814
  capture: "at_action" | "historical_lookup" | "fixture";
4816
4815
  locator?: string | undefined;
4817
4816
  }[] | undefined;
4818
4817
  } | {
4819
- summary: string;
4820
4818
  kind: "agent_output";
4819
+ summary: string;
4821
4820
  agentId: string;
4822
4821
  sessionId: string;
4823
4822
  outputId: string;
4824
4823
  evidence?: {
4825
- id: string;
4824
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4826
4825
  label: string;
4827
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4826
+ id: string;
4828
4827
  capture: "at_action" | "historical_lookup" | "fixture";
4829
4828
  locator?: string | undefined;
4830
4829
  }[] | undefined;
@@ -4837,37 +4836,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4837
4836
  decisionId: string;
4838
4837
  confidence?: number | undefined;
4839
4838
  evidence?: {
4840
- id: string;
4839
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4841
4840
  label: string;
4842
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4841
+ id: string;
4843
4842
  capture: "at_action" | "historical_lookup" | "fixture";
4844
4843
  locator?: string | undefined;
4845
4844
  }[] | undefined;
4846
4845
  } | {
4847
- summary: string;
4848
4846
  kind: "conflict_detected";
4847
+ summary: string;
4849
4848
  conflictId: string;
4850
4849
  decisionIds: string[];
4851
4850
  agentIds: string[];
4852
4851
  evidence?: {
4853
- id: string;
4852
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4854
4853
  label: string;
4855
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4854
+ id: string;
4856
4855
  capture: "at_action" | "historical_lookup" | "fixture";
4857
4856
  locator?: string | undefined;
4858
4857
  }[] | undefined;
4859
4858
  } | {
4859
+ kind: "test_result";
4860
4860
  summary: string;
4861
4861
  status: "error" | "failed" | "passed";
4862
- kind: "test_result";
4863
4862
  command: string;
4864
4863
  decisionId: string;
4865
4864
  testId: string;
4866
4865
  durationMs?: number | undefined;
4867
4866
  evidence?: {
4868
- id: string;
4867
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4869
4868
  label: string;
4870
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4869
+ id: string;
4871
4870
  capture: "at_action" | "historical_lookup" | "fixture";
4872
4871
  locator?: string | undefined;
4873
4872
  }[] | undefined;
@@ -4882,9 +4881,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4882
4881
  supersedesDecisionIds: string[];
4883
4882
  proposedBy: string;
4884
4883
  evidence?: {
4885
- id: string;
4884
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4886
4885
  label: string;
4887
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4886
+ id: string;
4888
4887
  capture: "at_action" | "historical_lookup" | "fixture";
4889
4888
  locator?: string | undefined;
4890
4889
  }[] | undefined;
@@ -4892,15 +4891,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4892
4891
  kind: "correction_approved";
4893
4892
  correctionId: string;
4894
4893
  approvedBy: {
4895
- id: string;
4896
- label: string;
4897
4894
  kind: "agent" | "human";
4895
+ label: string;
4896
+ id: string;
4898
4897
  };
4899
4898
  note?: string | undefined;
4900
4899
  evidence?: {
4901
- id: string;
4900
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4902
4901
  label: string;
4903
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4902
+ id: string;
4904
4903
  capture: "at_action" | "historical_lookup" | "fixture";
4905
4904
  locator?: string | undefined;
4906
4905
  }[] | undefined;
@@ -4910,9 +4909,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4910
4909
  correctionId: string;
4911
4910
  replacementDecisionId: string;
4912
4911
  evidence?: {
4913
- id: string;
4912
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4914
4913
  label: string;
4915
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4914
+ id: string;
4916
4915
  capture: "at_action" | "historical_lookup" | "fixture";
4917
4916
  locator?: string | undefined;
4918
4917
  }[] | undefined;
@@ -4925,9 +4924,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4925
4924
  recallReceiptId: string;
4926
4925
  capturedAtAction: boolean;
4927
4926
  evidence?: {
4928
- id: string;
4927
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4929
4928
  label: string;
4930
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4929
+ id: string;
4931
4930
  capture: "at_action" | "historical_lookup" | "fixture";
4932
4931
  locator?: string | undefined;
4933
4932
  }[] | undefined;
@@ -4940,24 +4939,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4940
4939
  recallReceiptId: string;
4941
4940
  staleDecisionAbsent: boolean;
4942
4941
  evidence?: {
4943
- id: string;
4942
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4944
4943
  label: string;
4945
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4944
+ id: string;
4946
4945
  capture: "at_action" | "historical_lookup" | "fixture";
4947
4946
  locator?: string | undefined;
4948
4947
  }[] | undefined;
4949
4948
  } | {
4950
- summary: string;
4951
4949
  kind: "mission_completed";
4950
+ summary: string;
4952
4951
  outcome: "failed" | "recovered" | "inconclusive";
4953
4952
  evidence?: {
4954
- id: string;
4953
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4955
4954
  label: string;
4956
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4955
+ id: string;
4957
4956
  capture: "at_action" | "historical_lookup" | "fixture";
4958
4957
  locator?: string | undefined;
4959
4958
  }[] | undefined;
4960
4959
  };
4960
+ namespace: string;
4961
4961
  eventId: string;
4962
4962
  occurredAt: string;
4963
4963
  missionId: string;