@remnic/core 9.69.35 → 9.69.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-authorization-probe.d.ts +1 -1
  3. package/dist/access-boundary.d.ts +1 -1
  4. package/dist/access-extraction-force-flush.d.ts +1 -1
  5. package/dist/access-http-briefing.d.ts +1 -1
  6. package/dist/access-http-lcm-compaction.d.ts +1 -1
  7. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  8. package/dist/access-http-offline-stream.d.ts +1 -1
  9. package/dist/access-http.d.ts +2 -2
  10. package/dist/access-lcm-surface.d.ts +1 -1
  11. package/dist/access-mcp.d.ts +1 -1
  12. package/dist/access-observe-write-surface.d.ts +1 -1
  13. package/dist/access-operations.d.ts +5 -5
  14. package/dist/access-recall-concurrency.d.ts +1 -1
  15. package/dist/access-recall-response.d.ts +1 -1
  16. package/dist/access-recall-surface.d.ts +1 -1
  17. package/dist/access-schema.d.ts +89 -89
  18. package/dist/{access-service-CKu5ixg9.d.ts → access-service-Cl_x57xR.d.ts} +64 -64
  19. package/dist/access-service-helpers.d.ts +1 -1
  20. package/dist/access-service.d.ts +1 -1
  21. package/dist/access-surface-catalog.d.ts +1 -1
  22. package/dist/{cli-Bk7Ctql4.d.ts → cli-p813oxbm.d.ts} +1 -1
  23. package/dist/cli.d.ts +2 -2
  24. package/dist/deep-recall-http-glue.d.ts +1 -1
  25. package/dist/deep-recall-mcp-tools.d.ts +1 -1
  26. package/dist/external-wiki-access.d.ts +1 -1
  27. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  28. package/dist/index.d.ts +680 -680
  29. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  30. package/dist/memory-subject-cli.d.ts +1 -1
  31. package/dist/memory-subject.d.ts +1 -1
  32. package/dist/{public-http-BetSQn7q.d.ts → public-http-C3bLjE-L.d.ts} +1 -1
  33. package/dist/schemas.d.ts +176 -176
  34. package/dist/shared-context/manager.d.ts +6 -6
  35. package/dist/support-passport/index.d.ts +4 -4
  36. package/dist/transfer/types.d.ts +78 -78
  37. package/dist/who-knows-cli.d.ts +1 -1
  38. package/dist/who-knows.d.ts +1 -1
  39. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -38,8 +38,8 @@ export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportO
38
38
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
39
39
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
40
40
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
41
- import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-CKu5ixg9.js';
42
- 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-CKu5ixg9.js';
41
+ import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-Cl_x57xR.js';
42
+ 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-Cl_x57xR.js';
43
43
  import { LocalLlmClient } from './local-llm.js';
44
44
  import { FallbackLlmClient } from './fallback-llm.js';
45
45
  export { FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -62,10 +62,10 @@ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatal
62
62
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
63
63
  export { storagePathHash } from './storage-paths.js';
64
64
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
65
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-Bk7Ctql4.js';
65
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-p813oxbm.js';
66
66
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
67
67
  export { CreateStoredGrantInput, DEFAULT_SUPPORT_PASSPORT_CONFIG, PersistedSupportPassportClassification, 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, createPersistedSupportPassportPrivateFileExclusion, createSupportPassportPrivateFileExclusion, decodeSupportPassportNamespaceAttributes, encodeSupportPassportNamespaceAttributes, excludeSupportPassportPrivateMemories, hasLiveSupportPassportCard, isSupportPassportPrivateMemory, isSupportPassportSourceEligible, notifySupportPassportCommitted, parseSupportPassportConfig, parseSupportPassportModelJob, projectSupportPassportCard, supportPassportStatIdentity, syncDirectoryForDurability } from './support-passport/index.js';
68
- 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-BetSQn7q.js';
68
+ 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-C3bLjE-L.js';
69
69
  import { z } from 'zod';
70
70
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
71
71
  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';
@@ -1322,15 +1322,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
1322
1322
  locator: z.ZodOptional<z.ZodString>;
1323
1323
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1324
1324
  }, "strict", z.ZodTypeAny, {
1325
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1326
- label: string;
1327
1325
  id: string;
1326
+ label: string;
1327
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1328
1328
  capture: "at_action" | "historical_lookup" | "fixture";
1329
1329
  locator?: string | undefined;
1330
1330
  }, {
1331
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1332
- label: string;
1333
1331
  id: string;
1332
+ label: string;
1333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1334
1334
  capture: "at_action" | "historical_lookup" | "fixture";
1335
1335
  locator?: string | undefined;
1336
1336
  }>;
@@ -1347,15 +1347,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1347
1347
  locator: z.ZodOptional<z.ZodString>;
1348
1348
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1349
1349
  }, "strict", z.ZodTypeAny, {
1350
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1351
- label: string;
1352
1350
  id: string;
1351
+ label: string;
1352
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1353
1353
  capture: "at_action" | "historical_lookup" | "fixture";
1354
1354
  locator?: string | undefined;
1355
1355
  }, {
1356
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1357
- label: string;
1358
1356
  id: string;
1357
+ label: string;
1358
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1359
1359
  capture: "at_action" | "historical_lookup" | "fixture";
1360
1360
  locator?: string | undefined;
1361
1361
  }>, "many">>;
@@ -1363,9 +1363,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1363
1363
  kind: "mission_started";
1364
1364
  title: string;
1365
1365
  evidence: {
1366
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1367
- label: string;
1368
1366
  id: string;
1367
+ label: string;
1368
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1369
1369
  capture: "at_action" | "historical_lookup" | "fixture";
1370
1370
  locator?: string | undefined;
1371
1371
  }[];
@@ -1377,9 +1377,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1377
1377
  objective: string;
1378
1378
  runMode: "replay" | "fixture" | "live";
1379
1379
  evidence?: {
1380
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1381
- label: string;
1382
1380
  id: string;
1381
+ label: string;
1382
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
1383
  capture: "at_action" | "historical_lookup" | "fixture";
1384
1384
  locator?: string | undefined;
1385
1385
  }[] | undefined;
@@ -1395,15 +1395,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1395
1395
  locator: z.ZodOptional<z.ZodString>;
1396
1396
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1397
1397
  }, "strict", z.ZodTypeAny, {
1398
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1399
- label: string;
1400
1398
  id: string;
1399
+ label: string;
1400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1401
1401
  capture: "at_action" | "historical_lookup" | "fixture";
1402
1402
  locator?: string | undefined;
1403
1403
  }, {
1404
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1405
- label: string;
1406
1404
  id: string;
1405
+ label: string;
1406
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1407
1407
  capture: "at_action" | "historical_lookup" | "fixture";
1408
1408
  locator?: string | undefined;
1409
1409
  }>, "many">>;
@@ -1411,32 +1411,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1411
1411
  sessionId: z.ZodString;
1412
1412
  kind: z.ZodLiteral<"agent_status">;
1413
1413
  }, "strict", z.ZodTypeAny, {
1414
- kind: "agent_status";
1415
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1416
1414
  label: string;
1415
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
1416
+ kind: "agent_status";
1417
1417
  role: string;
1418
1418
  agentId: string;
1419
1419
  sessionId: string;
1420
1420
  evidence: {
1421
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1422
- label: string;
1423
1421
  id: string;
1422
+ label: string;
1423
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1424
1424
  capture: "at_action" | "historical_lookup" | "fixture";
1425
1425
  locator?: string | undefined;
1426
1426
  }[];
1427
1427
  detail?: string | undefined;
1428
1428
  }, {
1429
- kind: "agent_status";
1430
- status: "failed" | "complete" | "blocked" | "idle" | "working";
1431
1429
  label: string;
1430
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
1431
+ kind: "agent_status";
1432
1432
  role: string;
1433
1433
  agentId: string;
1434
1434
  sessionId: string;
1435
1435
  detail?: string | undefined;
1436
1436
  evidence?: {
1437
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1438
- label: string;
1439
1437
  id: string;
1438
+ label: string;
1439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1440
1440
  capture: "at_action" | "historical_lookup" | "fixture";
1441
1441
  locator?: string | undefined;
1442
1442
  }[] | undefined;
@@ -1450,15 +1450,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1450
1450
  locator: z.ZodOptional<z.ZodString>;
1451
1451
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1452
1452
  }, "strict", z.ZodTypeAny, {
1453
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1454
- label: string;
1455
1453
  id: string;
1454
+ label: string;
1455
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
1456
  capture: "at_action" | "historical_lookup" | "fixture";
1457
1457
  locator?: string | undefined;
1458
1458
  }, {
1459
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1460
- label: string;
1461
1459
  id: string;
1460
+ label: string;
1461
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1462
1462
  capture: "at_action" | "historical_lookup" | "fixture";
1463
1463
  locator?: string | undefined;
1464
1464
  }>, "many">>;
@@ -1466,28 +1466,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1466
1466
  sessionId: z.ZodString;
1467
1467
  kind: z.ZodLiteral<"agent_output">;
1468
1468
  }, "strict", z.ZodTypeAny, {
1469
- kind: "agent_output";
1470
1469
  summary: string;
1470
+ kind: "agent_output";
1471
1471
  agentId: string;
1472
1472
  sessionId: string;
1473
1473
  evidence: {
1474
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1475
- label: string;
1476
1474
  id: string;
1475
+ label: string;
1476
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1477
1477
  capture: "at_action" | "historical_lookup" | "fixture";
1478
1478
  locator?: string | undefined;
1479
1479
  }[];
1480
1480
  outputId: string;
1481
1481
  }, {
1482
- kind: "agent_output";
1483
1482
  summary: string;
1483
+ kind: "agent_output";
1484
1484
  agentId: string;
1485
1485
  sessionId: string;
1486
1486
  outputId: string;
1487
1487
  evidence?: {
1488
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1489
- label: string;
1490
1488
  id: string;
1489
+ label: string;
1490
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1491
1491
  capture: "at_action" | "historical_lookup" | "fixture";
1492
1492
  locator?: string | undefined;
1493
1493
  }[] | undefined;
@@ -1503,15 +1503,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1503
1503
  locator: z.ZodOptional<z.ZodString>;
1504
1504
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1505
1505
  }, "strict", z.ZodTypeAny, {
1506
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1507
- label: string;
1508
1506
  id: string;
1507
+ label: string;
1508
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1509
1509
  capture: "at_action" | "historical_lookup" | "fixture";
1510
1510
  locator?: string | undefined;
1511
1511
  }, {
1512
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
- label: string;
1514
1512
  id: string;
1513
+ label: string;
1514
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1515
1515
  capture: "at_action" | "historical_lookup" | "fixture";
1516
1516
  locator?: string | undefined;
1517
1517
  }>, "many">>;
@@ -1524,9 +1524,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1524
1524
  statement: string;
1525
1525
  sessionId: string;
1526
1526
  evidence: {
1527
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1528
- label: string;
1529
1527
  id: string;
1528
+ label: string;
1529
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1530
1530
  capture: "at_action" | "historical_lookup" | "fixture";
1531
1531
  locator?: string | undefined;
1532
1532
  }[];
@@ -1542,9 +1542,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1542
1542
  decisionId: string;
1543
1543
  confidence?: number | undefined;
1544
1544
  evidence?: {
1545
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1546
- label: string;
1547
1545
  id: string;
1546
+ label: string;
1547
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1548
1548
  capture: "at_action" | "historical_lookup" | "fixture";
1549
1549
  locator?: string | undefined;
1550
1550
  }[] | undefined;
@@ -1561,25 +1561,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1561
1561
  locator: z.ZodOptional<z.ZodString>;
1562
1562
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1563
1563
  }, "strict", z.ZodTypeAny, {
1564
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1565
- label: string;
1566
1564
  id: string;
1565
+ label: string;
1566
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1567
1567
  capture: "at_action" | "historical_lookup" | "fixture";
1568
1568
  locator?: string | undefined;
1569
1569
  }, {
1570
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1571
- label: string;
1572
1570
  id: string;
1571
+ label: string;
1572
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1573
1573
  capture: "at_action" | "historical_lookup" | "fixture";
1574
1574
  locator?: string | undefined;
1575
1575
  }>, "many">>;
1576
1576
  }, "strict", z.ZodTypeAny, {
1577
- kind: "conflict_detected";
1578
1577
  summary: string;
1578
+ kind: "conflict_detected";
1579
1579
  evidence: {
1580
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1581
- label: string;
1582
1580
  id: string;
1581
+ label: string;
1582
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1583
1583
  capture: "at_action" | "historical_lookup" | "fixture";
1584
1584
  locator?: string | undefined;
1585
1585
  }[];
@@ -1587,15 +1587,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1587
1587
  decisionIds: string[];
1588
1588
  agentIds: string[];
1589
1589
  }, {
1590
- kind: "conflict_detected";
1591
1590
  summary: string;
1591
+ kind: "conflict_detected";
1592
1592
  conflictId: string;
1593
1593
  decisionIds: string[];
1594
1594
  agentIds: string[];
1595
1595
  evidence?: {
1596
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1597
- label: string;
1598
1596
  id: string;
1597
+ label: string;
1598
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1599
1599
  capture: "at_action" | "historical_lookup" | "fixture";
1600
1600
  locator?: string | undefined;
1601
1601
  }[] | undefined;
@@ -1615,27 +1615,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1615
1615
  locator: z.ZodOptional<z.ZodString>;
1616
1616
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1617
1617
  }, "strict", z.ZodTypeAny, {
1618
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1619
- label: string;
1620
1618
  id: string;
1619
+ label: string;
1620
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1621
1621
  capture: "at_action" | "historical_lookup" | "fixture";
1622
1622
  locator?: string | undefined;
1623
1623
  }, {
1624
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1625
- label: string;
1626
1624
  id: string;
1625
+ label: string;
1626
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1627
1627
  capture: "at_action" | "historical_lookup" | "fixture";
1628
1628
  locator?: string | undefined;
1629
1629
  }>, "many">>;
1630
1630
  }, "strict", z.ZodTypeAny, {
1631
- kind: "test_result";
1632
1631
  summary: string;
1633
1632
  status: "error" | "failed" | "passed";
1633
+ kind: "test_result";
1634
1634
  command: string;
1635
1635
  evidence: {
1636
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1637
- label: string;
1638
1636
  id: string;
1637
+ label: string;
1638
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1639
1639
  capture: "at_action" | "historical_lookup" | "fixture";
1640
1640
  locator?: string | undefined;
1641
1641
  }[];
@@ -1644,17 +1644,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1644
1644
  durationMs?: number | undefined;
1645
1645
  correctionId?: string | undefined;
1646
1646
  }, {
1647
- kind: "test_result";
1648
1647
  summary: string;
1649
1648
  status: "error" | "failed" | "passed";
1649
+ kind: "test_result";
1650
1650
  command: string;
1651
1651
  decisionId: string;
1652
1652
  testId: string;
1653
1653
  durationMs?: number | undefined;
1654
1654
  evidence?: {
1655
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1656
- label: string;
1657
1655
  id: string;
1656
+ label: string;
1657
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1658
1658
  capture: "at_action" | "historical_lookup" | "fixture";
1659
1659
  locator?: string | undefined;
1660
1660
  }[] | undefined;
@@ -1675,15 +1675,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1675
1675
  locator: z.ZodOptional<z.ZodString>;
1676
1676
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1677
1677
  }, "strict", z.ZodTypeAny, {
1678
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1679
- label: string;
1680
1678
  id: string;
1679
+ label: string;
1680
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1681
1681
  capture: "at_action" | "historical_lookup" | "fixture";
1682
1682
  locator?: string | undefined;
1683
1683
  }, {
1684
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1685
- label: string;
1686
1684
  id: string;
1685
+ label: string;
1686
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1687
1687
  capture: "at_action" | "historical_lookup" | "fixture";
1688
1688
  locator?: string | undefined;
1689
1689
  }>, "many">>;
