@remnic/core 9.69.13 → 9.69.14

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 (38) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-authorization-probe.d.ts +1 -1
  3. package/dist/access-boundary.d.ts +1 -1
  4. package/dist/access-extraction-force-flush.d.ts +1 -1
  5. package/dist/access-http-lcm-compaction.d.ts +1 -1
  6. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  7. package/dist/access-http-offline-stream.d.ts +1 -1
  8. package/dist/access-http.d.ts +2 -2
  9. package/dist/access-lcm-surface.d.ts +1 -1
  10. package/dist/access-mcp.d.ts +1 -1
  11. package/dist/access-observe-write-surface.d.ts +1 -1
  12. package/dist/access-operations.d.ts +6 -6
  13. package/dist/access-recall-concurrency.d.ts +1 -1
  14. package/dist/access-recall-response.d.ts +1 -1
  15. package/dist/access-recall-surface.d.ts +1 -1
  16. package/dist/access-schema.d.ts +91 -91
  17. package/dist/access-service-helpers.d.ts +1 -1
  18. package/dist/access-service.d.ts +1 -1
  19. package/dist/access-surface-catalog.d.ts +1 -1
  20. package/dist/{cli-DXXy60A4.d.ts → cli-BI9YYpKx.d.ts} +1 -1
  21. package/dist/cli.d.ts +2 -2
  22. package/dist/deep-recall-http-glue.d.ts +1 -1
  23. package/dist/deep-recall-mcp-tools.d.ts +1 -1
  24. package/dist/external-wiki-access.d.ts +1 -1
  25. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  26. package/dist/index.d.ts +680 -680
  27. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  28. package/dist/memory-subject-cli.d.ts +1 -1
  29. package/dist/memory-subject.d.ts +1 -1
  30. package/dist/{public-http-NQ3UUp6W.d.ts → public-http-Bocro5ZU.d.ts} +1 -1
  31. package/dist/schemas.d.ts +176 -176
  32. package/dist/shared-context/manager.d.ts +6 -6
  33. package/dist/support-passport/index.d.ts +4 -4
  34. package/dist/transfer/types.d.ts +78 -78
  35. package/dist/who-knows-cli.d.ts +1 -1
  36. package/dist/who-knows.d.ts +1 -1
  37. package/package.json +2 -2
  38. package/dist/{access-service-Bb2Fykzc.d.ts → access-service-tcC_jK6C.d.ts} +64 -64
package/dist/index.d.ts CHANGED
@@ -34,8 +34,8 @@ export { bT as ACTION_GATE_DEFAULTS, bU as ACTION_GATE_DEFAULT_MAX_ADVISORIES_PE
34
34
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
35
35
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
36
36
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
37
- import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-Bb2Fykzc.js';
38
- 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-Bb2Fykzc.js';
37
+ import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-tcC_jK6C.js';
38
+ 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-tcC_jK6C.js';
39
39
  import { LocalLlmClient } from './local-llm.js';
40
40
  import { FallbackLlmClient } from './fallback-llm.js';
41
41
  export { FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -58,10 +58,10 @@ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatal
58
58
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
59
59
  export { storagePathHash } from './storage-paths.js';
60
60
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
61
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-DXXy60A4.js';
61
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-BI9YYpKx.js';
62
62
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
63
63
  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';
64
- 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-NQ3UUp6W.js';
64
+ 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-Bocro5ZU.js';
65
65
  import { z } from 'zod';
66
66
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
67
67
  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';
@@ -1233,15 +1233,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
1233
1233
  locator: z.ZodOptional<z.ZodString>;
1234
1234
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1235
1235
  }, "strict", z.ZodTypeAny, {
1236
- id: string;
1236
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1237
1237
  label: string;
1238
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1238
+ id: string;
1239
1239
  capture: "at_action" | "historical_lookup" | "fixture";
1240
1240
  locator?: string | undefined;
1241
1241
  }, {
1242
- id: string;
1242
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1243
1243
  label: string;
1244
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1244
+ id: string;
1245
1245
  capture: "at_action" | "historical_lookup" | "fixture";
1246
1246
  locator?: string | undefined;
1247
1247
  }>;
@@ -1258,15 +1258,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1258
1258
  locator: z.ZodOptional<z.ZodString>;
1259
1259
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1260
1260
  }, "strict", z.ZodTypeAny, {
1261
- id: string;
1261
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1262
1262
  label: string;
1263
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1263
+ id: string;
1264
1264
  capture: "at_action" | "historical_lookup" | "fixture";
1265
1265
  locator?: string | undefined;
1266
1266
  }, {
1267
- id: string;
1267
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1268
1268
  label: string;
1269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1269
+ id: string;
1270
1270
  capture: "at_action" | "historical_lookup" | "fixture";
1271
1271
  locator?: string | undefined;
1272
1272
  }>, "many">>;
@@ -1274,9 +1274,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1274
1274
  kind: "mission_started";
1275
1275
  title: string;
1276
1276
  evidence: {
1277
- id: string;
1277
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1278
1278
  label: string;
1279
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1279
+ id: string;
1280
1280
  capture: "at_action" | "historical_lookup" | "fixture";
1281
1281
  locator?: string | undefined;
1282
1282
  }[];
@@ -1288,9 +1288,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1288
1288
  objective: string;
1289
1289
  runMode: "replay" | "fixture" | "live";
1290
1290
  evidence?: {
1291
- id: string;
1291
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1292
1292
  label: string;
1293
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1293
+ id: string;
1294
1294
  capture: "at_action" | "historical_lookup" | "fixture";
1295
1295
  locator?: string | undefined;
1296
1296
  }[] | undefined;
@@ -1306,15 +1306,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1306
1306
  locator: z.ZodOptional<z.ZodString>;
1307
1307
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1308
1308
  }, "strict", z.ZodTypeAny, {
1309
- id: string;
1309
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1310
1310
  label: string;
1311
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1311
+ id: string;
1312
1312
  capture: "at_action" | "historical_lookup" | "fixture";
1313
1313
  locator?: string | undefined;
1314
1314
  }, {
1315
- id: string;
1315
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1316
1316
  label: string;
1317
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
+ id: string;
1318
1318
  capture: "at_action" | "historical_lookup" | "fixture";
1319
1319
  locator?: string | undefined;
1320
1320
  }>, "many">>;
@@ -1322,32 +1322,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1322
1322
  sessionId: z.ZodString;
1323
1323
  kind: z.ZodLiteral<"agent_status">;
1324
1324
  }, "strict", z.ZodTypeAny, {
1325
- label: string;
1326
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1327
1325
  kind: "agent_status";
1326
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1327
+ label: string;
1328
1328
  role: string;
1329
1329
  agentId: string;
1330
1330
  sessionId: string;
1331
1331
  evidence: {
1332
- id: string;
1332
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1333
1333
  label: string;
1334
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1334
+ id: string;
1335
1335
  capture: "at_action" | "historical_lookup" | "fixture";
1336
1336
  locator?: string | undefined;
1337
1337
  }[];
1338
1338
  detail?: string | undefined;
1339
1339
  }, {
1340
- label: string;
1341
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1342
1340
  kind: "agent_status";
1341
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1342
+ label: string;
1343
1343
  role: string;
1344
1344
  agentId: string;
1345
1345
  sessionId: string;
1346
1346
  detail?: string | undefined;
1347
1347
  evidence?: {
1348
- id: string;
1348
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1349
1349
  label: string;
1350
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
+ id: string;
1351
1351
  capture: "at_action" | "historical_lookup" | "fixture";
1352
1352
  locator?: string | undefined;
1353
1353
  }[] | undefined;
@@ -1361,15 +1361,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1361
1361
  locator: z.ZodOptional<z.ZodString>;
1362
1362
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1363
1363
  }, "strict", z.ZodTypeAny, {
1364
- id: string;
1364
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1365
1365
  label: string;
1366
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1366
+ id: string;
1367
1367
  capture: "at_action" | "historical_lookup" | "fixture";
1368
1368
  locator?: string | undefined;
1369
1369
  }, {
1370
- id: string;
1370
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1371
1371
  label: string;
1372
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1372
+ id: string;
1373
1373
  capture: "at_action" | "historical_lookup" | "fixture";
1374
1374
  locator?: string | undefined;
1375
1375
  }>, "many">>;
@@ -1377,28 +1377,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1377
1377
  sessionId: z.ZodString;
1378
1378
  kind: z.ZodLiteral<"agent_output">;
1379
1379
  }, "strict", z.ZodTypeAny, {
1380
- summary: string;
1381
1380
  kind: "agent_output";
1381
+ summary: string;
1382
1382
  agentId: string;
1383
1383
  sessionId: string;
1384
1384
  evidence: {
1385
- id: string;
1385
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1386
1386
  label: string;
1387
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1387
+ id: string;
1388
1388
  capture: "at_action" | "historical_lookup" | "fixture";
1389
1389
  locator?: string | undefined;
1390
1390
  }[];
1391
1391
  outputId: string;
1392
1392
  }, {
1393
- summary: string;
1394
1393
  kind: "agent_output";
1394
+ summary: string;
1395
1395
  agentId: string;
1396
1396
  sessionId: string;
1397
1397
  outputId: string;
1398
1398
  evidence?: {
1399
- id: string;
1399
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1400
1400
  label: string;
1401
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1401
+ id: string;
1402
1402
  capture: "at_action" | "historical_lookup" | "fixture";
1403
1403
  locator?: string | undefined;
1404
1404
  }[] | undefined;
@@ -1414,15 +1414,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1414
1414
  locator: z.ZodOptional<z.ZodString>;
1415
1415
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1416
1416
  }, "strict", z.ZodTypeAny, {
1417
- id: string;
1417
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1418
1418
  label: string;
1419
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1419
+ id: string;
1420
1420
  capture: "at_action" | "historical_lookup" | "fixture";
1421
1421
  locator?: string | undefined;
1422
1422
  }, {
1423
- id: string;
1423
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1424
1424
  label: string;
1425
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1425
+ id: string;
1426
1426
  capture: "at_action" | "historical_lookup" | "fixture";
1427
1427
  locator?: string | undefined;
1428
1428
  }>, "many">>;
@@ -1435,9 +1435,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1435
1435
  statement: string;
1436
1436
  sessionId: string;
1437
1437
  evidence: {
1438
- id: string;
1438
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1439
1439
  label: string;
1440
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1440
+ id: string;
1441
1441
  capture: "at_action" | "historical_lookup" | "fixture";
1442
1442
  locator?: string | undefined;
1443
1443
  }[];
@@ -1453,9 +1453,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1453
1453
  decisionId: string;
1454
1454
  confidence?: number | undefined;
1455
1455
  evidence?: {
1456
- id: string;
1456
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1457
1457
  label: string;
1458
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1458
+ id: string;
1459
1459
  capture: "at_action" | "historical_lookup" | "fixture";
1460
1460
  locator?: string | undefined;
1461
1461
  }[] | undefined;
@@ -1472,25 +1472,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1472
1472
  locator: z.ZodOptional<z.ZodString>;
1473
1473
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1474
1474
  }, "strict", z.ZodTypeAny, {
1475
- id: string;
1475
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1476
1476
  label: string;
1477
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1477
+ id: string;
1478
1478
  capture: "at_action" | "historical_lookup" | "fixture";
1479
1479
  locator?: string | undefined;
1480
1480
  }, {
1481
- id: string;
1481
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1482
1482
  label: string;
1483
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1483
+ id: string;
1484
1484
  capture: "at_action" | "historical_lookup" | "fixture";
1485
1485
  locator?: string | undefined;
1486
1486
  }>, "many">>;
1487
1487
  }, "strict", z.ZodTypeAny, {
1488
- summary: string;
1489
1488
  kind: "conflict_detected";
1489
+ summary: string;
1490
1490
  evidence: {
1491
- id: string;
1491
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1492
1492
  label: string;
1493
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1493
+ id: string;
1494
1494
  capture: "at_action" | "historical_lookup" | "fixture";
1495
1495
  locator?: string | undefined;
1496
1496
  }[];
@@ -1498,15 +1498,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1498
1498
  decisionIds: string[];
1499
1499
  agentIds: string[];
1500
1500
  }, {
1501
- summary: string;
1502
1501
  kind: "conflict_detected";
1502
+ summary: string;
1503
1503
  conflictId: string;
1504
1504
  decisionIds: string[];
1505
1505
  agentIds: string[];
1506
1506
  evidence?: {
1507
- id: string;
1507
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1508
1508
  label: string;
1509
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1509
+ id: string;
1510
1510
  capture: "at_action" | "historical_lookup" | "fixture";
1511
1511
  locator?: string | undefined;
1512
1512
  }[] | undefined;
@@ -1526,27 +1526,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1526
1526
  locator: z.ZodOptional<z.ZodString>;
1527
1527
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1528
1528
  }, "strict", z.ZodTypeAny, {
1529
- id: string;
1529
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1530
1530
  label: string;
1531
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1531
+ id: string;
1532
1532
  capture: "at_action" | "historical_lookup" | "fixture";
1533
1533
  locator?: string | undefined;
1534
1534
  }, {
1535
- id: string;
1535
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1536
1536
  label: string;
1537
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1537
+ id: string;
1538
1538
  capture: "at_action" | "historical_lookup" | "fixture";
1539
1539
  locator?: string | undefined;
1540
1540
  }>, "many">>;
1541
1541
  }, "strict", z.ZodTypeAny, {
1542
+ kind: "test_result";
1542
1543
  summary: string;
1543
1544
  status: "error" | "failed" | "passed";
1544
- kind: "test_result";
1545
1545
  command: string;
1546
1546
  evidence: {
1547
- id: string;
1547
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1548
1548
  label: string;
1549
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1549
+ id: string;
1550
1550
  capture: "at_action" | "historical_lookup" | "fixture";
1551
1551
  locator?: string | undefined;
1552
1552
  }[];
@@ -1555,17 +1555,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1555
1555
  durationMs?: number | undefined;
1556
1556
  correctionId?: string | undefined;
1557
1557
  }, {
1558
+ kind: "test_result";
1558
1559
  summary: string;
1559
1560
  status: "error" | "failed" | "passed";
1560
- kind: "test_result";
1561
1561
  command: string;
1562
1562
  decisionId: string;
1563
1563
  testId: string;
1564
1564
  durationMs?: number | undefined;
1565
1565
  evidence?: {
1566
- id: string;
1566
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1567
1567
  label: string;
1568
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1568
+ id: string;
1569
1569
  capture: "at_action" | "historical_lookup" | "fixture";
1570
1570
  locator?: string | undefined;
1571
1571
  }[] | undefined;
@@ -1586,15 +1586,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1586
1586
  locator: z.ZodOptional<z.ZodString>;
1587
1587
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1588
1588
  }, "strict", z.ZodTypeAny, {
1589
- id: string;
1589
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1590
1590
  label: string;
1591
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1591
+ id: string;
1592
1592
  capture: "at_action" | "historical_lookup" | "fixture";
1593
1593
  locator?: string | undefined;
1594
1594
  }, {
1595
- id: string;
1595
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
1596
  label: string;
1597
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1597
+ id: string;
1598
1598
  capture: "at_action" | "historical_lookup" | "fixture";
1599
1599
  locator?: string | undefined;
1600
1600
  }>, "many">>;
@@ -1603,9 +1603,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1603
1603
  statement: string;
1604
1604
  rationale: string;
1605
1605
  evidence: {
1606
- id: string;
1606
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1607
1607
  label: string;
1608
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1608
+ id: string;
1609
1609
  capture: "at_action" | "historical_lookup" | "fixture";
1610
1610
  locator?: string | undefined;
1611
1611
  }[];
@@ -1624,9 +1624,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1624
1624
  supersedesDecisionIds: string[];
1625
1625
  proposedBy: string;
1626
1626
  evidence?: {
1627
- id: string;
1627
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1628
1628
  label: string;
1629
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1629
+ id: string;
1630
1630
  capture: "at_action" | "historical_lookup" | "fixture";
1631
1631
  locator?: string | undefined;
1632
1632
  }[] | undefined;
@@ -1638,13 +1638,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1638
1638
  id: z.ZodString;
1639
1639
  label: z.ZodString;
1640
1640
  }, "strict", z.ZodTypeAny, {
1641
- id: string;
1642
- label: string;
1643
1641
  kind: "agent" | "human";
1644
- }, {
1645
- id: string;
1646
1642
  label: string;
1643
+ id: string;
1644
+ }, {
1647
1645
  kind: "agent" | "human";
1646
+ label: string;
1647
+ id: string;
1648
1648
  }>;
1649
1649
  note: z.ZodOptional<z.ZodString>;
1650
1650
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1654,47 +1654,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1654
1654
  locator: z.ZodOptional<z.ZodString>;
1655
1655
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1656
1656
  }, "strict", z.ZodTypeAny, {
1657
- id: string;
1657
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1658
1658
  label: string;
1659
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1659
+ id: string;
1660
1660
  capture: "at_action" | "historical_lookup" | "fixture";
1661
1661
  locator?: string | undefined;
1662
1662
  }, {
1663
- id: string;
1663
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
1664
  label: string;
1665
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1665
+ id: string;
1666
1666
  capture: "at_action" | "historical_lookup" | "fixture";
1667
1667
  locator?: string | undefined;
1668
1668
  }>, "many">>;
1669
1669
  }, "strict", z.ZodTypeAny, {
1670
1670
  kind: "correction_approved";
1671
1671
  evidence: {
1672
- id: string;
1672
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1673
1673
  label: string;
1674
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1674
+ id: string;
1675
1675
  capture: "at_action" | "historical_lookup" | "fixture";
1676
1676
  locator?: string | undefined;
1677
1677
  }[];
1678
1678
  correctionId: string;
1679
1679
  approvedBy: {
1680
- id: string;
1681
- label: string;
1682
1680
  kind: "agent" | "human";
1681
+ label: string;
1682
+ id: string;
1683
1683
  };
1684
1684
  note?: string | undefined;
1685
1685
  }, {
1686
1686
  kind: "correction_approved";
1687
1687
  correctionId: string;
1688
1688
  approvedBy: {
1689
- id: string;
1690
- label: string;
1691
1689
  kind: "agent" | "human";
1690
+ label: string;
1691
+ id: string;
1692
1692
  };
1693
1693
  note?: string | undefined;
1694
1694
  evidence?: {
1695
- id: string;
1695
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1696
1696
  label: string;
1697
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1697
+ id: string;
1698
1698
  capture: "at_action" | "historical_lookup" | "fixture";
1699
1699
  locator?: string | undefined;
1700
1700
  }[] | undefined;
@@ -1710,24 +1710,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1710
1710
  locator: z.ZodOptional<z.ZodString>;
1711
1711
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1712
1712
  }, "strict", z.ZodTypeAny, {
1713
- id: string;
1713
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1714
1714
  label: string;
1715
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1715
+ id: string;
1716
1716
  capture: "at_action" | "historical_lookup" | "fixture";
1717
1717
  locator?: string | undefined;
1718
1718
  }, {
1719
- id: string;
1719
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1720
1720
  label: string;
1721
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1721
+ id: string;
1722
1722
  capture: "at_action" | "historical_lookup" | "fixture";
1723
1723
  locator?: string | undefined;
1724
1724
  }>, "many">>;
1725
1725
  }, "strict", z.ZodTypeAny, {
1726
1726
  kind: "decision_superseded";
1727
1727
  evidence: {
1728
- id: string;
1728
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1729
1729
  label: string;
1730
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1730
+ id: string;
1731
1731
  capture: "at_action" | "historical_lookup" | "fixture";
1732
1732
  locator?: string | undefined;
1733
1733
  }[];
@@ -1740,9 +1740,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1740
1740
  correctionId: string;
1741
1741
  replacementDecisionId: string;
1742
1742
  evidence?: {
1743
- id: string;
1743
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1744
1744
  label: string;
1745
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1745
+ id: string;
1746
1746
  capture: "at_action" | "historical_lookup" | "fixture";
1747
1747
  locator?: string | undefined;
1748
1748
  }[] | undefined;
@@ -1758,15 +1758,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1758
1758
  locator: z.ZodOptional<z.ZodString>;
1759
1759
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1760
1760
  }, "strict", z.ZodTypeAny, {
1761
- id: string;
1761
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1762
1762
  label: string;
1763
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1763
+ id: string;
1764
1764
  capture: "at_action" | "historical_lookup" | "fixture";
1765
1765
  locator?: string | undefined;
1766
1766
  }, {
1767
- id: string;
1767
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1768
1768
  label: string;
1769
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1769
+ id: string;
1770
1770
  capture: "at_action" | "historical_lookup" | "fixture";
1771
1771
  locator?: string | undefined;
1772
1772
  }>, "many">>;
@@ -1779,9 +1779,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1779
1779
  agentId: string;
1780
1780
  sessionId: string;
1781
1781
  evidence: {
1782
- id: string;
1782
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1783
1783
  label: string;
1784
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1784
+ id: string;
1785
1785
  capture: "at_action" | "historical_lookup" | "fixture";
1786
1786
  locator?: string | undefined;
1787
1787
  }[];
@@ -1797,9 +1797,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1797
1797
  recallReceiptId: string;
1798
1798
  capturedAtAction: boolean;
1799
1799
  evidence?: {
1800
- id: string;
1800
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1801
1801
  label: string;
1802
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1802
+ id: string;
1803
1803
  capture: "at_action" | "historical_lookup" | "fixture";
1804
1804
  locator?: string | undefined;
1805
1805
  }[] | undefined;
@@ -1815,15 +1815,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1815
1815
  locator: z.ZodOptional<z.ZodString>;
1816
1816
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1817
1817
  }, "strict", z.ZodTypeAny, {
1818
- id: string;
1818
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1819
1819
  label: string;
1820
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1820
+ id: string;
1821
1821
  capture: "at_action" | "historical_lookup" | "fixture";
1822
1822
  locator?: string | undefined;
1823
1823
  }, {
1824
- id: string;
1824
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1825
1825
  label: string;
1826
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1826
+ id: string;
1827
1827
  capture: "at_action" | "historical_lookup" | "fixture";
1828
1828
  locator?: string | undefined;
1829
1829
  }>, "many">>;
@@ -1835,9 +1835,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1835
1835
  agentId: string;
1836
1836
  sessionId: string;
1837
1837
  evidence: {
1838
- id: string;
1838
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1839
1839
  label: string;
1840
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1840
+ id: string;
1841
1841
  capture: "at_action" | "historical_lookup" | "fixture";
1842
1842
  locator?: string | undefined;
1843
1843
  }[];
@@ -1854,9 +1854,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1854
1854
  recallReceiptId: string;
1855
1855
  staleDecisionAbsent: boolean;
1856
1856
  evidence?: {
1857
- id: string;
1857
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1858
1858
  label: string;
1859
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1859
+ id: string;
1860
1860
  capture: "at_action" | "historical_lookup" | "fixture";
1861
1861
  locator?: string | undefined;
1862
1862
  }[] | undefined;
@@ -1871,37 +1871,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1871
1871
  locator: z.ZodOptional<z.ZodString>;
1872
1872
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1873
1873
  }, "strict", z.ZodTypeAny, {
1874
- id: string;
1874
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1875
1875
  label: string;
1876
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1876
+ id: string;
1877
1877
  capture: "at_action" | "historical_lookup" | "fixture";
1878
1878
  locator?: string | undefined;
1879
1879
  }, {
1880
- id: string;
1880
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1881
1881
  label: string;
1882
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1882
+ id: string;
1883
1883
  capture: "at_action" | "historical_lookup" | "fixture";
1884
1884
  locator?: string | undefined;
1885
1885
  }>, "many">>;
1886
1886
  }, "strict", z.ZodTypeAny, {
1887
- summary: string;
1888
1887
  kind: "mission_completed";
1888
+ summary: string;
1889
1889
  outcome: "failed" | "recovered" | "inconclusive";
1890
1890
  evidence: {
1891
- id: string;
1891
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1892
1892
  label: string;
1893
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1893
+ id: string;
1894
1894
  capture: "at_action" | "historical_lookup" | "fixture";
1895
1895
  locator?: string | undefined;
1896
1896
  }[];
1897
1897
  }, {
1898
- summary: string;
1899
1898
  kind: "mission_completed";
1899
+ summary: string;
1900
1900
  outcome: "failed" | "recovered" | "inconclusive";
1901
1901
  evidence?: {
1902
- id: string;
1902
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1903
1903
  label: string;
1904
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1904
+ id: string;
1905
1905
  capture: "at_action" | "historical_lookup" | "fixture";
1906
1906
  locator?: string | undefined;
1907
1907
  }[] | undefined;
@@ -1909,38 +1909,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1909
1909
  kind: "mission_started";
1910
1910
  title: string;
1911
1911
  evidence: {
1912
- id: string;
1912
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1913
1913
  label: string;
1914
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1914
+ id: string;
1915
1915
  capture: "at_action" | "historical_lookup" | "fixture";
1916
1916
  locator?: string | undefined;
1917
1917
  }[];
1918
1918
  objective: string;
1919
1919
  runMode: "replay" | "fixture" | "live";
1920
1920
  } | {
1921
- label: string;
1922
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1923
1921
  kind: "agent_status";
1922
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1923
+ label: string;
1924
1924
  role: string;
1925
1925
  agentId: string;
1926
1926
  sessionId: string;
1927
1927
  evidence: {
1928
- id: string;
1928
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1929
1929
  label: string;
1930
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1930
+ id: string;
1931
1931
  capture: "at_action" | "historical_lookup" | "fixture";
1932
1932
  locator?: string | undefined;
1933
1933
  }[];
1934
1934
  detail?: string | undefined;
1935
1935
  } | {
1936
- summary: string;
1937
1936
  kind: "agent_output";
1937
+ summary: string;
1938
1938
  agentId: string;
1939
1939
  sessionId: string;
1940
1940
  evidence: {
1941
- id: string;
1941
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1942
1942
  label: string;
1943
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1943
+ id: string;
1944
1944
  capture: "at_action" | "historical_lookup" | "fixture";
1945
1945
  locator?: string | undefined;
1946
1946
  }[];
@@ -1951,9 +1951,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1951
1951
  statement: string;
1952
1952
  sessionId: string;
1953
1953
  evidence: {
1954
- id: string;
1954
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1955
1955
  label: string;
1956
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
+ id: string;
1957
1957
  capture: "at_action" | "historical_lookup" | "fixture";
1958
1958
  locator?: string | undefined;
1959
1959
  }[];
@@ -1961,12 +1961,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1961
1961
  decisionId: string;
1962
1962
  confidence?: number | undefined;
1963
1963
  } | {
1964
- summary: string;
1965
1964
  kind: "conflict_detected";
1965
+ summary: string;
1966
1966
  evidence: {
1967
- id: string;
1967
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1968
1968
  label: string;
1969
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1969
+ id: string;
1970
1970
  capture: "at_action" | "historical_lookup" | "fixture";
1971
1971
  locator?: string | undefined;
1972
1972
  }[];
@@ -1974,14 +1974,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1974
1974
  decisionIds: string[];
1975
1975
  agentIds: string[];
1976
1976
  } | {
1977
+ kind: "test_result";
1977
1978
  summary: string;
1978
1979
  status: "error" | "failed" | "passed";
1979
- kind: "test_result";
1980
1980
  command: string;
1981
1981
  evidence: {
1982
- id: string;
1982
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1983
1983
  label: string;
1984
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1984
+ id: string;
1985
1985
  capture: "at_action" | "historical_lookup" | "fixture";
1986
1986
  locator?: string | undefined;
1987
1987
  }[];
@@ -1994,9 +1994,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1994
1994
  statement: string;
1995
1995
  rationale: string;
1996
1996
  evidence: {
1997
- id: string;
1997
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1998
1998
  label: string;
1999
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1999
+ id: string;
2000
2000
  capture: "at_action" | "historical_lookup" | "fixture";
2001
2001
  locator?: string | undefined;
2002
2002
  }[];
@@ -2008,25 +2008,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2008
2008
  } | {
2009
2009
  kind: "correction_approved";
2010
2010
  evidence: {
2011
- id: string;
2011
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2012
2012
  label: string;
2013
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2013
+ id: string;
2014
2014
  capture: "at_action" | "historical_lookup" | "fixture";
2015
2015
  locator?: string | undefined;
2016
2016
  }[];
2017
2017
  correctionId: string;
2018
2018
  approvedBy: {
2019
- id: string;
2020
- label: string;
2021
2019
  kind: "agent" | "human";
2020
+ label: string;
2021
+ id: string;
2022
2022
  };
2023
2023
  note?: string | undefined;
2024
2024
  } | {
2025
2025
  kind: "decision_superseded";
2026
2026
  evidence: {
2027
- id: string;
2027
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2028
2028
  label: string;
2029
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2029
+ id: string;
2030
2030
  capture: "at_action" | "historical_lookup" | "fixture";
2031
2031
  locator?: string | undefined;
2032
2032
  }[];
@@ -2039,9 +2039,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2039
2039
  agentId: string;
2040
2040
  sessionId: string;
2041
2041
  evidence: {
2042
- id: string;
2042
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2043
2043
  label: string;
2044
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2044
+ id: string;
2045
2045
  capture: "at_action" | "historical_lookup" | "fixture";
2046
2046
  locator?: string | undefined;
2047
2047
  }[];
@@ -2053,9 +2053,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2053
2053
  agentId: string;
2054
2054
  sessionId: string;
2055
2055
  evidence: {
2056
- id: string;
2056
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
2057
  label: string;
2058
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2058
+ id: string;
2059
2059
  capture: "at_action" | "historical_lookup" | "fixture";
2060
2060
  locator?: string | undefined;
2061
2061
  }[];
@@ -2064,13 +2064,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2064
2064
  recallReceiptId: string;
2065
2065
  staleDecisionAbsent: boolean;
2066
2066
  } | {
2067
- summary: string;
2068
2067
  kind: "mission_completed";
2068
+ summary: string;
2069
2069
  outcome: "failed" | "recovered" | "inconclusive";
2070
2070
  evidence: {
2071
- id: string;
2071
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2072
2072
  label: string;
2073
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2073
+ id: string;
2074
2074
  capture: "at_action" | "historical_lookup" | "fixture";
2075
2075
  locator?: string | undefined;
2076
2076
  }[];
@@ -2080,37 +2080,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2080
2080
  objective: string;
2081
2081
  runMode: "replay" | "fixture" | "live";
2082
2082
  evidence?: {
2083
- id: string;
2083
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2084
2084
  label: string;
2085
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2085
+ id: string;
2086
2086
  capture: "at_action" | "historical_lookup" | "fixture";
2087
2087
  locator?: string | undefined;
2088
2088
  }[] | undefined;
2089
2089
  } | {
2090
- label: string;
2091
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2092
2090
  kind: "agent_status";
2091
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2092
+ label: string;
2093
2093
  role: string;
2094
2094
  agentId: string;
2095
2095
  sessionId: string;
2096
2096
  detail?: string | undefined;
2097
2097
  evidence?: {
2098
- id: string;
2098
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2099
2099
  label: string;
2100
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2100
+ id: string;
2101
2101
  capture: "at_action" | "historical_lookup" | "fixture";
2102
2102
  locator?: string | undefined;
2103
2103
  }[] | undefined;
2104
2104
  } | {
2105
- summary: string;
2106
2105
  kind: "agent_output";
2106
+ summary: string;
2107
2107
  agentId: string;
2108
2108
  sessionId: string;
2109
2109
  outputId: string;
2110
2110
  evidence?: {
2111
- id: string;
2111
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2112
2112
  label: string;
2113
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2113
+ id: string;
2114
2114
  capture: "at_action" | "historical_lookup" | "fixture";
2115
2115
  locator?: string | undefined;
2116
2116
  }[] | undefined;
@@ -2123,37 +2123,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2123
2123
  decisionId: string;
2124
2124
  confidence?: number | undefined;
2125
2125
  evidence?: {
2126
- id: string;
2126
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2127
2127
  label: string;
2128
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2128
+ id: string;
2129
2129
  capture: "at_action" | "historical_lookup" | "fixture";
2130
2130
  locator?: string | undefined;
2131
2131
  }[] | undefined;
2132
2132
  } | {
2133
- summary: string;
2134
2133
  kind: "conflict_detected";
2134
+ summary: string;
2135
2135
  conflictId: string;
2136
2136
  decisionIds: string[];
2137
2137
  agentIds: string[];
2138
2138
  evidence?: {
2139
- id: string;
2139
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2140
2140
  label: string;
2141
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2141
+ id: string;
2142
2142
  capture: "at_action" | "historical_lookup" | "fixture";
2143
2143
  locator?: string | undefined;
2144
2144
  }[] | undefined;
2145
2145
  } | {
2146
+ kind: "test_result";
2146
2147
  summary: string;
2147
2148
  status: "error" | "failed" | "passed";
2148
- kind: "test_result";
2149
2149
  command: string;
2150
2150
  decisionId: string;
2151
2151
  testId: string;
2152
2152
  durationMs?: number | undefined;
2153
2153
  evidence?: {
2154
- id: string;
2154
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2155
2155
  label: string;
2156
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2156
+ id: string;
2157
2157
  capture: "at_action" | "historical_lookup" | "fixture";
2158
2158
  locator?: string | undefined;
2159
2159
  }[] | undefined;
@@ -2168,9 +2168,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2168
2168
  supersedesDecisionIds: string[];
2169
2169
  proposedBy: string;
2170
2170
  evidence?: {
2171
- id: string;
2171
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2172
2172
  label: string;
2173
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2173
+ id: string;
2174
2174
  capture: "at_action" | "historical_lookup" | "fixture";
2175
2175
  locator?: string | undefined;
2176
2176
  }[] | undefined;
@@ -2178,15 +2178,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2178
2178
  kind: "correction_approved";
2179
2179
  correctionId: string;
2180
2180
  approvedBy: {
2181
- id: string;
2182
- label: string;
2183
2181
  kind: "agent" | "human";
2182
+ label: string;
2183
+ id: string;
2184
2184
  };
2185
2185
  note?: string | undefined;
2186
2186
  evidence?: {
2187
- id: string;
2187
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2188
2188
  label: string;
2189
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2189
+ id: string;
2190
2190
  capture: "at_action" | "historical_lookup" | "fixture";
2191
2191
  locator?: string | undefined;
2192
2192
  }[] | undefined;
@@ -2196,9 +2196,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2196
2196
  correctionId: string;
2197
2197
  replacementDecisionId: string;
2198
2198
  evidence?: {
2199
- id: string;
2199
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2200
  label: string;
2201
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2201
+ id: string;
2202
2202
  capture: "at_action" | "historical_lookup" | "fixture";
2203
2203
  locator?: string | undefined;
2204
2204
  }[] | undefined;
@@ -2211,9 +2211,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2211
2211
  recallReceiptId: string;
2212
2212
  capturedAtAction: boolean;
2213
2213
  evidence?: {
2214
- id: string;
2214
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2215
2215
  label: string;
2216
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2216
+ id: string;
2217
2217
  capture: "at_action" | "historical_lookup" | "fixture";
2218
2218
  locator?: string | undefined;
2219
2219
  }[] | undefined;
@@ -2226,20 +2226,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2226
2226
  recallReceiptId: string;
2227
2227
  staleDecisionAbsent: boolean;
2228
2228
  evidence?: {
2229
- id: string;
2229
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
2230
  label: string;
2231
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2231
+ id: string;
2232
2232
  capture: "at_action" | "historical_lookup" | "fixture";
2233
2233
  locator?: string | undefined;
2234
2234
  }[] | undefined;
2235
2235
  } | {
2236
- summary: string;
2237
2236
  kind: "mission_completed";
2237
+ summary: string;
2238
2238
  outcome: "failed" | "recovered" | "inconclusive";
2239
2239
  evidence?: {
2240
- id: string;
2240
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2241
2241
  label: string;
2242
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2242
+ id: string;
2243
2243
  capture: "at_action" | "historical_lookup" | "fixture";
2244
2244
  locator?: string | undefined;
2245
2245
  }[] | undefined;
@@ -2260,15 +2260,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2260
2260
  locator: z.ZodOptional<z.ZodString>;
2261
2261
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2262
2262
  }, "strict", z.ZodTypeAny, {
2263
- id: string;
2263
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2264
2264
  label: string;
2265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2265
+ id: string;
2266
2266
  capture: "at_action" | "historical_lookup" | "fixture";
2267
2267
  locator?: string | undefined;
2268
2268
  }, {
2269
- id: string;
2269
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2270
2270
  label: string;
2271
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2271
+ id: string;
2272
2272
  capture: "at_action" | "historical_lookup" | "fixture";
2273
2273
  locator?: string | undefined;
2274
2274
  }>, "many">>;