@@ -1692,9 +1692,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1692
1692
  statement: string;
1693
1693
  rationale: string;
1694
1694
  evidence: {
1695
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1696
- label: string;
1697
1695
  id: string;
1696
+ label: string;
1697
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1698
1698
  capture: "at_action" | "historical_lookup" | "fixture";
1699
1699
  locator?: string | undefined;
1700
1700
  }[];
@@ -1713,9 +1713,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1713
1713
  supersedesDecisionIds: string[];
1714
1714
  proposedBy: string;
1715
1715
  evidence?: {
1716
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1717
- label: string;
1718
1716
  id: string;
1717
+ label: string;
1718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1719
1719
  capture: "at_action" | "historical_lookup" | "fixture";
1720
1720
  locator?: string | undefined;
1721
1721
  }[] | undefined;
@@ -1727,13 +1727,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1727
1727
  id: z.ZodString;
1728
1728
  label: z.ZodString;
1729
1729
  }, "strict", z.ZodTypeAny, {
1730
- kind: "agent" | "human";
1731
- label: string;
1732
1730
  id: string;
1733
- }, {
1734
- kind: "agent" | "human";
1735
1731
  label: string;
1732
+ kind: "agent" | "human";
1733
+ }, {
1736
1734
  id: string;
1735
+ label: string;
1736
+ kind: "agent" | "human";
1737
1737
  }>;
1738
1738
  note: z.ZodOptional<z.ZodString>;
1739
1739
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1743,47 +1743,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1743
1743
  locator: z.ZodOptional<z.ZodString>;
1744
1744
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1745
1745
  }, "strict", z.ZodTypeAny, {
1746
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1747
- label: string;
1748
1746
  id: string;
1747
+ label: string;
1748
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1749
1749
  capture: "at_action" | "historical_lookup" | "fixture";
1750
1750
  locator?: string | undefined;
1751
1751
  }, {
1752
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1753
- label: string;
1754
1752
  id: string;
1753
+ label: string;
1754
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1755
1755
  capture: "at_action" | "historical_lookup" | "fixture";
1756
1756
  locator?: string | undefined;
1757
1757
  }>, "many">>;
1758
1758
  }, "strict", z.ZodTypeAny, {
1759
1759
  kind: "correction_approved";
1760
1760
  evidence: {
1761
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1762
- label: string;
1763
1761
  id: string;
1762
+ label: string;
1763
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1764
1764
  capture: "at_action" | "historical_lookup" | "fixture";
1765
1765
  locator?: string | undefined;
1766
1766
  }[];
1767
1767
  correctionId: string;
1768
1768
  approvedBy: {
1769
- kind: "agent" | "human";
1770
- label: string;
1771
1769
  id: string;
1770
+ label: string;
1771
+ kind: "agent" | "human";
1772
1772
  };
1773
1773
  note?: string | undefined;
1774
1774
  }, {
1775
1775
  kind: "correction_approved";
1776
1776
  correctionId: string;
1777
1777
  approvedBy: {
1778
- kind: "agent" | "human";
1779
- label: string;
1780
1778
  id: string;
1779
+ label: string;
1780
+ kind: "agent" | "human";
1781
1781
  };
1782
1782
  note?: string | undefined;
1783
1783
  evidence?: {
1784
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1785
- label: string;
1786
1784
  id: string;
1785
+ label: string;
1786
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1787
1787
  capture: "at_action" | "historical_lookup" | "fixture";
1788
1788
  locator?: string | undefined;
1789
1789
  }[] | undefined;
@@ -1799,24 +1799,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1799
1799
  locator: z.ZodOptional<z.ZodString>;
1800
1800
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1801
1801
  }, "strict", z.ZodTypeAny, {
1802
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1803
- label: string;
1804
1802
  id: string;
1803
+ label: string;
1804
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1805
1805
  capture: "at_action" | "historical_lookup" | "fixture";
1806
1806
  locator?: string | undefined;
1807
1807
  }, {
1808
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1809
- label: string;
1810
1808
  id: string;
1809
+ label: string;
1810
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1811
1811
  capture: "at_action" | "historical_lookup" | "fixture";
1812
1812
  locator?: string | undefined;
1813
1813
  }>, "many">>;
1814
1814
  }, "strict", z.ZodTypeAny, {
1815
1815
  kind: "decision_superseded";
1816
1816
  evidence: {
1817
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1818
- label: string;
1819
1817
  id: string;
1818
+ label: string;
1819
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1820
1820
  capture: "at_action" | "historical_lookup" | "fixture";
1821
1821
  locator?: string | undefined;
1822
1822
  }[];
@@ -1829,9 +1829,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1829
1829
  correctionId: string;
1830
1830
  replacementDecisionId: string;
1831
1831
  evidence?: {
1832
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1833
- label: string;
1834
1832
  id: string;
1833
+ label: string;
1834
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1835
1835
  capture: "at_action" | "historical_lookup" | "fixture";
1836
1836
  locator?: string | undefined;
1837
1837
  }[] | undefined;
@@ -1847,15 +1847,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1847
1847
  locator: z.ZodOptional<z.ZodString>;
1848
1848
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1849
1849
  }, "strict", z.ZodTypeAny, {
1850
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1851
- label: string;
1852
1850
  id: string;
1851
+ label: string;
1852
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1853
1853
  capture: "at_action" | "historical_lookup" | "fixture";
1854
1854
  locator?: string | undefined;
1855
1855
  }, {
1856
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1857
- label: string;
1858
1856
  id: string;
1857
+ label: string;
1858
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1859
1859
  capture: "at_action" | "historical_lookup" | "fixture";
1860
1860
  locator?: string | undefined;
1861
1861
  }>, "many">>;
@@ -1868,9 +1868,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1868
1868
  agentId: string;
1869
1869
  sessionId: string;
1870
1870
  evidence: {
1871
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1872
- label: string;
1873
1871
  id: string;
1872
+ label: string;
1873
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1874
1874
  capture: "at_action" | "historical_lookup" | "fixture";
1875
1875
  locator?: string | undefined;
1876
1876
  }[];
@@ -1886,9 +1886,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1886
1886
  recallReceiptId: string;
1887
1887
  capturedAtAction: boolean;
1888
1888
  evidence?: {
1889
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1890
- label: string;
1891
1889
  id: string;
1890
+ label: string;
1891
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1892
1892
  capture: "at_action" | "historical_lookup" | "fixture";
1893
1893
  locator?: string | undefined;
1894
1894
  }[] | undefined;
@@ -1904,15 +1904,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1904
1904
  locator: z.ZodOptional<z.ZodString>;
1905
1905
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1906
1906
  }, "strict", z.ZodTypeAny, {
1907
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
- label: string;
1909
1907
  id: string;
1908
+ label: string;
1909
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1910
1910
  capture: "at_action" | "historical_lookup" | "fixture";
1911
1911
  locator?: string | undefined;
1912
1912
  }, {
1913
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1914
- label: string;
1915
1913
  id: string;
1914
+ label: string;
1915
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1916
1916
  capture: "at_action" | "historical_lookup" | "fixture";
1917
1917
  locator?: string | undefined;
1918
1918
  }>, "many">>;
@@ -1924,9 +1924,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1924
1924
  agentId: string;
1925
1925
  sessionId: string;
1926
1926
  evidence: {
1927
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1928
- label: string;
1929
1927
  id: string;
1928
+ label: string;
1929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1930
1930
  capture: "at_action" | "historical_lookup" | "fixture";
1931
1931
  locator?: string | undefined;
1932
1932
  }[];
@@ -1943,9 +1943,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1943
1943
  recallReceiptId: string;
1944
1944
  staleDecisionAbsent: boolean;
1945
1945
  evidence?: {
1946
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1947
- label: string;
1948
1946
  id: string;
1947
+ label: string;
1948
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1949
1949
  capture: "at_action" | "historical_lookup" | "fixture";
1950
1950
  locator?: string | undefined;
1951
1951
  }[] | undefined;
@@ -1960,37 +1960,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1960
1960
  locator: z.ZodOptional<z.ZodString>;
1961
1961
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1962
1962
  }, "strict", z.ZodTypeAny, {
1963
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1964
- label: string;
1965
1963
  id: string;
1964
+ label: string;
1965
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1966
1966
  capture: "at_action" | "historical_lookup" | "fixture";
1967
1967
  locator?: string | undefined;
1968
1968
  }, {
1969
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1970
- label: string;
1971
1969
  id: string;
1970
+ label: string;
1971
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
1972
  capture: "at_action" | "historical_lookup" | "fixture";
1973
1973
  locator?: string | undefined;
1974
1974
  }>, "many">>;
1975
1975
  }, "strict", z.ZodTypeAny, {
1976
- kind: "mission_completed";
1977
1976
  summary: string;
1977
+ kind: "mission_completed";
1978
1978
  outcome: "failed" | "recovered" | "inconclusive";
1979
1979
  evidence: {
1980
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1981
- label: string;
1982
1980
  id: string;
1981
+ label: string;
1982
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1983
1983
  capture: "at_action" | "historical_lookup" | "fixture";
1984
1984
  locator?: string | undefined;
1985
1985
  }[];
1986
1986
  }, {
1987
- kind: "mission_completed";
1988
1987
  summary: string;
1988
+ kind: "mission_completed";
1989
1989
  outcome: "failed" | "recovered" | "inconclusive";
1990
1990
  evidence?: {
1991
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1992
- label: string;
1993
1991
  id: string;
1992
+ label: string;
1993
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1994
1994
  capture: "at_action" | "historical_lookup" | "fixture";
1995
1995
  locator?: string | undefined;
1996
1996
  }[] | undefined;
@@ -1998,38 +1998,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1998
1998
  kind: "mission_started";
1999
1999
  title: string;
2000
2000
  evidence: {
2001
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2002
- label: string;
2003
2001
  id: string;
2002
+ label: string;
2003
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2004
2004
  capture: "at_action" | "historical_lookup" | "fixture";
2005
2005
  locator?: string | undefined;
2006
2006
  }[];
2007
2007
  objective: string;
2008
2008
  runMode: "replay" | "fixture" | "live";
2009
2009
  } | {
2010
- kind: "agent_status";
2011
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2012
2010
  label: string;
2011
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
2012
+ kind: "agent_status";
2013
2013
  role: string;
2014
2014
  agentId: string;
2015
2015
  sessionId: string;
2016
2016
  evidence: {
2017
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2018
- label: string;
2019
2017
  id: string;
2018
+ label: string;
2019
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2020
2020
  capture: "at_action" | "historical_lookup" | "fixture";
2021
2021
  locator?: string | undefined;
2022
2022
  }[];
2023
2023
  detail?: string | undefined;
2024
2024
  } | {
2025
- kind: "agent_output";
2026
2025
  summary: string;
2026
+ kind: "agent_output";
2027
2027
  agentId: string;
2028
2028
  sessionId: string;
2029
2029
  evidence: {
2030
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2031
- label: string;
2032
2030
  id: string;
2031
+ label: string;
2032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2033
2033
  capture: "at_action" | "historical_lookup" | "fixture";
2034
2034
  locator?: string | undefined;
2035
2035
  }[];
@@ -2040,9 +2040,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2040
2040
  statement: string;
2041
2041
  sessionId: string;
2042
2042
  evidence: {
2043
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2044
- label: string;
2045
2043
  id: string;
2044
+ label: string;
2045
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2046
2046
  capture: "at_action" | "historical_lookup" | "fixture";
2047
2047
  locator?: string | undefined;
2048
2048
  }[];
@@ -2050,12 +2050,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2050
2050
  decisionId: string;
2051
2051
  confidence?: number | undefined;
2052
2052
  } | {
2053
- kind: "conflict_detected";
2054
2053
  summary: string;
2054
+ kind: "conflict_detected";
2055
2055
  evidence: {
2056
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2057
- label: string;
2058
2056
  id: string;
2057
+ label: string;
2058
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2059
2059
  capture: "at_action" | "historical_lookup" | "fixture";
2060
2060
  locator?: string | undefined;
2061
2061
  }[];
@@ -2063,14 +2063,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2063
2063
  decisionIds: string[];
2064
2064
  agentIds: string[];
2065
2065
  } | {
2066
- kind: "test_result";
2067
2066
  summary: string;
2068
2067
  status: "error" | "failed" | "passed";
2068
+ kind: "test_result";
2069
2069
  command: string;
2070
2070
  evidence: {
2071
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2072
- label: string;
2073
2071
  id: string;
2072
+ label: string;
2073
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2074
2074
  capture: "at_action" | "historical_lookup" | "fixture";
2075
2075
  locator?: string | undefined;
2076
2076
  }[];
@@ -2083,9 +2083,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2083
2083
  statement: string;
2084
2084
  rationale: string;
2085
2085
  evidence: {
2086
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2087
- label: string;
2088
2086
  id: string;
2087
+ label: string;
2088
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2089
2089
  capture: "at_action" | "historical_lookup" | "fixture";
2090
2090
  locator?: string | undefined;
2091
2091
  }[];
@@ -2097,25 +2097,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2097
2097
  } | {
2098
2098
  kind: "correction_approved";
2099
2099
  evidence: {
2100
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2101
- label: string;
2102
2100
  id: string;
2101
+ label: string;
2102
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2103
2103
  capture: "at_action" | "historical_lookup" | "fixture";
2104
2104
  locator?: string | undefined;
2105
2105
  }[];
2106
2106
  correctionId: string;
2107
2107
  approvedBy: {
2108
- kind: "agent" | "human";
2109
- label: string;
2110
2108
  id: string;
2109
+ label: string;
2110
+ kind: "agent" | "human";
2111
2111
  };
2112
2112
  note?: string | undefined;
2113
2113
  } | {
2114
2114
  kind: "decision_superseded";
2115
2115
  evidence: {
2116
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2117
- label: string;
2118
2116
  id: string;
2117
+ label: string;
2118
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2119
2119
  capture: "at_action" | "historical_lookup" | "fixture";
2120
2120
  locator?: string | undefined;
2121
2121
  }[];
@@ -2128,9 +2128,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2128
2128
  agentId: string;
2129
2129
  sessionId: string;
2130
2130
  evidence: {
2131
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2132
- label: string;
2133
2131
  id: string;
2132
+ label: string;
2133
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2134
2134
  capture: "at_action" | "historical_lookup" | "fixture";
2135
2135
  locator?: string | undefined;
2136
2136
  }[];
@@ -2142,9 +2142,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2142
2142
  agentId: string;
2143
2143
  sessionId: string;
2144
2144
  evidence: {
2145
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2146
- label: string;
2147
2145
  id: string;
2146
+ label: string;
2147
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2148
2148
  capture: "at_action" | "historical_lookup" | "fixture";
2149
2149
  locator?: string | undefined;
2150
2150
  }[];
@@ -2153,13 +2153,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2153
2153
  recallReceiptId: string;
2154
2154
  staleDecisionAbsent: boolean;
2155
2155
  } | {
2156
- kind: "mission_completed";
2157
2156
  summary: string;
2157
+ kind: "mission_completed";
2158
2158
  outcome: "failed" | "recovered" | "inconclusive";
2159
2159
  evidence: {
2160
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2161
- label: string;
2162
2160
  id: string;
2161
+ label: string;
2162
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2163
2163
  capture: "at_action" | "historical_lookup" | "fixture";
2164
2164
  locator?: string | undefined;
2165
2165
  }[];
@@ -2169,37 +2169,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2169
2169
  objective: string;
2170
2170
  runMode: "replay" | "fixture" | "live";
2171
2171
  evidence?: {
2172
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2173
- label: string;
2174
2172
  id: string;
2173
+ label: string;
2174
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2175
2175
  capture: "at_action" | "historical_lookup" | "fixture";
2176
2176
  locator?: string | undefined;
2177
2177
  }[] | undefined;
2178
2178
  } | {
2179
- kind: "agent_status";
2180
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2181
2179
  label: string;
2180
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
2181
+ kind: "agent_status";
2182
2182
  role: string;
2183
2183
  agentId: string;
2184
2184
  sessionId: string;
2185
2185
  detail?: string | undefined;
2186
2186
  evidence?: {
2187
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2188
- label: string;
2189
2187
  id: string;
2188
+ label: string;
2189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2190
2190
  capture: "at_action" | "historical_lookup" | "fixture";
2191
2191
  locator?: string | undefined;
2192
2192
  }[] | undefined;
2193
2193
  } | {
2194
- kind: "agent_output";
2195
2194
  summary: string;
2195
+ kind: "agent_output";
2196
2196
  agentId: string;
2197
2197
  sessionId: string;
2198
2198
  outputId: string;
2199
2199
  evidence?: {
2200
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2201
- label: string;
2202
2200
  id: string;
2201
+ label: string;
2202
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2203
2203
  capture: "at_action" | "historical_lookup" | "fixture";
2204
2204
  locator?: string | undefined;
2205
2205
  }[] | undefined;
@@ -2212,37 +2212,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2212
2212
  decisionId: string;
2213
2213
  confidence?: number | undefined;
2214
2214
  evidence?: {
2215
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2216
- label: string;
2217
2215
  id: string;
2216
+ label: string;
2217
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2218
2218
  capture: "at_action" | "historical_lookup" | "fixture";
2219
2219
  locator?: string | undefined;
2220
2220
  }[] | undefined;
2221
2221
  } | {
2222
- kind: "conflict_detected";
2223
2222
  summary: string;
2223
+ kind: "conflict_detected";
2224
2224
  conflictId: string;
2225
2225
  decisionIds: string[];
2226
2226
  agentIds: string[];
2227
2227
  evidence?: {
2228
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
- label: string;
2230
2228
  id: string;
2229
+ label: string;
2230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2231
2231
  capture: "at_action" | "historical_lookup" | "fixture";
2232
2232
  locator?: string | undefined;
2233
2233
  }[] | undefined;
2234
2234
  } | {
2235
- kind: "test_result";
2236
2235
  summary: string;
2237
2236
  status: "error" | "failed" | "passed";
2237
+ kind: "test_result";
2238
2238
  command: string;
2239
2239
  decisionId: string;
2240
2240
  testId: string;
2241
2241
  durationMs?: number | undefined;
2242
2242
  evidence?: {
2243
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2244
- label: string;
2245
2243
  id: string;
2244
+ label: string;
2245
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2246
2246
  capture: "at_action" | "historical_lookup" | "fixture";
2247
2247
  locator?: string | undefined;
2248
2248
  }[] | undefined;
@@ -2257,9 +2257,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2257
2257
  supersedesDecisionIds: string[];
2258
2258
  proposedBy: string;
2259
2259
  evidence?: {
2260
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2261
- label: string;
2262
2260
  id: string;
2261
+ label: string;
2262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2263
2263
  capture: "at_action" | "historical_lookup" | "fixture";
2264
2264
  locator?: string | undefined;
2265
2265
  }[] | undefined;
@@ -2267,15 +2267,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2267
2267
  kind: "correction_approved";
2268
2268
  correctionId: string;
2269
2269
  approvedBy: {
2270
- kind: "agent" | "human";
2271
- label: string;
2272
2270
  id: string;
2271
+ label: string;
2272
+ kind: "agent" | "human";
2273
2273
  };
2274
2274
  note?: string | undefined;
2275
2275
  evidence?: {
2276
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2277
- label: string;
2278
2276
  id: string;
2277
+ label: string;
2278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2279
2279
  capture: "at_action" | "historical_lookup" | "fixture";
2280
2280
  locator?: string | undefined;
2281
2281
  }[] | undefined;
@@ -2285,9 +2285,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2285
2285
  correctionId: string;
2286
2286
  replacementDecisionId: string;
2287
2287
  evidence?: {
2288
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2289
- label: string;
2290
2288
  id: string;
2289
+ label: string;
2290
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2291
2291
  capture: "at_action" | "historical_lookup" | "fixture";
2292
2292
  locator?: string | undefined;
2293
2293
  }[] | undefined;
@@ -2300,9 +2300,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2300
2300
  recallReceiptId: string;
2301
2301
  capturedAtAction: boolean;
2302
2302
  evidence?: {
2303
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2304
- label: string;
2305
2303
  id: string;
2304
+ label: string;
2305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2306
2306
  capture: "at_action" | "historical_lookup" | "fixture";
2307
2307
  locator?: string | undefined;
2308
2308
  }[] | undefined;
@@ -2315,20 +2315,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2315
2315
  recallReceiptId: string;
2316
2316
  staleDecisionAbsent: boolean;
2317
2317
  evidence?: {
2318
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
- label: string;
2320
2318
  id: string;
2319
+ label: string;
2320
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2321
2321
  capture: "at_action" | "historical_lookup" | "fixture";
2322
2322
  locator?: string | undefined;
2323
2323
  }[] | undefined;
2324
2324
  } | {
2325
- kind: "mission_completed";
2326
2325
  summary: string;
2326
+ kind: "mission_completed";
2327
2327
  outcome: "failed" | "recovered" | "inconclusive";
2328
2328
  evidence?: {
2329
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2330
- label: string;
2331
2329
  id: string;
2330
+ label: string;
2331
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2332
2332
  capture: "at_action" | "historical_lookup" | "fixture";
2333
2333
  locator?: string | undefined;
2334
2334
  }[] | undefined;
@@ -2349,15 +2349,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2349
2349
  locator: z.ZodOptional<z.ZodString>;
2350
2350
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2351
2351
  }, "strict", z.ZodTypeAny, {
2352
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2353
- label: string;
2354
2352
  id: string;
2353
+ label: string;
2354
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2355
2355
  capture: "at_action" | "historical_lookup" | "fixture";
2356
2356
  locator?: string | undefined;
2357
2357
  }, {
2358
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2359
- label: string;
2360
2358
  id: string;
2359
+ label: string;
2360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2361
2361
  capture: "at_action" | "historical_lookup" | "fixture";
2362
2362
  locator?: string | undefined;
2363
2363
  }>, "many">>;