@@ -2276,9 +2276,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2276
2276
  kind: "mission_started";
2277
2277
  title: string;
2278
2278
  evidence: {
2279
- id: string;
2279
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2280
2280
  label: string;
2281
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2281
+ id: string;
2282
2282
  capture: "at_action" | "historical_lookup" | "fixture";
2283
2283
  locator?: string | undefined;
2284
2284
  }[];
@@ -2290,9 +2290,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2290
2290
  objective: string;
2291
2291
  runMode: "replay" | "fixture" | "live";
2292
2292
  evidence?: {
2293
- id: string;
2293
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2294
2294
  label: string;
2295
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2295
+ id: string;
2296
2296
  capture: "at_action" | "historical_lookup" | "fixture";
2297
2297
  locator?: string | undefined;
2298
2298
  }[] | undefined;
@@ -2308,15 +2308,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2308
2308
  locator: z.ZodOptional<z.ZodString>;
2309
2309
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2310
2310
  }, "strict", z.ZodTypeAny, {
2311
- id: string;
2311
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2312
2312
  label: string;
2313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2313
+ id: string;
2314
2314
  capture: "at_action" | "historical_lookup" | "fixture";
2315
2315
  locator?: string | undefined;
2316
2316
  }, {
2317
- id: string;
2317
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2318
2318
  label: string;
2319
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
+ id: string;
2320
2320
  capture: "at_action" | "historical_lookup" | "fixture";
2321
2321
  locator?: string | undefined;
2322
2322
  }>, "many">>;
@@ -2324,32 +2324,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2324
2324
  sessionId: z.ZodString;
2325
2325
  kind: z.ZodLiteral<"agent_status">;
2326
2326
  }, "strict", z.ZodTypeAny, {
2327
- label: string;
2328
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2329
2327
  kind: "agent_status";
2328
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2329
+ label: string;
2330
2330
  role: string;
2331
2331
  agentId: string;
2332
2332
  sessionId: string;
2333
2333
  evidence: {
2334
- id: string;
2334
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2335
2335
  label: string;
2336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2336
+ id: string;
2337
2337
  capture: "at_action" | "historical_lookup" | "fixture";
2338
2338
  locator?: string | undefined;
2339
2339
  }[];
2340
2340
  detail?: string | undefined;
2341
2341
  }, {
2342
- label: string;
2343
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2344
2342
  kind: "agent_status";
2343
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2344
+ label: string;
2345
2345
  role: string;
2346
2346
  agentId: string;
2347
2347
  sessionId: string;
2348
2348
  detail?: string | undefined;
2349
2349
  evidence?: {
2350
- id: string;
2350
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2351
2351
  label: string;
2352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2352
+ id: string;
2353
2353
  capture: "at_action" | "historical_lookup" | "fixture";
2354
2354
  locator?: string | undefined;
2355
2355
  }[] | undefined;
@@ -2363,15 +2363,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2363
2363
  locator: z.ZodOptional<z.ZodString>;
2364
2364
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2365
2365
  }, "strict", z.ZodTypeAny, {
2366
- id: string;
2366
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2367
2367
  label: string;
2368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2368
+ id: string;
2369
2369
  capture: "at_action" | "historical_lookup" | "fixture";
2370
2370
  locator?: string | undefined;
2371
2371
  }, {
2372
- id: string;
2372
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2373
2373
  label: string;
2374
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2374
+ id: string;
2375
2375
  capture: "at_action" | "historical_lookup" | "fixture";
2376
2376
  locator?: string | undefined;
2377
2377
  }>, "many">>;
@@ -2379,28 +2379,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2379
2379
  sessionId: z.ZodString;
2380
2380
  kind: z.ZodLiteral<"agent_output">;
2381
2381
  }, "strict", z.ZodTypeAny, {
2382
- summary: string;
2383
2382
  kind: "agent_output";
2383
+ summary: string;
2384
2384
  agentId: string;
2385
2385
  sessionId: string;
2386
2386
  evidence: {
2387
- id: string;
2387
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2388
2388
  label: string;
2389
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2389
+ id: string;
2390
2390
  capture: "at_action" | "historical_lookup" | "fixture";
2391
2391
  locator?: string | undefined;
2392
2392
  }[];
2393
2393
  outputId: string;
2394
2394
  }, {
2395
- summary: string;
2396
2395
  kind: "agent_output";
2396
+ summary: string;
2397
2397
  agentId: string;
2398
2398
  sessionId: string;
2399
2399
  outputId: string;
2400
2400
  evidence?: {
2401
- id: string;
2401
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2402
2402
  label: string;
2403
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2403
+ id: string;
2404
2404
  capture: "at_action" | "historical_lookup" | "fixture";
2405
2405
  locator?: string | undefined;
2406
2406
  }[] | undefined;
@@ -2416,15 +2416,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2416
2416
  locator: z.ZodOptional<z.ZodString>;
2417
2417
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2418
2418
  }, "strict", z.ZodTypeAny, {
2419
- id: string;
2419
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2420
2420
  label: string;
2421
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2421
+ id: string;
2422
2422
  capture: "at_action" | "historical_lookup" | "fixture";
2423
2423
  locator?: string | undefined;
2424
2424
  }, {
2425
- id: string;
2425
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2426
2426
  label: string;
2427
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2427
+ id: string;
2428
2428
  capture: "at_action" | "historical_lookup" | "fixture";
2429
2429
  locator?: string | undefined;
2430
2430
  }>, "many">>;
@@ -2437,9 +2437,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2437
2437
  statement: string;
2438
2438
  sessionId: string;
2439
2439
  evidence: {
2440
- id: string;
2440
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2441
2441
  label: string;
2442
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2442
+ id: string;
2443
2443
  capture: "at_action" | "historical_lookup" | "fixture";
2444
2444
  locator?: string | undefined;
2445
2445
  }[];
@@ -2455,9 +2455,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2455
2455
  decisionId: string;
2456
2456
  confidence?: number | undefined;
2457
2457
  evidence?: {
2458
- id: string;
2458
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2459
2459
  label: string;
2460
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2460
+ id: string;
2461
2461
  capture: "at_action" | "historical_lookup" | "fixture";
2462
2462
  locator?: string | undefined;
2463
2463
  }[] | undefined;
@@ -2474,25 +2474,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2474
2474
  locator: z.ZodOptional<z.ZodString>;
2475
2475
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2476
2476
  }, "strict", z.ZodTypeAny, {
2477
- id: string;
2477
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2478
2478
  label: string;
2479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2479
+ id: string;
2480
2480
  capture: "at_action" | "historical_lookup" | "fixture";
2481
2481
  locator?: string | undefined;
2482
2482
  }, {
2483
- id: string;
2483
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2484
2484
  label: string;
2485
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2485
+ id: string;
2486
2486
  capture: "at_action" | "historical_lookup" | "fixture";
2487
2487
  locator?: string | undefined;
2488
2488
  }>, "many">>;
2489
2489
  }, "strict", z.ZodTypeAny, {
2490
- summary: string;
2491
2490
  kind: "conflict_detected";
2491
+ summary: string;
2492
2492
  evidence: {
2493
- id: string;
2493
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2494
2494
  label: string;
2495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2495
+ id: string;
2496
2496
  capture: "at_action" | "historical_lookup" | "fixture";
2497
2497
  locator?: string | undefined;
2498
2498
  }[];
@@ -2500,15 +2500,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2500
2500
  decisionIds: string[];
2501
2501
  agentIds: string[];
2502
2502
  }, {
2503
- summary: string;
2504
2503
  kind: "conflict_detected";
2504
+ summary: string;
2505
2505
  conflictId: string;
2506
2506
  decisionIds: string[];
2507
2507
  agentIds: string[];
2508
2508
  evidence?: {
2509
- id: string;
2509
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2510
2510
  label: string;
2511
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2511
+ id: string;
2512
2512
  capture: "at_action" | "historical_lookup" | "fixture";
2513
2513
  locator?: string | undefined;
2514
2514
  }[] | undefined;
@@ -2528,27 +2528,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2528
2528
  locator: z.ZodOptional<z.ZodString>;
2529
2529
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2530
2530
  }, "strict", z.ZodTypeAny, {
2531
- id: string;
2531
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2532
2532
  label: string;
2533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2533
+ id: string;
2534
2534
  capture: "at_action" | "historical_lookup" | "fixture";
2535
2535
  locator?: string | undefined;
2536
2536
  }, {
2537
- id: string;
2537
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
2538
  label: string;
2539
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2539
+ id: string;
2540
2540
  capture: "at_action" | "historical_lookup" | "fixture";
2541
2541
  locator?: string | undefined;
2542
2542
  }>, "many">>;
2543
2543
  }, "strict", z.ZodTypeAny, {
2544
+ kind: "test_result";
2544
2545
  summary: string;
2545
2546
  status: "error" | "failed" | "passed";
2546
- kind: "test_result";
2547
2547
  command: string;
2548
2548
  evidence: {
2549
- id: string;
2549
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2550
2550
  label: string;
2551
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2551
+ id: string;
2552
2552
  capture: "at_action" | "historical_lookup" | "fixture";
2553
2553
  locator?: string | undefined;
2554
2554
  }[];
@@ -2557,17 +2557,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2557
2557
  durationMs?: number | undefined;
2558
2558
  correctionId?: string | undefined;
2559
2559
  }, {
2560
+ kind: "test_result";
2560
2561
  summary: string;
2561
2562
  status: "error" | "failed" | "passed";
2562
- kind: "test_result";
2563
2563
  command: string;
2564
2564
  decisionId: string;
2565
2565
  testId: string;
2566
2566
  durationMs?: number | undefined;
2567
2567
  evidence?: {
2568
- id: string;
2568
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2569
2569
  label: string;
2570
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2570
+ id: string;
2571
2571
  capture: "at_action" | "historical_lookup" | "fixture";
2572
2572
  locator?: string | undefined;
2573
2573
  }[] | undefined;
@@ -2588,15 +2588,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2588
2588
  locator: z.ZodOptional<z.ZodString>;
2589
2589
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2590
2590
  }, "strict", z.ZodTypeAny, {
2591
- id: string;
2591
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2592
2592
  label: string;
2593
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2593
+ id: string;
2594
2594
  capture: "at_action" | "historical_lookup" | "fixture";
2595
2595
  locator?: string | undefined;
2596
2596
  }, {
2597
- id: string;
2597
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
2598
  label: string;
2599
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2599
+ id: string;
2600
2600
  capture: "at_action" | "historical_lookup" | "fixture";
2601
2601
  locator?: string | undefined;
2602
2602
  }>, "many">>;
@@ -2605,9 +2605,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2605
2605
  statement: string;
2606
2606
  rationale: string;
2607
2607
  evidence: {
2608
- id: string;
2608
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2609
2609
  label: string;
2610
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2610
+ id: string;
2611
2611
  capture: "at_action" | "historical_lookup" | "fixture";
2612
2612
  locator?: string | undefined;
2613
2613
  }[];
@@ -2626,9 +2626,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2626
2626
  supersedesDecisionIds: string[];
2627
2627
  proposedBy: string;
2628
2628
  evidence?: {
2629
- id: string;
2629
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2630
2630
  label: string;
2631
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2631
+ id: string;
2632
2632
  capture: "at_action" | "historical_lookup" | "fixture";
2633
2633
  locator?: string | undefined;
2634
2634
  }[] | undefined;
@@ -2640,13 +2640,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2640
2640
  id: z.ZodString;
2641
2641
  label: z.ZodString;
2642
2642
  }, "strict", z.ZodTypeAny, {
2643
- id: string;
2644
- label: string;
2645
2643
  kind: "agent" | "human";
2646
- }, {
2647
- id: string;
2648
2644
  label: string;
2645
+ id: string;
2646
+ }, {
2649
2647
  kind: "agent" | "human";
2648
+ label: string;
2649
+ id: string;
2650
2650
  }>;
2651
2651
  note: z.ZodOptional<z.ZodString>;
2652
2652
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2656,47 +2656,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2656
2656
  locator: z.ZodOptional<z.ZodString>;
2657
2657
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2658
2658
  }, "strict", z.ZodTypeAny, {
2659
- id: string;
2659
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2660
2660
  label: string;
2661
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2661
+ id: string;
2662
2662
  capture: "at_action" | "historical_lookup" | "fixture";
2663
2663
  locator?: string | undefined;
2664
2664
  }, {
2665
- id: string;
2665
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2666
2666
  label: string;
2667
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2667
+ id: string;
2668
2668
  capture: "at_action" | "historical_lookup" | "fixture";
2669
2669
  locator?: string | undefined;
2670
2670
  }>, "many">>;
2671
2671
  }, "strict", z.ZodTypeAny, {
2672
2672
  kind: "correction_approved";
2673
2673
  evidence: {
2674
- id: string;
2674
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2675
2675
  label: string;
2676
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2676
+ id: string;
2677
2677
  capture: "at_action" | "historical_lookup" | "fixture";
2678
2678
  locator?: string | undefined;
2679
2679
  }[];
2680
2680
  correctionId: string;
2681
2681
  approvedBy: {
2682
- id: string;
2683
- label: string;
2684
2682
  kind: "agent" | "human";
2683
+ label: string;
2684
+ id: string;
2685
2685
  };
2686
2686
  note?: string | undefined;
2687
2687
  }, {
2688
2688
  kind: "correction_approved";
2689
2689
  correctionId: string;
2690
2690
  approvedBy: {
2691
- id: string;
2692
- label: string;
2693
2691
  kind: "agent" | "human";
2692
+ label: string;
2693
+ id: string;
2694
2694
  };
2695
2695
  note?: string | undefined;
2696
2696
  evidence?: {
2697
- id: string;
2697
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2698
2698
  label: string;
2699
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2699
+ id: string;
2700
2700
  capture: "at_action" | "historical_lookup" | "fixture";
2701
2701
  locator?: string | undefined;
2702
2702
  }[] | undefined;
@@ -2712,24 +2712,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2712
2712
  locator: z.ZodOptional<z.ZodString>;
2713
2713
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2714
2714
  }, "strict", z.ZodTypeAny, {
2715
- id: string;
2715
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2716
2716
  label: string;
2717
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2717
+ id: string;
2718
2718
  capture: "at_action" | "historical_lookup" | "fixture";
2719
2719
  locator?: string | undefined;
2720
2720
  }, {
2721
- id: string;
2721
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2722
2722
  label: string;
2723
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2723
+ id: string;
2724
2724
  capture: "at_action" | "historical_lookup" | "fixture";
2725
2725
  locator?: string | undefined;
2726
2726
  }>, "many">>;
2727
2727
  }, "strict", z.ZodTypeAny, {
2728
2728
  kind: "decision_superseded";
2729
2729
  evidence: {
2730
- id: string;
2730
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2731
2731
  label: string;
2732
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2732
+ id: string;
2733
2733
  capture: "at_action" | "historical_lookup" | "fixture";
2734
2734
  locator?: string | undefined;
2735
2735
  }[];
@@ -2742,9 +2742,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2742
2742
  correctionId: string;
2743
2743
  replacementDecisionId: string;
2744
2744
  evidence?: {
2745
- id: string;
2745
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2746
2746
  label: string;
2747
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2747
+ id: string;
2748
2748
  capture: "at_action" | "historical_lookup" | "fixture";
2749
2749
  locator?: string | undefined;
2750
2750
  }[] | undefined;
@@ -2760,15 +2760,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2760
2760
  locator: z.ZodOptional<z.ZodString>;
2761
2761
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2762
2762
  }, "strict", z.ZodTypeAny, {
2763
- id: string;
2763
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2764
2764
  label: string;
2765
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2765
+ id: string;
2766
2766
  capture: "at_action" | "historical_lookup" | "fixture";
2767
2767
  locator?: string | undefined;
2768
2768
  }, {
2769
- id: string;
2769
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2770
2770
  label: string;
2771
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2771
+ id: string;
2772
2772
  capture: "at_action" | "historical_lookup" | "fixture";
2773
2773
  locator?: string | undefined;
2774
2774
  }>, "many">>;
@@ -2781,9 +2781,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2781
2781
  agentId: string;
2782
2782
  sessionId: string;
2783
2783
  evidence: {
2784
- id: string;
2784
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2785
2785
  label: string;
2786
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2786
+ id: string;
2787
2787
  capture: "at_action" | "historical_lookup" | "fixture";
2788
2788
  locator?: string | undefined;
2789
2789
  }[];
@@ -2799,9 +2799,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2799
2799
  recallReceiptId: string;
2800
2800
  capturedAtAction: boolean;
2801
2801
  evidence?: {
2802
- id: string;
2802
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2803
2803
  label: string;
2804
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2804
+ id: string;
2805
2805
  capture: "at_action" | "historical_lookup" | "fixture";
2806
2806
  locator?: string | undefined;
2807
2807
  }[] | undefined;
@@ -2817,15 +2817,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2817
2817
  locator: z.ZodOptional<z.ZodString>;
2818
2818
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2819
2819
  }, "strict", z.ZodTypeAny, {
2820
- id: string;
2820
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2821
2821
  label: string;
2822
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2822
+ id: string;
2823
2823
  capture: "at_action" | "historical_lookup" | "fixture";
2824
2824
  locator?: string | undefined;
2825
2825
  }, {
2826
- id: string;
2826
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2827
2827
  label: string;
2828
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2828
+ id: string;
2829
2829
  capture: "at_action" | "historical_lookup" | "fixture";
2830
2830
  locator?: string | undefined;
2831
2831
  }>, "many">>;
@@ -2837,9 +2837,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2837
2837
  agentId: string;
2838
2838
  sessionId: string;
2839
2839
  evidence: {
2840
- id: string;
2840
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2841
2841
  label: string;
2842
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2842
+ id: string;
2843
2843
  capture: "at_action" | "historical_lookup" | "fixture";
2844
2844
  locator?: string | undefined;
2845
2845
  }[];
@@ -2856,9 +2856,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2856
2856
  recallReceiptId: string;
2857
2857
  staleDecisionAbsent: boolean;
2858
2858
  evidence?: {
2859
- id: string;
2859
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2860
2860
  label: string;
2861
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2861
+ id: string;
2862
2862
  capture: "at_action" | "historical_lookup" | "fixture";
2863
2863
  locator?: string | undefined;
2864
2864
  }[] | undefined;
@@ -2873,37 +2873,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2873
2873
  locator: z.ZodOptional<z.ZodString>;
2874
2874
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2875
2875
  }, "strict", z.ZodTypeAny, {
2876
- id: string;
2876
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2877
2877
  label: string;
2878
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2878
+ id: string;
2879
2879
  capture: "at_action" | "historical_lookup" | "fixture";
2880
2880
  locator?: string | undefined;
2881
2881
  }, {
2882
- id: string;
2882
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2883
2883
  label: string;
2884
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2884
+ id: string;
2885
2885
  capture: "at_action" | "historical_lookup" | "fixture";
2886
2886
  locator?: string | undefined;
2887
2887
  }>, "many">>;