@@ -2365,9 +2365,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2365
2365
  kind: "mission_started";
2366
2366
  title: string;
2367
2367
  evidence: {
2368
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2369
- label: string;
2370
2368
  id: string;
2369
+ label: string;
2370
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2371
2371
  capture: "at_action" | "historical_lookup" | "fixture";
2372
2372
  locator?: string | undefined;
2373
2373
  }[];
@@ -2379,9 +2379,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2379
2379
  objective: string;
2380
2380
  runMode: "replay" | "fixture" | "live";
2381
2381
  evidence?: {
2382
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2383
- label: string;
2384
2382
  id: string;
2383
+ label: string;
2384
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
2385
  capture: "at_action" | "historical_lookup" | "fixture";
2386
2386
  locator?: string | undefined;
2387
2387
  }[] | undefined;
@@ -2397,15 +2397,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2397
2397
  locator: z.ZodOptional<z.ZodString>;
2398
2398
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2399
2399
  }, "strict", z.ZodTypeAny, {
2400
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2401
- label: string;
2402
2400
  id: string;
2401
+ label: string;
2402
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2403
2403
  capture: "at_action" | "historical_lookup" | "fixture";
2404
2404
  locator?: string | undefined;
2405
2405
  }, {
2406
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2407
- label: string;
2408
2406
  id: string;
2407
+ label: string;
2408
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2409
2409
  capture: "at_action" | "historical_lookup" | "fixture";
2410
2410
  locator?: string | undefined;
2411
2411
  }>, "many">>;
@@ -2413,32 +2413,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2413
2413
  sessionId: z.ZodString;
2414
2414
  kind: z.ZodLiteral<"agent_status">;
2415
2415
  }, "strict", z.ZodTypeAny, {
2416
- kind: "agent_status";
2417
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2418
2416
  label: string;
2417
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
2418
+ kind: "agent_status";
2419
2419
  role: string;
2420
2420
  agentId: string;
2421
2421
  sessionId: string;
2422
2422
  evidence: {
2423
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2424
- label: string;
2425
2423
  id: string;
2424
+ label: string;
2425
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2426
2426
  capture: "at_action" | "historical_lookup" | "fixture";
2427
2427
  locator?: string | undefined;
2428
2428
  }[];
2429
2429
  detail?: string | undefined;
2430
2430
  }, {
2431
- kind: "agent_status";
2432
- status: "failed" | "complete" | "blocked" | "idle" | "working";
2433
2431
  label: string;
2432
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
2433
+ kind: "agent_status";
2434
2434
  role: string;
2435
2435
  agentId: string;
2436
2436
  sessionId: string;
2437
2437
  detail?: string | undefined;
2438
2438
  evidence?: {
2439
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2440
- label: string;
2441
2439
  id: string;
2440
+ label: string;
2441
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2442
2442
  capture: "at_action" | "historical_lookup" | "fixture";
2443
2443
  locator?: string | undefined;
2444
2444
  }[] | undefined;
@@ -2452,15 +2452,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2452
2452
  locator: z.ZodOptional<z.ZodString>;
2453
2453
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2454
2454
  }, "strict", z.ZodTypeAny, {
2455
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2456
- label: string;
2457
2455
  id: string;
2456
+ label: string;
2457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2458
2458
  capture: "at_action" | "historical_lookup" | "fixture";
2459
2459
  locator?: string | undefined;
2460
2460
  }, {
2461
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2462
- label: string;
2463
2461
  id: string;
2462
+ label: string;
2463
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2464
2464
  capture: "at_action" | "historical_lookup" | "fixture";
2465
2465
  locator?: string | undefined;
2466
2466
  }>, "many">>;
@@ -2468,28 +2468,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2468
2468
  sessionId: z.ZodString;
2469
2469
  kind: z.ZodLiteral<"agent_output">;
2470
2470
  }, "strict", z.ZodTypeAny, {
2471
- kind: "agent_output";
2472
2471
  summary: string;
2472
+ kind: "agent_output";
2473
2473
  agentId: string;
2474
2474
  sessionId: string;
2475
2475
  evidence: {
2476
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2477
- label: string;
2478
2476
  id: string;
2477
+ label: string;
2478
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2479
2479
  capture: "at_action" | "historical_lookup" | "fixture";
2480
2480
  locator?: string | undefined;
2481
2481
  }[];
2482
2482
  outputId: string;
2483
2483
  }, {
2484
- kind: "agent_output";
2485
2484
  summary: string;
2485
+ kind: "agent_output";
2486
2486
  agentId: string;
2487
2487
  sessionId: string;
2488
2488
  outputId: string;
2489
2489
  evidence?: {
2490
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2491
- label: string;
2492
2490
  id: string;
2491
+ label: string;
2492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2493
2493
  capture: "at_action" | "historical_lookup" | "fixture";
2494
2494
  locator?: string | undefined;
2495
2495
  }[] | undefined;
@@ -2505,15 +2505,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2505
2505
  locator: z.ZodOptional<z.ZodString>;
2506
2506
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2507
2507
  }, "strict", z.ZodTypeAny, {
2508
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2509
- label: string;
2510
2508
  id: string;
2509
+ label: string;
2510
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2511
2511
  capture: "at_action" | "historical_lookup" | "fixture";
2512
2512
  locator?: string | undefined;
2513
2513
  }, {
2514
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
- label: string;
2516
2514
  id: string;
2515
+ label: string;
2516
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2517
2517
  capture: "at_action" | "historical_lookup" | "fixture";
2518
2518
  locator?: string | undefined;
2519
2519
  }>, "many">>;
@@ -2526,9 +2526,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2526
2526
  statement: string;
2527
2527
  sessionId: string;
2528
2528
  evidence: {
2529
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2530
- label: string;
2531
2529
  id: string;
2530
+ label: string;
2531
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2532
2532
  capture: "at_action" | "historical_lookup" | "fixture";
2533
2533
  locator?: string | undefined;
2534
2534
  }[];
@@ -2544,9 +2544,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2544
2544
  decisionId: string;
2545
2545
  confidence?: number | undefined;
2546
2546
  evidence?: {
2547
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2548
- label: string;
2549
2547
  id: string;
2548
+ label: string;
2549
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2550
2550
  capture: "at_action" | "historical_lookup" | "fixture";
2551
2551
  locator?: string | undefined;
2552
2552
  }[] | undefined;
@@ -2563,25 +2563,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2563
2563
  locator: z.ZodOptional<z.ZodString>;
2564
2564
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2565
2565
  }, "strict", z.ZodTypeAny, {
2566
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2567
- label: string;
2568
2566
  id: string;
2567
+ label: string;
2568
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2569
2569
  capture: "at_action" | "historical_lookup" | "fixture";
2570
2570
  locator?: string | undefined;
2571
2571
  }, {
2572
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2573
- label: string;
2574
2572
  id: string;
2573
+ label: string;
2574
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2575
2575
  capture: "at_action" | "historical_lookup" | "fixture";
2576
2576
  locator?: string | undefined;
2577
2577
  }>, "many">>;
2578
2578
  }, "strict", z.ZodTypeAny, {
2579
- kind: "conflict_detected";
2580
2579
  summary: string;
2580
+ kind: "conflict_detected";
2581
2581
  evidence: {
2582
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2583
- label: string;
2584
2582
  id: string;
2583
+ label: string;
2584
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2585
2585
  capture: "at_action" | "historical_lookup" | "fixture";
2586
2586
  locator?: string | undefined;
2587
2587
  }[];
@@ -2589,15 +2589,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2589
2589
  decisionIds: string[];
2590
2590
  agentIds: string[];
2591
2591
  }, {
2592
- kind: "conflict_detected";
2593
2592
  summary: string;
2593
+ kind: "conflict_detected";
2594
2594
  conflictId: string;
2595
2595
  decisionIds: string[];
2596
2596
  agentIds: string[];
2597
2597
  evidence?: {
2598
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2599
- label: string;
2600
2598
  id: string;
2599
+ label: string;
2600
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2601
2601
  capture: "at_action" | "historical_lookup" | "fixture";
2602
2602
  locator?: string | undefined;
2603
2603
  }[] | undefined;
@@ -2617,27 +2617,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2617
2617
  locator: z.ZodOptional<z.ZodString>;
2618
2618
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2619
2619
  }, "strict", z.ZodTypeAny, {
2620
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2621
- label: string;
2622
2620
  id: string;
2621
+ label: string;
2622
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2623
2623
  capture: "at_action" | "historical_lookup" | "fixture";
2624
2624
  locator?: string | undefined;
2625
2625
  }, {
2626
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2627
- label: string;
2628
2626
  id: string;
2627
+ label: string;
2628
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2629
2629
  capture: "at_action" | "historical_lookup" | "fixture";
2630
2630
  locator?: string | undefined;
2631
2631
  }>, "many">>;
2632
2632
  }, "strict", z.ZodTypeAny, {
2633
- kind: "test_result";
2634
2633
  summary: string;
2635
2634
  status: "error" | "failed" | "passed";
2635
+ kind: "test_result";
2636
2636
  command: string;
2637
2637
  evidence: {
2638
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2639
- label: string;
2640
2638
  id: string;
2639
+ label: string;
2640
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2641
2641
  capture: "at_action" | "historical_lookup" | "fixture";
2642
2642
  locator?: string | undefined;
2643
2643
  }[];
@@ -2646,17 +2646,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2646
2646
  durationMs?: number | undefined;
2647
2647
  correctionId?: string | undefined;
2648
2648
  }, {
2649
- kind: "test_result";
2650
2649
  summary: string;
2651
2650
  status: "error" | "failed" | "passed";
2651
+ kind: "test_result";
2652
2652
  command: string;
2653
2653
  decisionId: string;
2654
2654
  testId: string;
2655
2655
  durationMs?: number | undefined;
2656
2656
  evidence?: {
2657
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2658
- label: string;
2659
2657
  id: string;
2658
+ label: string;
2659
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2660
2660
  capture: "at_action" | "historical_lookup" | "fixture";
2661
2661
  locator?: string | undefined;
2662
2662
  }[] | undefined;
@@ -2677,15 +2677,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2677
2677
  locator: z.ZodOptional<z.ZodString>;
2678
2678
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2679
2679
  }, "strict", z.ZodTypeAny, {
2680
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2681
- label: string;
2682
2680
  id: string;
2681
+ label: string;
2682
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2683
2683
  capture: "at_action" | "historical_lookup" | "fixture";
2684
2684
  locator?: string | undefined;
2685
2685
  }, {
2686
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2687
- label: string;
2688
2686
  id: string;
2687
+ label: string;
2688
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2689
2689
  capture: "at_action" | "historical_lookup" | "fixture";
2690
2690
  locator?: string | undefined;
2691
2691
  }>, "many">>;