2888
2888
  }, "strict", z.ZodTypeAny, {
2889
- summary: string;
2890
2889
  kind: "mission_completed";
2890
+ summary: string;
2891
2891
  outcome: "failed" | "recovered" | "inconclusive";
2892
2892
  evidence: {
2893
- id: string;
2893
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2894
2894
  label: string;
2895
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2895
+ id: string;
2896
2896
  capture: "at_action" | "historical_lookup" | "fixture";
2897
2897
  locator?: string | undefined;
2898
2898
  }[];
2899
2899
  }, {
2900
- summary: string;
2901
2900
  kind: "mission_completed";
2901
+ summary: string;
2902
2902
  outcome: "failed" | "recovered" | "inconclusive";
2903
2903
  evidence?: {
2904
- id: string;
2904
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2905
2905
  label: string;
2906
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2906
+ id: string;
2907
2907
  capture: "at_action" | "historical_lookup" | "fixture";
2908
2908
  locator?: string | undefined;
2909
2909
  }[] | undefined;
@@ -2911,38 +2911,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2911
2911
  kind: "mission_started";
2912
2912
  title: string;
2913
2913
  evidence: {
2914
- id: string;
2914
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2915
2915
  label: string;
2916
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2916
+ id: string;
2917
2917
  capture: "at_action" | "historical_lookup" | "fixture";
2918
2918
  locator?: string | undefined;
2919
2919
  }[];
2920
2920
  objective: string;
2921
2921
  runMode: "replay" | "fixture" | "live";
2922
2922
  } | {
2923
- label: string;
2924
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2925
2923
  kind: "agent_status";
2924
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2925
+ label: string;
2926
2926
  role: string;
2927
2927
  agentId: string;
2928
2928
  sessionId: string;
2929
2929
  evidence: {
2930
- id: string;
2930
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2931
2931
  label: string;
2932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2932
+ id: string;
2933
2933
  capture: "at_action" | "historical_lookup" | "fixture";
2934
2934
  locator?: string | undefined;
2935
2935
  }[];
2936
2936
  detail?: string | undefined;
2937
2937
  } | {
2938
- summary: string;
2939
2938
  kind: "agent_output";
2939
+ summary: string;
2940
2940
  agentId: string;
2941
2941
  sessionId: string;
2942
2942
  evidence: {
2943
- id: string;
2943
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2944
2944
  label: string;
2945
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2945
+ id: string;
2946
2946
  capture: "at_action" | "historical_lookup" | "fixture";
2947
2947
  locator?: string | undefined;
2948
2948
  }[];
@@ -2953,9 +2953,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2953
2953
  statement: string;
2954
2954
  sessionId: string;
2955
2955
  evidence: {
2956
- id: string;
2956
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2957
2957
  label: string;
2958
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2958
+ id: string;
2959
2959
  capture: "at_action" | "historical_lookup" | "fixture";
2960
2960
  locator?: string | undefined;
2961
2961
  }[];
@@ -2963,12 +2963,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2963
2963
  decisionId: string;
2964
2964
  confidence?: number | undefined;
2965
2965
  } | {
2966
- summary: string;
2967
2966
  kind: "conflict_detected";
2967
+ summary: string;
2968
2968
  evidence: {
2969
- id: string;
2969
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2970
2970
  label: string;
2971
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2971
+ id: string;
2972
2972
  capture: "at_action" | "historical_lookup" | "fixture";
2973
2973
  locator?: string | undefined;
2974
2974
  }[];
@@ -2976,14 +2976,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2976
2976
  decisionIds: string[];
2977
2977
  agentIds: string[];
2978
2978
  } | {
2979
+ kind: "test_result";
2979
2980
  summary: string;
2980
2981
  status: "error" | "failed" | "passed";
2981
- kind: "test_result";
2982
2982
  command: string;
2983
2983
  evidence: {
2984
- id: string;
2984
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2985
2985
  label: string;
2986
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2986
+ id: string;
2987
2987
  capture: "at_action" | "historical_lookup" | "fixture";
2988
2988
  locator?: string | undefined;
2989
2989
  }[];
@@ -2996,9 +2996,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2996
2996
  statement: string;
2997
2997
  rationale: string;
2998
2998
  evidence: {
2999
- id: string;
2999
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3000
3000
  label: string;
3001
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3001
+ id: string;
3002
3002
  capture: "at_action" | "historical_lookup" | "fixture";
3003
3003
  locator?: string | undefined;
3004
3004
  }[];
@@ -3010,25 +3010,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3010
3010
  } | {
3011
3011
  kind: "correction_approved";
3012
3012
  evidence: {
3013
- id: string;
3013
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3014
3014
  label: string;
3015
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3015
+ id: string;
3016
3016
  capture: "at_action" | "historical_lookup" | "fixture";
3017
3017
  locator?: string | undefined;
3018
3018
  }[];
3019
3019
  correctionId: string;
3020
3020
  approvedBy: {
3021
- id: string;
3022
- label: string;
3023
3021
  kind: "agent" | "human";
3022
+ label: string;
3023
+ id: string;
3024
3024
  };
3025
3025
  note?: string | undefined;
3026
3026
  } | {
3027
3027
  kind: "decision_superseded";
3028
3028
  evidence: {
3029
- id: string;
3029
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3030
3030
  label: string;
3031
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3031
+ id: string;
3032
3032
  capture: "at_action" | "historical_lookup" | "fixture";
3033
3033
  locator?: string | undefined;
3034
3034
  }[];
@@ -3041,9 +3041,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3041
3041
  agentId: string;
3042
3042
  sessionId: string;
3043
3043
  evidence: {
3044
- id: string;
3044
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3045
3045
  label: string;
3046
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3046
+ id: string;
3047
3047
  capture: "at_action" | "historical_lookup" | "fixture";
3048
3048
  locator?: string | undefined;
3049
3049
  }[];
@@ -3055,9 +3055,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3055
3055
  agentId: string;
3056
3056
  sessionId: string;
3057
3057
  evidence: {
3058
- id: string;
3058
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3059
3059
  label: string;
3060
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3060
+ id: string;
3061
3061
  capture: "at_action" | "historical_lookup" | "fixture";
3062
3062
  locator?: string | undefined;
3063
3063
  }[];
@@ -3066,13 +3066,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3066
3066
  recallReceiptId: string;
3067
3067
  staleDecisionAbsent: boolean;
3068
3068
  } | {
3069
- summary: string;
3070
3069
  kind: "mission_completed";
3070
+ summary: string;
3071
3071
  outcome: "failed" | "recovered" | "inconclusive";
3072
3072
  evidence: {
3073
- id: string;
3073
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3074
3074
  label: string;
3075
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3075
+ id: string;
3076
3076
  capture: "at_action" | "historical_lookup" | "fixture";
3077
3077
  locator?: string | undefined;
3078
3078
  }[];
@@ -3082,37 +3082,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3082
3082
  objective: string;
3083
3083
  runMode: "replay" | "fixture" | "live";
3084
3084
  evidence?: {
3085
- id: string;
3085
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3086
3086
  label: string;
3087
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3087
+ id: string;
3088
3088
  capture: "at_action" | "historical_lookup" | "fixture";
3089
3089
  locator?: string | undefined;
3090
3090
  }[] | undefined;
3091
3091
  } | {
3092
- label: string;
3093
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3094
3092
  kind: "agent_status";
3093
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3094
+ label: string;
3095
3095
  role: string;
3096
3096
  agentId: string;
3097
3097
  sessionId: string;
3098
3098
  detail?: string | undefined;
3099
3099
  evidence?: {
3100
- id: string;
3100
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3101
3101
  label: string;
3102
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3102
+ id: string;
3103
3103
  capture: "at_action" | "historical_lookup" | "fixture";
3104
3104
  locator?: string | undefined;
3105
3105
  }[] | undefined;
3106
3106
  } | {
3107
- summary: string;
3108
3107
  kind: "agent_output";
3108
+ summary: string;
3109
3109
  agentId: string;
3110
3110
  sessionId: string;
3111
3111
  outputId: string;
3112
3112
  evidence?: {
3113
- id: string;
3113
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3114
3114
  label: string;
3115
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3115
+ id: string;
3116
3116
  capture: "at_action" | "historical_lookup" | "fixture";
3117
3117
  locator?: string | undefined;
3118
3118
  }[] | undefined;
@@ -3125,37 +3125,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3125
3125
  decisionId: string;
3126
3126
  confidence?: number | undefined;
3127
3127
  evidence?: {
3128
- id: string;
3128
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3129
3129
  label: string;
3130
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3130
+ id: string;
3131
3131
  capture: "at_action" | "historical_lookup" | "fixture";
3132
3132
  locator?: string | undefined;
3133
3133
  }[] | undefined;
3134
3134
  } | {
3135
- summary: string;
3136
3135
  kind: "conflict_detected";
3136
+ summary: string;
3137
3137
  conflictId: string;
3138
3138
  decisionIds: string[];
3139
3139
  agentIds: string[];
3140
3140
  evidence?: {
3141
- id: string;
3141
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3142
3142
  label: string;
3143
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3143
+ id: string;
3144
3144
  capture: "at_action" | "historical_lookup" | "fixture";
3145
3145
  locator?: string | undefined;
3146
3146
  }[] | undefined;
3147
3147
  } | {
3148
+ kind: "test_result";
3148
3149
  summary: string;
3149
3150
  status: "error" | "failed" | "passed";
3150
- kind: "test_result";
3151
3151
  command: string;
3152
3152
  decisionId: string;
3153
3153
  testId: string;
3154
3154
  durationMs?: number | undefined;
3155
3155
  evidence?: {
3156
- id: string;
3156
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3157
3157
  label: string;
3158
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3158
+ id: string;
3159
3159
  capture: "at_action" | "historical_lookup" | "fixture";
3160
3160
  locator?: string | undefined;
3161
3161
  }[] | undefined;
@@ -3170,9 +3170,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3170
3170
  supersedesDecisionIds: string[];
3171
3171
  proposedBy: string;
3172
3172
  evidence?: {
3173
- id: string;
3173
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3174
3174
  label: string;
3175
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3175
+ id: string;
3176
3176
  capture: "at_action" | "historical_lookup" | "fixture";
3177
3177
  locator?: string | undefined;
3178
3178
  }[] | undefined;
@@ -3180,15 +3180,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3180
3180
  kind: "correction_approved";
3181
3181
  correctionId: string;
3182
3182
  approvedBy: {
3183
- id: string;
3184
- label: string;
3185
3183
  kind: "agent" | "human";
3184
+ label: string;
3185
+ id: string;
3186
3186
  };
3187
3187
  note?: string | undefined;
3188
3188
  evidence?: {
3189
- id: string;
3189
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3190
3190
  label: string;
3191
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3191
+ id: string;
3192
3192
  capture: "at_action" | "historical_lookup" | "fixture";
3193
3193
  locator?: string | undefined;
3194
3194
  }[] | undefined;
@@ -3198,9 +3198,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3198
3198
  correctionId: string;
3199
3199
  replacementDecisionId: string;
3200
3200
  evidence?: {
3201
- id: string;
3201
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3202
3202
  label: string;
3203
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3203
+ id: string;
3204
3204
  capture: "at_action" | "historical_lookup" | "fixture";
3205
3205
  locator?: string | undefined;
3206
3206
  }[] | undefined;
@@ -3213,9 +3213,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3213
3213
  recallReceiptId: string;
3214
3214
  capturedAtAction: boolean;
3215
3215
  evidence?: {
3216
- id: string;
3216
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3217
3217
  label: string;
3218
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3218
+ id: string;
3219
3219
  capture: "at_action" | "historical_lookup" | "fixture";
3220
3220
  locator?: string | undefined;
3221
3221
  }[] | undefined;
@@ -3228,20 +3228,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3228
3228
  recallReceiptId: string;
3229
3229
  staleDecisionAbsent: boolean;
3230
3230
  evidence?: {
3231
- id: string;
3231
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3232
3232
  label: string;
3233
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3233
+ id: string;
3234
3234
  capture: "at_action" | "historical_lookup" | "fixture";
3235
3235
  locator?: string | undefined;
3236
3236
  }[] | undefined;
3237
3237
  } | {
3238
- summary: string;
3239
3238
  kind: "mission_completed";
3239
+ summary: string;
3240
3240
  outcome: "failed" | "recovered" | "inconclusive";
3241
3241
  evidence?: {
3242
- id: string;
3242
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3243
3243
  label: string;
3244
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3244
+ id: string;
3245
3245
  capture: "at_action" | "historical_lookup" | "fixture";
3246
3246
  locator?: string | undefined;
3247
3247
  }[] | undefined;
@@ -3251,38 +3251,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3251
3251
  kind: "mission_started";
3252
3252
  title: string;
3253
3253
  evidence: {
3254
- id: string;
3254
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3255
3255
  label: string;
3256
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3256
+ id: string;
3257
3257
  capture: "at_action" | "historical_lookup" | "fixture";
3258
3258
  locator?: string | undefined;
3259
3259
  }[];
3260
3260
  objective: string;
3261
3261
  runMode: "replay" | "fixture" | "live";
3262
3262
  } | {
3263
- label: string;
3264
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3265
3263
  kind: "agent_status";
3264
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3265
+ label: string;
3266
3266
  role: string;
3267
3267
  agentId: string;
3268
3268
  sessionId: string;
3269
3269
  evidence: {
3270
- id: string;
3270
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3271
3271
  label: string;
3272
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3272
+ id: string;
3273
3273
  capture: "at_action" | "historical_lookup" | "fixture";
3274
3274
  locator?: string | undefined;
3275
3275
  }[];
3276
3276
  detail?: string | undefined;
3277
3277
  } | {
3278
- summary: string;
3279
3278
  kind: "agent_output";
3279
+ summary: string;
3280
3280
  agentId: string;
3281
3281
  sessionId: string;
3282
3282
  evidence: {
3283
- id: string;
3283
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3284
3284
  label: string;
3285
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3285
+ id: string;
3286
3286
  capture: "at_action" | "historical_lookup" | "fixture";
3287
3287
  locator?: string | undefined;
3288
3288
  }[];
@@ -3293,9 +3293,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3293
3293
  statement: string;
3294
3294
  sessionId: string;
3295
3295
  evidence: {
3296
- id: string;
3296
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3297
3297
  label: string;
3298
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3298
+ id: string;
3299
3299
  capture: "at_action" | "historical_lookup" | "fixture";
3300
3300
  locator?: string | undefined;
3301
3301
  }[];
@@ -3303,12 +3303,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3303
3303
  decisionId: string;
3304
3304
  confidence?: number | undefined;
3305
3305
  } | {
3306
- summary: string;
3307
3306
  kind: "conflict_detected";
3307
+ summary: string;
3308
3308
  evidence: {
3309
- id: string;
3309
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3310
3310
  label: string;
3311
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
+ id: string;
3312
3312
  capture: "at_action" | "historical_lookup" | "fixture";
3313
3313
  locator?: string | undefined;
3314
3314
  }[];
@@ -3316,14 +3316,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3316
3316
  decisionIds: string[];
3317
3317
  agentIds: string[];
3318
3318
  } | {
3319
+ kind: "test_result";
3319
3320
  summary: string;
3320
3321
  status: "error" | "failed" | "passed";
3321
- kind: "test_result";
3322
3322
  command: string;
3323
3323
  evidence: {
3324
- id: string;
3324
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3325
3325
  label: string;
3326
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3326
+ id: string;
3327
3327
  capture: "at_action" | "historical_lookup" | "fixture";
3328
3328
  locator?: string | undefined;
3329
3329
  }[];
@@ -3336,9 +3336,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3336
3336
  statement: string;
3337
3337
  rationale: string;
3338
3338
  evidence: {
3339
- id: string;
3339
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3340
3340
  label: string;
3341
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3341
+ id: string;
3342
3342
  capture: "at_action" | "historical_lookup" | "fixture";
3343
3343
  locator?: string | undefined;
3344
3344
  }[];
@@ -3350,25 +3350,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3350
3350
  } | {
3351
3351
  kind: "correction_approved";
3352
3352
  evidence: {
3353
- id: string;
3353
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3354
3354
  label: string;
3355
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3355
+ id: string;
3356
3356
  capture: "at_action" | "historical_lookup" | "fixture";
3357
3357
  locator?: string | undefined;
3358
3358
  }[];
3359
3359
  correctionId: string;
3360
3360
  approvedBy: {
3361
- id: string;
3362
- label: string;
3363
3361
  kind: "agent" | "human";
3362
+ label: string;
3363
+ id: string;
3364
3364
  };
3365
3365
  note?: string | undefined;
3366
3366
  } | {
3367
3367
  kind: "decision_superseded";
3368
3368
  evidence: {
3369
- id: string;
3369
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3370
3370
  label: string;
3371
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3371
+ id: string;
3372
3372
  capture: "at_action" | "historical_lookup" | "fixture";
3373
3373
  locator?: string | undefined;
3374
3374
  }[];
@@ -3381,9 +3381,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3381
3381
  agentId: string;
3382
3382
  sessionId: string;
3383
3383
  evidence: {
3384
- id: string;
3384
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3385
3385
  label: string;
3386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3386
+ id: string;
3387
3387
  capture: "at_action" | "historical_lookup" | "fixture";
3388
3388
  locator?: string | undefined;
3389
3389
  }[];
@@ -3395,9 +3395,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3395
3395
  agentId: string;
3396
3396
  sessionId: string;
3397
3397
  evidence: {
3398
- id: string;
3398
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3399
3399
  label: string;
3400
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3400
+ id: string;
3401
3401
  capture: "at_action" | "historical_lookup" | "fixture";
3402
3402
  locator?: string | undefined;
3403
3403
  }[];
@@ -3406,13 +3406,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3406
3406
  recallReceiptId: string;
3407
3407
  staleDecisionAbsent: boolean;
3408
3408
  } | {
3409
- summary: string;
3410
3409
  kind: "mission_completed";
3410
+ summary: string;
3411
3411
  outcome: "failed" | "recovered" | "inconclusive";
3412
3412
  evidence: {
3413
- id: string;
3413
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3414
3414
  label: string;
3415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3415
+ id: string;
3416
3416
  capture: "at_action" | "historical_lookup" | "fixture";
3417
3417
  locator?: string | undefined;
3418
3418
  }[];
@@ -3426,37 +3426,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3426
3426
  objective: string;
3427
3427
  runMode: "replay" | "fixture" | "live";
3428
3428
  evidence?: {
3429
- id: string;
3429
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3430
3430
  label: string;
3431
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3431
+ id: string;
3432
3432
  capture: "at_action" | "historical_lookup" | "fixture";
3433
3433
  locator?: string | undefined;
3434
3434
  }[] | undefined;
3435
3435
  } | {
3436
- label: string;
3437
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3438
3436
  kind: "agent_status";
3437
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3438
+ label: string;
3439
3439
  role: string;
3440
3440
  agentId: string;
3441
3441
  sessionId: string;
3442
3442
  detail?: string | undefined;
3443
3443
  evidence?: {
3444
- id: string;
3444
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3445
3445
  label: string;
3446
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3446
+ id: string;
3447
3447
  capture: "at_action" | "historical_lookup" | "fixture";
3448
3448
  locator?: string | undefined;
3449
3449
  }[] | undefined;
3450
3450
  } | {
3451
- summary: string;
3452
3451
  kind: "agent_output";
3452
+ summary: string;
3453
3453
  agentId: string;
3454
3454
  sessionId: string;
3455
3455
  outputId: string;
3456
3456
  evidence?: {
3457
- id: string;
3457
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3458
3458
  label: string;
3459
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3459
+ id: string;
3460
3460
  capture: "at_action" | "historical_lookup" | "fixture";
3461
3461
  locator?: string | undefined;
3462
3462
  }[] | undefined;
@@ -3469,37 +3469,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3469
3469
  decisionId: string;
3470
3470
  confidence?: number | undefined;
3471
3471
  evidence?: {
3472
- id: string;
3472
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3473
3473
  label: string;
3474
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3474
+ id: string;
3475
3475
  capture: "at_action" | "historical_lookup" | "fixture";
3476
3476
  locator?: string | undefined;
3477
3477
  }[] | undefined;
3478
3478
  } | {
3479
- summary: string;
3480
3479
  kind: "conflict_detected";
3480
+ summary: string;
3481
3481
  conflictId: string;
3482
3482
  decisionIds: string[];
3483
3483
  agentIds: string[];
3484
3484
  evidence?: {
3485
- id: string;
3485
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3486
3486
  label: string;
3487
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3487
+ id: string;
3488
3488
  capture: "at_action" | "historical_lookup" | "fixture";
3489
3489
  locator?: string | undefined;
3490
3490
  }[] | undefined;
3491
3491
  } | {
3492
+ kind: "test_result";
3492
3493
  summary: string;
3493
3494
  status: "error" | "failed" | "passed";
3494
- kind: "test_result";
3495
3495
  command: string;
3496
3496
  decisionId: string;
3497
3497
  testId: string;
3498
3498
  durationMs?: number | undefined;
3499
3499
  evidence?: {
3500
- id: string;
3500
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3501
3501
  label: string;
3502
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3502
+ id: string;
3503
3503
  capture: "at_action" | "historical_lookup" | "fixture";
3504
3504
  locator?: string | undefined;
3505
3505
  }[] | undefined;
@@ -3514,9 +3514,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3514
3514
  supersedesDecisionIds: string[];
3515
3515
  proposedBy: string;
3516
3516
  evidence?: {
3517
- id: string;
3517
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3518
3518
  label: string;
3519
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3519
+ id: string;
3520
3520
  capture: "at_action" | "historical_lookup" | "fixture";
3521
3521
  locator?: string | undefined;
3522
3522
  }[] | undefined;
@@ -3524,15 +3524,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3524
3524
  kind: "correction_approved";
3525
3525
  correctionId: string;
3526
3526
  approvedBy: {
3527
- id: string;
3528
- label: string;
3529
3527
  kind: "agent" | "human";
3528
+ label: string;
3529
+ id: string;
3530
3530
  };
3531
3531
  note?: string | undefined;
3532
3532
  evidence?: {
3533
- id: string;
3533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3534
3534
  label: string;
3535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3535
+ id: string;
3536
3536
  capture: "at_action" | "historical_lookup" | "fixture";
3537
3537
  locator?: string | undefined;
3538
3538
  }[] | undefined;
@@ -3542,9 +3542,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3542
3542
  correctionId: string;
3543
3543
  replacementDecisionId: string;
3544
3544
  evidence?: {
3545
- id: string;
3545
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3546
3546
  label: string;
3547
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3547
+ id: string;
3548
3548
  capture: "at_action" | "historical_lookup" | "fixture";
3549
3549
  locator?: string | undefined;
3550
3550
  }[] | undefined;
@@ -3557,9 +3557,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3557
3557
  recallReceiptId: string;
3558
3558
  capturedAtAction: boolean;
3559
3559
  evidence?: {
3560
- id: string;
3560
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3561
3561
  label: string;
3562
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3562
+ id: string;
3563
3563
  capture: "at_action" | "historical_lookup" | "fixture";
3564
3564
  locator?: string | undefined;
3565
3565
  }[] | undefined;
@@ -3572,20 +3572,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3572
3572
  recallReceiptId: string;
3573
3573
  staleDecisionAbsent: boolean;
3574
3574
  evidence?: {
3575
- id: string;
3575
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3576
3576
  label: string;
3577
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3577
+ id: string;
3578
3578
  capture: "at_action" | "historical_lookup" | "fixture";
3579
3579
  locator?: string | undefined;
3580
3580
  }[] | undefined;
3581
3581
  } | {
3582
- summary: string;
3583
3582
  kind: "mission_completed";
3583
+ summary: string;
3584
3584
  outcome: "failed" | "recovered" | "inconclusive";
3585
3585
  evidence?: {
3586
- id: string;
3586
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3587
3587
  label: string;
3588
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3588
+ id: string;
3589
3589
  capture: "at_action" | "historical_lookup" | "fixture";
3590
3590
  locator?: string | undefined;
3591
3591
  }[] | undefined;
@@ -3615,15 +3615,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3615
3615
  locator: z.ZodOptional<z.ZodString>;
3616
3616
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3617
3617
  }, "strict", z.ZodTypeAny, {
3618
- id: string;
3618
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3619
3619
  label: string;
3620
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3620
+ id: string;
3621
3621
  capture: "at_action" | "historical_lookup" | "fixture";
3622
3622
  locator?: string | undefined;
3623
3623
  }, {
3624
- id: string;
3624
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3625
3625
  label: string;
3626
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3626
+ id: string;
3627
3627
  capture: "at_action" | "historical_lookup" | "fixture";
3628
3628
  locator?: string | undefined;
3629
3629
  }>, "many">>;
@@ -3631,9 +3631,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3631
3631
  kind: "mission_started";
3632
3632
  title: string;
3633
3633
  evidence: {
3634
- id: string;
3634
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3635
3635
  label: string;
3636
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3636
+ id: string;
3637
3637
  capture: "at_action" | "historical_lookup" | "fixture";
3638
3638
  locator?: string | undefined;
3639
3639
  }[];
@@ -3645,9 +3645,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3645
3645
  objective: string;
3646
3646
  runMode: "replay" | "fixture" | "live";
3647
3647
  evidence?: {
3648
- id: string;
3648
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3649
3649
  label: string;
3650
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3650
+ id: string;
3651
3651
  capture: "at_action" | "historical_lookup" | "fixture";
3652
3652
  locator?: string | undefined;
3653
3653
  }[] | undefined;
@@ -3663,15 +3663,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3663
3663
  locator: z.ZodOptional<z.ZodString>;
3664
3664
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3665
3665
  }, "strict", z.ZodTypeAny, {
3666
- id: string;
3666
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3667
3667
  label: string;
3668
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3668
+ id: string;
3669
3669
  capture: "at_action" | "historical_lookup" | "fixture";
3670
3670
  locator?: string | undefined;
3671
3671
  }, {
3672
- id: string;
3672
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3673
3673
  label: string;
3674
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
+ id: string;
3675
3675
  capture: "at_action" | "historical_lookup" | "fixture";
3676
3676
  locator?: string | undefined;
3677
3677
  }>, "many">>;
@@ -3679,32 +3679,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3679
3679
  sessionId: z.ZodString;
3680
3680
  kind: z.ZodLiteral<"agent_status">;
3681
3681
  }, "strict", z.ZodTypeAny, {
3682
- label: string;
3683
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3684
3682
  kind: "agent_status";
3683
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3684
+ label: string;
3685
3685
  role: string;
3686
3686
  agentId: string;
3687
3687
  sessionId: string;
3688
3688
  evidence: {
3689
- id: string;
3689
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3690
3690
  label: string;
3691
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3691
+ id: string;
3692
3692
  capture: "at_action" | "historical_lookup" | "fixture";
3693
3693
  locator?: string | undefined;
3694
3694
  }[];
3695
3695
  detail?: string | undefined;
3696
3696
  }, {
3697
- label: string;
3698
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3699
3697
  kind: "agent_status";
3698
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3699
+ label: string;
3700
3700
  role: string;
3701
3701
  agentId: string;
3702
3702
  sessionId: string;
3703
3703
  detail?: string | undefined;
3704
3704
  evidence?: {
3705
- id: string;
3705
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3706
3706
  label: string;
3707
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3707
+ id: string;
3708
3708
  capture: "at_action" | "historical_lookup" | "fixture";
3709
3709
  locator?: string | undefined;
3710
3710
  }[] | undefined;
@@ -3718,15 +3718,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3718
3718
  locator: z.ZodOptional<z.ZodString>;
3719
3719
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3720
3720
  }, "strict", z.ZodTypeAny, {
3721
- id: string;
3721
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3722
3722
  label: string;
3723
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3723
+ id: string;
3724
3724
  capture: "at_action" | "historical_lookup" | "fixture";
3725
3725
  locator?: string | undefined;
3726
3726
  }, {
3727
- id: string;
3727
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3728
3728
  label: string;
3729
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3729
+ id: string;
3730
3730
  capture: "at_action" | "historical_lookup" | "fixture";
3731
3731
  locator?: string | undefined;
3732
3732
  }>, "many">>;
@@ -3734,28 +3734,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3734
3734
  sessionId: z.ZodString;
3735
3735
  kind: z.ZodLiteral<"agent_output">;
3736
3736
  }, "strict", z.ZodTypeAny, {
3737
- summary: string;
3738
3737
  kind: "agent_output";
3738
+ summary: string;
3739
3739
  agentId: string;
3740
3740
  sessionId: string;
3741
3741
  evidence: {
3742
- id: string;
3742
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3743
3743
  label: string;
3744
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3744
+ id: string;
3745
3745
  capture: "at_action" | "historical_lookup" | "fixture";
3746
3746
  locator?: string | undefined;
3747
3747
  }[];
3748
3748
  outputId: string;
3749
3749
  }, {
3750
- summary: string;
3751
3750
  kind: "agent_output";
3751
+ summary: string;
3752
3752
  agentId: string;
3753
3753
  sessionId: string;
3754
3754
  outputId: string;
3755
3755
  evidence?: {
3756
- id: string;
3756
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3757
3757
  label: string;
3758
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3758
+ id: string;
3759
3759
  capture: "at_action" | "historical_lookup" | "fixture";
3760
3760
  locator?: string | undefined;
3761
3761
  }[] | undefined;
@@ -3771,15 +3771,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3771
3771
  locator: z.ZodOptional<z.ZodString>;
3772
3772
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3773
3773
  }, "strict", z.ZodTypeAny, {
3774
- id: string;
3774
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3775
3775
  label: string;
3776
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3776
+ id: string;
3777
3777
  capture: "at_action" | "historical_lookup" | "fixture";
3778
3778
  locator?: string | undefined;
3779
3779
  }, {
3780
- id: string;
3780
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3781
3781
  label: string;
3782
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3782
+ id: string;
3783
3783
  capture: "at_action" | "historical_lookup" | "fixture";
3784
3784
  locator?: string | undefined;
3785
3785
  }>, "many">>;
@@ -3792,9 +3792,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3792
3792
  statement: string;
3793
3793
  sessionId: string;
3794
3794
  evidence: {
3795
- id: string;
3795
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3796
3796
  label: string;
3797
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3797
+ id: string;
3798
3798
  capture: "at_action" | "historical_lookup" | "fixture";
3799
3799
  locator?: string | undefined;
3800
3800
  }[];
@@ -3810,9 +3810,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3810
3810
  decisionId: string;
3811
3811
  confidence?: number | undefined;
3812
3812
  evidence?: {
3813
- id: string;
3813
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3814
3814
  label: string;
3815
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3815
+ id: string;
3816
3816
  capture: "at_action" | "historical_lookup" | "fixture";
3817
3817
  locator?: string | undefined;
3818
3818
  }[] | undefined;
@@ -3829,25 +3829,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3829
3829
  locator: z.ZodOptional<z.ZodString>;
3830
3830
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3831
3831
  }, "strict", z.ZodTypeAny, {
3832
- id: string;
3832
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3833
3833
  label: string;
3834
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3834
+ id: string;
3835
3835
  capture: "at_action" | "historical_lookup" | "fixture";
3836
3836
  locator?: string | undefined;
3837
3837
  }, {
3838
- id: string;
3838
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3839
3839
  label: string;
3840
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3840
+ id: string;
3841
3841
  capture: "at_action" | "historical_lookup" | "fixture";
3842
3842
  locator?: string | undefined;
3843
3843
  }>, "many">>;
3844
3844
  }, "strict", z.ZodTypeAny, {
3845
- summary: string;
3846
3845
  kind: "conflict_detected";
3846
+ summary: string;
3847
3847
  evidence: {
3848
- id: string;
3848
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3849
3849
  label: string;
3850
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3850
+ id: string;
3851
3851
  capture: "at_action" | "historical_lookup" | "fixture";
3852
3852
  locator?: string | undefined;
3853
3853
  }[];
@@ -3855,15 +3855,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3855
3855
  decisionIds: string[];
3856
3856
  agentIds: string[];
3857
3857
  }, {
3858
- summary: string;
3859
3858
  kind: "conflict_detected";
3859
+ summary: string;
3860
3860
  conflictId: string;
3861
3861
  decisionIds: string[];
3862
3862
  agentIds: string[];
3863
3863
  evidence?: {
3864
- id: string;
3864
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3865
3865
  label: string;
3866
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3866
+ id: string;
3867
3867
  capture: "at_action" | "historical_lookup" | "fixture";
3868
3868
  locator?: string | undefined;
3869
3869
  }[] | undefined;
@@ -3883,27 +3883,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3883
3883
  locator: z.ZodOptional<z.ZodString>;
3884
3884
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3885
3885
  }, "strict", z.ZodTypeAny, {
3886
- id: string;
3886
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3887
3887
  label: string;
3888
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3888
+ id: string;
3889
3889
  capture: "at_action" | "historical_lookup" | "fixture";
3890
3890
  locator?: string | undefined;
3891
3891
  }, {
3892
- id: string;
3892
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3893
3893
  label: string;
3894
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3894
+ id: string;
3895
3895
  capture: "at_action" | "historical_lookup" | "fixture";
3896
3896
  locator?: string | undefined;
3897
3897
  }>, "many">>;
3898
3898
  }, "strict", z.ZodTypeAny, {
3899
+ kind: "test_result";
3899
3900
  summary: string;
3900
3901
  status: "error" | "failed" | "passed";
3901
- kind: "test_result";
3902
3902
  command: string;
3903
3903
  evidence: {
3904
- id: string;
3904
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3905
3905
  label: string;
3906
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3906
+ id: string;
3907
3907
  capture: "at_action" | "historical_lookup" | "fixture";
3908
3908
  locator?: string | undefined;
3909
3909
  }[];
@@ -3912,17 +3912,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3912
3912
  durationMs?: number | undefined;
3913
3913
  correctionId?: string | undefined;
3914
3914
  }, {
3915
+ kind: "test_result";
3915
3916
  summary: string;
3916
3917
  status: "error" | "failed" | "passed";
3917
- kind: "test_result";
3918
3918
  command: string;
3919
3919
  decisionId: string;
3920
3920
  testId: string;
3921
3921
  durationMs?: number | undefined;
3922
3922
  evidence?: {
3923
- id: string;
3923
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3924
3924
  label: string;
3925
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3925
+ id: string;
3926
3926
  capture: "at_action" | "historical_lookup" | "fixture";
3927
3927
  locator?: string | undefined;
3928
3928
  }[] | undefined;
@@ -3943,15 +3943,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3943
3943
  locator: z.ZodOptional<z.ZodString>;
3944
3944
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3945
3945
  }, "strict", z.ZodTypeAny, {
3946
- id: string;
3946
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3947
3947
  label: string;
3948
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3948
+ id: string;
3949
3949
  capture: "at_action" | "historical_lookup" | "fixture";
3950
3950
  locator?: string | undefined;
3951
3951
  }, {
3952
- id: string;
3952
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
3953
  label: string;
3954
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3954
+ id: string;
3955
3955
  capture: "at_action" | "historical_lookup" | "fixture";
3956
3956
  locator?: string | undefined;
3957
3957
  }>, "many">>;
@@ -3960,9 +3960,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3960
3960
  statement: string;
3961
3961
  rationale: string;
3962
3962
  evidence: {
3963
- id: string;
3963
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3964
3964
  label: string;
3965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3965
+ id: string;
3966
3966
  capture: "at_action" | "historical_lookup" | "fixture";
3967
3967
  locator?: string | undefined;
3968
3968
  }[];
@@ -3981,9 +3981,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3981
3981
  supersedesDecisionIds: string[];
3982
3982
  proposedBy: string;
3983
3983
  evidence?: {
3984
- id: string;
3984
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3985
3985
  label: string;
3986
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3986
+ id: string;
3987
3987
  capture: "at_action" | "historical_lookup" | "fixture";
3988
3988
  locator?: string | undefined;
3989
3989
  }[] | undefined;
@@ -3995,13 +3995,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3995
3995
  id: z.ZodString;
3996
3996
  label: z.ZodString;
3997
3997
  }, "strict", z.ZodTypeAny, {
3998
- id: string;
3999
- label: string;
4000
3998
  kind: "agent" | "human";
4001
- }, {
4002
- id: string;
4003
3999
  label: string;
4000
+ id: string;
4001
+ }, {
4004
4002
  kind: "agent" | "human";
4003
+ label: string;
4004
+ id: string;
4005
4005
  }>;
4006
4006
  note: z.ZodOptional<z.ZodString>;
4007
4007
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -4011,47 +4011,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4011
4011
  locator: z.ZodOptional<z.ZodString>;
4012
4012
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4013
4013
  }, "strict", z.ZodTypeAny, {
4014
- id: string;
4014
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4015
4015
  label: string;
4016
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4016
+ id: string;
4017
4017
  capture: "at_action" | "historical_lookup" | "fixture";
4018
4018
  locator?: string | undefined;
4019
4019
  }, {
4020
- id: string;
4020
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4021
4021
  label: string;
4022
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4022
+ id: string;
4023
4023
  capture: "at_action" | "historical_lookup" | "fixture";
4024
4024
  locator?: string | undefined;
4025
4025
  }>, "many">>;