@@ -2694,9 +2694,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2694
2694
  statement: string;
2695
2695
  rationale: string;
2696
2696
  evidence: {
2697
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2698
- label: string;
2699
2697
  id: string;
2698
+ label: string;
2699
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2700
2700
  capture: "at_action" | "historical_lookup" | "fixture";
2701
2701
  locator?: string | undefined;
2702
2702
  }[];
@@ -2715,9 +2715,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2715
2715
  supersedesDecisionIds: string[];
2716
2716
  proposedBy: string;
2717
2717
  evidence?: {
2718
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2719
- label: string;
2720
2718
  id: string;
2719
+ label: string;
2720
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2721
2721
  capture: "at_action" | "historical_lookup" | "fixture";
2722
2722
  locator?: string | undefined;
2723
2723
  }[] | undefined;
@@ -2729,13 +2729,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2729
2729
  id: z.ZodString;
2730
2730
  label: z.ZodString;
2731
2731
  }, "strict", z.ZodTypeAny, {
2732
- kind: "agent" | "human";
2733
- label: string;
2734
2732
  id: string;
2735
- }, {
2736
- kind: "agent" | "human";
2737
2733
  label: string;
2734
+ kind: "agent" | "human";
2735
+ }, {
2738
2736
  id: string;
2737
+ label: string;
2738
+ kind: "agent" | "human";
2739
2739
  }>;
2740
2740
  note: z.ZodOptional<z.ZodString>;
2741
2741
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2745,47 +2745,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2745
2745
  locator: z.ZodOptional<z.ZodString>;
2746
2746
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2747
2747
  }, "strict", z.ZodTypeAny, {
2748
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2749
- label: string;
2750
2748
  id: string;
2749
+ label: string;
2750
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2751
2751
  capture: "at_action" | "historical_lookup" | "fixture";
2752
2752
  locator?: string | undefined;
2753
2753
  }, {
2754
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2755
- label: string;
2756
2754
  id: string;
2755
+ label: string;
2756
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2757
2757
  capture: "at_action" | "historical_lookup" | "fixture";
2758
2758
  locator?: string | undefined;
2759
2759
  }>, "many">>;
2760
2760
  }, "strict", z.ZodTypeAny, {
2761
2761
  kind: "correction_approved";
2762
2762
  evidence: {
2763
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2764
- label: string;
2765
2763
  id: string;
2764
+ label: string;
2765
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2766
2766
  capture: "at_action" | "historical_lookup" | "fixture";
2767
2767
  locator?: string | undefined;
2768
2768
  }[];
2769
2769
  correctionId: string;
2770
2770
  approvedBy: {
2771
- kind: "agent" | "human";
2772
- label: string;
2773
2771
  id: string;
2772
+ label: string;
2773
+ kind: "agent" | "human";
2774
2774
  };
2775
2775
  note?: string | undefined;
2776
2776
  }, {
2777
2777
  kind: "correction_approved";
2778
2778
  correctionId: string;
2779
2779
  approvedBy: {
2780
- kind: "agent" | "human";
2781
- label: string;
2782
2780
  id: string;
2781
+ label: string;
2782
+ kind: "agent" | "human";
2783
2783
  };
2784
2784
  note?: string | undefined;
2785
2785
  evidence?: {
2786
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2787
- label: string;
2788
2786
  id: string;
2787
+ label: string;
2788
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2789
2789
  capture: "at_action" | "historical_lookup" | "fixture";
2790
2790
  locator?: string | undefined;
2791
2791
  }[] | undefined;
@@ -2801,24 +2801,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2801
2801
  locator: z.ZodOptional<z.ZodString>;
2802
2802
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2803
2803
  }, "strict", z.ZodTypeAny, {
2804
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2805
- label: string;
2806
2804
  id: string;
2805
+ label: string;
2806
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2807
2807
  capture: "at_action" | "historical_lookup" | "fixture";
2808
2808
  locator?: string | undefined;
2809
2809
  }, {
2810
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
- label: string;
2812
2810
  id: string;
2811
+ label: string;
2812
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2813
2813
  capture: "at_action" | "historical_lookup" | "fixture";
2814
2814
  locator?: string | undefined;
2815
2815
  }>, "many">>;
2816
2816
  }, "strict", z.ZodTypeAny, {
2817
2817
  kind: "decision_superseded";
2818
2818
  evidence: {
2819
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2820
- label: string;
2821
2819
  id: string;
2820
+ label: string;
2821
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2822
2822
  capture: "at_action" | "historical_lookup" | "fixture";
2823
2823
  locator?: string | undefined;
2824
2824
  }[];
@@ -2831,9 +2831,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2831
2831
  correctionId: string;
2832
2832
  replacementDecisionId: string;
2833
2833
  evidence?: {
2834
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2835
- label: string;
2836
2834
  id: string;
2835
+ label: string;
2836
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2837
2837
  capture: "at_action" | "historical_lookup" | "fixture";
2838
2838
  locator?: string | undefined;
2839
2839
  }[] | undefined;
@@ -2849,15 +2849,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2849
2849
  locator: z.ZodOptional<z.ZodString>;
2850
2850
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2851
2851
  }, "strict", z.ZodTypeAny, {
2852
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2853
- label: string;
2854
2852
  id: string;
2853
+ label: string;
2854
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2855
2855
  capture: "at_action" | "historical_lookup" | "fixture";
2856
2856
  locator?: string | undefined;
2857
2857
  }, {
2858
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2859
- label: string;
2860
2858
  id: string;
2859
+ label: string;
2860
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2861
2861
  capture: "at_action" | "historical_lookup" | "fixture";
2862
2862
  locator?: string | undefined;
2863
2863
  }>, "many">>;
@@ -2870,9 +2870,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2870
2870
  agentId: string;
2871
2871
  sessionId: string;
2872
2872
  evidence: {
2873
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2874
- label: string;
2875
2873
  id: string;
2874
+ label: string;
2875
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2876
2876
  capture: "at_action" | "historical_lookup" | "fixture";
2877
2877
  locator?: string | undefined;
2878
2878
  }[];
@@ -2888,9 +2888,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2888
2888
  recallReceiptId: string;
2889
2889
  capturedAtAction: boolean;
2890
2890
  evidence?: {
2891
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2892
- label: string;
2893
2891
  id: string;
2892
+ label: string;
2893
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2894
2894
  capture: "at_action" | "historical_lookup" | "fixture";
2895
2895
  locator?: string | undefined;
2896
2896
  }[] | undefined;
@@ -2906,15 +2906,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2906
2906
  locator: z.ZodOptional<z.ZodString>;
2907
2907
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2908
2908
  }, "strict", z.ZodTypeAny, {
2909
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2910
- label: string;
2911
2909
  id: string;
2910
+ label: string;
2911
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
2912
  capture: "at_action" | "historical_lookup" | "fixture";
2913
2913
  locator?: string | undefined;
2914
2914
  }, {
2915
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2916
- label: string;
2917
2915
  id: string;
2916
+ label: string;
2917
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2918
2918
  capture: "at_action" | "historical_lookup" | "fixture";
2919
2919
  locator?: string | undefined;
2920
2920
  }>, "many">>;
@@ -2926,9 +2926,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2926
2926
  agentId: string;
2927
2927
  sessionId: string;
2928
2928
  evidence: {
2929
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2930
- label: string;
2931
2929
  id: string;
2930
+ label: string;
2931
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2932
2932
  capture: "at_action" | "historical_lookup" | "fixture";
2933
2933
  locator?: string | undefined;
2934
2934
  }[];
@@ -2945,9 +2945,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2945
2945
  recallReceiptId: string;
2946
2946
  staleDecisionAbsent: boolean;
2947
2947
  evidence?: {
2948
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2949
- label: string;
2950
2948
  id: string;
2949
+ label: string;
2950
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2951
2951
  capture: "at_action" | "historical_lookup" | "fixture";
2952
2952
  locator?: string | undefined;
2953
2953
  }[] | undefined;
@@ -2962,37 +2962,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2962
2962
  locator: z.ZodOptional<z.ZodString>;
2963
2963
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2964
2964
  }, "strict", z.ZodTypeAny, {
2965
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2966
- label: string;
2967
2965
  id: string;
2966
+ label: string;
2967
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2968
2968
  capture: "at_action" | "historical_lookup" | "fixture";
2969
2969
  locator?: string | undefined;
2970
2970
  }, {
2971
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2972
- label: string;
2973
2971
  id: string;
2972
+ label: string;
2973
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2974
2974
  capture: "at_action" | "historical_lookup" | "fixture";
2975
2975
  locator?: string | undefined;
2976
2976
  }>, "many">>;