4026
4026
  }, "strict", z.ZodTypeAny, {
4027
4027
  kind: "correction_approved";
4028
4028
  evidence: {
4029
- id: string;
4029
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4030
4030
  label: string;
4031
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4031
+ id: string;
4032
4032
  capture: "at_action" | "historical_lookup" | "fixture";
4033
4033
  locator?: string | undefined;
4034
4034
  }[];
4035
4035
  correctionId: string;
4036
4036
  approvedBy: {
4037
- id: string;
4038
- label: string;
4039
4037
  kind: "agent" | "human";
4038
+ label: string;
4039
+ id: string;
4040
4040
  };
4041
4041
  note?: string | undefined;
4042
4042
  }, {
4043
4043
  kind: "correction_approved";
4044
4044
  correctionId: string;
4045
4045
  approvedBy: {
4046
- id: string;
4047
- label: string;
4048
4046
  kind: "agent" | "human";
4047
+ label: string;
4048
+ id: string;
4049
4049
  };
4050
4050
  note?: string | undefined;
4051
4051
  evidence?: {
4052
- id: string;
4052
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4053
4053
  label: string;
4054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4054
+ id: string;
4055
4055
  capture: "at_action" | "historical_lookup" | "fixture";
4056
4056
  locator?: string | undefined;
4057
4057
  }[] | undefined;
@@ -4067,24 +4067,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4067
4067
  locator: z.ZodOptional<z.ZodString>;
4068
4068
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4069
4069
  }, "strict", z.ZodTypeAny, {
4070
- id: string;
4070
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4071
4071
  label: string;
4072
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4072
+ id: string;
4073
4073
  capture: "at_action" | "historical_lookup" | "fixture";
4074
4074
  locator?: string | undefined;
4075
4075
  }, {
4076
- id: string;
4076
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4077
4077
  label: string;
4078
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4078
+ id: string;
4079
4079
  capture: "at_action" | "historical_lookup" | "fixture";
4080
4080
  locator?: string | undefined;
4081
4081
  }>, "many">>;
4082
4082
  }, "strict", z.ZodTypeAny, {
4083
4083
  kind: "decision_superseded";
4084
4084
  evidence: {
4085
- id: string;
4085
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4086
4086
  label: string;
4087
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4087
+ id: string;
4088
4088
  capture: "at_action" | "historical_lookup" | "fixture";
4089
4089
  locator?: string | undefined;
4090
4090
  }[];
@@ -4097,9 +4097,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4097
4097
  correctionId: string;
4098
4098
  replacementDecisionId: string;
4099
4099
  evidence?: {
4100
- id: string;
4100
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4101
4101
  label: string;
4102
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4102
+ id: string;
4103
4103
  capture: "at_action" | "historical_lookup" | "fixture";
4104
4104
  locator?: string | undefined;
4105
4105
  }[] | undefined;
@@ -4115,15 +4115,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4115
4115
  locator: z.ZodOptional<z.ZodString>;
4116
4116
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4117
4117
  }, "strict", z.ZodTypeAny, {
4118
- id: string;
4118
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4119
4119
  label: string;
4120
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4120
+ id: string;
4121
4121
  capture: "at_action" | "historical_lookup" | "fixture";
4122
4122
  locator?: string | undefined;
4123
4123
  }, {
4124
- id: string;
4124
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4125
4125
  label: string;
4126
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4126
+ id: string;
4127
4127
  capture: "at_action" | "historical_lookup" | "fixture";
4128
4128
  locator?: string | undefined;
4129
4129
  }>, "many">>;
@@ -4136,9 +4136,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4136
4136
  agentId: string;
4137
4137
  sessionId: string;
4138
4138
  evidence: {
4139
- id: string;
4139
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4140
4140
  label: string;
4141
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4141
+ id: string;
4142
4142
  capture: "at_action" | "historical_lookup" | "fixture";
4143
4143
  locator?: string | undefined;
4144
4144
  }[];
@@ -4154,9 +4154,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4154
4154
  recallReceiptId: string;
4155
4155
  capturedAtAction: boolean;
4156
4156
  evidence?: {
4157
- id: string;
4157
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4158
4158
  label: string;
4159
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4159
+ id: string;
4160
4160
  capture: "at_action" | "historical_lookup" | "fixture";
4161
4161
  locator?: string | undefined;
4162
4162
  }[] | undefined;
@@ -4172,15 +4172,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4172
4172
  locator: z.ZodOptional<z.ZodString>;
4173
4173
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4174
4174
  }, "strict", z.ZodTypeAny, {
4175
- id: string;
4175
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4176
4176
  label: string;
4177
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4177
+ id: string;
4178
4178
  capture: "at_action" | "historical_lookup" | "fixture";
4179
4179
  locator?: string | undefined;
4180
4180
  }, {
4181
- id: string;
4181
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4182
4182
  label: string;
4183
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4183
+ id: string;
4184
4184
  capture: "at_action" | "historical_lookup" | "fixture";
4185
4185
  locator?: string | undefined;
4186
4186
  }>, "many">>;
@@ -4192,9 +4192,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4192
4192
  agentId: string;
4193
4193
  sessionId: string;
4194
4194
  evidence: {
4195
- id: string;
4195
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4196
4196
  label: string;
4197
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4197
+ id: string;
4198
4198
  capture: "at_action" | "historical_lookup" | "fixture";
4199
4199
  locator?: string | undefined;
4200
4200
  }[];
@@ -4211,9 +4211,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4211
4211
  recallReceiptId: string;
4212
4212
  staleDecisionAbsent: boolean;
4213
4213
  evidence?: {
4214
- id: string;
4214
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4215
4215
  label: string;
4216
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4216
+ id: string;
4217
4217
  capture: "at_action" | "historical_lookup" | "fixture";
4218
4218
  locator?: string | undefined;
4219
4219
  }[] | undefined;
@@ -4228,37 +4228,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4228
4228
  locator: z.ZodOptional<z.ZodString>;
4229
4229
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4230
4230
  }, "strict", z.ZodTypeAny, {
4231
- id: string;
4231
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4232
4232
  label: string;
4233
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4233
+ id: string;
4234
4234
  capture: "at_action" | "historical_lookup" | "fixture";
4235
4235
  locator?: string | undefined;
4236
4236
  }, {
4237
- id: string;
4237
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4238
4238
  label: string;
4239
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4239
+ id: string;
4240
4240
  capture: "at_action" | "historical_lookup" | "fixture";
4241
4241
  locator?: string | undefined;
4242
4242
  }>, "many">>;
4243
4243
  }, "strict", z.ZodTypeAny, {
4244
- summary: string;
4245
4244
  kind: "mission_completed";
4245
+ summary: string;
4246
4246
  outcome: "failed" | "recovered" | "inconclusive";
4247
4247
  evidence: {
4248
- id: string;
4248
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4249
4249
  label: string;
4250
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4250
+ id: string;
4251
4251
  capture: "at_action" | "historical_lookup" | "fixture";
4252
4252
  locator?: string | undefined;
4253
4253
  }[];
4254
4254
  }, {
4255
- summary: string;
4256
4255
  kind: "mission_completed";
4256
+ summary: string;
4257
4257
  outcome: "failed" | "recovered" | "inconclusive";
4258
4258
  evidence?: {
4259
- id: string;
4259
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4260
4260
  label: string;
4261
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4261
+ id: string;
4262
4262
  capture: "at_action" | "historical_lookup" | "fixture";
4263
4263
  locator?: string | undefined;
4264
4264
  }[] | undefined;
@@ -4266,38 +4266,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4266
4266
  kind: "mission_started";
4267
4267
  title: string;
4268
4268
  evidence: {
4269
- id: string;
4269
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4270
4270
  label: string;
4271
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4271
+ id: string;
4272
4272
  capture: "at_action" | "historical_lookup" | "fixture";
4273
4273
  locator?: string | undefined;
4274
4274
  }[];
4275
4275
  objective: string;
4276
4276
  runMode: "replay" | "fixture" | "live";
4277
4277
  } | {
4278
- label: string;
4279
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4280
4278
  kind: "agent_status";
4279
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4280
+ label: string;
4281
4281
  role: string;
4282
4282
  agentId: string;
4283
4283
  sessionId: string;
4284
4284
  evidence: {
4285
- id: string;
4285
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4286
4286
  label: string;
4287
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4287
+ id: string;
4288
4288
  capture: "at_action" | "historical_lookup" | "fixture";
4289
4289
  locator?: string | undefined;
4290
4290
  }[];
4291
4291
  detail?: string | undefined;
4292
4292
  } | {
4293
- summary: string;
4294
4293
  kind: "agent_output";
4294
+ summary: string;
4295
4295
  agentId: string;
4296
4296
  sessionId: string;
4297
4297
  evidence: {
4298
- id: string;
4298
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4299
4299
  label: string;
4300
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4300
+ id: string;
4301
4301
  capture: "at_action" | "historical_lookup" | "fixture";
4302
4302
  locator?: string | undefined;
4303
4303
  }[];
@@ -4308,9 +4308,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4308
4308
  statement: string;
4309
4309
  sessionId: string;
4310
4310
  evidence: {
4311
- id: string;
4311
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4312
4312
  label: string;
4313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4313
+ id: string;
4314
4314
  capture: "at_action" | "historical_lookup" | "fixture";
4315
4315
  locator?: string | undefined;
4316
4316
  }[];
@@ -4318,12 +4318,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4318
4318
  decisionId: string;
4319
4319
  confidence?: number | undefined;
4320
4320
  } | {
4321
- summary: string;
4322
4321
  kind: "conflict_detected";
4322
+ summary: string;
4323
4323
  evidence: {
4324
- id: string;
4324
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4325
4325
  label: string;
4326
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4326
+ id: string;
4327
4327
  capture: "at_action" | "historical_lookup" | "fixture";
4328
4328
  locator?: string | undefined;
4329
4329
  }[];
@@ -4331,14 +4331,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4331
4331
  decisionIds: string[];
4332
4332
  agentIds: string[];
4333
4333
  } | {
4334
+ kind: "test_result";
4334
4335
  summary: string;
4335
4336
  status: "error" | "failed" | "passed";
4336
- kind: "test_result";
4337
4337
  command: string;
4338
4338
  evidence: {
4339
- id: string;
4339
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4340
4340
  label: string;
4341
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4341
+ id: string;
4342
4342
  capture: "at_action" | "historical_lookup" | "fixture";
4343
4343
  locator?: string | undefined;
4344
4344
  }[];
@@ -4351,9 +4351,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4351
4351
  statement: string;
4352
4352
  rationale: string;
4353
4353
  evidence: {
4354
- id: string;
4354
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4355
4355
  label: string;
4356
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4356
+ id: string;
4357
4357
  capture: "at_action" | "historical_lookup" | "fixture";
4358
4358
  locator?: string | undefined;
4359
4359
  }[];
@@ -4365,25 +4365,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4365
4365
  } | {
4366
4366
  kind: "correction_approved";
4367
4367
  evidence: {
4368
- id: string;
4368
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4369
4369
  label: string;
4370
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4370
+ id: string;
4371
4371
  capture: "at_action" | "historical_lookup" | "fixture";
4372
4372
  locator?: string | undefined;
4373
4373
  }[];
4374
4374
  correctionId: string;
4375
4375
  approvedBy: {
4376
- id: string;
4377
- label: string;
4378
4376
  kind: "agent" | "human";
4377
+ label: string;
4378
+ id: string;
4379
4379
  };
4380
4380
  note?: string | undefined;
4381
4381
  } | {
4382
4382
  kind: "decision_superseded";
4383
4383
  evidence: {
4384
- id: string;
4384
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4385
4385
  label: string;
4386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4386
+ id: string;
4387
4387
  capture: "at_action" | "historical_lookup" | "fixture";
4388
4388
  locator?: string | undefined;
4389
4389
  }[];
@@ -4396,9 +4396,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4396
4396
  agentId: string;
4397
4397
  sessionId: string;
4398
4398
  evidence: {
4399
- id: string;
4399
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4400
4400
  label: string;
4401
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4401
+ id: string;
4402
4402
  capture: "at_action" | "historical_lookup" | "fixture";
4403
4403
  locator?: string | undefined;
4404
4404
  }[];
@@ -4410,9 +4410,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4410
4410
  agentId: string;
4411
4411
  sessionId: string;
4412
4412
  evidence: {
4413
- id: string;
4413
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4414
4414
  label: string;
4415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4415
+ id: string;
4416
4416
  capture: "at_action" | "historical_lookup" | "fixture";
4417
4417
  locator?: string | undefined;
4418
4418
  }[];
@@ -4421,13 +4421,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4421
4421
  recallReceiptId: string;
4422
4422
  staleDecisionAbsent: boolean;
4423
4423
  } | {
4424
- summary: string;
4425
4424
  kind: "mission_completed";
4425
+ summary: string;
4426
4426
  outcome: "failed" | "recovered" | "inconclusive";
4427
4427
  evidence: {
4428
- id: string;
4428
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4429
4429
  label: string;
4430
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4430
+ id: string;
4431
4431
  capture: "at_action" | "historical_lookup" | "fixture";
4432
4432
  locator?: string | undefined;
4433
4433
  }[];
@@ -4437,37 +4437,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4437
4437
  objective: string;
4438
4438
  runMode: "replay" | "fixture" | "live";
4439
4439
  evidence?: {
4440
- id: string;
4440
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4441
4441
  label: string;
4442
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4442
+ id: string;
4443
4443
  capture: "at_action" | "historical_lookup" | "fixture";
4444
4444
  locator?: string | undefined;
4445
4445
  }[] | undefined;
4446
4446
  } | {
4447
- label: string;
4448
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4449
4447
  kind: "agent_status";
4448
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4449
+ label: string;
4450
4450
  role: string;
4451
4451
  agentId: string;
4452
4452
  sessionId: string;
4453
4453
  detail?: string | undefined;
4454
4454
  evidence?: {
4455
- id: string;
4455
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4456
4456
  label: string;
4457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4457
+ id: string;
4458
4458
  capture: "at_action" | "historical_lookup" | "fixture";
4459
4459
  locator?: string | undefined;
4460
4460
  }[] | undefined;
4461
4461
  } | {
4462
- summary: string;
4463
4462
  kind: "agent_output";
4463
+ summary: string;
4464
4464
  agentId: string;
4465
4465
  sessionId: string;
4466
4466
  outputId: string;
4467
4467
  evidence?: {
4468
- id: string;
4468
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4469
4469
  label: string;
4470
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4470
+ id: string;
4471
4471
  capture: "at_action" | "historical_lookup" | "fixture";
4472
4472
  locator?: string | undefined;
4473
4473
  }[] | undefined;
@@ -4480,37 +4480,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4480
4480
  decisionId: string;
4481
4481
  confidence?: number | undefined;
4482
4482
  evidence?: {
4483
- id: string;
4483
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4484
4484
  label: string;
4485
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4485
+ id: string;
4486
4486
  capture: "at_action" | "historical_lookup" | "fixture";
4487
4487
  locator?: string | undefined;
4488
4488
  }[] | undefined;
4489
4489
  } | {
4490
- summary: string;
4491
4490
  kind: "conflict_detected";
4491
+ summary: string;
4492
4492
  conflictId: string;
4493
4493
  decisionIds: string[];
4494
4494
  agentIds: string[];
4495
4495
  evidence?: {
4496
- id: string;
4496
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4497
4497
  label: string;
4498
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4498
+ id: string;
4499
4499
  capture: "at_action" | "historical_lookup" | "fixture";
4500
4500
  locator?: string | undefined;
4501
4501
  }[] | undefined;
4502
4502
  } | {
4503
+ kind: "test_result";
4503
4504
  summary: string;
4504
4505
  status: "error" | "failed" | "passed";
4505
- kind: "test_result";
4506
4506
  command: string;
4507
4507
  decisionId: string;
4508
4508
  testId: string;
4509
4509
  durationMs?: number | undefined;
4510
4510
  evidence?: {
4511
- id: string;
4511
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4512
4512
  label: string;
4513
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4513
+ id: string;
4514
4514
  capture: "at_action" | "historical_lookup" | "fixture";
4515
4515
  locator?: string | undefined;
4516
4516
  }[] | undefined;
@@ -4525,9 +4525,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4525
4525
  supersedesDecisionIds: string[];
4526
4526
  proposedBy: string;
4527
4527
  evidence?: {
4528
- id: string;
4528
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4529
4529
  label: string;
4530
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4530
+ id: string;
4531
4531
  capture: "at_action" | "historical_lookup" | "fixture";
4532
4532
  locator?: string | undefined;
4533
4533
  }[] | undefined;
@@ -4535,15 +4535,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4535
4535
  kind: "correction_approved";
4536
4536
  correctionId: string;
4537
4537
  approvedBy: {
4538
- id: string;
4539
- label: string;
4540
4538
  kind: "agent" | "human";
4539
+ label: string;
4540
+ id: string;
4541
4541
  };
4542
4542
  note?: string | undefined;
4543
4543
  evidence?: {
4544
- id: string;
4544
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4545
4545
  label: string;
4546
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4546
+ id: string;
4547
4547
  capture: "at_action" | "historical_lookup" | "fixture";
4548
4548
  locator?: string | undefined;
4549
4549
  }[] | undefined;
@@ -4553,9 +4553,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4553
4553
  correctionId: string;
4554
4554
  replacementDecisionId: string;
4555
4555
  evidence?: {
4556
- id: string;
4556
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4557
4557
  label: string;
4558
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4558
+ id: string;
4559
4559
  capture: "at_action" | "historical_lookup" | "fixture";
4560
4560
  locator?: string | undefined;
4561
4561
  }[] | undefined;
@@ -4568,9 +4568,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4568
4568
  recallReceiptId: string;
4569
4569
  capturedAtAction: boolean;
4570
4570
  evidence?: {
4571
- id: string;
4571
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4572
4572
  label: string;
4573
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4573
+ id: string;
4574
4574
  capture: "at_action" | "historical_lookup" | "fixture";
4575
4575
  locator?: string | undefined;
4576
4576
  }[] | undefined;
@@ -4583,64 +4583,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4583
4583
  recallReceiptId: string;
4584
4584
  staleDecisionAbsent: boolean;
4585
4585
  evidence?: {
4586
- id: string;
4586
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4587
4587
  label: string;
4588
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4588
+ id: string;
4589
4589
  capture: "at_action" | "historical_lookup" | "fixture";
4590
4590
  locator?: string | undefined;
4591
4591
  }[] | undefined;
4592
4592
  } | {
4593
- summary: string;
4594
4593
  kind: "mission_completed";
4594
+ summary: string;
4595
4595
  outcome: "failed" | "recovered" | "inconclusive";
4596
4596
  evidence?: {
4597
- id: string;
4597
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4598
4598
  label: string;
4599
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4599
+ id: string;
4600
4600
  capture: "at_action" | "historical_lookup" | "fixture";
4601
4601
  locator?: string | undefined;
4602
4602
  }[] | undefined;
4603
4603
  }>;
4604
4604
  }, "strict", z.ZodTypeAny, {
4605
- namespace: string;
4606
- recordedAt: string;
4607
4605
  schemaVersion: "1";
4606
+ recordedAt: string;
4608
4607
  payload: {
4609
4608
  kind: "mission_started";
4610
4609
  title: string;
4611
4610
  evidence: {
4612
- id: string;
4611
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4613
4612
  label: string;
4614
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4613
+ id: string;
4615
4614
  capture: "at_action" | "historical_lookup" | "fixture";
4616
4615
  locator?: string | undefined;
4617
4616
  }[];
4618
4617
  objective: string;
4619
4618
  runMode: "replay" | "fixture" | "live";
4620
4619
  } | {
4621
- label: string;
4622
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4623
4620
  kind: "agent_status";
4621
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4622
+ label: string;
4624
4623
  role: string;
4625
4624
  agentId: string;
4626
4625
  sessionId: string;
4627
4626
  evidence: {
4628
- id: string;
4627
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4629
4628
  label: string;
4630
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4629
+ id: string;
4631
4630
  capture: "at_action" | "historical_lookup" | "fixture";
4632
4631
  locator?: string | undefined;
4633
4632
  }[];
4634
4633
  detail?: string | undefined;
4635
4634
  } | {
4636
- summary: string;
4637
4635
  kind: "agent_output";
4636
+ summary: string;
4638
4637
  agentId: string;
4639
4638
  sessionId: string;
4640
4639
  evidence: {
4641
- id: string;
4640
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4642
4641
  label: string;
4643
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4642
+ id: string;
4644
4643
  capture: "at_action" | "historical_lookup" | "fixture";
4645
4644
  locator?: string | undefined;
4646
4645
  }[];
@@ -4651,9 +4650,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4651
4650
  statement: string;
4652
4651
  sessionId: string;
4653
4652
  evidence: {
4654
- id: string;
4653
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4655
4654
  label: string;
4656
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4655
+ id: string;
4657
4656
  capture: "at_action" | "historical_lookup" | "fixture";
4658
4657
  locator?: string | undefined;
4659
4658
  }[];
@@ -4661,12 +4660,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4661
4660
  decisionId: string;
4662
4661
  confidence?: number | undefined;
4663
4662
  } | {
4664
- summary: string;
4665
4663
  kind: "conflict_detected";
4664
+ summary: string;
4666
4665
  evidence: {
4667
- id: string;
4666
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4668
4667
  label: string;
4669
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4668
+ id: string;
4670
4669
  capture: "at_action" | "historical_lookup" | "fixture";
4671
4670
  locator?: string | undefined;
4672
4671
  }[];
@@ -4674,14 +4673,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4674
4673
  decisionIds: string[];
4675
4674
  agentIds: string[];
4676
4675
  } | {
4676
+ kind: "test_result";
4677
4677
  summary: string;
4678
4678
  status: "error" | "failed" | "passed";
4679
- kind: "test_result";
4680
4679
  command: string;
4681
4680
  evidence: {
4682
- id: string;
4681
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4683
4682
  label: string;
4684
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4683
+ id: string;
4685
4684
  capture: "at_action" | "historical_lookup" | "fixture";
4686
4685
  locator?: string | undefined;
4687
4686
  }[];
@@ -4694,9 +4693,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4694
4693
  statement: string;
4695
4694
  rationale: string;
4696
4695
  evidence: {
4697
- id: string;
4696
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4698
4697
  label: string;
4699
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4698
+ id: string;
4700
4699
  capture: "at_action" | "historical_lookup" | "fixture";
4701
4700
  locator?: string | undefined;
4702
4701
  }[];
@@ -4708,25 +4707,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4708
4707
  } | {
4709
4708
  kind: "correction_approved";
4710
4709
  evidence: {
4711
- id: string;
4710
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4712
4711
  label: string;
4713
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4712
+ id: string;
4714
4713
  capture: "at_action" | "historical_lookup" | "fixture";
4715
4714
  locator?: string | undefined;
4716
4715
  }[];
4717
4716
  correctionId: string;
4718
4717
  approvedBy: {
4719
- id: string;
4720
- label: string;
4721
4718
  kind: "agent" | "human";
4719
+ label: string;
4720
+ id: string;
4722
4721
  };
4723
4722
  note?: string | undefined;
4724
4723
  } | {
4725
4724
  kind: "decision_superseded";
4726
4725
  evidence: {
4727
- id: string;
4726
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4728
4727
  label: string;
4729
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4728
+ id: string;
4730
4729
  capture: "at_action" | "historical_lookup" | "fixture";
4731
4730
  locator?: string | undefined;
4732
4731
  }[];
@@ -4739,9 +4738,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4739
4738
  agentId: string;
4740
4739
  sessionId: string;
4741
4740
  evidence: {
4742
- id: string;
4741
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4743
4742
  label: string;
4744
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4743
+ id: string;
4745
4744
  capture: "at_action" | "historical_lookup" | "fixture";
4746
4745
  locator?: string | undefined;
4747
4746
  }[];
@@ -4753,9 +4752,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4753
4752
  agentId: string;
4754
4753
  sessionId: string;
4755
4754
  evidence: {
4756
- id: string;
4755
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4757
4756
  label: string;
4758
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4757
+ id: string;
4759
4758
  capture: "at_action" | "historical_lookup" | "fixture";
4760
4759
  locator?: string | undefined;
4761
4760
  }[];
@@ -4764,63 +4763,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4764
4763
  recallReceiptId: string;
4765
4764
  staleDecisionAbsent: boolean;
4766
4765
  } | {
4767
- summary: string;
4768
4766
  kind: "mission_completed";
4767
+ summary: string;
4769
4768
  outcome: "failed" | "recovered" | "inconclusive";
4770
4769
  evidence: {
4771
- id: string;
4770
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4772
4771
  label: string;
4773
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4772
+ id: string;
4774
4773
  capture: "at_action" | "historical_lookup" | "fixture";
4775
4774
  locator?: string | undefined;
4776
4775
  }[];
4777
4776
  };
4777
+ namespace: string;
4778
4778
  eventId: string;
4779
4779
  occurredAt: string;
4780
4780
  missionId: string;
4781
4781
  idempotencyKey?: string | undefined;
4782
4782
  authenticatedPrincipal?: string | undefined;
4783
4783
  }, {
4784
- namespace: string;
4785
- recordedAt: string;
4786
4784
  schemaVersion: "1";
4785
+ recordedAt: string;
4787
4786
  payload: {
4788
4787
  kind: "mission_started";
4789
4788
  title: string;
4790
4789
  objective: string;
4791
4790
  runMode: "replay" | "fixture" | "live";
4792
4791
  evidence?: {
4793
- id: string;
4792
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4794
4793
  label: string;
4795
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4794
+ id: string;
4796
4795
  capture: "at_action" | "historical_lookup" | "fixture";
4797
4796
  locator?: string | undefined;
4798
4797
  }[] | undefined;
4799
4798
  } | {
4800
- label: string;
4801
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4802
4799
  kind: "agent_status";
4800
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4801
+ label: string;
4803
4802
  role: string;
4804
4803
  agentId: string;
4805
4804
  sessionId: string;
4806
4805
  detail?: string | undefined;
4807
4806
  evidence?: {
4808
- id: string;
4807
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4809
4808
  label: string;
4810
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4809
+ id: string;
4811
4810
  capture: "at_action" | "historical_lookup" | "fixture";
4812
4811
  locator?: string | undefined;
4813
4812
  }[] | undefined;
4814
4813
  } | {
4815
- summary: string;
4816
4814
  kind: "agent_output";
4815
+ summary: string;
4817
4816
  agentId: string;
4818
4817
  sessionId: string;
4819
4818
  outputId: string;
4820
4819
  evidence?: {
4821
- id: string;
4820
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4822
4821
  label: string;
4823
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4822
+ id: string;
4824
4823
  capture: "at_action" | "historical_lookup" | "fixture";
4825
4824
  locator?: string | undefined;
4826
4825
  }[] | undefined;
@@ -4833,37 +4832,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4833
4832
  decisionId: string;
4834
4833
  confidence?: number | undefined;
4835
4834
  evidence?: {
4836
- id: string;
4835
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4837
4836
  label: string;
4838
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4837
+ id: string;
4839
4838
  capture: "at_action" | "historical_lookup" | "fixture";
4840
4839
  locator?: string | undefined;
4841
4840
  }[] | undefined;
4842
4841
  } | {
4843
- summary: string;
4844
4842
  kind: "conflict_detected";
4843
+ summary: string;
4845
4844
  conflictId: string;
4846
4845
  decisionIds: string[];
4847
4846
  agentIds: string[];
4848
4847
  evidence?: {
4849
- id: string;
4848
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4850
4849
  label: string;
4851
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4850
+ id: string;
4852
4851
  capture: "at_action" | "historical_lookup" | "fixture";
4853
4852
  locator?: string | undefined;
4854
4853
  }[] | undefined;
4855
4854
  } | {
4855
+ kind: "test_result";
4856
4856
  summary: string;
4857
4857
  status: "error" | "failed" | "passed";
4858
- kind: "test_result";
4859
4858
  command: string;
4860
4859
  decisionId: string;
4861
4860
  testId: string;
4862
4861
  durationMs?: number | undefined;
4863
4862
  evidence?: {
4864
- id: string;
4863
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4865
4864
  label: string;
4866
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4865
+ id: string;
4867
4866
  capture: "at_action" | "historical_lookup" | "fixture";
4868
4867
  locator?: string | undefined;
4869
4868
  }[] | undefined;
@@ -4878,9 +4877,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4878
4877
  supersedesDecisionIds: string[];
4879
4878
  proposedBy: string;
4880
4879
  evidence?: {
4881
- id: string;
4880
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4882
4881
  label: string;
4883
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4882
+ id: string;
4884
4883
  capture: "at_action" | "historical_lookup" | "fixture";
4885
4884
  locator?: string | undefined;
4886
4885
  }[] | undefined;
@@ -4888,15 +4887,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4888
4887
  kind: "correction_approved";
4889
4888
  correctionId: string;
4890
4889
  approvedBy: {
4891
- id: string;
4892
- label: string;
4893
4890
  kind: "agent" | "human";
4891
+ label: string;
4892
+ id: string;
4894
4893
  };
4895
4894
  note?: string | undefined;
4896
4895
  evidence?: {
4897
- id: string;
4896
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4898
4897
  label: string;
4899
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4898
+ id: string;
4900
4899
  capture: "at_action" | "historical_lookup" | "fixture";
4901
4900
  locator?: string | undefined;
4902
4901
  }[] | undefined;
@@ -4906,9 +4905,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4906
4905
  correctionId: string;
4907
4906
  replacementDecisionId: string;
4908
4907
  evidence?: {
4909
- id: string;
4908
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4910
4909
  label: string;
4911
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4910
+ id: string;
4912
4911
  capture: "at_action" | "historical_lookup" | "fixture";
4913
4912
  locator?: string | undefined;
4914
4913
  }[] | undefined;
@@ -4921,9 +4920,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4921
4920
  recallReceiptId: string;
4922
4921
  capturedAtAction: boolean;
4923
4922
  evidence?: {
4924
- id: string;
4923
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4925
4924
  label: string;
4926
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4925
+ id: string;
4927
4926
  capture: "at_action" | "historical_lookup" | "fixture";
4928
4927
  locator?: string | undefined;
4929
4928
  }[] | undefined;
@@ -4936,24 +4935,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4936
4935
  recallReceiptId: string;
4937
4936
  staleDecisionAbsent: boolean;
4938
4937
  evidence?: {
4939
- id: string;
4938
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4940
4939
  label: string;
4941
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4940
+ id: string;
4942
4941
  capture: "at_action" | "historical_lookup" | "fixture";
4943
4942
  locator?: string | undefined;
4944
4943
  }[] | undefined;
4945
4944
  } | {
4946
- summary: string;
4947
4945
  kind: "mission_completed";
4946
+ summary: string;
4948
4947
  outcome: "failed" | "recovered" | "inconclusive";
4949
4948
  evidence?: {
4950
- id: string;
4949
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4951
4950
  label: string;
4952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4951
+ id: string;
4953
4952
  capture: "at_action" | "historical_lookup" | "fixture";
4954
4953
  locator?: string | undefined;
4955
4954
  }[] | undefined;
4956
4955
  };
4956
+ namespace: string;
4957
4957
  eventId: string;
4958
4958
  occurredAt: string;
4959
4959
  missionId: string;