2977
2977
  }, "strict", z.ZodTypeAny, {
2978
- kind: "mission_completed";
2979
2978
  summary: string;
2979
+ kind: "mission_completed";
2980
2980
  outcome: "failed" | "recovered" | "inconclusive";
2981
2981
  evidence: {
2982
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2983
- label: string;
2984
2982
  id: string;
2983
+ label: string;
2984
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2985
2985
  capture: "at_action" | "historical_lookup" | "fixture";
2986
2986
  locator?: string | undefined;
2987
2987
  }[];
2988
2988
  }, {
2989
- kind: "mission_completed";
2990
2989
  summary: string;
2990
+ kind: "mission_completed";
2991
2991
  outcome: "failed" | "recovered" | "inconclusive";
2992
2992
  evidence?: {
2993
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2994
- label: string;
2995
2993
  id: string;
2994
+ label: string;
2995
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2996
2996
  capture: "at_action" | "historical_lookup" | "fixture";
2997
2997
  locator?: string | undefined;
2998
2998
  }[] | undefined;
@@ -3000,38 +3000,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3000
3000
  kind: "mission_started";
3001
3001
  title: string;
3002
3002
  evidence: {
3003
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3004
- label: string;
3005
3003
  id: string;
3004
+ label: string;
3005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3006
3006
  capture: "at_action" | "historical_lookup" | "fixture";
3007
3007
  locator?: string | undefined;
3008
3008
  }[];
3009
3009
  objective: string;
3010
3010
  runMode: "replay" | "fixture" | "live";
3011
3011
  } | {
3012
- kind: "agent_status";
3013
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3014
3012
  label: string;
3013
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3014
+ kind: "agent_status";
3015
3015
  role: string;
3016
3016
  agentId: string;
3017
3017
  sessionId: string;
3018
3018
  evidence: {
3019
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3020
- label: string;
3021
3019
  id: string;
3020
+ label: string;
3021
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3022
3022
  capture: "at_action" | "historical_lookup" | "fixture";
3023
3023
  locator?: string | undefined;
3024
3024
  }[];
3025
3025
  detail?: string | undefined;
3026
3026
  } | {
3027
- kind: "agent_output";
3028
3027
  summary: string;
3028
+ kind: "agent_output";
3029
3029
  agentId: string;
3030
3030
  sessionId: string;
3031
3031
  evidence: {
3032
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3033
- label: string;
3034
3032
  id: string;
3033
+ label: string;
3034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3035
3035
  capture: "at_action" | "historical_lookup" | "fixture";
3036
3036
  locator?: string | undefined;
3037
3037
  }[];
@@ -3042,9 +3042,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3042
3042
  statement: string;
3043
3043
  sessionId: string;
3044
3044
  evidence: {
3045
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3046
- label: string;
3047
3045
  id: string;
3046
+ label: string;
3047
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3048
3048
  capture: "at_action" | "historical_lookup" | "fixture";
3049
3049
  locator?: string | undefined;
3050
3050
  }[];
@@ -3052,12 +3052,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3052
3052
  decisionId: string;
3053
3053
  confidence?: number | undefined;
3054
3054
  } | {
3055
- kind: "conflict_detected";
3056
3055
  summary: string;
3056
+ kind: "conflict_detected";
3057
3057
  evidence: {
3058
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3059
- label: string;
3060
3058
  id: string;
3059
+ label: string;
3060
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3061
3061
  capture: "at_action" | "historical_lookup" | "fixture";
3062
3062
  locator?: string | undefined;
3063
3063
  }[];
@@ -3065,14 +3065,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3065
3065
  decisionIds: string[];
3066
3066
  agentIds: string[];
3067
3067
  } | {
3068
- kind: "test_result";
3069
3068
  summary: string;
3070
3069
  status: "error" | "failed" | "passed";
3070
+ kind: "test_result";
3071
3071
  command: string;
3072
3072
  evidence: {
3073
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3074
- label: string;
3075
3073
  id: string;
3074
+ label: string;
3075
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3076
  capture: "at_action" | "historical_lookup" | "fixture";
3077
3077
  locator?: string | undefined;
3078
3078
  }[];
@@ -3085,9 +3085,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3085
3085
  statement: string;
3086
3086
  rationale: string;
3087
3087
  evidence: {
3088
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3089
- label: string;
3090
3088
  id: string;
3089
+ label: string;
3090
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3091
3091
  capture: "at_action" | "historical_lookup" | "fixture";
3092
3092
  locator?: string | undefined;
3093
3093
  }[];
@@ -3099,25 +3099,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3099
3099
  } | {
3100
3100
  kind: "correction_approved";
3101
3101
  evidence: {
3102
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3103
- label: string;
3104
3102
  id: string;
3103
+ label: string;
3104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3105
3105
  capture: "at_action" | "historical_lookup" | "fixture";
3106
3106
  locator?: string | undefined;
3107
3107
  }[];
3108
3108
  correctionId: string;
3109
3109
  approvedBy: {
3110
- kind: "agent" | "human";
3111
- label: string;
3112
3110
  id: string;
3111
+ label: string;
3112
+ kind: "agent" | "human";
3113
3113
  };
3114
3114
  note?: string | undefined;
3115
3115
  } | {
3116
3116
  kind: "decision_superseded";
3117
3117
  evidence: {
3118
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3119
- label: string;
3120
3118
  id: string;
3119
+ label: string;
3120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3121
3121
  capture: "at_action" | "historical_lookup" | "fixture";
3122
3122
  locator?: string | undefined;
3123
3123
  }[];
@@ -3130,9 +3130,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3130
3130
  agentId: string;
3131
3131
  sessionId: string;
3132
3132
  evidence: {
3133
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3134
- label: string;
3135
3133
  id: string;
3134
+ label: string;
3135
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3136
3136
  capture: "at_action" | "historical_lookup" | "fixture";
3137
3137
  locator?: string | undefined;
3138
3138
  }[];
@@ -3144,9 +3144,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3144
3144
  agentId: string;
3145
3145
  sessionId: string;
3146
3146
  evidence: {
3147
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3148
- label: string;
3149
3147
  id: string;
3148
+ label: string;
3149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3150
3150
  capture: "at_action" | "historical_lookup" | "fixture";
3151
3151
  locator?: string | undefined;
3152
3152
  }[];
@@ -3155,13 +3155,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3155
3155
  recallReceiptId: string;
3156
3156
  staleDecisionAbsent: boolean;
3157
3157
  } | {
3158
- kind: "mission_completed";
3159
3158
  summary: string;
3159
+ kind: "mission_completed";
3160
3160
  outcome: "failed" | "recovered" | "inconclusive";
3161
3161
  evidence: {
3162
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3163
- label: string;
3164
3162
  id: string;
3163
+ label: string;
3164
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3165
3165
  capture: "at_action" | "historical_lookup" | "fixture";
3166
3166
  locator?: string | undefined;
3167
3167
  }[];
@@ -3171,37 +3171,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3171
3171
  objective: string;
3172
3172
  runMode: "replay" | "fixture" | "live";
3173
3173
  evidence?: {
3174
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3175
- label: string;
3176
3174
  id: string;
3175
+ label: string;
3176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3177
3177
  capture: "at_action" | "historical_lookup" | "fixture";
3178
3178
  locator?: string | undefined;
3179
3179
  }[] | undefined;
3180
3180
  } | {
3181
- kind: "agent_status";
3182
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3183
3181
  label: string;
3182
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3183
+ kind: "agent_status";
3184
3184
  role: string;
3185
3185
  agentId: string;
3186
3186
  sessionId: string;
3187
3187
  detail?: string | undefined;
3188
3188
  evidence?: {
3189
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3190
- label: string;
3191
3189
  id: string;
3190
+ label: string;
3191
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3192
3192
  capture: "at_action" | "historical_lookup" | "fixture";
3193
3193
  locator?: string | undefined;
3194
3194
  }[] | undefined;
3195
3195
  } | {
3196
- kind: "agent_output";
3197
3196
  summary: string;
3197
+ kind: "agent_output";
3198
3198
  agentId: string;
3199
3199
  sessionId: string;
3200
3200
  outputId: string;
3201
3201
  evidence?: {
3202
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3203
- label: string;
3204
3202
  id: string;
3203
+ label: string;
3204
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3205
3205
  capture: "at_action" | "historical_lookup" | "fixture";
3206
3206
  locator?: string | undefined;
3207
3207
  }[] | undefined;
@@ -3214,37 +3214,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3214
3214
  decisionId: string;
3215
3215
  confidence?: number | undefined;
3216
3216
  evidence?: {
3217
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3218
- label: string;
3219
3217
  id: string;
3218
+ label: string;
3219
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3220
3220
  capture: "at_action" | "historical_lookup" | "fixture";
3221
3221
  locator?: string | undefined;
3222
3222
  }[] | undefined;
3223
3223
  } | {
3224
- kind: "conflict_detected";
3225
3224
  summary: string;
3225
+ kind: "conflict_detected";
3226
3226
  conflictId: string;
3227
3227
  decisionIds: string[];
3228
3228
  agentIds: string[];
3229
3229
  evidence?: {
3230
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3231
- label: string;
3232
3230
  id: string;
3231
+ label: string;
3232
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3233
3233
  capture: "at_action" | "historical_lookup" | "fixture";
3234
3234
  locator?: string | undefined;
3235
3235
  }[] | undefined;
3236
3236
  } | {
3237
- kind: "test_result";
3238
3237
  summary: string;
3239
3238
  status: "error" | "failed" | "passed";
3239
+ kind: "test_result";
3240
3240
  command: string;
3241
3241
  decisionId: string;
3242
3242
  testId: string;
3243
3243
  durationMs?: number | undefined;
3244
3244
  evidence?: {
3245
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3246
- label: string;
3247
3245
  id: string;
3246
+ label: string;
3247
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3248
3248
  capture: "at_action" | "historical_lookup" | "fixture";
3249
3249
  locator?: string | undefined;
3250
3250
  }[] | undefined;
@@ -3259,9 +3259,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3259
3259
  supersedesDecisionIds: string[];
3260
3260
  proposedBy: string;
3261
3261
  evidence?: {
3262
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3263
- label: string;
3264
3262
  id: string;
3263
+ label: string;
3264
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3265
3265
  capture: "at_action" | "historical_lookup" | "fixture";
3266
3266
  locator?: string | undefined;
3267
3267
  }[] | undefined;
@@ -3269,15 +3269,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3269
3269
  kind: "correction_approved";
3270
3270
  correctionId: string;
3271
3271
  approvedBy: {
3272
- kind: "agent" | "human";
3273
- label: string;
3274
3272
  id: string;
3273
+ label: string;
3274
+ kind: "agent" | "human";
3275
3275
  };
3276
3276
  note?: string | undefined;
3277
3277
  evidence?: {
3278
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3279
- label: string;
3280
3278
  id: string;
3279
+ label: string;
3280
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3281
3281
  capture: "at_action" | "historical_lookup" | "fixture";
3282
3282
  locator?: string | undefined;
3283
3283
  }[] | undefined;
@@ -3287,9 +3287,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3287
3287
  correctionId: string;
3288
3288
  replacementDecisionId: string;
3289
3289
  evidence?: {
3290
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3291
- label: string;
3292
3290
  id: string;
3291
+ label: string;
3292
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3293
3293
  capture: "at_action" | "historical_lookup" | "fixture";
3294
3294
  locator?: string | undefined;
3295
3295
  }[] | undefined;
@@ -3302,9 +3302,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3302
3302
  recallReceiptId: string;
3303
3303
  capturedAtAction: boolean;
3304
3304
  evidence?: {
3305
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3306
- label: string;
3307
3305
  id: string;
3306
+ label: string;
3307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3308
3308
  capture: "at_action" | "historical_lookup" | "fixture";
3309
3309
  locator?: string | undefined;
3310
3310
  }[] | undefined;
@@ -3317,20 +3317,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3317
3317
  recallReceiptId: string;
3318
3318
  staleDecisionAbsent: boolean;
3319
3319
  evidence?: {
3320
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3321
- label: string;
3322
3320
  id: string;
3321
+ label: string;
3322
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3323
3323
  capture: "at_action" | "historical_lookup" | "fixture";
3324
3324
  locator?: string | undefined;
3325
3325
  }[] | undefined;
3326
3326
  } | {
3327
- kind: "mission_completed";
3328
3327
  summary: string;
3328
+ kind: "mission_completed";
3329
3329
  outcome: "failed" | "recovered" | "inconclusive";
3330
3330
  evidence?: {
3331
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3332
- label: string;
3333
3331
  id: string;
3332
+ label: string;
3333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3334
3334
  capture: "at_action" | "historical_lookup" | "fixture";
3335
3335
  locator?: string | undefined;
3336
3336
  }[] | undefined;
@@ -3340,38 +3340,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3340
3340
  kind: "mission_started";
3341
3341
  title: string;
3342
3342
  evidence: {
3343
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
- label: string;
3345
3343
  id: string;
3344
+ label: string;
3345
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3346
3346
  capture: "at_action" | "historical_lookup" | "fixture";
3347
3347
  locator?: string | undefined;
3348
3348
  }[];
3349
3349
  objective: string;
3350
3350
  runMode: "replay" | "fixture" | "live";
3351
3351
  } | {
3352
- kind: "agent_status";
3353
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3354
3352
  label: string;
3353
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3354
+ kind: "agent_status";
3355
3355
  role: string;
3356
3356
  agentId: string;
3357
3357
  sessionId: string;
3358
3358
  evidence: {
3359
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3360
- label: string;
3361
3359
  id: string;
3360
+ label: string;
3361
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3362
3362
  capture: "at_action" | "historical_lookup" | "fixture";
3363
3363
  locator?: string | undefined;
3364
3364
  }[];
3365
3365
  detail?: string | undefined;
3366
3366
  } | {
3367
- kind: "agent_output";
3368
3367
  summary: string;
3368
+ kind: "agent_output";
3369
3369
  agentId: string;
3370
3370
  sessionId: string;
3371
3371
  evidence: {
3372
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3373
- label: string;
3374
3372
  id: string;
3373
+ label: string;
3374
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3375
3375
  capture: "at_action" | "historical_lookup" | "fixture";
3376
3376
  locator?: string | undefined;
3377
3377
  }[];
@@ -3382,9 +3382,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3382
3382
  statement: string;
3383
3383
  sessionId: string;
3384
3384
  evidence: {
3385
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3386
- label: string;
3387
3385
  id: string;
3386
+ label: string;
3387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3388
3388
  capture: "at_action" | "historical_lookup" | "fixture";
3389
3389
  locator?: string | undefined;
3390
3390
  }[];
@@ -3392,12 +3392,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3392
3392
  decisionId: string;
3393
3393
  confidence?: number | undefined;
3394
3394
  } | {
3395
- kind: "conflict_detected";
3396
3395
  summary: string;
3396
+ kind: "conflict_detected";
3397
3397
  evidence: {
3398
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3399
- label: string;
3400
3398
  id: string;
3399
+ label: string;
3400
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3401
3401
  capture: "at_action" | "historical_lookup" | "fixture";
3402
3402
  locator?: string | undefined;
3403
3403
  }[];
@@ -3405,14 +3405,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3405
3405
  decisionIds: string[];
3406
3406
  agentIds: string[];
3407
3407
  } | {
3408
- kind: "test_result";
3409
3408
  summary: string;
3410
3409
  status: "error" | "failed" | "passed";
3410
+ kind: "test_result";
3411
3411
  command: string;
3412
3412
  evidence: {
3413
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3414
- label: string;
3415
3413
  id: string;
3414
+ label: string;
3415
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3416
3416
  capture: "at_action" | "historical_lookup" | "fixture";
3417
3417
  locator?: string | undefined;
3418
3418
  }[];
@@ -3425,9 +3425,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3425
3425
  statement: string;
3426
3426
  rationale: string;
3427
3427
  evidence: {
3428
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3429
- label: string;
3430
3428
  id: string;
3429
+ label: string;
3430
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3431
3431
  capture: "at_action" | "historical_lookup" | "fixture";
3432
3432
  locator?: string | undefined;
3433
3433
  }[];
@@ -3439,25 +3439,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3439
3439
  } | {
3440
3440
  kind: "correction_approved";
3441
3441
  evidence: {
3442
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3443
- label: string;
3444
3442
  id: string;
3443
+ label: string;
3444
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3445
3445
  capture: "at_action" | "historical_lookup" | "fixture";
3446
3446
  locator?: string | undefined;
3447
3447
  }[];
3448
3448
  correctionId: string;
3449
3449
  approvedBy: {
3450
- kind: "agent" | "human";
3451
- label: string;
3452
3450
  id: string;
3451
+ label: string;
3452
+ kind: "agent" | "human";
3453
3453
  };
3454
3454
  note?: string | undefined;
3455
3455
  } | {
3456
3456
  kind: "decision_superseded";
3457
3457
  evidence: {
3458
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3459
- label: string;
3460
3458
  id: string;
3459
+ label: string;
3460
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3461
3461
  capture: "at_action" | "historical_lookup" | "fixture";
3462
3462
  locator?: string | undefined;
3463
3463
  }[];
@@ -3470,9 +3470,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3470
3470
  agentId: string;
3471
3471
  sessionId: string;
3472
3472
  evidence: {
3473
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3474
- label: string;
3475
3473
  id: string;
3474
+ label: string;
3475
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3476
3476
  capture: "at_action" | "historical_lookup" | "fixture";
3477
3477
  locator?: string | undefined;
3478
3478
  }[];
@@ -3484,9 +3484,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3484
3484
  agentId: string;
3485
3485
  sessionId: string;
3486
3486
  evidence: {
3487
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3488
- label: string;
3489
3487
  id: string;
3488
+ label: string;
3489
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3490
3490
  capture: "at_action" | "historical_lookup" | "fixture";
3491
3491
  locator?: string | undefined;
3492
3492
  }[];
@@ -3495,13 +3495,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3495
3495
  recallReceiptId: string;
3496
3496
  staleDecisionAbsent: boolean;
3497
3497
  } | {
3498
- kind: "mission_completed";
3499
3498
  summary: string;
3499
+ kind: "mission_completed";
3500
3500
  outcome: "failed" | "recovered" | "inconclusive";
3501
3501
  evidence: {
3502
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3503
- label: string;
3504
3502
  id: string;
3503
+ label: string;
3504
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3505
3505
  capture: "at_action" | "historical_lookup" | "fixture";
3506
3506
  locator?: string | undefined;
3507
3507
  }[];
@@ -3515,37 +3515,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3515
3515
  objective: string;
3516
3516
  runMode: "replay" | "fixture" | "live";
3517
3517
  evidence?: {
3518
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3519
- label: string;
3520
3518
  id: string;
3519
+ label: string;
3520
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3521
3521
  capture: "at_action" | "historical_lookup" | "fixture";
3522
3522
  locator?: string | undefined;
3523
3523
  }[] | undefined;
3524
3524
  } | {
3525
- kind: "agent_status";
3526
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3527
3525
  label: string;
3526
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3527
+ kind: "agent_status";
3528
3528
  role: string;
3529
3529
  agentId: string;
3530
3530
  sessionId: string;
3531
3531
  detail?: string | undefined;
3532
3532
  evidence?: {
3533
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3534
- label: string;
3535
3533
  id: string;
3534
+ label: string;
3535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3536
3536
  capture: "at_action" | "historical_lookup" | "fixture";
3537
3537
  locator?: string | undefined;
3538
3538
  }[] | undefined;
3539
3539
  } | {
3540
- kind: "agent_output";
3541
3540
  summary: string;
3541
+ kind: "agent_output";
3542
3542
  agentId: string;
3543
3543
  sessionId: string;
3544
3544
  outputId: string;
3545
3545
  evidence?: {
3546
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3547
- label: string;
3548
3546
  id: string;
3547
+ label: string;
3548
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3549
3549
  capture: "at_action" | "historical_lookup" | "fixture";
3550
3550
  locator?: string | undefined;
3551
3551
  }[] | undefined;
@@ -3558,37 +3558,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3558
3558
  decisionId: string;
3559
3559
  confidence?: number | undefined;
3560
3560
  evidence?: {
3561
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3562
- label: string;
3563
3561
  id: string;
3562
+ label: string;
3563
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3564
3564
  capture: "at_action" | "historical_lookup" | "fixture";
3565
3565
  locator?: string | undefined;
3566
3566
  }[] | undefined;
3567
3567
  } | {
3568
- kind: "conflict_detected";
3569
3568
  summary: string;
3569
+ kind: "conflict_detected";
3570
3570
  conflictId: string;
3571
3571
  decisionIds: string[];
3572
3572
  agentIds: string[];
3573
3573
  evidence?: {
3574
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3575
- label: string;
3576
3574
  id: string;
3575
+ label: string;
3576
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3577
3577
  capture: "at_action" | "historical_lookup" | "fixture";
3578
3578
  locator?: string | undefined;
3579
3579
  }[] | undefined;
3580
3580
  } | {
3581
- kind: "test_result";
3582
3581
  summary: string;
3583
3582
  status: "error" | "failed" | "passed";
3583
+ kind: "test_result";
3584
3584
  command: string;
3585
3585
  decisionId: string;
3586
3586
  testId: string;
3587
3587
  durationMs?: number | undefined;
3588
3588
  evidence?: {
3589
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3590
- label: string;
3591
3589
  id: string;
3590
+ label: string;
3591
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3592
3592
  capture: "at_action" | "historical_lookup" | "fixture";
3593
3593
  locator?: string | undefined;
3594
3594
  }[] | undefined;
@@ -3603,9 +3603,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3603
3603
  supersedesDecisionIds: string[];
3604
3604
  proposedBy: string;
3605
3605
  evidence?: {
3606
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3607
- label: string;
3608
3606
  id: string;
3607
+ label: string;
3608
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3609
3609
  capture: "at_action" | "historical_lookup" | "fixture";
3610
3610
  locator?: string | undefined;
3611
3611
  }[] | undefined;
@@ -3613,15 +3613,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3613
3613
  kind: "correction_approved";
3614
3614
  correctionId: string;
3615
3615
  approvedBy: {
3616
- kind: "agent" | "human";
3617
- label: string;
3618
3616
  id: string;
3617
+ label: string;
3618
+ kind: "agent" | "human";
3619
3619
  };
3620
3620
  note?: string | undefined;
3621
3621
  evidence?: {
3622
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3623
- label: string;
3624
3622
  id: string;
3623
+ label: string;
3624
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3625
3625
  capture: "at_action" | "historical_lookup" | "fixture";
3626
3626
  locator?: string | undefined;
3627
3627
  }[] | undefined;
@@ -3631,9 +3631,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3631
3631
  correctionId: string;
3632
3632
  replacementDecisionId: string;
3633
3633
  evidence?: {
3634
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3635
- label: string;
3636
3634
  id: string;
3635
+ label: string;
3636
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3637
3637
  capture: "at_action" | "historical_lookup" | "fixture";
3638
3638
  locator?: string | undefined;
3639
3639
  }[] | undefined;
@@ -3646,9 +3646,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3646
3646
  recallReceiptId: string;
3647
3647
  capturedAtAction: boolean;
3648
3648
  evidence?: {
3649
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3650
- label: string;
3651
3649
  id: string;
3650
+ label: string;
3651
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3652
3652
  capture: "at_action" | "historical_lookup" | "fixture";
3653
3653
  locator?: string | undefined;
3654
3654
  }[] | undefined;
@@ -3661,20 +3661,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3661
3661
  recallReceiptId: string;
3662
3662
  staleDecisionAbsent: boolean;
3663
3663
  evidence?: {
3664
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3665
- label: string;
3666
3664
  id: string;
3665
+ label: string;
3666
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3667
3667
  capture: "at_action" | "historical_lookup" | "fixture";
3668
3668
  locator?: string | undefined;
3669
3669
  }[] | undefined;
3670
3670
  } | {
3671
- kind: "mission_completed";
3672
3671
  summary: string;
3672
+ kind: "mission_completed";
3673
3673
  outcome: "failed" | "recovered" | "inconclusive";
3674
3674
  evidence?: {
3675
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3676
- label: string;
3677
3675
  id: string;
3676
+ label: string;
3677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3678
3678
  capture: "at_action" | "historical_lookup" | "fixture";
3679
3679
  locator?: string | undefined;
3680
3680
  }[] | undefined;
@@ -3704,15 +3704,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3704
3704
  locator: z.ZodOptional<z.ZodString>;
3705
3705
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3706
3706
  }, "strict", z.ZodTypeAny, {
3707
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3708
- label: string;
3709
3707
  id: string;
3708
+ label: string;
3709
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3710
3710
  capture: "at_action" | "historical_lookup" | "fixture";
3711
3711
  locator?: string | undefined;
3712
3712
  }, {
3713
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3714
- label: string;
3715
3713
  id: string;
3714
+ label: string;
3715
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3716
3716
  capture: "at_action" | "historical_lookup" | "fixture";
3717
3717
  locator?: string | undefined;
3718
3718
  }>, "many">>;
@@ -3720,9 +3720,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3720
3720
  kind: "mission_started";
3721
3721
  title: string;
3722
3722
  evidence: {
3723
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3724
- label: string;
3725
3723
  id: string;
3724
+ label: string;
3725
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3726
3726
  capture: "at_action" | "historical_lookup" | "fixture";
3727
3727
  locator?: string | undefined;
3728
3728
  }[];
@@ -3734,9 +3734,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3734
3734
  objective: string;
3735
3735
  runMode: "replay" | "fixture" | "live";
3736
3736
  evidence?: {
3737
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3738
- label: string;
3739
3737
  id: string;
3738
+ label: string;
3739
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
3740
  capture: "at_action" | "historical_lookup" | "fixture";
3741
3741
  locator?: string | undefined;
3742
3742
  }[] | undefined;
@@ -3752,15 +3752,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3752
3752
  locator: z.ZodOptional<z.ZodString>;
3753
3753
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3754
3754
  }, "strict", z.ZodTypeAny, {
3755
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3756
- label: string;
3757
3755
  id: string;
3756
+ label: string;
3757
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3758
3758
  capture: "at_action" | "historical_lookup" | "fixture";
3759
3759
  locator?: string | undefined;
3760
3760
  }, {
3761
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3762
- label: string;
3763
3761
  id: string;
3762
+ label: string;
3763
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3764
3764
  capture: "at_action" | "historical_lookup" | "fixture";
3765
3765
  locator?: string | undefined;
3766
3766
  }>, "many">>;
@@ -3768,32 +3768,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3768
3768
  sessionId: z.ZodString;
3769
3769
  kind: z.ZodLiteral<"agent_status">;
3770
3770
  }, "strict", z.ZodTypeAny, {
3771
- kind: "agent_status";
3772
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3773
3771
  label: string;
3772
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3773
+ kind: "agent_status";
3774
3774
  role: string;
3775
3775
  agentId: string;
3776
3776
  sessionId: string;
3777
3777
  evidence: {
3778
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3779
- label: string;
3780
3778
  id: string;
3779
+ label: string;
3780
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3781
3781
  capture: "at_action" | "historical_lookup" | "fixture";
3782
3782
  locator?: string | undefined;
3783
3783
  }[];
3784
3784
  detail?: string | undefined;
3785
3785
  }, {
3786
- kind: "agent_status";
3787
- status: "failed" | "complete" | "blocked" | "idle" | "working";
3788
3786
  label: string;
3787
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
3788
+ kind: "agent_status";
3789
3789
  role: string;
3790
3790
  agentId: string;
3791
3791
  sessionId: string;
3792
3792
  detail?: string | undefined;
3793
3793
  evidence?: {
3794
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3795
- label: string;
3796
3794
  id: string;
3795
+ label: string;
3796
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3797
3797
  capture: "at_action" | "historical_lookup" | "fixture";
3798
3798
  locator?: string | undefined;
3799
3799
  }[] | undefined;
@@ -3807,15 +3807,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3807
3807
  locator: z.ZodOptional<z.ZodString>;
3808
3808
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3809
3809
  }, "strict", z.ZodTypeAny, {
3810
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3811
- label: string;
3812
3810
  id: string;
3811
+ label: string;
3812
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3813
3813
  capture: "at_action" | "historical_lookup" | "fixture";
3814
3814
  locator?: string | undefined;
3815
3815
  }, {
3816
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3817
- label: string;
3818
3816
  id: string;
3817
+ label: string;
3818
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3819
3819
  capture: "at_action" | "historical_lookup" | "fixture";
3820
3820
  locator?: string | undefined;
3821
3821
  }>, "many">>;
@@ -3823,28 +3823,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3823
3823
  sessionId: z.ZodString;
3824
3824
  kind: z.ZodLiteral<"agent_output">;
3825
3825
  }, "strict", z.ZodTypeAny, {
3826
- kind: "agent_output";
3827
3826
  summary: string;
3827
+ kind: "agent_output";
3828
3828
  agentId: string;
3829
3829
  sessionId: string;
3830
3830
  evidence: {
3831
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3832
- label: string;
3833
3831
  id: string;
3832
+ label: string;
3833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3834
3834
  capture: "at_action" | "historical_lookup" | "fixture";
3835
3835
  locator?: string | undefined;
3836
3836
  }[];
3837
3837
  outputId: string;
3838
3838
  }, {
3839
- kind: "agent_output";
3840
3839
  summary: string;
3840
+ kind: "agent_output";
3841
3841
  agentId: string;
3842
3842
  sessionId: string;
3843
3843
  outputId: string;
3844
3844
  evidence?: {
3845
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3846
- label: string;
3847
3845
  id: string;
3846
+ label: string;
3847
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3848
3848
  capture: "at_action" | "historical_lookup" | "fixture";
3849
3849
  locator?: string | undefined;
3850
3850
  }[] | undefined;
@@ -3860,15 +3860,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3860
3860
  locator: z.ZodOptional<z.ZodString>;
3861
3861
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3862
3862
  }, "strict", z.ZodTypeAny, {
3863
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3864
- label: string;
3865
3863
  id: string;
3864
+ label: string;
3865
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3866
3866
  capture: "at_action" | "historical_lookup" | "fixture";
3867
3867
  locator?: string | undefined;
3868
3868
  }, {
3869
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
- label: string;
3871
3869
  id: string;
3870
+ label: string;
3871
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3872
3872
  capture: "at_action" | "historical_lookup" | "fixture";
3873
3873
  locator?: string | undefined;
3874
3874
  }>, "many">>;
@@ -3881,9 +3881,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3881
3881
  statement: string;
3882
3882
  sessionId: string;
3883
3883
  evidence: {
3884
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3885
- label: string;
3886
3884
  id: string;
3885
+ label: string;
3886
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3887
3887
  capture: "at_action" | "historical_lookup" | "fixture";
3888
3888
  locator?: string | undefined;
3889
3889
  }[];
@@ -3899,9 +3899,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3899
3899
  decisionId: string;
3900
3900
  confidence?: number | undefined;
3901
3901
  evidence?: {
3902
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3903
- label: string;
3904
3902
  id: string;
3903
+ label: string;
3904
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3905
3905
  capture: "at_action" | "historical_lookup" | "fixture";
3906
3906
  locator?: string | undefined;
3907
3907
  }[] | undefined;
@@ -3918,25 +3918,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3918
3918
  locator: z.ZodOptional<z.ZodString>;
3919
3919
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3920
3920
  }, "strict", z.ZodTypeAny, {
3921
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3922
- label: string;
3923
3921
  id: string;
3922
+ label: string;
3923
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3924
3924
  capture: "at_action" | "historical_lookup" | "fixture";
3925
3925
  locator?: string | undefined;
3926
3926
  }, {
3927
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3928
- label: string;
3929
3927
  id: string;
3928
+ label: string;
3929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3930
3930
  capture: "at_action" | "historical_lookup" | "fixture";
3931
3931
  locator?: string | undefined;
3932
3932
  }>, "many">>;
3933
3933
  }, "strict", z.ZodTypeAny, {
3934
- kind: "conflict_detected";
3935
3934
  summary: string;
3935
+ kind: "conflict_detected";
3936
3936
  evidence: {
3937
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3938
- label: string;
3939
3937
  id: string;
3938
+ label: string;
3939
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3940
3940
  capture: "at_action" | "historical_lookup" | "fixture";
3941
3941
  locator?: string | undefined;
3942
3942
  }[];
@@ -3944,15 +3944,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3944
3944
  decisionIds: string[];
3945
3945
  agentIds: string[];
3946
3946
  }, {
3947
- kind: "conflict_detected";
3948
3947
  summary: string;
3948
+ kind: "conflict_detected";
3949
3949
  conflictId: string;
3950
3950
  decisionIds: string[];
3951
3951
  agentIds: string[];
3952
3952
  evidence?: {
3953
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3954
- label: string;
3955
3953
  id: string;
3954
+ label: string;
3955
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3956
3956
  capture: "at_action" | "historical_lookup" | "fixture";
3957
3957
  locator?: string | undefined;
3958
3958
  }[] | undefined;
@@ -3972,27 +3972,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3972
3972
  locator: z.ZodOptional<z.ZodString>;
3973
3973
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3974
3974
  }, "strict", z.ZodTypeAny, {
3975
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3976
- label: string;
3977
3975
  id: string;
3976
+ label: string;
3977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3978
3978
  capture: "at_action" | "historical_lookup" | "fixture";
3979
3979
  locator?: string | undefined;
3980
3980
  }, {
3981
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3982
- label: string;
3983
3981
  id: string;
3982
+ label: string;
3983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3984
3984
  capture: "at_action" | "historical_lookup" | "fixture";
3985
3985
  locator?: string | undefined;
3986
3986
  }>, "many">>;
3987
3987
  }, "strict", z.ZodTypeAny, {
3988
- kind: "test_result";
3989
3988
  summary: string;
3990
3989
  status: "error" | "failed" | "passed";
3990
+ kind: "test_result";
3991
3991
  command: string;
3992
3992
  evidence: {
3993
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3994
- label: string;
3995
3993
  id: string;
3994
+ label: string;
3995
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3996
3996
  capture: "at_action" | "historical_lookup" | "fixture";
3997
3997
  locator?: string | undefined;
3998
3998
  }[];
@@ -4001,17 +4001,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4001
4001
  durationMs?: number | undefined;
4002
4002
  correctionId?: string | undefined;
4003
4003
  }, {
4004
- kind: "test_result";
4005
4004
  summary: string;
4006
4005
  status: "error" | "failed" | "passed";
4006
+ kind: "test_result";
4007
4007
  command: string;
4008
4008
  decisionId: string;
4009
4009
  testId: string;
4010
4010
  durationMs?: number | undefined;
4011
4011
  evidence?: {
4012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4013
- label: string;
4014
4012
  id: string;
4013
+ label: string;
4014
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4015
4015
  capture: "at_action" | "historical_lookup" | "fixture";
4016
4016
  locator?: string | undefined;
4017
4017
  }[] | undefined;
@@ -4032,15 +4032,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4032
4032
  locator: z.ZodOptional<z.ZodString>;
4033
4033
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4034
4034
  }, "strict", z.ZodTypeAny, {
4035
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4036
- label: string;
4037
4035
  id: string;
4036
+ label: string;
4037
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4038
4038
  capture: "at_action" | "historical_lookup" | "fixture";
4039
4039
  locator?: string | undefined;
4040
4040
  }, {
4041
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4042
- label: string;
4043
4041
  id: string;
4042
+ label: string;
4043
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4044
4044
  capture: "at_action" | "historical_lookup" | "fixture";
4045
4045
  locator?: string | undefined;
4046
4046
  }>, "many">>;
@@ -4049,9 +4049,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4049
4049
  statement: string;
4050
4050
  rationale: string;
4051
4051
  evidence: {
4052
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4053
- label: string;
4054
4052
  id: string;
4053
+ label: string;
4054
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4055
4055
  capture: "at_action" | "historical_lookup" | "fixture";
4056
4056
  locator?: string | undefined;
4057
4057
  }[];
@@ -4070,9 +4070,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4070
4070
  supersedesDecisionIds: string[];
4071
4071
  proposedBy: string;
4072
4072
  evidence?: {
4073
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4074
- label: string;
4075
4073
  id: string;
4074
+ label: string;
4075
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4076
4076
  capture: "at_action" | "historical_lookup" | "fixture";
4077
4077
  locator?: string | undefined;
4078
4078
  }[] | undefined;
@@ -4084,13 +4084,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4084
4084
  id: z.ZodString;
4085
4085
  label: z.ZodString;
4086
4086
  }, "strict", z.ZodTypeAny, {
4087
- kind: "agent" | "human";
4088
- label: string;
4089
4087
  id: string;
4090
- }, {
4091
- kind: "agent" | "human";
4092
4088
  label: string;
4089
+ kind: "agent" | "human";
4090
+ }, {
4093
4091
  id: string;
4092
+ label: string;
4093
+ kind: "agent" | "human";
4094
4094
  }>;
4095
4095
  note: z.ZodOptional<z.ZodString>;
4096
4096
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -4100,47 +4100,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4100
4100
  locator: z.ZodOptional<z.ZodString>;
4101
4101
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4102
4102
  }, "strict", z.ZodTypeAny, {
4103
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4104
- label: string;
4105
4103
  id: string;
4104
+ label: string;
4105
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4106
4106
  capture: "at_action" | "historical_lookup" | "fixture";
4107
4107
  locator?: string | undefined;
4108
4108
  }, {
4109
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4110
- label: string;
4111
4109
  id: string;
4110
+ label: string;
4111
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4112
4112
  capture: "at_action" | "historical_lookup" | "fixture";
4113
4113
  locator?: string | undefined;
4114
4114
  }>, "many">>;
4115
4115
  }, "strict", z.ZodTypeAny, {
4116
4116
  kind: "correction_approved";
4117
4117
  evidence: {
4118
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4119
- label: string;
4120
4118
  id: string;
4119
+ label: string;
4120
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4121
4121
  capture: "at_action" | "historical_lookup" | "fixture";
4122
4122
  locator?: string | undefined;
4123
4123
  }[];
4124
4124
  correctionId: string;
4125
4125
  approvedBy: {
4126
- kind: "agent" | "human";
4127
- label: string;
4128
4126
  id: string;
4127
+ label: string;
4128
+ kind: "agent" | "human";
4129
4129
  };
4130
4130
  note?: string | undefined;
4131
4131
  }, {
4132
4132
  kind: "correction_approved";
4133
4133
  correctionId: string;
4134
4134
  approvedBy: {
4135
- kind: "agent" | "human";
4136
- label: string;
4137
4135
  id: string;
4136
+ label: string;
4137
+ kind: "agent" | "human";
4138
4138
  };
4139
4139
  note?: string | undefined;
4140
4140
  evidence?: {
4141
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4142
- label: string;
4143
4141
  id: string;
4142
+ label: string;
4143
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4144
4144
  capture: "at_action" | "historical_lookup" | "fixture";
4145
4145
  locator?: string | undefined;
4146
4146
  }[] | undefined;
@@ -4156,24 +4156,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4156
4156
  locator: z.ZodOptional<z.ZodString>;
4157
4157
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4158
4158
  }, "strict", z.ZodTypeAny, {
4159
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4160
- label: string;
4161
4159
  id: string;
4160
+ label: string;
4161
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4162
4162
  capture: "at_action" | "historical_lookup" | "fixture";
4163
4163
  locator?: string | undefined;
4164
4164
  }, {
4165
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4166
- label: string;
4167
4165
  id: string;
4166
+ label: string;
4167
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4168
4168
  capture: "at_action" | "historical_lookup" | "fixture";
4169
4169
  locator?: string | undefined;
4170
4170
  }>, "many">>;
4171
4171
  }, "strict", z.ZodTypeAny, {
4172
4172
  kind: "decision_superseded";
4173
4173
  evidence: {
4174
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4175
- label: string;
4176
4174
  id: string;
4175
+ label: string;
4176
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4177
4177
  capture: "at_action" | "historical_lookup" | "fixture";
4178
4178
  locator?: string | undefined;
4179
4179
  }[];
@@ -4186,9 +4186,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4186
4186
  correctionId: string;
4187
4187
  replacementDecisionId: string;
4188
4188
  evidence?: {
4189
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4190
- label: string;
4191
4189
  id: string;
4190
+ label: string;
4191
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4192
4192
  capture: "at_action" | "historical_lookup" | "fixture";
4193
4193
  locator?: string | undefined;
4194
4194
  }[] | undefined;
@@ -4204,15 +4204,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4204
4204
  locator: z.ZodOptional<z.ZodString>;
4205
4205
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4206
4206
  }, "strict", z.ZodTypeAny, {
4207
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4208
- label: string;
4209
4207
  id: string;
4208
+ label: string;
4209
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4210
4210
  capture: "at_action" | "historical_lookup" | "fixture";
4211
4211
  locator?: string | undefined;
4212
4212
  }, {
4213
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4214
- label: string;
4215
4213
  id: string;
4214
+ label: string;
4215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4216
4216
  capture: "at_action" | "historical_lookup" | "fixture";
4217
4217
  locator?: string | undefined;
4218
4218
  }>, "many">>;
@@ -4225,9 +4225,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4225
4225
  agentId: string;
4226
4226
  sessionId: string;
4227
4227
  evidence: {
4228
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4229
- label: string;
4230
4228
  id: string;
4229
+ label: string;
4230
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4231
4231
  capture: "at_action" | "historical_lookup" | "fixture";
4232
4232
  locator?: string | undefined;
4233
4233
  }[];
@@ -4243,9 +4243,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4243
4243
  recallReceiptId: string;
4244
4244
  capturedAtAction: boolean;
4245
4245
  evidence?: {
4246
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4247
- label: string;
4248
4246
  id: string;
4247
+ label: string;
4248
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4249
4249
  capture: "at_action" | "historical_lookup" | "fixture";
4250
4250
  locator?: string | undefined;
4251
4251
  }[] | undefined;
@@ -4261,15 +4261,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4261
4261
  locator: z.ZodOptional<z.ZodString>;
4262
4262
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4263
4263
  }, "strict", z.ZodTypeAny, {
4264
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4265
- label: string;
4266
4264
  id: string;
4265
+ label: string;
4266
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4267
4267
  capture: "at_action" | "historical_lookup" | "fixture";
4268
4268
  locator?: string | undefined;
4269
4269
  }, {
4270
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4271
- label: string;
4272
4270
  id: string;
4271
+ label: string;
4272
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4273
4273
  capture: "at_action" | "historical_lookup" | "fixture";
4274
4274
  locator?: string | undefined;
4275
4275
  }>, "many">>;
@@ -4281,9 +4281,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4281
4281
  agentId: string;
4282
4282
  sessionId: string;
4283
4283
  evidence: {
4284
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4285
- label: string;
4286
4284
  id: string;
4285
+ label: string;
4286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4287
4287
  capture: "at_action" | "historical_lookup" | "fixture";
4288
4288
  locator?: string | undefined;
4289
4289
  }[];
@@ -4300,9 +4300,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4300
4300
  recallReceiptId: string;
4301
4301
  staleDecisionAbsent: boolean;
4302
4302
  evidence?: {
4303
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4304
- label: string;
4305
4303
  id: string;
4304
+ label: string;
4305
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4306
4306
  capture: "at_action" | "historical_lookup" | "fixture";
4307
4307
  locator?: string | undefined;
4308
4308
  }[] | undefined;
@@ -4317,37 +4317,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4317
4317
  locator: z.ZodOptional<z.ZodString>;
4318
4318
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4319
4319
  }, "strict", z.ZodTypeAny, {
4320
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4321
- label: string;
4322
4320
  id: string;
4321
+ label: string;
4322
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4323
4323
  capture: "at_action" | "historical_lookup" | "fixture";
4324
4324
  locator?: string | undefined;
4325
4325
  }, {
4326
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4327
- label: string;
4328
4326
  id: string;
4327
+ label: string;
4328
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4329
4329
  capture: "at_action" | "historical_lookup" | "fixture";
4330
4330
  locator?: string | undefined;
4331
4331
  }>, "many">>;
4332
4332
  }, "strict", z.ZodTypeAny, {
4333
- kind: "mission_completed";
4334
4333
  summary: string;
4334
+ kind: "mission_completed";
4335
4335
  outcome: "failed" | "recovered" | "inconclusive";
4336
4336
  evidence: {
4337
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4338
- label: string;
4339
4337
  id: string;
4338
+ label: string;
4339
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4340
4340
  capture: "at_action" | "historical_lookup" | "fixture";
4341
4341
  locator?: string | undefined;
4342
4342
  }[];
4343
4343
  }, {
4344
- kind: "mission_completed";
4345
4344
  summary: string;
4345
+ kind: "mission_completed";
4346
4346
  outcome: "failed" | "recovered" | "inconclusive";
4347
4347
  evidence?: {
4348
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4349
- label: string;
4350
4348
  id: string;
4349
+ label: string;
4350
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4351
4351
  capture: "at_action" | "historical_lookup" | "fixture";
4352
4352
  locator?: string | undefined;
4353
4353
  }[] | undefined;
@@ -4355,38 +4355,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4355
4355
  kind: "mission_started";
4356
4356
  title: string;
4357
4357
  evidence: {
4358
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4359
- label: string;
4360
4358
  id: string;
4359
+ label: string;
4360
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4361
4361
  capture: "at_action" | "historical_lookup" | "fixture";
4362
4362
  locator?: string | undefined;
4363
4363
  }[];
4364
4364
  objective: string;
4365
4365
  runMode: "replay" | "fixture" | "live";
4366
4366
  } | {
4367
- kind: "agent_status";
4368
- status: "failed" | "complete" | "blocked" | "idle" | "working";
4369
4367
  label: string;
4368
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
4369
+ kind: "agent_status";
4370
4370
  role: string;
4371
4371
  agentId: string;
4372
4372
  sessionId: string;
4373
4373
  evidence: {
4374
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4375
- label: string;
4376
4374
  id: string;
4375
+ label: string;
4376
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4377
4377
  capture: "at_action" | "historical_lookup" | "fixture";
4378
4378
  locator?: string | undefined;
4379
4379
  }[];
4380
4380
  detail?: string | undefined;
4381
4381
  } | {
4382
- kind: "agent_output";
4383
4382
  summary: string;
4383
+ kind: "agent_output";
4384
4384
  agentId: string;
4385
4385
  sessionId: string;
4386
4386
  evidence: {
4387
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4388
- label: string;
4389
4387
  id: string;
4388
+ label: string;
4389
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4390
4390
  capture: "at_action" | "historical_lookup" | "fixture";
4391
4391
  locator?: string | undefined;
4392
4392
  }[];
@@ -4397,9 +4397,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4397
4397
  statement: string;
4398
4398
  sessionId: string;
4399
4399
  evidence: {
4400
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4401
- label: string;
4402
4400
  id: string;
4401
+ label: string;
4402
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4403
4403
  capture: "at_action" | "historical_lookup" | "fixture";
4404
4404
  locator?: string | undefined;
4405
4405
  }[];
@@ -4407,12 +4407,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4407
4407
  decisionId: string;
4408
4408
  confidence?: number | undefined;
4409
4409
  } | {
4410
- kind: "conflict_detected";
4411
4410
  summary: string;
4411
+ kind: "conflict_detected";
4412
4412
  evidence: {
4413
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4414
- label: string;
4415
4413
  id: string;
4414
+ label: string;
4415
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4416
4416
  capture: "at_action" | "historical_lookup" | "fixture";
4417
4417
  locator?: string | undefined;
4418
4418
  }[];
@@ -4420,14 +4420,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4420
4420
  decisionIds: string[];
4421
4421
  agentIds: string[];
4422
4422
  } | {
4423
- kind: "test_result";
4424
4423
  summary: string;
4425
4424
  status: "error" | "failed" | "passed";
4425
+ kind: "test_result";
4426
4426
  command: string;
4427
4427
  evidence: {
4428
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4429
- label: string;
4430
4428
  id: string;
4429
+ label: string;
4430
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4431
4431
  capture: "at_action" | "historical_lookup" | "fixture";
4432
4432
  locator?: string | undefined;
4433
4433
  }[];
@@ -4440,9 +4440,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4440
4440
  statement: string;
4441
4441
  rationale: string;
4442
4442
  evidence: {
4443
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4444
- label: string;
4445
4443
  id: string;
4444
+ label: string;
4445
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4446
4446
  capture: "at_action" | "historical_lookup" | "fixture";
4447
4447
  locator?: string | undefined;
4448
4448
  }[];
@@ -4454,25 +4454,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4454
4454
  } | {
4455
4455
  kind: "correction_approved";
4456
4456
  evidence: {
4457
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4458
- label: string;
4459
4457
  id: string;
4458
+ label: string;
4459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4460
4460
  capture: "at_action" | "historical_lookup" | "fixture";
4461
4461
  locator?: string | undefined;
4462
4462
  }[];
4463
4463
  correctionId: string;
4464
4464
  approvedBy: {
4465
- kind: "agent" | "human";
4466
- label: string;
4467
4465
  id: string;
4466
+ label: string;
4467
+ kind: "agent" | "human";
4468
4468
  };
4469
4469
  note?: string | undefined;
4470
4470
  } | {
4471
4471
  kind: "decision_superseded";
4472
4472
  evidence: {
4473
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4474
- label: string;
4475
4473
  id: string;
4474
+ label: string;
4475
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4476
4476
  capture: "at_action" | "historical_lookup" | "fixture";
4477
4477
  locator?: string | undefined;
4478
4478
  }[];
@@ -4485,9 +4485,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4485
4485
  agentId: string;
4486
4486
  sessionId: string;
4487
4487
  evidence: {
4488
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4489
- label: string;
4490
4488
  id: string;
4489
+ label: string;
4490
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4491
4491
  capture: "at_action" | "historical_lookup" | "fixture";
4492
4492
  locator?: string | undefined;
4493
4493
  }[];
@@ -4499,9 +4499,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4499
4499
  agentId: string;
4500
4500
  sessionId: string;
4501
4501
  evidence: {
4502
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
- label: string;
4504
4502
  id: string;
4503
+ label: string;
4504
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4505
4505
  capture: "at_action" | "historical_lookup" | "fixture";
4506
4506
  locator?: string | undefined;
4507
4507
  }[];
@@ -4510,13 +4510,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4510
4510
  recallReceiptId: string;
4511
4511
  staleDecisionAbsent: boolean;
4512
4512
  } | {
4513
- kind: "mission_completed";
4514
4513
  summary: string;
4514
+ kind: "mission_completed";
4515
4515
  outcome: "failed" | "recovered" | "inconclusive";
4516
4516
  evidence: {
4517
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4518
- label: string;
4519
4517
  id: string;
4518
+ label: string;
4519
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4520
4520
  capture: "at_action" | "historical_lookup" | "fixture";
4521
4521
  locator?: string | undefined;
4522
4522
  }[];
@@ -4526,37 +4526,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4526
4526
  objective: string;
4527
4527
  runMode: "replay" | "fixture" | "live";
4528
4528
  evidence?: {
4529
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4530
- label: string;
4531
4529
  id: string;
4530
+ label: string;
4531
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4532
4532
  capture: "at_action" | "historical_lookup" | "fixture";
4533
4533
  locator?: string | undefined;
4534
4534
  }[] | undefined;
4535
4535
  } | {
4536
- kind: "agent_status";
4537
- status: "failed" | "complete" | "blocked" | "idle" | "working";
4538
4536
  label: string;
4537
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
4538
+ kind: "agent_status";
4539
4539
  role: string;
4540
4540
  agentId: string;
4541
4541
  sessionId: string;
4542
4542
  detail?: string | undefined;
4543
4543
  evidence?: {
4544
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4545
- label: string;
4546
4544
  id: string;
4545
+ label: string;
4546
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4547
4547
  capture: "at_action" | "historical_lookup" | "fixture";
4548
4548
  locator?: string | undefined;
4549
4549
  }[] | undefined;
4550
4550
  } | {
4551
- kind: "agent_output";
4552
4551
  summary: string;
4552
+ kind: "agent_output";
4553
4553
  agentId: string;
4554
4554
  sessionId: string;
4555
4555
  outputId: string;
4556
4556
  evidence?: {
4557
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4558
- label: string;
4559
4557
  id: string;
4558
+ label: string;
4559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4560
4560
  capture: "at_action" | "historical_lookup" | "fixture";
4561
4561
  locator?: string | undefined;
4562
4562
  }[] | undefined;
@@ -4569,37 +4569,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4569
4569
  decisionId: string;
4570
4570
  confidence?: number | undefined;
4571
4571
  evidence?: {
4572
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4573
- label: string;
4574
4572
  id: string;
4573
+ label: string;
4574
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4575
4575
  capture: "at_action" | "historical_lookup" | "fixture";
4576
4576
  locator?: string | undefined;
4577
4577
  }[] | undefined;
4578
4578
  } | {
4579
- kind: "conflict_detected";
4580
4579
  summary: string;
4580
+ kind: "conflict_detected";
4581
4581
  conflictId: string;
4582
4582
  decisionIds: string[];
4583
4583
  agentIds: string[];
4584
4584
  evidence?: {
4585
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4586
- label: string;
4587
4585
  id: string;
4586
+ label: string;
4587
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4588
4588
  capture: "at_action" | "historical_lookup" | "fixture";
4589
4589
  locator?: string | undefined;
4590
4590
  }[] | undefined;
4591
4591
  } | {
4592
- kind: "test_result";
4593
4592
  summary: string;
4594
4593
  status: "error" | "failed" | "passed";
4594
+ kind: "test_result";
4595
4595
  command: string;
4596
4596
  decisionId: string;
4597
4597
  testId: string;
4598
4598
  durationMs?: number | undefined;
4599
4599
  evidence?: {
4600
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4601
- label: string;
4602
4600
  id: string;
4601
+ label: string;
4602
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4603
4603
  capture: "at_action" | "historical_lookup" | "fixture";
4604
4604
  locator?: string | undefined;
4605
4605
  }[] | undefined;
@@ -4614,9 +4614,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4614
4614
  supersedesDecisionIds: string[];
4615
4615
  proposedBy: string;
4616
4616
  evidence?: {
4617
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4618
- label: string;
4619
4617
  id: string;
4618
+ label: string;
4619
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4620
4620
  capture: "at_action" | "historical_lookup" | "fixture";
4621
4621
  locator?: string | undefined;
4622
4622
  }[] | undefined;
@@ -4624,15 +4624,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4624
4624
  kind: "correction_approved";
4625
4625
  correctionId: string;
4626
4626
  approvedBy: {
4627
- kind: "agent" | "human";
4628
- label: string;
4629
4627
  id: string;
4628
+ label: string;
4629
+ kind: "agent" | "human";
4630
4630
  };
4631
4631
  note?: string | undefined;
4632
4632
  evidence?: {
4633
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4634
- label: string;
4635
4633
  id: string;
4634
+ label: string;
4635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4636
4636
  capture: "at_action" | "historical_lookup" | "fixture";
4637
4637
  locator?: string | undefined;
4638
4638
  }[] | undefined;
@@ -4642,9 +4642,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4642
4642
  correctionId: string;
4643
4643
  replacementDecisionId: string;
4644
4644
  evidence?: {
4645
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4646
- label: string;
4647
4645
  id: string;
4646
+ label: string;
4647
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4648
4648
  capture: "at_action" | "historical_lookup" | "fixture";
4649
4649
  locator?: string | undefined;
4650
4650
  }[] | undefined;
@@ -4657,9 +4657,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4657
4657
  recallReceiptId: string;
4658
4658
  capturedAtAction: boolean;
4659
4659
  evidence?: {
4660
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4661
- label: string;
4662
4660
  id: string;
4661
+ label: string;
4662
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4663
4663
  capture: "at_action" | "historical_lookup" | "fixture";
4664
4664
  locator?: string | undefined;
4665
4665
  }[] | undefined;
@@ -4672,63 +4672,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4672
4672
  recallReceiptId: string;
4673
4673
  staleDecisionAbsent: boolean;
4674
4674
  evidence?: {
4675
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4676
- label: string;
4677
4675
  id: string;
4676
+ label: string;
4677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4678
4678
  capture: "at_action" | "historical_lookup" | "fixture";
4679
4679
  locator?: string | undefined;
4680
4680
  }[] | undefined;
4681
4681
  } | {
4682
- kind: "mission_completed";
4683
4682
  summary: string;
4683
+ kind: "mission_completed";
4684
4684
  outcome: "failed" | "recovered" | "inconclusive";
4685
4685
  evidence?: {
4686
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4687
- label: string;
4688
4686
  id: string;
4687
+ label: string;
4688
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4689
4689
  capture: "at_action" | "historical_lookup" | "fixture";
4690
4690
  locator?: string | undefined;
4691
4691
  }[] | undefined;
4692
4692
  }>;
4693
4693
  }, "strict", z.ZodTypeAny, {
4694
- schemaVersion: "1";
4694
+ namespace: string;
4695
4695
  recordedAt: string;
4696
+ schemaVersion: "1";
4696
4697
  payload: {
4697
4698
  kind: "mission_started";
4698
4699
  title: string;
4699
4700
  evidence: {
4700
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4701
- label: string;
4702
4701
  id: string;
4702
+ label: string;
4703
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4703
4704
  capture: "at_action" | "historical_lookup" | "fixture";
4704
4705
  locator?: string | undefined;
4705
4706
  }[];
4706
4707
  objective: string;
4707
4708
  runMode: "replay" | "fixture" | "live";
4708
4709
  } | {
4709
- kind: "agent_status";
4710
- status: "failed" | "complete" | "blocked" | "idle" | "working";
4711
4710
  label: string;
4711
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
4712
+ kind: "agent_status";
4712
4713
  role: string;
4713
4714
  agentId: string;
4714
4715
  sessionId: string;
4715
4716
  evidence: {
4716
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4717
- label: string;
4718
4717
  id: string;
4718
+ label: string;
4719
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4719
4720
  capture: "at_action" | "historical_lookup" | "fixture";
4720
4721
  locator?: string | undefined;
4721
4722
  }[];
4722
4723
  detail?: string | undefined;
4723
4724
  } | {
4724
- kind: "agent_output";
4725
4725
  summary: string;
4726
+ kind: "agent_output";
4726
4727
  agentId: string;
4727
4728
  sessionId: string;
4728
4729
  evidence: {
4729
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4730
- label: string;
4731
4730
  id: string;
4731
+ label: string;
4732
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4732
4733
  capture: "at_action" | "historical_lookup" | "fixture";
4733
4734
  locator?: string | undefined;
4734
4735
  }[];
@@ -4739,9 +4740,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4739
4740
  statement: string;
4740
4741
  sessionId: string;
4741
4742
  evidence: {
4742
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4743
- label: string;
4744
4743
  id: string;
4744
+ label: string;
4745
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4745
4746
  capture: "at_action" | "historical_lookup" | "fixture";
4746
4747
  locator?: string | undefined;
4747
4748
  }[];
@@ -4749,12 +4750,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4749
4750
  decisionId: string;
4750
4751
  confidence?: number | undefined;
4751
4752
  } | {
4752
- kind: "conflict_detected";
4753
4753
  summary: string;
4754
+ kind: "conflict_detected";
4754
4755
  evidence: {
4755
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4756
- label: string;
4757
4756
  id: string;
4757
+ label: string;
4758
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4758
4759
  capture: "at_action" | "historical_lookup" | "fixture";
4759
4760
  locator?: string | undefined;
4760
4761
  }[];
@@ -4762,14 +4763,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4762
4763
  decisionIds: string[];
4763
4764
  agentIds: string[];
4764
4765
  } | {
4765
- kind: "test_result";
4766
4766
  summary: string;
4767
4767
  status: "error" | "failed" | "passed";
4768
+ kind: "test_result";
4768
4769
  command: string;
4769
4770
  evidence: {
4770
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4771
- label: string;
4772
4771
  id: string;
4772
+ label: string;
4773
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4773
4774
  capture: "at_action" | "historical_lookup" | "fixture";
4774
4775
  locator?: string | undefined;
4775
4776
  }[];
@@ -4782,9 +4783,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4782
4783
  statement: string;
4783
4784
  rationale: string;
4784
4785
  evidence: {
4785
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4786
- label: string;
4787
4786
  id: string;
4787
+ label: string;
4788
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4788
4789
  capture: "at_action" | "historical_lookup" | "fixture";
4789
4790
  locator?: string | undefined;
4790
4791
  }[];
@@ -4796,25 +4797,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4796
4797
  } | {
4797
4798
  kind: "correction_approved";
4798
4799
  evidence: {
4799
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4800
- label: string;
4801
4800
  id: string;
4801
+ label: string;
4802
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4802
4803
  capture: "at_action" | "historical_lookup" | "fixture";
4803
4804
  locator?: string | undefined;
4804
4805
  }[];
4805
4806
  correctionId: string;
4806
4807
  approvedBy: {
4807
- kind: "agent" | "human";
4808
- label: string;
4809
4808
  id: string;
4809
+ label: string;
4810
+ kind: "agent" | "human";
4810
4811
  };
4811
4812
  note?: string | undefined;
4812
4813
  } | {
4813
4814
  kind: "decision_superseded";
4814
4815
  evidence: {
4815
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4816
- label: string;
4817
4816
  id: string;
4817
+ label: string;
4818
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4818
4819
  capture: "at_action" | "historical_lookup" | "fixture";
4819
4820
  locator?: string | undefined;
4820
4821
  }[];
@@ -4827,9 +4828,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4827
4828
  agentId: string;
4828
4829
  sessionId: string;
4829
4830
  evidence: {
4830
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4831
- label: string;
4832
4831
  id: string;
4832
+ label: string;
4833
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4833
4834
  capture: "at_action" | "historical_lookup" | "fixture";
4834
4835
  locator?: string | undefined;
4835
4836
  }[];
@@ -4841,9 +4842,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4841
4842
  agentId: string;
4842
4843
  sessionId: string;
4843
4844
  evidence: {
4844
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4845
- label: string;
4846
4845
  id: string;
4846
+ label: string;
4847
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4847
4848
  capture: "at_action" | "historical_lookup" | "fixture";
4848
4849
  locator?: string | undefined;
4849
4850
  }[];
@@ -4852,63 +4853,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4852
4853
  recallReceiptId: string;
4853
4854
  staleDecisionAbsent: boolean;
4854
4855
  } | {
4855
- kind: "mission_completed";
4856
4856
  summary: string;
4857
+ kind: "mission_completed";
4857
4858
  outcome: "failed" | "recovered" | "inconclusive";
4858
4859
  evidence: {
4859
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4860
- label: string;
4861
4860
  id: string;
4861
+ label: string;
4862
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4862
4863
  capture: "at_action" | "historical_lookup" | "fixture";
4863
4864
  locator?: string | undefined;
4864
4865
  }[];
4865
4866
  };
4866
- namespace: string;
4867
4867
  eventId: string;
4868
4868
  occurredAt: string;
4869
4869
  missionId: string;
4870
4870
  idempotencyKey?: string | undefined;
4871
4871
  authenticatedPrincipal?: string | undefined;
4872
4872
  }, {
4873
- schemaVersion: "1";
4873
+ namespace: string;
4874
4874
  recordedAt: string;
4875
+ schemaVersion: "1";
4875
4876
  payload: {
4876
4877
  kind: "mission_started";
4877
4878
  title: string;
4878
4879
  objective: string;
4879
4880
  runMode: "replay" | "fixture" | "live";
4880
4881
  evidence?: {
4881
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4882
- label: string;
4883
4882
  id: string;
4883
+ label: string;
4884
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4884
4885
  capture: "at_action" | "historical_lookup" | "fixture";
4885
4886
  locator?: string | undefined;
4886
4887
  }[] | undefined;
4887
4888
  } | {
4888
- kind: "agent_status";
4889
- status: "failed" | "complete" | "blocked" | "idle" | "working";
4890
4889
  label: string;
4890
+ status: "failed" | "complete" | "blocked" | "idle" | "working";
4891
+ kind: "agent_status";
4891
4892
  role: string;
4892
4893
  agentId: string;
4893
4894
  sessionId: string;
4894
4895
  detail?: string | undefined;
4895
4896
  evidence?: {
4896
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4897
- label: string;
4898
4897
  id: string;
4898
+ label: string;
4899
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4899
4900
  capture: "at_action" | "historical_lookup" | "fixture";
4900
4901
  locator?: string | undefined;
4901
4902
  }[] | undefined;
4902
4903
  } | {
4903
- kind: "agent_output";
4904
4904
  summary: string;
4905
+ kind: "agent_output";
4905
4906
  agentId: string;
4906
4907
  sessionId: string;
4907
4908
  outputId: string;
4908
4909
  evidence?: {
4909
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4910
- label: string;
4911
4910
  id: string;
4911
+ label: string;
4912
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4912
4913
  capture: "at_action" | "historical_lookup" | "fixture";
4913
4914
  locator?: string | undefined;
4914
4915
  }[] | undefined;
@@ -4921,37 +4922,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4921
4922
  decisionId: string;
4922
4923
  confidence?: number | undefined;
4923
4924
  evidence?: {
4924
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4925
- label: string;
4926
4925
  id: string;
4926
+ label: string;
4927
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4927
4928
  capture: "at_action" | "historical_lookup" | "fixture";
4928
4929
  locator?: string | undefined;
4929
4930
  }[] | undefined;
4930
4931
  } | {
4931
- kind: "conflict_detected";
4932
4932
  summary: string;
4933
+ kind: "conflict_detected";
4933
4934
  conflictId: string;
4934
4935
  decisionIds: string[];
4935
4936
  agentIds: string[];
4936
4937
  evidence?: {
4937
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4938
- label: string;
4939
4938
  id: string;
4939
+ label: string;
4940
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4940
4941
  capture: "at_action" | "historical_lookup" | "fixture";
4941
4942
  locator?: string | undefined;
4942
4943
  }[] | undefined;
4943
4944
  } | {
4944
- kind: "test_result";
4945
4945
  summary: string;
4946
4946
  status: "error" | "failed" | "passed";
4947
+ kind: "test_result";
4947
4948
  command: string;
4948
4949
  decisionId: string;
4949
4950
  testId: string;
4950
4951
  durationMs?: number | undefined;
4951
4952
  evidence?: {
4952
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4953
- label: string;
4954
4953
  id: string;
4954
+ label: string;
4955
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4955
4956
  capture: "at_action" | "historical_lookup" | "fixture";
4956
4957
  locator?: string | undefined;
4957
4958
  }[] | undefined;
@@ -4966,9 +4967,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4966
4967
  supersedesDecisionIds: string[];
4967
4968
  proposedBy: string;
4968
4969
  evidence?: {
4969
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4970
- label: string;
4971
4970
  id: string;
4971
+ label: string;
4972
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4972
4973
  capture: "at_action" | "historical_lookup" | "fixture";
4973
4974
  locator?: string | undefined;
4974
4975
  }[] | undefined;
@@ -4976,15 +4977,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4976
4977
  kind: "correction_approved";
4977
4978
  correctionId: string;
4978
4979
  approvedBy: {
4979
- kind: "agent" | "human";
4980
- label: string;
4981
4980
  id: string;
4981
+ label: string;
4982
+ kind: "agent" | "human";
4982
4983
  };
4983
4984
  note?: string | undefined;
4984
4985
  evidence?: {
4985
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4986
- label: string;
4987
4986
  id: string;
4987
+ label: string;
4988
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4988
4989
  capture: "at_action" | "historical_lookup" | "fixture";
4989
4990
  locator?: string | undefined;
4990
4991
  }[] | undefined;
@@ -4994,9 +4995,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4994
4995
  correctionId: string;
4995
4996
  replacementDecisionId: string;
4996
4997
  evidence?: {
4997
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4998
- label: string;
4999
4998
  id: string;
4999
+ label: string;
5000
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5000
5001
  capture: "at_action" | "historical_lookup" | "fixture";
5001
5002
  locator?: string | undefined;
5002
5003
  }[] | undefined;
@@ -5009,9 +5010,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
5009
5010
  recallReceiptId: string;
5010
5011
  capturedAtAction: boolean;
5011
5012
  evidence?: {
5012
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5013
- label: string;
5014
5013
  id: string;
5014
+ label: string;
5015
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5015
5016
  capture: "at_action" | "historical_lookup" | "fixture";
5016
5017
  locator?: string | undefined;
5017
5018
  }[] | undefined;
@@ -5024,25 +5025,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
5024
5025
  recallReceiptId: string;
5025
5026
  staleDecisionAbsent: boolean;
5026
5027
  evidence?: {
5027
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5028
- label: string;
5029
5028
  id: string;
5029
+ label: string;
5030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5030
5031
  capture: "at_action" | "historical_lookup" | "fixture";
5031
5032
  locator?: string | undefined;
5032
5033
  }[] | undefined;
5033
5034
  } | {
5034
- kind: "mission_completed";
5035
5035
  summary: string;
5036
+ kind: "mission_completed";
5036
5037
  outcome: "failed" | "recovered" | "inconclusive";
5037
5038
  evidence?: {
5038
- kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5039
- label: string;
5040
5039
  id: string;
5040
+ label: string;
5041
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
5041
5042
  capture: "at_action" | "historical_lookup" | "fixture";
5042
5043
  locator?: string | undefined;
5043
5044
  }[] | undefined;
5044
5045
  };
5045
- namespace: string;
5046
5046
  eventId: string;
5047
5047
  occurredAt: string;
5048
5048
  missionId: string;