@remnic/core 9.7.10 → 9.7.11

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 (50) hide show
  1. package/dist/access-boundary.d.ts +1 -1
  2. package/dist/access-boundary.js +1 -1
  3. package/dist/access-cli.js +7 -7
  4. package/dist/access-http.d.ts +2 -1
  5. package/dist/access-http.js +5 -5
  6. package/dist/access-mcp.js +4 -4
  7. package/dist/access-operations-batch.js +2 -2
  8. package/dist/access-operations.d.ts +4 -4
  9. package/dist/access-operations.js +3 -3
  10. package/dist/access-schema.d.ts +64 -64
  11. package/dist/access-surface-catalog.js +2 -0
  12. package/dist/access-surface-catalog.js.map +1 -1
  13. package/dist/{chunk-N3LWQJ6Y.js → chunk-5U65RIVI.js} +294 -2
  14. package/dist/chunk-5U65RIVI.js.map +1 -0
  15. package/dist/{chunk-UZRIKUFS.js → chunk-6LM6PPDX.js} +3 -1
  16. package/dist/chunk-6LM6PPDX.js.map +1 -0
  17. package/dist/chunk-7XRUYC6G.js +1794 -0
  18. package/dist/chunk-7XRUYC6G.js.map +1 -0
  19. package/dist/{chunk-VDLMAJXS.js → chunk-GHVJASQ4.js} +2 -2
  20. package/dist/{chunk-7EX4YOKH.js → chunk-JYRFO4EH.js} +2 -2
  21. package/dist/{chunk-QVALQE4P.js → chunk-QHT4W3RU.js} +126 -8
  22. package/dist/chunk-QHT4W3RU.js.map +1 -0
  23. package/dist/{chunk-7CKS4AXY.js → chunk-W6R43NLA.js} +3 -3
  24. package/dist/cli.js +6 -6
  25. package/dist/index.d.ts +3990 -4
  26. package/dist/index.js +54 -7
  27. package/dist/orchestrator.js +7 -7
  28. package/dist/schemas.d.ts +52 -52
  29. package/dist/shared-context/manager.d.ts +8 -8
  30. package/dist/transfer/types.d.ts +66 -66
  31. package/package.json +2 -2
  32. package/src/access-boundary.ts +2 -0
  33. package/src/access-http.ts +147 -6
  34. package/src/access-mcp-cancellation.test.ts +2 -2
  35. package/src/access-operations.ts +2 -0
  36. package/src/access-surface-catalog.ts +2 -0
  37. package/src/index.ts +53 -0
  38. package/src/relay/mission-access.test.ts +379 -0
  39. package/src/relay/mission-access.ts +125 -0
  40. package/src/relay/mission-fixture.ts +301 -0
  41. package/src/relay/mission.test.ts +964 -0
  42. package/src/relay/mission.ts +1725 -0
  43. package/dist/chunk-FNJX2O6G.js +0 -467
  44. package/dist/chunk-FNJX2O6G.js.map +0 -1
  45. package/dist/chunk-N3LWQJ6Y.js.map +0 -1
  46. package/dist/chunk-QVALQE4P.js.map +0 -1
  47. package/dist/chunk-UZRIKUFS.js.map +0 -1
  48. /package/dist/{chunk-VDLMAJXS.js.map → chunk-GHVJASQ4.js.map} +0 -0
  49. /package/dist/{chunk-7EX4YOKH.js.map → chunk-JYRFO4EH.js.map} +0 -0
  50. /package/dist/{chunk-7CKS4AXY.js.map → chunk-W6R43NLA.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -25,7 +25,8 @@ import { aG as CodingContext, aZ as CodingModeConfig, aL as WearableConversation
25
25
  export { a3 as AgentAccessAuthToken, l as BriefingActiveThread, b2 as BriefingConfig, j as BriefingFocus, i as BriefingFollowup, b3 as BriefingOpenCommitment, n as BriefingRecentEntity, m as BriefingResult, h as BriefingSections, b4 as BriefingWindow, Z as BufferSurpriseEvent, b5 as BulkImportError, $ as BulkImportOptions, a1 as BulkImportResult, a0 as BulkImportSource, b6 as BulkImportSourceAdapter, k as CalendarEvent, C as CalendarSource, b7 as CodexCompatConfig, aY as ConsolidationObservation, ah as ContinuityImprovementLoop, b8 as DEFAULT_RECALL_DISCLOSURE, E as EntityFile, ad as EntityStructuredSection, b9 as ExtractedFact, G as GatewayConfig, ba as ImportSourceRole, _ as ImportTurn, bb as ImportTurnValidationIssue, am as MemoryActionEligibilityContext, bc as MemoryActionEligibilitySource, a7 as MemoryActionType, M as MemoryFile, p as MemoryFrontmatter, bd as MemoryObservation, be as MemoryScope, bf as RECALL_DISCLOSURE_LEVELS, R as RecallDisclosure, a2 as SecretRef, bg as WearableAuthCheck, bh as WearableFetchOptions, bi as WearableFetchPage, aO as WearableMemoryMode, aN as WearableNativeMemory, bj as WearableNativeMemoryPage, aS as WearableSourceStatus, aR as WearableSyncSummary, bk as WearableTranscriptSegment, bl as isImportRole, bm as isRecallDisclosure, bn as parseIsoTimestamp, bo as validateImportTurn } from './types-Cmkz7csa.js';
26
26
  export { JudgeBatchResult, JudgeCandidate, JudgeVerdict, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
27
27
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
28
- export { G as EngramAccessInputError, F as EngramAccessService, P as ProcedureStatsConfigSnapshot, H as ProcedureStatsRecent, I as ProcedureStatsReport, J as ProcedureStatusCounts, K as computeProcedureStats, L as formatProcedureStatsText } from './access-service-DSuzikHQ.js';
28
+ import { F as EngramAccessService } from './access-service-DSuzikHQ.js';
29
+ export { G as EngramAccessInputError, P as ProcedureStatsConfigSnapshot, H as ProcedureStatsRecent, I as ProcedureStatsReport, J as ProcedureStatusCounts, K as computeProcedureStats, L as formatProcedureStatsText } from './access-service-DSuzikHQ.js';
29
30
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
30
31
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
31
32
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -45,6 +46,9 @@ export { storagePathHash } from './storage-paths.js';
45
46
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
46
47
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
47
48
  export { EngramMcpServer } from './access-mcp.js';
49
+ import { z } from 'zod';
50
+ import { BoundOperation } from './access-boundary.js';
51
+ export { OPERATION_NAMES, OperationName } from './access-boundary.js';
48
52
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
49
53
  export { ParsedXrayCliOptions, parseXrayBudgetFlag, parseXrayCliOptions } from './recall-xray-cli.js';
50
54
  export { RECALL_XRAY_FORMATS, RecallXrayFormat, parseXrayFormat, renderXray, renderXrayJson, renderXrayMarkdown, renderXrayText } from './recall-xray-renderer.js';
@@ -73,7 +77,6 @@ export { LiveConnectorDefinition, LiveConnectorRunItem, LiveConnectorSkipReason,
73
77
  import { TokenEntry } from './tokens.js';
74
78
  export { TokenStore, buildTokenEntry, commitTokenEntry, generateToken, getAllValidTokenEntriesCached, getAllValidTokens, getAllValidTokensCached, listTokens, loadTokenStore, resolveConnectorFromToken, revokeToken, saveTokenStore } from './tokens.js';
75
79
  export { TOKEN_CAPABILITIES_VERSION, TokenCapabilities, capabilityAllowsNamespace, capabilityAllowsOp, isCapabilityRestricted, isValidNamespaceValue, normalizeCapabilities, tokenCapabilityStore, validateCapabilitiesForMint } from './access-token-capabilities.js';
76
- export { OPERATION_NAMES, OperationName } from './access-boundary.js';
77
80
  export { PostConsolidationMaterializeOptions, RunMaterializeOptions, runCodexMaterialize, runPostConsolidationMaterialize } from './connectors/codex-materialize-runner.js';
78
81
  export { MATERIALIZE_VERSION, MaterializeOptions, MaterializeResult, RolloutSummaryInput, SENTINEL_FILE, describeMemoriesDir, ensureSentinel, materializeForNamespace } from './connectors/codex-materialize.js';
79
82
  import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
@@ -110,7 +113,6 @@ import './namespaces/search.js';
110
113
  import './recall-state.js';
111
114
  import './compounding/engine.js';
112
115
  import './shared-context/manager.js';
113
- import 'zod';
114
116
  import './capabilities.js';
115
117
  import './consolidation-operator.js';
116
118
  import './memory-projection-store.js';
@@ -837,6 +839,3990 @@ declare function createNotionConnector(options?: {
837
839
  fetchFn?: NotionFetchFn;
838
840
  }): LiveConnector;
839
841
 
842
+ declare const RELAY_MISSION_SCHEMA_VERSION: "1";
843
+ declare const RELAY_MISSION_MAX_FILE_BYTES: number;
844
+ declare const RELAY_MISSION_MAX_LINE_BYTES: number;
845
+ declare const RELAY_MISSION_MAX_EVENTS = 2000;
846
+ declare const RELAY_MISSION_DEFAULT_EVENT_LIMIT = 200;
847
+ declare const RELAY_MISSION_MAX_EVENT_LIMIT = 500;
848
+ declare const RelayEvidenceRefSchema: z.ZodObject<{
849
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
850
+ id: z.ZodString;
851
+ label: z.ZodString;
852
+ locator: z.ZodOptional<z.ZodString>;
853
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
854
+ }, "strict", z.ZodTypeAny, {
855
+ id: string;
856
+ label: string;
857
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
858
+ capture: "at_action" | "historical_lookup" | "fixture";
859
+ locator?: string | undefined;
860
+ }, {
861
+ id: string;
862
+ label: string;
863
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
864
+ capture: "at_action" | "historical_lookup" | "fixture";
865
+ locator?: string | undefined;
866
+ }>;
867
+ type RelayEvidenceRef = z.infer<typeof RelayEvidenceRefSchema>;
868
+ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
869
+ kind: z.ZodLiteral<"mission_started">;
870
+ title: z.ZodString;
871
+ objective: z.ZodString;
872
+ runMode: z.ZodEnum<["live", "replay", "fixture"]>;
873
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
874
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
875
+ id: z.ZodString;
876
+ label: z.ZodString;
877
+ locator: z.ZodOptional<z.ZodString>;
878
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
879
+ }, "strict", z.ZodTypeAny, {
880
+ id: string;
881
+ label: string;
882
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
883
+ capture: "at_action" | "historical_lookup" | "fixture";
884
+ locator?: string | undefined;
885
+ }, {
886
+ id: string;
887
+ label: string;
888
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
889
+ capture: "at_action" | "historical_lookup" | "fixture";
890
+ locator?: string | undefined;
891
+ }>, "many">>;
892
+ }, "strict", z.ZodTypeAny, {
893
+ kind: "mission_started";
894
+ title: string;
895
+ objective: string;
896
+ runMode: "replay" | "fixture" | "live";
897
+ evidence: {
898
+ id: string;
899
+ label: string;
900
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
901
+ capture: "at_action" | "historical_lookup" | "fixture";
902
+ locator?: string | undefined;
903
+ }[];
904
+ }, {
905
+ kind: "mission_started";
906
+ title: string;
907
+ objective: string;
908
+ runMode: "replay" | "fixture" | "live";
909
+ evidence?: {
910
+ id: string;
911
+ label: string;
912
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
913
+ capture: "at_action" | "historical_lookup" | "fixture";
914
+ locator?: string | undefined;
915
+ }[] | undefined;
916
+ }>, z.ZodObject<{
917
+ label: z.ZodString;
918
+ role: z.ZodString;
919
+ status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
920
+ detail: z.ZodOptional<z.ZodString>;
921
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
922
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
923
+ id: z.ZodString;
924
+ label: z.ZodString;
925
+ locator: z.ZodOptional<z.ZodString>;
926
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
927
+ }, "strict", z.ZodTypeAny, {
928
+ id: string;
929
+ label: string;
930
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
931
+ capture: "at_action" | "historical_lookup" | "fixture";
932
+ locator?: string | undefined;
933
+ }, {
934
+ id: string;
935
+ label: string;
936
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
937
+ capture: "at_action" | "historical_lookup" | "fixture";
938
+ locator?: string | undefined;
939
+ }>, "many">>;
940
+ agentId: z.ZodString;
941
+ sessionId: z.ZodString;
942
+ kind: z.ZodLiteral<"agent_status">;
943
+ }, "strict", z.ZodTypeAny, {
944
+ label: string;
945
+ kind: "agent_status";
946
+ role: string;
947
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
948
+ agentId: string;
949
+ sessionId: string;
950
+ evidence: {
951
+ id: string;
952
+ label: string;
953
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
+ capture: "at_action" | "historical_lookup" | "fixture";
955
+ locator?: string | undefined;
956
+ }[];
957
+ detail?: string | undefined;
958
+ }, {
959
+ label: string;
960
+ kind: "agent_status";
961
+ role: string;
962
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
963
+ agentId: string;
964
+ sessionId: string;
965
+ detail?: string | undefined;
966
+ evidence?: {
967
+ id: string;
968
+ label: string;
969
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
970
+ capture: "at_action" | "historical_lookup" | "fixture";
971
+ locator?: string | undefined;
972
+ }[] | undefined;
973
+ }>, z.ZodObject<{
974
+ outputId: z.ZodString;
975
+ summary: z.ZodString;
976
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
977
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
978
+ id: z.ZodString;
979
+ label: z.ZodString;
980
+ locator: z.ZodOptional<z.ZodString>;
981
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
982
+ }, "strict", z.ZodTypeAny, {
983
+ id: string;
984
+ label: string;
985
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
986
+ capture: "at_action" | "historical_lookup" | "fixture";
987
+ locator?: string | undefined;
988
+ }, {
989
+ id: string;
990
+ label: string;
991
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
992
+ capture: "at_action" | "historical_lookup" | "fixture";
993
+ locator?: string | undefined;
994
+ }>, "many">>;
995
+ agentId: z.ZodString;
996
+ sessionId: z.ZodString;
997
+ kind: z.ZodLiteral<"agent_output">;
998
+ }, "strict", z.ZodTypeAny, {
999
+ summary: string;
1000
+ kind: "agent_output";
1001
+ agentId: string;
1002
+ sessionId: string;
1003
+ evidence: {
1004
+ id: string;
1005
+ label: string;
1006
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1007
+ capture: "at_action" | "historical_lookup" | "fixture";
1008
+ locator?: string | undefined;
1009
+ }[];
1010
+ outputId: string;
1011
+ }, {
1012
+ summary: string;
1013
+ kind: "agent_output";
1014
+ agentId: string;
1015
+ sessionId: string;
1016
+ outputId: string;
1017
+ evidence?: {
1018
+ id: string;
1019
+ label: string;
1020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1021
+ capture: "at_action" | "historical_lookup" | "fixture";
1022
+ locator?: string | undefined;
1023
+ }[] | undefined;
1024
+ }>, z.ZodObject<{
1025
+ beliefId: z.ZodString;
1026
+ decisionId: z.ZodString;
1027
+ statement: z.ZodString;
1028
+ confidence: z.ZodOptional<z.ZodNumber>;
1029
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1030
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1031
+ id: z.ZodString;
1032
+ label: z.ZodString;
1033
+ locator: z.ZodOptional<z.ZodString>;
1034
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1035
+ }, "strict", z.ZodTypeAny, {
1036
+ id: string;
1037
+ label: string;
1038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1039
+ capture: "at_action" | "historical_lookup" | "fixture";
1040
+ locator?: string | undefined;
1041
+ }, {
1042
+ id: string;
1043
+ label: string;
1044
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1045
+ capture: "at_action" | "historical_lookup" | "fixture";
1046
+ locator?: string | undefined;
1047
+ }>, "many">>;
1048
+ agentId: z.ZodString;
1049
+ sessionId: z.ZodString;
1050
+ kind: z.ZodLiteral<"belief_observed">;
1051
+ }, "strict", z.ZodTypeAny, {
1052
+ kind: "belief_observed";
1053
+ agentId: string;
1054
+ sessionId: string;
1055
+ statement: string;
1056
+ evidence: {
1057
+ id: string;
1058
+ label: string;
1059
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1060
+ capture: "at_action" | "historical_lookup" | "fixture";
1061
+ locator?: string | undefined;
1062
+ }[];
1063
+ beliefId: string;
1064
+ decisionId: string;
1065
+ confidence?: number | undefined;
1066
+ }, {
1067
+ kind: "belief_observed";
1068
+ agentId: string;
1069
+ sessionId: string;
1070
+ statement: string;
1071
+ beliefId: string;
1072
+ decisionId: string;
1073
+ confidence?: number | undefined;
1074
+ evidence?: {
1075
+ id: string;
1076
+ label: string;
1077
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1078
+ capture: "at_action" | "historical_lookup" | "fixture";
1079
+ locator?: string | undefined;
1080
+ }[] | undefined;
1081
+ }>, z.ZodObject<{
1082
+ kind: z.ZodLiteral<"conflict_detected">;
1083
+ conflictId: z.ZodString;
1084
+ decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1085
+ agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1086
+ summary: z.ZodString;
1087
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1088
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1089
+ id: z.ZodString;
1090
+ label: z.ZodString;
1091
+ locator: z.ZodOptional<z.ZodString>;
1092
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1093
+ }, "strict", z.ZodTypeAny, {
1094
+ id: string;
1095
+ label: string;
1096
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1097
+ capture: "at_action" | "historical_lookup" | "fixture";
1098
+ locator?: string | undefined;
1099
+ }, {
1100
+ id: string;
1101
+ label: string;
1102
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1103
+ capture: "at_action" | "historical_lookup" | "fixture";
1104
+ locator?: string | undefined;
1105
+ }>, "many">>;
1106
+ }, "strict", z.ZodTypeAny, {
1107
+ summary: string;
1108
+ kind: "conflict_detected";
1109
+ evidence: {
1110
+ id: string;
1111
+ label: string;
1112
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1113
+ capture: "at_action" | "historical_lookup" | "fixture";
1114
+ locator?: string | undefined;
1115
+ }[];
1116
+ conflictId: string;
1117
+ decisionIds: string[];
1118
+ agentIds: string[];
1119
+ }, {
1120
+ summary: string;
1121
+ kind: "conflict_detected";
1122
+ conflictId: string;
1123
+ decisionIds: string[];
1124
+ agentIds: string[];
1125
+ evidence?: {
1126
+ id: string;
1127
+ label: string;
1128
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1129
+ capture: "at_action" | "historical_lookup" | "fixture";
1130
+ locator?: string | undefined;
1131
+ }[] | undefined;
1132
+ }>, z.ZodObject<{
1133
+ kind: z.ZodLiteral<"test_result">;
1134
+ testId: z.ZodString;
1135
+ decisionId: z.ZodString;
1136
+ correctionId: z.ZodOptional<z.ZodString>;
1137
+ command: z.ZodString;
1138
+ status: z.ZodEnum<["passed", "failed", "error"]>;
1139
+ summary: z.ZodString;
1140
+ durationMs: z.ZodOptional<z.ZodNumber>;
1141
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1142
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1143
+ id: z.ZodString;
1144
+ label: z.ZodString;
1145
+ locator: z.ZodOptional<z.ZodString>;
1146
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1147
+ }, "strict", z.ZodTypeAny, {
1148
+ id: string;
1149
+ label: string;
1150
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1151
+ capture: "at_action" | "historical_lookup" | "fixture";
1152
+ locator?: string | undefined;
1153
+ }, {
1154
+ id: string;
1155
+ label: string;
1156
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1157
+ capture: "at_action" | "historical_lookup" | "fixture";
1158
+ locator?: string | undefined;
1159
+ }>, "many">>;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ summary: string;
1162
+ kind: "test_result";
1163
+ command: string;
1164
+ status: "error" | "failed" | "passed";
1165
+ evidence: {
1166
+ id: string;
1167
+ label: string;
1168
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1169
+ capture: "at_action" | "historical_lookup" | "fixture";
1170
+ locator?: string | undefined;
1171
+ }[];
1172
+ decisionId: string;
1173
+ testId: string;
1174
+ durationMs?: number | undefined;
1175
+ correctionId?: string | undefined;
1176
+ }, {
1177
+ summary: string;
1178
+ kind: "test_result";
1179
+ command: string;
1180
+ status: "error" | "failed" | "passed";
1181
+ decisionId: string;
1182
+ testId: string;
1183
+ durationMs?: number | undefined;
1184
+ evidence?: {
1185
+ id: string;
1186
+ label: string;
1187
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1188
+ capture: "at_action" | "historical_lookup" | "fixture";
1189
+ locator?: string | undefined;
1190
+ }[] | undefined;
1191
+ correctionId?: string | undefined;
1192
+ }>, z.ZodObject<{
1193
+ kind: z.ZodLiteral<"correction_proposed">;
1194
+ correctionId: z.ZodString;
1195
+ conflictId: z.ZodString;
1196
+ proposedDecisionId: z.ZodString;
1197
+ supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1198
+ statement: z.ZodString;
1199
+ rationale: z.ZodString;
1200
+ proposedBy: z.ZodString;
1201
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1202
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1203
+ id: z.ZodString;
1204
+ label: z.ZodString;
1205
+ locator: z.ZodOptional<z.ZodString>;
1206
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1207
+ }, "strict", z.ZodTypeAny, {
1208
+ id: string;
1209
+ label: string;
1210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1211
+ capture: "at_action" | "historical_lookup" | "fixture";
1212
+ locator?: string | undefined;
1213
+ }, {
1214
+ id: string;
1215
+ label: string;
1216
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1217
+ capture: "at_action" | "historical_lookup" | "fixture";
1218
+ locator?: string | undefined;
1219
+ }>, "many">>;
1220
+ }, "strict", z.ZodTypeAny, {
1221
+ kind: "correction_proposed";
1222
+ rationale: string;
1223
+ statement: string;
1224
+ evidence: {
1225
+ id: string;
1226
+ label: string;
1227
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1228
+ capture: "at_action" | "historical_lookup" | "fixture";
1229
+ locator?: string | undefined;
1230
+ }[];
1231
+ conflictId: string;
1232
+ correctionId: string;
1233
+ proposedDecisionId: string;
1234
+ supersedesDecisionIds: string[];
1235
+ proposedBy: string;
1236
+ }, {
1237
+ kind: "correction_proposed";
1238
+ rationale: string;
1239
+ statement: string;
1240
+ conflictId: string;
1241
+ correctionId: string;
1242
+ proposedDecisionId: string;
1243
+ supersedesDecisionIds: string[];
1244
+ proposedBy: string;
1245
+ evidence?: {
1246
+ id: string;
1247
+ label: string;
1248
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1249
+ capture: "at_action" | "historical_lookup" | "fixture";
1250
+ locator?: string | undefined;
1251
+ }[] | undefined;
1252
+ }>, z.ZodObject<{
1253
+ kind: z.ZodLiteral<"correction_approved">;
1254
+ correctionId: z.ZodString;
1255
+ approvedBy: z.ZodObject<{
1256
+ kind: z.ZodEnum<["human", "agent"]>;
1257
+ id: z.ZodString;
1258
+ label: z.ZodString;
1259
+ }, "strict", z.ZodTypeAny, {
1260
+ id: string;
1261
+ label: string;
1262
+ kind: "agent" | "human";
1263
+ }, {
1264
+ id: string;
1265
+ label: string;
1266
+ kind: "agent" | "human";
1267
+ }>;
1268
+ note: z.ZodOptional<z.ZodString>;
1269
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1270
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1271
+ id: z.ZodString;
1272
+ label: z.ZodString;
1273
+ locator: z.ZodOptional<z.ZodString>;
1274
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1275
+ }, "strict", z.ZodTypeAny, {
1276
+ id: string;
1277
+ label: string;
1278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1279
+ capture: "at_action" | "historical_lookup" | "fixture";
1280
+ locator?: string | undefined;
1281
+ }, {
1282
+ id: string;
1283
+ label: string;
1284
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1285
+ capture: "at_action" | "historical_lookup" | "fixture";
1286
+ locator?: string | undefined;
1287
+ }>, "many">>;
1288
+ }, "strict", z.ZodTypeAny, {
1289
+ kind: "correction_approved";
1290
+ evidence: {
1291
+ id: string;
1292
+ label: string;
1293
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1294
+ capture: "at_action" | "historical_lookup" | "fixture";
1295
+ locator?: string | undefined;
1296
+ }[];
1297
+ correctionId: string;
1298
+ approvedBy: {
1299
+ id: string;
1300
+ label: string;
1301
+ kind: "agent" | "human";
1302
+ };
1303
+ note?: string | undefined;
1304
+ }, {
1305
+ kind: "correction_approved";
1306
+ correctionId: string;
1307
+ approvedBy: {
1308
+ id: string;
1309
+ label: string;
1310
+ kind: "agent" | "human";
1311
+ };
1312
+ note?: string | undefined;
1313
+ evidence?: {
1314
+ id: string;
1315
+ label: string;
1316
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
+ capture: "at_action" | "historical_lookup" | "fixture";
1318
+ locator?: string | undefined;
1319
+ }[] | undefined;
1320
+ }>, z.ZodObject<{
1321
+ kind: z.ZodLiteral<"decision_superseded">;
1322
+ decisionId: z.ZodString;
1323
+ replacementDecisionId: z.ZodString;
1324
+ correctionId: z.ZodString;
1325
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1326
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1327
+ id: z.ZodString;
1328
+ label: z.ZodString;
1329
+ locator: z.ZodOptional<z.ZodString>;
1330
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1331
+ }, "strict", z.ZodTypeAny, {
1332
+ id: string;
1333
+ label: string;
1334
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1335
+ capture: "at_action" | "historical_lookup" | "fixture";
1336
+ locator?: string | undefined;
1337
+ }, {
1338
+ id: string;
1339
+ label: string;
1340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1341
+ capture: "at_action" | "historical_lookup" | "fixture";
1342
+ locator?: string | undefined;
1343
+ }>, "many">>;
1344
+ }, "strict", z.ZodTypeAny, {
1345
+ kind: "decision_superseded";
1346
+ evidence: {
1347
+ id: string;
1348
+ label: string;
1349
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
+ capture: "at_action" | "historical_lookup" | "fixture";
1351
+ locator?: string | undefined;
1352
+ }[];
1353
+ decisionId: string;
1354
+ correctionId: string;
1355
+ replacementDecisionId: string;
1356
+ }, {
1357
+ kind: "decision_superseded";
1358
+ decisionId: string;
1359
+ correctionId: string;
1360
+ replacementDecisionId: string;
1361
+ evidence?: {
1362
+ id: string;
1363
+ label: string;
1364
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1365
+ capture: "at_action" | "historical_lookup" | "fixture";
1366
+ locator?: string | undefined;
1367
+ }[] | undefined;
1368
+ }>, z.ZodObject<{
1369
+ recallReceiptId: z.ZodString;
1370
+ decisionId: z.ZodString;
1371
+ query: z.ZodString;
1372
+ capturedAtAction: z.ZodBoolean;
1373
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1374
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1375
+ id: z.ZodString;
1376
+ label: z.ZodString;
1377
+ locator: z.ZodOptional<z.ZodString>;
1378
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1379
+ }, "strict", z.ZodTypeAny, {
1380
+ id: string;
1381
+ label: string;
1382
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
+ capture: "at_action" | "historical_lookup" | "fixture";
1384
+ locator?: string | undefined;
1385
+ }, {
1386
+ id: string;
1387
+ label: string;
1388
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1389
+ capture: "at_action" | "historical_lookup" | "fixture";
1390
+ locator?: string | undefined;
1391
+ }>, "many">>;
1392
+ agentId: z.ZodString;
1393
+ sessionId: z.ZodString;
1394
+ kind: z.ZodLiteral<"recall_observed">;
1395
+ }, "strict", z.ZodTypeAny, {
1396
+ kind: "recall_observed";
1397
+ query: string;
1398
+ agentId: string;
1399
+ sessionId: string;
1400
+ evidence: {
1401
+ id: string;
1402
+ label: string;
1403
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1404
+ capture: "at_action" | "historical_lookup" | "fixture";
1405
+ locator?: string | undefined;
1406
+ }[];
1407
+ decisionId: string;
1408
+ recallReceiptId: string;
1409
+ capturedAtAction: boolean;
1410
+ }, {
1411
+ kind: "recall_observed";
1412
+ query: string;
1413
+ agentId: string;
1414
+ sessionId: string;
1415
+ decisionId: string;
1416
+ recallReceiptId: string;
1417
+ capturedAtAction: boolean;
1418
+ evidence?: {
1419
+ id: string;
1420
+ label: string;
1421
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1422
+ capture: "at_action" | "historical_lookup" | "fixture";
1423
+ locator?: string | undefined;
1424
+ }[] | undefined;
1425
+ }>, z.ZodObject<{
1426
+ correctionId: z.ZodString;
1427
+ decisionId: z.ZodString;
1428
+ recallReceiptId: z.ZodString;
1429
+ staleDecisionAbsent: z.ZodBoolean;
1430
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1431
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1432
+ id: z.ZodString;
1433
+ label: z.ZodString;
1434
+ locator: z.ZodOptional<z.ZodString>;
1435
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1436
+ }, "strict", z.ZodTypeAny, {
1437
+ id: string;
1438
+ label: string;
1439
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1440
+ capture: "at_action" | "historical_lookup" | "fixture";
1441
+ locator?: string | undefined;
1442
+ }, {
1443
+ id: string;
1444
+ label: string;
1445
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1446
+ capture: "at_action" | "historical_lookup" | "fixture";
1447
+ locator?: string | undefined;
1448
+ }>, "many">>;
1449
+ agentId: z.ZodString;
1450
+ sessionId: z.ZodString;
1451
+ kind: z.ZodLiteral<"propagation_verified">;
1452
+ }, "strict", z.ZodTypeAny, {
1453
+ kind: "propagation_verified";
1454
+ agentId: string;
1455
+ sessionId: string;
1456
+ evidence: {
1457
+ id: string;
1458
+ label: string;
1459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1460
+ capture: "at_action" | "historical_lookup" | "fixture";
1461
+ locator?: string | undefined;
1462
+ }[];
1463
+ decisionId: string;
1464
+ correctionId: string;
1465
+ recallReceiptId: string;
1466
+ staleDecisionAbsent: boolean;
1467
+ }, {
1468
+ kind: "propagation_verified";
1469
+ agentId: string;
1470
+ sessionId: string;
1471
+ decisionId: string;
1472
+ correctionId: string;
1473
+ recallReceiptId: string;
1474
+ staleDecisionAbsent: boolean;
1475
+ evidence?: {
1476
+ id: string;
1477
+ label: string;
1478
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1479
+ capture: "at_action" | "historical_lookup" | "fixture";
1480
+ locator?: string | undefined;
1481
+ }[] | undefined;
1482
+ }>, z.ZodObject<{
1483
+ kind: z.ZodLiteral<"mission_completed">;
1484
+ outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
1485
+ summary: z.ZodString;
1486
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1487
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1488
+ id: z.ZodString;
1489
+ label: z.ZodString;
1490
+ locator: z.ZodOptional<z.ZodString>;
1491
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1492
+ }, "strict", z.ZodTypeAny, {
1493
+ id: string;
1494
+ label: string;
1495
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1496
+ capture: "at_action" | "historical_lookup" | "fixture";
1497
+ locator?: string | undefined;
1498
+ }, {
1499
+ id: string;
1500
+ label: string;
1501
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1502
+ capture: "at_action" | "historical_lookup" | "fixture";
1503
+ locator?: string | undefined;
1504
+ }>, "many">>;
1505
+ }, "strict", z.ZodTypeAny, {
1506
+ summary: string;
1507
+ kind: "mission_completed";
1508
+ outcome: "failed" | "recovered" | "inconclusive";
1509
+ evidence: {
1510
+ id: string;
1511
+ label: string;
1512
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
+ capture: "at_action" | "historical_lookup" | "fixture";
1514
+ locator?: string | undefined;
1515
+ }[];
1516
+ }, {
1517
+ summary: string;
1518
+ kind: "mission_completed";
1519
+ outcome: "failed" | "recovered" | "inconclusive";
1520
+ evidence?: {
1521
+ id: string;
1522
+ label: string;
1523
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1524
+ capture: "at_action" | "historical_lookup" | "fixture";
1525
+ locator?: string | undefined;
1526
+ }[] | undefined;
1527
+ }>]>, {
1528
+ kind: "mission_started";
1529
+ title: string;
1530
+ objective: string;
1531
+ runMode: "replay" | "fixture" | "live";
1532
+ evidence: {
1533
+ id: string;
1534
+ label: string;
1535
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1536
+ capture: "at_action" | "historical_lookup" | "fixture";
1537
+ locator?: string | undefined;
1538
+ }[];
1539
+ } | {
1540
+ label: string;
1541
+ kind: "agent_status";
1542
+ role: string;
1543
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
1544
+ agentId: string;
1545
+ sessionId: string;
1546
+ evidence: {
1547
+ id: string;
1548
+ label: string;
1549
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1550
+ capture: "at_action" | "historical_lookup" | "fixture";
1551
+ locator?: string | undefined;
1552
+ }[];
1553
+ detail?: string | undefined;
1554
+ } | {
1555
+ summary: string;
1556
+ kind: "agent_output";
1557
+ agentId: string;
1558
+ sessionId: string;
1559
+ evidence: {
1560
+ id: string;
1561
+ label: string;
1562
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1563
+ capture: "at_action" | "historical_lookup" | "fixture";
1564
+ locator?: string | undefined;
1565
+ }[];
1566
+ outputId: string;
1567
+ } | {
1568
+ kind: "belief_observed";
1569
+ agentId: string;
1570
+ sessionId: string;
1571
+ statement: string;
1572
+ evidence: {
1573
+ id: string;
1574
+ label: string;
1575
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1576
+ capture: "at_action" | "historical_lookup" | "fixture";
1577
+ locator?: string | undefined;
1578
+ }[];
1579
+ beliefId: string;
1580
+ decisionId: string;
1581
+ confidence?: number | undefined;
1582
+ } | {
1583
+ summary: string;
1584
+ kind: "conflict_detected";
1585
+ evidence: {
1586
+ id: string;
1587
+ label: string;
1588
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1589
+ capture: "at_action" | "historical_lookup" | "fixture";
1590
+ locator?: string | undefined;
1591
+ }[];
1592
+ conflictId: string;
1593
+ decisionIds: string[];
1594
+ agentIds: string[];
1595
+ } | {
1596
+ summary: string;
1597
+ kind: "test_result";
1598
+ command: string;
1599
+ status: "error" | "failed" | "passed";
1600
+ evidence: {
1601
+ id: string;
1602
+ label: string;
1603
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1604
+ capture: "at_action" | "historical_lookup" | "fixture";
1605
+ locator?: string | undefined;
1606
+ }[];
1607
+ decisionId: string;
1608
+ testId: string;
1609
+ durationMs?: number | undefined;
1610
+ correctionId?: string | undefined;
1611
+ } | {
1612
+ kind: "correction_proposed";
1613
+ rationale: string;
1614
+ statement: string;
1615
+ evidence: {
1616
+ id: string;
1617
+ label: string;
1618
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1619
+ capture: "at_action" | "historical_lookup" | "fixture";
1620
+ locator?: string | undefined;
1621
+ }[];
1622
+ conflictId: string;
1623
+ correctionId: string;
1624
+ proposedDecisionId: string;
1625
+ supersedesDecisionIds: string[];
1626
+ proposedBy: string;
1627
+ } | {
1628
+ kind: "correction_approved";
1629
+ evidence: {
1630
+ id: string;
1631
+ label: string;
1632
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1633
+ capture: "at_action" | "historical_lookup" | "fixture";
1634
+ locator?: string | undefined;
1635
+ }[];
1636
+ correctionId: string;
1637
+ approvedBy: {
1638
+ id: string;
1639
+ label: string;
1640
+ kind: "agent" | "human";
1641
+ };
1642
+ note?: string | undefined;
1643
+ } | {
1644
+ kind: "decision_superseded";
1645
+ evidence: {
1646
+ id: string;
1647
+ label: string;
1648
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1649
+ capture: "at_action" | "historical_lookup" | "fixture";
1650
+ locator?: string | undefined;
1651
+ }[];
1652
+ decisionId: string;
1653
+ correctionId: string;
1654
+ replacementDecisionId: string;
1655
+ } | {
1656
+ kind: "recall_observed";
1657
+ query: string;
1658
+ agentId: string;
1659
+ sessionId: string;
1660
+ evidence: {
1661
+ id: string;
1662
+ label: string;
1663
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1664
+ capture: "at_action" | "historical_lookup" | "fixture";
1665
+ locator?: string | undefined;
1666
+ }[];
1667
+ decisionId: string;
1668
+ recallReceiptId: string;
1669
+ capturedAtAction: boolean;
1670
+ } | {
1671
+ kind: "propagation_verified";
1672
+ agentId: string;
1673
+ sessionId: string;
1674
+ evidence: {
1675
+ id: string;
1676
+ label: string;
1677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1678
+ capture: "at_action" | "historical_lookup" | "fixture";
1679
+ locator?: string | undefined;
1680
+ }[];
1681
+ decisionId: string;
1682
+ correctionId: string;
1683
+ recallReceiptId: string;
1684
+ staleDecisionAbsent: boolean;
1685
+ } | {
1686
+ summary: string;
1687
+ kind: "mission_completed";
1688
+ outcome: "failed" | "recovered" | "inconclusive";
1689
+ evidence: {
1690
+ id: string;
1691
+ label: string;
1692
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1693
+ capture: "at_action" | "historical_lookup" | "fixture";
1694
+ locator?: string | undefined;
1695
+ }[];
1696
+ }, {
1697
+ kind: "mission_started";
1698
+ title: string;
1699
+ objective: string;
1700
+ runMode: "replay" | "fixture" | "live";
1701
+ evidence?: {
1702
+ id: string;
1703
+ label: string;
1704
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1705
+ capture: "at_action" | "historical_lookup" | "fixture";
1706
+ locator?: string | undefined;
1707
+ }[] | undefined;
1708
+ } | {
1709
+ label: string;
1710
+ kind: "agent_status";
1711
+ role: string;
1712
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
1713
+ agentId: string;
1714
+ sessionId: string;
1715
+ detail?: string | undefined;
1716
+ evidence?: {
1717
+ id: string;
1718
+ label: string;
1719
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1720
+ capture: "at_action" | "historical_lookup" | "fixture";
1721
+ locator?: string | undefined;
1722
+ }[] | undefined;
1723
+ } | {
1724
+ summary: string;
1725
+ kind: "agent_output";
1726
+ agentId: string;
1727
+ sessionId: string;
1728
+ outputId: string;
1729
+ evidence?: {
1730
+ id: string;
1731
+ label: string;
1732
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1733
+ capture: "at_action" | "historical_lookup" | "fixture";
1734
+ locator?: string | undefined;
1735
+ }[] | undefined;
1736
+ } | {
1737
+ kind: "belief_observed";
1738
+ agentId: string;
1739
+ sessionId: string;
1740
+ statement: string;
1741
+ beliefId: string;
1742
+ decisionId: string;
1743
+ confidence?: number | undefined;
1744
+ evidence?: {
1745
+ id: string;
1746
+ label: string;
1747
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1748
+ capture: "at_action" | "historical_lookup" | "fixture";
1749
+ locator?: string | undefined;
1750
+ }[] | undefined;
1751
+ } | {
1752
+ summary: string;
1753
+ kind: "conflict_detected";
1754
+ conflictId: string;
1755
+ decisionIds: string[];
1756
+ agentIds: string[];
1757
+ evidence?: {
1758
+ id: string;
1759
+ label: string;
1760
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1761
+ capture: "at_action" | "historical_lookup" | "fixture";
1762
+ locator?: string | undefined;
1763
+ }[] | undefined;
1764
+ } | {
1765
+ summary: string;
1766
+ kind: "test_result";
1767
+ command: string;
1768
+ status: "error" | "failed" | "passed";
1769
+ decisionId: string;
1770
+ testId: string;
1771
+ durationMs?: number | undefined;
1772
+ evidence?: {
1773
+ id: string;
1774
+ label: string;
1775
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1776
+ capture: "at_action" | "historical_lookup" | "fixture";
1777
+ locator?: string | undefined;
1778
+ }[] | undefined;
1779
+ correctionId?: string | undefined;
1780
+ } | {
1781
+ kind: "correction_proposed";
1782
+ rationale: string;
1783
+ statement: string;
1784
+ conflictId: string;
1785
+ correctionId: string;
1786
+ proposedDecisionId: string;
1787
+ supersedesDecisionIds: string[];
1788
+ proposedBy: string;
1789
+ evidence?: {
1790
+ id: string;
1791
+ label: string;
1792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
+ capture: "at_action" | "historical_lookup" | "fixture";
1794
+ locator?: string | undefined;
1795
+ }[] | undefined;
1796
+ } | {
1797
+ kind: "correction_approved";
1798
+ correctionId: string;
1799
+ approvedBy: {
1800
+ id: string;
1801
+ label: string;
1802
+ kind: "agent" | "human";
1803
+ };
1804
+ note?: string | undefined;
1805
+ evidence?: {
1806
+ id: string;
1807
+ label: string;
1808
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1809
+ capture: "at_action" | "historical_lookup" | "fixture";
1810
+ locator?: string | undefined;
1811
+ }[] | undefined;
1812
+ } | {
1813
+ kind: "decision_superseded";
1814
+ decisionId: string;
1815
+ correctionId: string;
1816
+ replacementDecisionId: string;
1817
+ evidence?: {
1818
+ id: string;
1819
+ label: string;
1820
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1821
+ capture: "at_action" | "historical_lookup" | "fixture";
1822
+ locator?: string | undefined;
1823
+ }[] | undefined;
1824
+ } | {
1825
+ kind: "recall_observed";
1826
+ query: string;
1827
+ agentId: string;
1828
+ sessionId: string;
1829
+ decisionId: string;
1830
+ recallReceiptId: string;
1831
+ capturedAtAction: boolean;
1832
+ evidence?: {
1833
+ id: string;
1834
+ label: string;
1835
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1836
+ capture: "at_action" | "historical_lookup" | "fixture";
1837
+ locator?: string | undefined;
1838
+ }[] | undefined;
1839
+ } | {
1840
+ kind: "propagation_verified";
1841
+ agentId: string;
1842
+ sessionId: string;
1843
+ decisionId: string;
1844
+ correctionId: string;
1845
+ recallReceiptId: string;
1846
+ staleDecisionAbsent: boolean;
1847
+ evidence?: {
1848
+ id: string;
1849
+ label: string;
1850
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1851
+ capture: "at_action" | "historical_lookup" | "fixture";
1852
+ locator?: string | undefined;
1853
+ }[] | undefined;
1854
+ } | {
1855
+ summary: string;
1856
+ kind: "mission_completed";
1857
+ outcome: "failed" | "recovered" | "inconclusive";
1858
+ evidence?: {
1859
+ id: string;
1860
+ label: string;
1861
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1862
+ capture: "at_action" | "historical_lookup" | "fixture";
1863
+ locator?: string | undefined;
1864
+ }[] | undefined;
1865
+ }>;
1866
+ type RelayMissionPayload = z.infer<typeof RelayMissionPayloadSchema>;
1867
+ declare const RelayMissionEventInputSchema: z.ZodObject<{
1868
+ occurredAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1869
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1870
+ payload: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1871
+ kind: z.ZodLiteral<"mission_started">;
1872
+ title: z.ZodString;
1873
+ objective: z.ZodString;
1874
+ runMode: z.ZodEnum<["live", "replay", "fixture"]>;
1875
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1876
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1877
+ id: z.ZodString;
1878
+ label: z.ZodString;
1879
+ locator: z.ZodOptional<z.ZodString>;
1880
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1881
+ }, "strict", z.ZodTypeAny, {
1882
+ id: string;
1883
+ label: string;
1884
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1885
+ capture: "at_action" | "historical_lookup" | "fixture";
1886
+ locator?: string | undefined;
1887
+ }, {
1888
+ id: string;
1889
+ label: string;
1890
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1891
+ capture: "at_action" | "historical_lookup" | "fixture";
1892
+ locator?: string | undefined;
1893
+ }>, "many">>;
1894
+ }, "strict", z.ZodTypeAny, {
1895
+ kind: "mission_started";
1896
+ title: string;
1897
+ objective: string;
1898
+ runMode: "replay" | "fixture" | "live";
1899
+ evidence: {
1900
+ id: string;
1901
+ label: string;
1902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1903
+ capture: "at_action" | "historical_lookup" | "fixture";
1904
+ locator?: string | undefined;
1905
+ }[];
1906
+ }, {
1907
+ kind: "mission_started";
1908
+ title: string;
1909
+ objective: string;
1910
+ runMode: "replay" | "fixture" | "live";
1911
+ evidence?: {
1912
+ id: string;
1913
+ label: string;
1914
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1915
+ capture: "at_action" | "historical_lookup" | "fixture";
1916
+ locator?: string | undefined;
1917
+ }[] | undefined;
1918
+ }>, z.ZodObject<{
1919
+ label: z.ZodString;
1920
+ role: z.ZodString;
1921
+ status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
1922
+ detail: z.ZodOptional<z.ZodString>;
1923
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1924
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1925
+ id: z.ZodString;
1926
+ label: z.ZodString;
1927
+ locator: z.ZodOptional<z.ZodString>;
1928
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1929
+ }, "strict", z.ZodTypeAny, {
1930
+ id: string;
1931
+ label: string;
1932
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1933
+ capture: "at_action" | "historical_lookup" | "fixture";
1934
+ locator?: string | undefined;
1935
+ }, {
1936
+ id: string;
1937
+ label: string;
1938
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1939
+ capture: "at_action" | "historical_lookup" | "fixture";
1940
+ locator?: string | undefined;
1941
+ }>, "many">>;
1942
+ agentId: z.ZodString;
1943
+ sessionId: z.ZodString;
1944
+ kind: z.ZodLiteral<"agent_status">;
1945
+ }, "strict", z.ZodTypeAny, {
1946
+ label: string;
1947
+ kind: "agent_status";
1948
+ role: string;
1949
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
1950
+ agentId: string;
1951
+ sessionId: string;
1952
+ evidence: {
1953
+ id: string;
1954
+ label: string;
1955
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
+ capture: "at_action" | "historical_lookup" | "fixture";
1957
+ locator?: string | undefined;
1958
+ }[];
1959
+ detail?: string | undefined;
1960
+ }, {
1961
+ label: string;
1962
+ kind: "agent_status";
1963
+ role: string;
1964
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
1965
+ agentId: string;
1966
+ sessionId: string;
1967
+ detail?: string | undefined;
1968
+ evidence?: {
1969
+ id: string;
1970
+ label: string;
1971
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
+ capture: "at_action" | "historical_lookup" | "fixture";
1973
+ locator?: string | undefined;
1974
+ }[] | undefined;
1975
+ }>, z.ZodObject<{
1976
+ outputId: z.ZodString;
1977
+ summary: z.ZodString;
1978
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
1979
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
1980
+ id: z.ZodString;
1981
+ label: z.ZodString;
1982
+ locator: z.ZodOptional<z.ZodString>;
1983
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1984
+ }, "strict", z.ZodTypeAny, {
1985
+ id: string;
1986
+ label: string;
1987
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1988
+ capture: "at_action" | "historical_lookup" | "fixture";
1989
+ locator?: string | undefined;
1990
+ }, {
1991
+ id: string;
1992
+ label: string;
1993
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1994
+ capture: "at_action" | "historical_lookup" | "fixture";
1995
+ locator?: string | undefined;
1996
+ }>, "many">>;
1997
+ agentId: z.ZodString;
1998
+ sessionId: z.ZodString;
1999
+ kind: z.ZodLiteral<"agent_output">;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ summary: string;
2002
+ kind: "agent_output";
2003
+ agentId: string;
2004
+ sessionId: string;
2005
+ evidence: {
2006
+ id: string;
2007
+ label: string;
2008
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2009
+ capture: "at_action" | "historical_lookup" | "fixture";
2010
+ locator?: string | undefined;
2011
+ }[];
2012
+ outputId: string;
2013
+ }, {
2014
+ summary: string;
2015
+ kind: "agent_output";
2016
+ agentId: string;
2017
+ sessionId: string;
2018
+ outputId: string;
2019
+ evidence?: {
2020
+ id: string;
2021
+ label: string;
2022
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2023
+ capture: "at_action" | "historical_lookup" | "fixture";
2024
+ locator?: string | undefined;
2025
+ }[] | undefined;
2026
+ }>, z.ZodObject<{
2027
+ beliefId: z.ZodString;
2028
+ decisionId: z.ZodString;
2029
+ statement: z.ZodString;
2030
+ confidence: z.ZodOptional<z.ZodNumber>;
2031
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2032
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2033
+ id: z.ZodString;
2034
+ label: z.ZodString;
2035
+ locator: z.ZodOptional<z.ZodString>;
2036
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2037
+ }, "strict", z.ZodTypeAny, {
2038
+ id: string;
2039
+ label: string;
2040
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2041
+ capture: "at_action" | "historical_lookup" | "fixture";
2042
+ locator?: string | undefined;
2043
+ }, {
2044
+ id: string;
2045
+ label: string;
2046
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2047
+ capture: "at_action" | "historical_lookup" | "fixture";
2048
+ locator?: string | undefined;
2049
+ }>, "many">>;
2050
+ agentId: z.ZodString;
2051
+ sessionId: z.ZodString;
2052
+ kind: z.ZodLiteral<"belief_observed">;
2053
+ }, "strict", z.ZodTypeAny, {
2054
+ kind: "belief_observed";
2055
+ agentId: string;
2056
+ sessionId: string;
2057
+ statement: string;
2058
+ evidence: {
2059
+ id: string;
2060
+ label: string;
2061
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2062
+ capture: "at_action" | "historical_lookup" | "fixture";
2063
+ locator?: string | undefined;
2064
+ }[];
2065
+ beliefId: string;
2066
+ decisionId: string;
2067
+ confidence?: number | undefined;
2068
+ }, {
2069
+ kind: "belief_observed";
2070
+ agentId: string;
2071
+ sessionId: string;
2072
+ statement: string;
2073
+ beliefId: string;
2074
+ decisionId: string;
2075
+ confidence?: number | undefined;
2076
+ evidence?: {
2077
+ id: string;
2078
+ label: string;
2079
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2080
+ capture: "at_action" | "historical_lookup" | "fixture";
2081
+ locator?: string | undefined;
2082
+ }[] | undefined;
2083
+ }>, z.ZodObject<{
2084
+ kind: z.ZodLiteral<"conflict_detected">;
2085
+ conflictId: z.ZodString;
2086
+ decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2087
+ agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2088
+ summary: z.ZodString;
2089
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2090
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2091
+ id: z.ZodString;
2092
+ label: z.ZodString;
2093
+ locator: z.ZodOptional<z.ZodString>;
2094
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2095
+ }, "strict", z.ZodTypeAny, {
2096
+ id: string;
2097
+ label: string;
2098
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2099
+ capture: "at_action" | "historical_lookup" | "fixture";
2100
+ locator?: string | undefined;
2101
+ }, {
2102
+ id: string;
2103
+ label: string;
2104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2105
+ capture: "at_action" | "historical_lookup" | "fixture";
2106
+ locator?: string | undefined;
2107
+ }>, "many">>;
2108
+ }, "strict", z.ZodTypeAny, {
2109
+ summary: string;
2110
+ kind: "conflict_detected";
2111
+ evidence: {
2112
+ id: string;
2113
+ label: string;
2114
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2115
+ capture: "at_action" | "historical_lookup" | "fixture";
2116
+ locator?: string | undefined;
2117
+ }[];
2118
+ conflictId: string;
2119
+ decisionIds: string[];
2120
+ agentIds: string[];
2121
+ }, {
2122
+ summary: string;
2123
+ kind: "conflict_detected";
2124
+ conflictId: string;
2125
+ decisionIds: string[];
2126
+ agentIds: string[];
2127
+ evidence?: {
2128
+ id: string;
2129
+ label: string;
2130
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2131
+ capture: "at_action" | "historical_lookup" | "fixture";
2132
+ locator?: string | undefined;
2133
+ }[] | undefined;
2134
+ }>, z.ZodObject<{
2135
+ kind: z.ZodLiteral<"test_result">;
2136
+ testId: z.ZodString;
2137
+ decisionId: z.ZodString;
2138
+ correctionId: z.ZodOptional<z.ZodString>;
2139
+ command: z.ZodString;
2140
+ status: z.ZodEnum<["passed", "failed", "error"]>;
2141
+ summary: z.ZodString;
2142
+ durationMs: z.ZodOptional<z.ZodNumber>;
2143
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2144
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2145
+ id: z.ZodString;
2146
+ label: z.ZodString;
2147
+ locator: z.ZodOptional<z.ZodString>;
2148
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2149
+ }, "strict", z.ZodTypeAny, {
2150
+ id: string;
2151
+ label: string;
2152
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2153
+ capture: "at_action" | "historical_lookup" | "fixture";
2154
+ locator?: string | undefined;
2155
+ }, {
2156
+ id: string;
2157
+ label: string;
2158
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2159
+ capture: "at_action" | "historical_lookup" | "fixture";
2160
+ locator?: string | undefined;
2161
+ }>, "many">>;
2162
+ }, "strict", z.ZodTypeAny, {
2163
+ summary: string;
2164
+ kind: "test_result";
2165
+ command: string;
2166
+ status: "error" | "failed" | "passed";
2167
+ evidence: {
2168
+ id: string;
2169
+ label: string;
2170
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2171
+ capture: "at_action" | "historical_lookup" | "fixture";
2172
+ locator?: string | undefined;
2173
+ }[];
2174
+ decisionId: string;
2175
+ testId: string;
2176
+ durationMs?: number | undefined;
2177
+ correctionId?: string | undefined;
2178
+ }, {
2179
+ summary: string;
2180
+ kind: "test_result";
2181
+ command: string;
2182
+ status: "error" | "failed" | "passed";
2183
+ decisionId: string;
2184
+ testId: string;
2185
+ durationMs?: number | undefined;
2186
+ evidence?: {
2187
+ id: string;
2188
+ label: string;
2189
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2190
+ capture: "at_action" | "historical_lookup" | "fixture";
2191
+ locator?: string | undefined;
2192
+ }[] | undefined;
2193
+ correctionId?: string | undefined;
2194
+ }>, z.ZodObject<{
2195
+ kind: z.ZodLiteral<"correction_proposed">;
2196
+ correctionId: z.ZodString;
2197
+ conflictId: z.ZodString;
2198
+ proposedDecisionId: z.ZodString;
2199
+ supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2200
+ statement: z.ZodString;
2201
+ rationale: z.ZodString;
2202
+ proposedBy: z.ZodString;
2203
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2204
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2205
+ id: z.ZodString;
2206
+ label: z.ZodString;
2207
+ locator: z.ZodOptional<z.ZodString>;
2208
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2209
+ }, "strict", z.ZodTypeAny, {
2210
+ id: string;
2211
+ label: string;
2212
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2213
+ capture: "at_action" | "historical_lookup" | "fixture";
2214
+ locator?: string | undefined;
2215
+ }, {
2216
+ id: string;
2217
+ label: string;
2218
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2219
+ capture: "at_action" | "historical_lookup" | "fixture";
2220
+ locator?: string | undefined;
2221
+ }>, "many">>;
2222
+ }, "strict", z.ZodTypeAny, {
2223
+ kind: "correction_proposed";
2224
+ rationale: string;
2225
+ statement: string;
2226
+ evidence: {
2227
+ id: string;
2228
+ label: string;
2229
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
+ capture: "at_action" | "historical_lookup" | "fixture";
2231
+ locator?: string | undefined;
2232
+ }[];
2233
+ conflictId: string;
2234
+ correctionId: string;
2235
+ proposedDecisionId: string;
2236
+ supersedesDecisionIds: string[];
2237
+ proposedBy: string;
2238
+ }, {
2239
+ kind: "correction_proposed";
2240
+ rationale: string;
2241
+ statement: string;
2242
+ conflictId: string;
2243
+ correctionId: string;
2244
+ proposedDecisionId: string;
2245
+ supersedesDecisionIds: string[];
2246
+ proposedBy: string;
2247
+ evidence?: {
2248
+ id: string;
2249
+ label: string;
2250
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2251
+ capture: "at_action" | "historical_lookup" | "fixture";
2252
+ locator?: string | undefined;
2253
+ }[] | undefined;
2254
+ }>, z.ZodObject<{
2255
+ kind: z.ZodLiteral<"correction_approved">;
2256
+ correctionId: z.ZodString;
2257
+ approvedBy: z.ZodObject<{
2258
+ kind: z.ZodEnum<["human", "agent"]>;
2259
+ id: z.ZodString;
2260
+ label: z.ZodString;
2261
+ }, "strict", z.ZodTypeAny, {
2262
+ id: string;
2263
+ label: string;
2264
+ kind: "agent" | "human";
2265
+ }, {
2266
+ id: string;
2267
+ label: string;
2268
+ kind: "agent" | "human";
2269
+ }>;
2270
+ note: z.ZodOptional<z.ZodString>;
2271
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2272
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2273
+ id: z.ZodString;
2274
+ label: z.ZodString;
2275
+ locator: z.ZodOptional<z.ZodString>;
2276
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2277
+ }, "strict", z.ZodTypeAny, {
2278
+ id: string;
2279
+ label: string;
2280
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2281
+ capture: "at_action" | "historical_lookup" | "fixture";
2282
+ locator?: string | undefined;
2283
+ }, {
2284
+ id: string;
2285
+ label: string;
2286
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2287
+ capture: "at_action" | "historical_lookup" | "fixture";
2288
+ locator?: string | undefined;
2289
+ }>, "many">>;
2290
+ }, "strict", z.ZodTypeAny, {
2291
+ kind: "correction_approved";
2292
+ evidence: {
2293
+ id: string;
2294
+ label: string;
2295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2296
+ capture: "at_action" | "historical_lookup" | "fixture";
2297
+ locator?: string | undefined;
2298
+ }[];
2299
+ correctionId: string;
2300
+ approvedBy: {
2301
+ id: string;
2302
+ label: string;
2303
+ kind: "agent" | "human";
2304
+ };
2305
+ note?: string | undefined;
2306
+ }, {
2307
+ kind: "correction_approved";
2308
+ correctionId: string;
2309
+ approvedBy: {
2310
+ id: string;
2311
+ label: string;
2312
+ kind: "agent" | "human";
2313
+ };
2314
+ note?: string | undefined;
2315
+ evidence?: {
2316
+ id: string;
2317
+ label: string;
2318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
+ capture: "at_action" | "historical_lookup" | "fixture";
2320
+ locator?: string | undefined;
2321
+ }[] | undefined;
2322
+ }>, z.ZodObject<{
2323
+ kind: z.ZodLiteral<"decision_superseded">;
2324
+ decisionId: z.ZodString;
2325
+ replacementDecisionId: z.ZodString;
2326
+ correctionId: z.ZodString;
2327
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2328
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2329
+ id: z.ZodString;
2330
+ label: z.ZodString;
2331
+ locator: z.ZodOptional<z.ZodString>;
2332
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2333
+ }, "strict", z.ZodTypeAny, {
2334
+ id: string;
2335
+ label: string;
2336
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2337
+ capture: "at_action" | "historical_lookup" | "fixture";
2338
+ locator?: string | undefined;
2339
+ }, {
2340
+ id: string;
2341
+ label: string;
2342
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2343
+ capture: "at_action" | "historical_lookup" | "fixture";
2344
+ locator?: string | undefined;
2345
+ }>, "many">>;
2346
+ }, "strict", z.ZodTypeAny, {
2347
+ kind: "decision_superseded";
2348
+ evidence: {
2349
+ id: string;
2350
+ label: string;
2351
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2352
+ capture: "at_action" | "historical_lookup" | "fixture";
2353
+ locator?: string | undefined;
2354
+ }[];
2355
+ decisionId: string;
2356
+ correctionId: string;
2357
+ replacementDecisionId: string;
2358
+ }, {
2359
+ kind: "decision_superseded";
2360
+ decisionId: string;
2361
+ correctionId: string;
2362
+ replacementDecisionId: string;
2363
+ evidence?: {
2364
+ id: string;
2365
+ label: string;
2366
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2367
+ capture: "at_action" | "historical_lookup" | "fixture";
2368
+ locator?: string | undefined;
2369
+ }[] | undefined;
2370
+ }>, z.ZodObject<{
2371
+ recallReceiptId: z.ZodString;
2372
+ decisionId: z.ZodString;
2373
+ query: z.ZodString;
2374
+ capturedAtAction: z.ZodBoolean;
2375
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2376
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2377
+ id: z.ZodString;
2378
+ label: z.ZodString;
2379
+ locator: z.ZodOptional<z.ZodString>;
2380
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2381
+ }, "strict", z.ZodTypeAny, {
2382
+ id: string;
2383
+ label: string;
2384
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
+ capture: "at_action" | "historical_lookup" | "fixture";
2386
+ locator?: string | undefined;
2387
+ }, {
2388
+ id: string;
2389
+ label: string;
2390
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2391
+ capture: "at_action" | "historical_lookup" | "fixture";
2392
+ locator?: string | undefined;
2393
+ }>, "many">>;
2394
+ agentId: z.ZodString;
2395
+ sessionId: z.ZodString;
2396
+ kind: z.ZodLiteral<"recall_observed">;
2397
+ }, "strict", z.ZodTypeAny, {
2398
+ kind: "recall_observed";
2399
+ query: string;
2400
+ agentId: string;
2401
+ sessionId: string;
2402
+ evidence: {
2403
+ id: string;
2404
+ label: string;
2405
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2406
+ capture: "at_action" | "historical_lookup" | "fixture";
2407
+ locator?: string | undefined;
2408
+ }[];
2409
+ decisionId: string;
2410
+ recallReceiptId: string;
2411
+ capturedAtAction: boolean;
2412
+ }, {
2413
+ kind: "recall_observed";
2414
+ query: string;
2415
+ agentId: string;
2416
+ sessionId: string;
2417
+ decisionId: string;
2418
+ recallReceiptId: string;
2419
+ capturedAtAction: boolean;
2420
+ evidence?: {
2421
+ id: string;
2422
+ label: string;
2423
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2424
+ capture: "at_action" | "historical_lookup" | "fixture";
2425
+ locator?: string | undefined;
2426
+ }[] | undefined;
2427
+ }>, z.ZodObject<{
2428
+ correctionId: z.ZodString;
2429
+ decisionId: z.ZodString;
2430
+ recallReceiptId: z.ZodString;
2431
+ staleDecisionAbsent: z.ZodBoolean;
2432
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2433
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2434
+ id: z.ZodString;
2435
+ label: z.ZodString;
2436
+ locator: z.ZodOptional<z.ZodString>;
2437
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2438
+ }, "strict", z.ZodTypeAny, {
2439
+ id: string;
2440
+ label: string;
2441
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2442
+ capture: "at_action" | "historical_lookup" | "fixture";
2443
+ locator?: string | undefined;
2444
+ }, {
2445
+ id: string;
2446
+ label: string;
2447
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2448
+ capture: "at_action" | "historical_lookup" | "fixture";
2449
+ locator?: string | undefined;
2450
+ }>, "many">>;
2451
+ agentId: z.ZodString;
2452
+ sessionId: z.ZodString;
2453
+ kind: z.ZodLiteral<"propagation_verified">;
2454
+ }, "strict", z.ZodTypeAny, {
2455
+ kind: "propagation_verified";
2456
+ agentId: string;
2457
+ sessionId: string;
2458
+ evidence: {
2459
+ id: string;
2460
+ label: string;
2461
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2462
+ capture: "at_action" | "historical_lookup" | "fixture";
2463
+ locator?: string | undefined;
2464
+ }[];
2465
+ decisionId: string;
2466
+ correctionId: string;
2467
+ recallReceiptId: string;
2468
+ staleDecisionAbsent: boolean;
2469
+ }, {
2470
+ kind: "propagation_verified";
2471
+ agentId: string;
2472
+ sessionId: string;
2473
+ decisionId: string;
2474
+ correctionId: string;
2475
+ recallReceiptId: string;
2476
+ staleDecisionAbsent: boolean;
2477
+ evidence?: {
2478
+ id: string;
2479
+ label: string;
2480
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2481
+ capture: "at_action" | "historical_lookup" | "fixture";
2482
+ locator?: string | undefined;
2483
+ }[] | undefined;
2484
+ }>, z.ZodObject<{
2485
+ kind: z.ZodLiteral<"mission_completed">;
2486
+ outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
2487
+ summary: z.ZodString;
2488
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
2489
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
2490
+ id: z.ZodString;
2491
+ label: z.ZodString;
2492
+ locator: z.ZodOptional<z.ZodString>;
2493
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2494
+ }, "strict", z.ZodTypeAny, {
2495
+ id: string;
2496
+ label: string;
2497
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2498
+ capture: "at_action" | "historical_lookup" | "fixture";
2499
+ locator?: string | undefined;
2500
+ }, {
2501
+ id: string;
2502
+ label: string;
2503
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2504
+ capture: "at_action" | "historical_lookup" | "fixture";
2505
+ locator?: string | undefined;
2506
+ }>, "many">>;
2507
+ }, "strict", z.ZodTypeAny, {
2508
+ summary: string;
2509
+ kind: "mission_completed";
2510
+ outcome: "failed" | "recovered" | "inconclusive";
2511
+ evidence: {
2512
+ id: string;
2513
+ label: string;
2514
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
+ capture: "at_action" | "historical_lookup" | "fixture";
2516
+ locator?: string | undefined;
2517
+ }[];
2518
+ }, {
2519
+ summary: string;
2520
+ kind: "mission_completed";
2521
+ outcome: "failed" | "recovered" | "inconclusive";
2522
+ evidence?: {
2523
+ id: string;
2524
+ label: string;
2525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2526
+ capture: "at_action" | "historical_lookup" | "fixture";
2527
+ locator?: string | undefined;
2528
+ }[] | undefined;
2529
+ }>]>, {
2530
+ kind: "mission_started";
2531
+ title: string;
2532
+ objective: string;
2533
+ runMode: "replay" | "fixture" | "live";
2534
+ evidence: {
2535
+ id: string;
2536
+ label: string;
2537
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2538
+ capture: "at_action" | "historical_lookup" | "fixture";
2539
+ locator?: string | undefined;
2540
+ }[];
2541
+ } | {
2542
+ label: string;
2543
+ kind: "agent_status";
2544
+ role: string;
2545
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
2546
+ agentId: string;
2547
+ sessionId: string;
2548
+ evidence: {
2549
+ id: string;
2550
+ label: string;
2551
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2552
+ capture: "at_action" | "historical_lookup" | "fixture";
2553
+ locator?: string | undefined;
2554
+ }[];
2555
+ detail?: string | undefined;
2556
+ } | {
2557
+ summary: string;
2558
+ kind: "agent_output";
2559
+ agentId: string;
2560
+ sessionId: string;
2561
+ evidence: {
2562
+ id: string;
2563
+ label: string;
2564
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2565
+ capture: "at_action" | "historical_lookup" | "fixture";
2566
+ locator?: string | undefined;
2567
+ }[];
2568
+ outputId: string;
2569
+ } | {
2570
+ kind: "belief_observed";
2571
+ agentId: string;
2572
+ sessionId: string;
2573
+ statement: string;
2574
+ evidence: {
2575
+ id: string;
2576
+ label: string;
2577
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2578
+ capture: "at_action" | "historical_lookup" | "fixture";
2579
+ locator?: string | undefined;
2580
+ }[];
2581
+ beliefId: string;
2582
+ decisionId: string;
2583
+ confidence?: number | undefined;
2584
+ } | {
2585
+ summary: string;
2586
+ kind: "conflict_detected";
2587
+ evidence: {
2588
+ id: string;
2589
+ label: string;
2590
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2591
+ capture: "at_action" | "historical_lookup" | "fixture";
2592
+ locator?: string | undefined;
2593
+ }[];
2594
+ conflictId: string;
2595
+ decisionIds: string[];
2596
+ agentIds: string[];
2597
+ } | {
2598
+ summary: string;
2599
+ kind: "test_result";
2600
+ command: string;
2601
+ status: "error" | "failed" | "passed";
2602
+ evidence: {
2603
+ id: string;
2604
+ label: string;
2605
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2606
+ capture: "at_action" | "historical_lookup" | "fixture";
2607
+ locator?: string | undefined;
2608
+ }[];
2609
+ decisionId: string;
2610
+ testId: string;
2611
+ durationMs?: number | undefined;
2612
+ correctionId?: string | undefined;
2613
+ } | {
2614
+ kind: "correction_proposed";
2615
+ rationale: string;
2616
+ statement: string;
2617
+ evidence: {
2618
+ id: string;
2619
+ label: string;
2620
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2621
+ capture: "at_action" | "historical_lookup" | "fixture";
2622
+ locator?: string | undefined;
2623
+ }[];
2624
+ conflictId: string;
2625
+ correctionId: string;
2626
+ proposedDecisionId: string;
2627
+ supersedesDecisionIds: string[];
2628
+ proposedBy: string;
2629
+ } | {
2630
+ kind: "correction_approved";
2631
+ evidence: {
2632
+ id: string;
2633
+ label: string;
2634
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2635
+ capture: "at_action" | "historical_lookup" | "fixture";
2636
+ locator?: string | undefined;
2637
+ }[];
2638
+ correctionId: string;
2639
+ approvedBy: {
2640
+ id: string;
2641
+ label: string;
2642
+ kind: "agent" | "human";
2643
+ };
2644
+ note?: string | undefined;
2645
+ } | {
2646
+ kind: "decision_superseded";
2647
+ evidence: {
2648
+ id: string;
2649
+ label: string;
2650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2651
+ capture: "at_action" | "historical_lookup" | "fixture";
2652
+ locator?: string | undefined;
2653
+ }[];
2654
+ decisionId: string;
2655
+ correctionId: string;
2656
+ replacementDecisionId: string;
2657
+ } | {
2658
+ kind: "recall_observed";
2659
+ query: string;
2660
+ agentId: string;
2661
+ sessionId: string;
2662
+ evidence: {
2663
+ id: string;
2664
+ label: string;
2665
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2666
+ capture: "at_action" | "historical_lookup" | "fixture";
2667
+ locator?: string | undefined;
2668
+ }[];
2669
+ decisionId: string;
2670
+ recallReceiptId: string;
2671
+ capturedAtAction: boolean;
2672
+ } | {
2673
+ kind: "propagation_verified";
2674
+ agentId: string;
2675
+ sessionId: string;
2676
+ evidence: {
2677
+ id: string;
2678
+ label: string;
2679
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2680
+ capture: "at_action" | "historical_lookup" | "fixture";
2681
+ locator?: string | undefined;
2682
+ }[];
2683
+ decisionId: string;
2684
+ correctionId: string;
2685
+ recallReceiptId: string;
2686
+ staleDecisionAbsent: boolean;
2687
+ } | {
2688
+ summary: string;
2689
+ kind: "mission_completed";
2690
+ outcome: "failed" | "recovered" | "inconclusive";
2691
+ evidence: {
2692
+ id: string;
2693
+ label: string;
2694
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2695
+ capture: "at_action" | "historical_lookup" | "fixture";
2696
+ locator?: string | undefined;
2697
+ }[];
2698
+ }, {
2699
+ kind: "mission_started";
2700
+ title: string;
2701
+ objective: string;
2702
+ runMode: "replay" | "fixture" | "live";
2703
+ evidence?: {
2704
+ id: string;
2705
+ label: string;
2706
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2707
+ capture: "at_action" | "historical_lookup" | "fixture";
2708
+ locator?: string | undefined;
2709
+ }[] | undefined;
2710
+ } | {
2711
+ label: string;
2712
+ kind: "agent_status";
2713
+ role: string;
2714
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
2715
+ agentId: string;
2716
+ sessionId: string;
2717
+ detail?: string | undefined;
2718
+ evidence?: {
2719
+ id: string;
2720
+ label: string;
2721
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2722
+ capture: "at_action" | "historical_lookup" | "fixture";
2723
+ locator?: string | undefined;
2724
+ }[] | undefined;
2725
+ } | {
2726
+ summary: string;
2727
+ kind: "agent_output";
2728
+ agentId: string;
2729
+ sessionId: string;
2730
+ outputId: string;
2731
+ evidence?: {
2732
+ id: string;
2733
+ label: string;
2734
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2735
+ capture: "at_action" | "historical_lookup" | "fixture";
2736
+ locator?: string | undefined;
2737
+ }[] | undefined;
2738
+ } | {
2739
+ kind: "belief_observed";
2740
+ agentId: string;
2741
+ sessionId: string;
2742
+ statement: string;
2743
+ beliefId: string;
2744
+ decisionId: string;
2745
+ confidence?: number | undefined;
2746
+ evidence?: {
2747
+ id: string;
2748
+ label: string;
2749
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2750
+ capture: "at_action" | "historical_lookup" | "fixture";
2751
+ locator?: string | undefined;
2752
+ }[] | undefined;
2753
+ } | {
2754
+ summary: string;
2755
+ kind: "conflict_detected";
2756
+ conflictId: string;
2757
+ decisionIds: string[];
2758
+ agentIds: string[];
2759
+ evidence?: {
2760
+ id: string;
2761
+ label: string;
2762
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2763
+ capture: "at_action" | "historical_lookup" | "fixture";
2764
+ locator?: string | undefined;
2765
+ }[] | undefined;
2766
+ } | {
2767
+ summary: string;
2768
+ kind: "test_result";
2769
+ command: string;
2770
+ status: "error" | "failed" | "passed";
2771
+ decisionId: string;
2772
+ testId: string;
2773
+ durationMs?: number | undefined;
2774
+ evidence?: {
2775
+ id: string;
2776
+ label: string;
2777
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2778
+ capture: "at_action" | "historical_lookup" | "fixture";
2779
+ locator?: string | undefined;
2780
+ }[] | undefined;
2781
+ correctionId?: string | undefined;
2782
+ } | {
2783
+ kind: "correction_proposed";
2784
+ rationale: string;
2785
+ statement: string;
2786
+ conflictId: string;
2787
+ correctionId: string;
2788
+ proposedDecisionId: string;
2789
+ supersedesDecisionIds: string[];
2790
+ proposedBy: string;
2791
+ evidence?: {
2792
+ id: string;
2793
+ label: string;
2794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
+ capture: "at_action" | "historical_lookup" | "fixture";
2796
+ locator?: string | undefined;
2797
+ }[] | undefined;
2798
+ } | {
2799
+ kind: "correction_approved";
2800
+ correctionId: string;
2801
+ approvedBy: {
2802
+ id: string;
2803
+ label: string;
2804
+ kind: "agent" | "human";
2805
+ };
2806
+ note?: string | undefined;
2807
+ evidence?: {
2808
+ id: string;
2809
+ label: string;
2810
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
+ capture: "at_action" | "historical_lookup" | "fixture";
2812
+ locator?: string | undefined;
2813
+ }[] | undefined;
2814
+ } | {
2815
+ kind: "decision_superseded";
2816
+ decisionId: string;
2817
+ correctionId: string;
2818
+ replacementDecisionId: string;
2819
+ evidence?: {
2820
+ id: string;
2821
+ label: string;
2822
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2823
+ capture: "at_action" | "historical_lookup" | "fixture";
2824
+ locator?: string | undefined;
2825
+ }[] | undefined;
2826
+ } | {
2827
+ kind: "recall_observed";
2828
+ query: string;
2829
+ agentId: string;
2830
+ sessionId: string;
2831
+ decisionId: string;
2832
+ recallReceiptId: string;
2833
+ capturedAtAction: boolean;
2834
+ evidence?: {
2835
+ id: string;
2836
+ label: string;
2837
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2838
+ capture: "at_action" | "historical_lookup" | "fixture";
2839
+ locator?: string | undefined;
2840
+ }[] | undefined;
2841
+ } | {
2842
+ kind: "propagation_verified";
2843
+ agentId: string;
2844
+ sessionId: string;
2845
+ decisionId: string;
2846
+ correctionId: string;
2847
+ recallReceiptId: string;
2848
+ staleDecisionAbsent: boolean;
2849
+ evidence?: {
2850
+ id: string;
2851
+ label: string;
2852
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2853
+ capture: "at_action" | "historical_lookup" | "fixture";
2854
+ locator?: string | undefined;
2855
+ }[] | undefined;
2856
+ } | {
2857
+ summary: string;
2858
+ kind: "mission_completed";
2859
+ outcome: "failed" | "recovered" | "inconclusive";
2860
+ evidence?: {
2861
+ id: string;
2862
+ label: string;
2863
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2864
+ capture: "at_action" | "historical_lookup" | "fixture";
2865
+ locator?: string | undefined;
2866
+ }[] | undefined;
2867
+ }>;
2868
+ }, "strict", z.ZodTypeAny, {
2869
+ payload: {
2870
+ kind: "mission_started";
2871
+ title: string;
2872
+ objective: string;
2873
+ runMode: "replay" | "fixture" | "live";
2874
+ evidence: {
2875
+ id: string;
2876
+ label: string;
2877
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2878
+ capture: "at_action" | "historical_lookup" | "fixture";
2879
+ locator?: string | undefined;
2880
+ }[];
2881
+ } | {
2882
+ label: string;
2883
+ kind: "agent_status";
2884
+ role: string;
2885
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
2886
+ agentId: string;
2887
+ sessionId: string;
2888
+ evidence: {
2889
+ id: string;
2890
+ label: string;
2891
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2892
+ capture: "at_action" | "historical_lookup" | "fixture";
2893
+ locator?: string | undefined;
2894
+ }[];
2895
+ detail?: string | undefined;
2896
+ } | {
2897
+ summary: string;
2898
+ kind: "agent_output";
2899
+ agentId: string;
2900
+ sessionId: string;
2901
+ evidence: {
2902
+ id: string;
2903
+ label: string;
2904
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2905
+ capture: "at_action" | "historical_lookup" | "fixture";
2906
+ locator?: string | undefined;
2907
+ }[];
2908
+ outputId: string;
2909
+ } | {
2910
+ kind: "belief_observed";
2911
+ agentId: string;
2912
+ sessionId: string;
2913
+ statement: string;
2914
+ evidence: {
2915
+ id: string;
2916
+ label: string;
2917
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2918
+ capture: "at_action" | "historical_lookup" | "fixture";
2919
+ locator?: string | undefined;
2920
+ }[];
2921
+ beliefId: string;
2922
+ decisionId: string;
2923
+ confidence?: number | undefined;
2924
+ } | {
2925
+ summary: string;
2926
+ kind: "conflict_detected";
2927
+ evidence: {
2928
+ id: string;
2929
+ label: string;
2930
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2931
+ capture: "at_action" | "historical_lookup" | "fixture";
2932
+ locator?: string | undefined;
2933
+ }[];
2934
+ conflictId: string;
2935
+ decisionIds: string[];
2936
+ agentIds: string[];
2937
+ } | {
2938
+ summary: string;
2939
+ kind: "test_result";
2940
+ command: string;
2941
+ status: "error" | "failed" | "passed";
2942
+ evidence: {
2943
+ id: string;
2944
+ label: string;
2945
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2946
+ capture: "at_action" | "historical_lookup" | "fixture";
2947
+ locator?: string | undefined;
2948
+ }[];
2949
+ decisionId: string;
2950
+ testId: string;
2951
+ durationMs?: number | undefined;
2952
+ correctionId?: string | undefined;
2953
+ } | {
2954
+ kind: "correction_proposed";
2955
+ rationale: string;
2956
+ statement: string;
2957
+ evidence: {
2958
+ id: string;
2959
+ label: string;
2960
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2961
+ capture: "at_action" | "historical_lookup" | "fixture";
2962
+ locator?: string | undefined;
2963
+ }[];
2964
+ conflictId: string;
2965
+ correctionId: string;
2966
+ proposedDecisionId: string;
2967
+ supersedesDecisionIds: string[];
2968
+ proposedBy: string;
2969
+ } | {
2970
+ kind: "correction_approved";
2971
+ evidence: {
2972
+ id: string;
2973
+ label: string;
2974
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2975
+ capture: "at_action" | "historical_lookup" | "fixture";
2976
+ locator?: string | undefined;
2977
+ }[];
2978
+ correctionId: string;
2979
+ approvedBy: {
2980
+ id: string;
2981
+ label: string;
2982
+ kind: "agent" | "human";
2983
+ };
2984
+ note?: string | undefined;
2985
+ } | {
2986
+ kind: "decision_superseded";
2987
+ evidence: {
2988
+ id: string;
2989
+ label: string;
2990
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2991
+ capture: "at_action" | "historical_lookup" | "fixture";
2992
+ locator?: string | undefined;
2993
+ }[];
2994
+ decisionId: string;
2995
+ correctionId: string;
2996
+ replacementDecisionId: string;
2997
+ } | {
2998
+ kind: "recall_observed";
2999
+ query: string;
3000
+ agentId: string;
3001
+ sessionId: string;
3002
+ evidence: {
3003
+ id: string;
3004
+ label: string;
3005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3006
+ capture: "at_action" | "historical_lookup" | "fixture";
3007
+ locator?: string | undefined;
3008
+ }[];
3009
+ decisionId: string;
3010
+ recallReceiptId: string;
3011
+ capturedAtAction: boolean;
3012
+ } | {
3013
+ kind: "propagation_verified";
3014
+ agentId: string;
3015
+ sessionId: string;
3016
+ evidence: {
3017
+ id: string;
3018
+ label: string;
3019
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3020
+ capture: "at_action" | "historical_lookup" | "fixture";
3021
+ locator?: string | undefined;
3022
+ }[];
3023
+ decisionId: string;
3024
+ correctionId: string;
3025
+ recallReceiptId: string;
3026
+ staleDecisionAbsent: boolean;
3027
+ } | {
3028
+ summary: string;
3029
+ kind: "mission_completed";
3030
+ outcome: "failed" | "recovered" | "inconclusive";
3031
+ evidence: {
3032
+ id: string;
3033
+ label: string;
3034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3035
+ capture: "at_action" | "historical_lookup" | "fixture";
3036
+ locator?: string | undefined;
3037
+ }[];
3038
+ };
3039
+ idempotencyKey?: string | undefined;
3040
+ occurredAt?: string | undefined;
3041
+ }, {
3042
+ payload: {
3043
+ kind: "mission_started";
3044
+ title: string;
3045
+ objective: string;
3046
+ runMode: "replay" | "fixture" | "live";
3047
+ evidence?: {
3048
+ id: string;
3049
+ label: string;
3050
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3051
+ capture: "at_action" | "historical_lookup" | "fixture";
3052
+ locator?: string | undefined;
3053
+ }[] | undefined;
3054
+ } | {
3055
+ label: string;
3056
+ kind: "agent_status";
3057
+ role: string;
3058
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
3059
+ agentId: string;
3060
+ sessionId: string;
3061
+ detail?: string | undefined;
3062
+ evidence?: {
3063
+ id: string;
3064
+ label: string;
3065
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3066
+ capture: "at_action" | "historical_lookup" | "fixture";
3067
+ locator?: string | undefined;
3068
+ }[] | undefined;
3069
+ } | {
3070
+ summary: string;
3071
+ kind: "agent_output";
3072
+ agentId: string;
3073
+ sessionId: string;
3074
+ outputId: string;
3075
+ evidence?: {
3076
+ id: string;
3077
+ label: string;
3078
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3079
+ capture: "at_action" | "historical_lookup" | "fixture";
3080
+ locator?: string | undefined;
3081
+ }[] | undefined;
3082
+ } | {
3083
+ kind: "belief_observed";
3084
+ agentId: string;
3085
+ sessionId: string;
3086
+ statement: string;
3087
+ beliefId: string;
3088
+ decisionId: string;
3089
+ confidence?: number | undefined;
3090
+ evidence?: {
3091
+ id: string;
3092
+ label: string;
3093
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3094
+ capture: "at_action" | "historical_lookup" | "fixture";
3095
+ locator?: string | undefined;
3096
+ }[] | undefined;
3097
+ } | {
3098
+ summary: string;
3099
+ kind: "conflict_detected";
3100
+ conflictId: string;
3101
+ decisionIds: string[];
3102
+ agentIds: string[];
3103
+ evidence?: {
3104
+ id: string;
3105
+ label: string;
3106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3107
+ capture: "at_action" | "historical_lookup" | "fixture";
3108
+ locator?: string | undefined;
3109
+ }[] | undefined;
3110
+ } | {
3111
+ summary: string;
3112
+ kind: "test_result";
3113
+ command: string;
3114
+ status: "error" | "failed" | "passed";
3115
+ decisionId: string;
3116
+ testId: string;
3117
+ durationMs?: number | undefined;
3118
+ evidence?: {
3119
+ id: string;
3120
+ label: string;
3121
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3122
+ capture: "at_action" | "historical_lookup" | "fixture";
3123
+ locator?: string | undefined;
3124
+ }[] | undefined;
3125
+ correctionId?: string | undefined;
3126
+ } | {
3127
+ kind: "correction_proposed";
3128
+ rationale: string;
3129
+ statement: string;
3130
+ conflictId: string;
3131
+ correctionId: string;
3132
+ proposedDecisionId: string;
3133
+ supersedesDecisionIds: string[];
3134
+ proposedBy: string;
3135
+ evidence?: {
3136
+ id: string;
3137
+ label: string;
3138
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
+ capture: "at_action" | "historical_lookup" | "fixture";
3140
+ locator?: string | undefined;
3141
+ }[] | undefined;
3142
+ } | {
3143
+ kind: "correction_approved";
3144
+ correctionId: string;
3145
+ approvedBy: {
3146
+ id: string;
3147
+ label: string;
3148
+ kind: "agent" | "human";
3149
+ };
3150
+ note?: string | undefined;
3151
+ evidence?: {
3152
+ id: string;
3153
+ label: string;
3154
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3155
+ capture: "at_action" | "historical_lookup" | "fixture";
3156
+ locator?: string | undefined;
3157
+ }[] | undefined;
3158
+ } | {
3159
+ kind: "decision_superseded";
3160
+ decisionId: string;
3161
+ correctionId: string;
3162
+ replacementDecisionId: string;
3163
+ evidence?: {
3164
+ id: string;
3165
+ label: string;
3166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3167
+ capture: "at_action" | "historical_lookup" | "fixture";
3168
+ locator?: string | undefined;
3169
+ }[] | undefined;
3170
+ } | {
3171
+ kind: "recall_observed";
3172
+ query: string;
3173
+ agentId: string;
3174
+ sessionId: string;
3175
+ decisionId: string;
3176
+ recallReceiptId: string;
3177
+ capturedAtAction: boolean;
3178
+ evidence?: {
3179
+ id: string;
3180
+ label: string;
3181
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3182
+ capture: "at_action" | "historical_lookup" | "fixture";
3183
+ locator?: string | undefined;
3184
+ }[] | undefined;
3185
+ } | {
3186
+ kind: "propagation_verified";
3187
+ agentId: string;
3188
+ sessionId: string;
3189
+ decisionId: string;
3190
+ correctionId: string;
3191
+ recallReceiptId: string;
3192
+ staleDecisionAbsent: boolean;
3193
+ evidence?: {
3194
+ id: string;
3195
+ label: string;
3196
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3197
+ capture: "at_action" | "historical_lookup" | "fixture";
3198
+ locator?: string | undefined;
3199
+ }[] | undefined;
3200
+ } | {
3201
+ summary: string;
3202
+ kind: "mission_completed";
3203
+ outcome: "failed" | "recovered" | "inconclusive";
3204
+ evidence?: {
3205
+ id: string;
3206
+ label: string;
3207
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3208
+ capture: "at_action" | "historical_lookup" | "fixture";
3209
+ locator?: string | undefined;
3210
+ }[] | undefined;
3211
+ };
3212
+ idempotencyKey?: string | undefined;
3213
+ occurredAt?: string | undefined;
3214
+ }>;
3215
+ type RelayMissionEventInput = z.infer<typeof RelayMissionEventInputSchema>;
3216
+ declare const RelayMissionEventSchema: z.ZodObject<{
3217
+ schemaVersion: z.ZodLiteral<"1">;
3218
+ eventId: z.ZodString;
3219
+ missionId: z.ZodString;
3220
+ namespace: z.ZodString;
3221
+ authenticatedPrincipal: z.ZodOptional<z.ZodString>;
3222
+ recordedAt: z.ZodEffects<z.ZodString, string, string>;
3223
+ occurredAt: z.ZodEffects<z.ZodString, string, string>;
3224
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3225
+ payload: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3226
+ kind: z.ZodLiteral<"mission_started">;
3227
+ title: z.ZodString;
3228
+ objective: z.ZodString;
3229
+ runMode: z.ZodEnum<["live", "replay", "fixture"]>;
3230
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3231
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3232
+ id: z.ZodString;
3233
+ label: z.ZodString;
3234
+ locator: z.ZodOptional<z.ZodString>;
3235
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3236
+ }, "strict", z.ZodTypeAny, {
3237
+ id: string;
3238
+ label: string;
3239
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3240
+ capture: "at_action" | "historical_lookup" | "fixture";
3241
+ locator?: string | undefined;
3242
+ }, {
3243
+ id: string;
3244
+ label: string;
3245
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3246
+ capture: "at_action" | "historical_lookup" | "fixture";
3247
+ locator?: string | undefined;
3248
+ }>, "many">>;
3249
+ }, "strict", z.ZodTypeAny, {
3250
+ kind: "mission_started";
3251
+ title: string;
3252
+ objective: string;
3253
+ runMode: "replay" | "fixture" | "live";
3254
+ evidence: {
3255
+ id: string;
3256
+ label: string;
3257
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3258
+ capture: "at_action" | "historical_lookup" | "fixture";
3259
+ locator?: string | undefined;
3260
+ }[];
3261
+ }, {
3262
+ kind: "mission_started";
3263
+ title: string;
3264
+ objective: string;
3265
+ runMode: "replay" | "fixture" | "live";
3266
+ evidence?: {
3267
+ id: string;
3268
+ label: string;
3269
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3270
+ capture: "at_action" | "historical_lookup" | "fixture";
3271
+ locator?: string | undefined;
3272
+ }[] | undefined;
3273
+ }>, z.ZodObject<{
3274
+ label: z.ZodString;
3275
+ role: z.ZodString;
3276
+ status: z.ZodEnum<["idle", "working", "blocked", "complete", "failed"]>;
3277
+ detail: z.ZodOptional<z.ZodString>;
3278
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3279
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3280
+ id: z.ZodString;
3281
+ label: z.ZodString;
3282
+ locator: z.ZodOptional<z.ZodString>;
3283
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3284
+ }, "strict", z.ZodTypeAny, {
3285
+ id: string;
3286
+ label: string;
3287
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3288
+ capture: "at_action" | "historical_lookup" | "fixture";
3289
+ locator?: string | undefined;
3290
+ }, {
3291
+ id: string;
3292
+ label: string;
3293
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3294
+ capture: "at_action" | "historical_lookup" | "fixture";
3295
+ locator?: string | undefined;
3296
+ }>, "many">>;
3297
+ agentId: z.ZodString;
3298
+ sessionId: z.ZodString;
3299
+ kind: z.ZodLiteral<"agent_status">;
3300
+ }, "strict", z.ZodTypeAny, {
3301
+ label: string;
3302
+ kind: "agent_status";
3303
+ role: string;
3304
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
3305
+ agentId: string;
3306
+ sessionId: string;
3307
+ evidence: {
3308
+ id: string;
3309
+ label: string;
3310
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
+ capture: "at_action" | "historical_lookup" | "fixture";
3312
+ locator?: string | undefined;
3313
+ }[];
3314
+ detail?: string | undefined;
3315
+ }, {
3316
+ label: string;
3317
+ kind: "agent_status";
3318
+ role: string;
3319
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
3320
+ agentId: string;
3321
+ sessionId: string;
3322
+ detail?: string | undefined;
3323
+ evidence?: {
3324
+ id: string;
3325
+ label: string;
3326
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3327
+ capture: "at_action" | "historical_lookup" | "fixture";
3328
+ locator?: string | undefined;
3329
+ }[] | undefined;
3330
+ }>, z.ZodObject<{
3331
+ outputId: z.ZodString;
3332
+ summary: z.ZodString;
3333
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3334
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3335
+ id: z.ZodString;
3336
+ label: z.ZodString;
3337
+ locator: z.ZodOptional<z.ZodString>;
3338
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3339
+ }, "strict", z.ZodTypeAny, {
3340
+ id: string;
3341
+ label: string;
3342
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3343
+ capture: "at_action" | "historical_lookup" | "fixture";
3344
+ locator?: string | undefined;
3345
+ }, {
3346
+ id: string;
3347
+ label: string;
3348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3349
+ capture: "at_action" | "historical_lookup" | "fixture";
3350
+ locator?: string | undefined;
3351
+ }>, "many">>;
3352
+ agentId: z.ZodString;
3353
+ sessionId: z.ZodString;
3354
+ kind: z.ZodLiteral<"agent_output">;
3355
+ }, "strict", z.ZodTypeAny, {
3356
+ summary: string;
3357
+ kind: "agent_output";
3358
+ agentId: string;
3359
+ sessionId: string;
3360
+ evidence: {
3361
+ id: string;
3362
+ label: string;
3363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3364
+ capture: "at_action" | "historical_lookup" | "fixture";
3365
+ locator?: string | undefined;
3366
+ }[];
3367
+ outputId: string;
3368
+ }, {
3369
+ summary: string;
3370
+ kind: "agent_output";
3371
+ agentId: string;
3372
+ sessionId: string;
3373
+ outputId: string;
3374
+ evidence?: {
3375
+ id: string;
3376
+ label: string;
3377
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3378
+ capture: "at_action" | "historical_lookup" | "fixture";
3379
+ locator?: string | undefined;
3380
+ }[] | undefined;
3381
+ }>, z.ZodObject<{
3382
+ beliefId: z.ZodString;
3383
+ decisionId: z.ZodString;
3384
+ statement: z.ZodString;
3385
+ confidence: z.ZodOptional<z.ZodNumber>;
3386
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3387
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3388
+ id: z.ZodString;
3389
+ label: z.ZodString;
3390
+ locator: z.ZodOptional<z.ZodString>;
3391
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3392
+ }, "strict", z.ZodTypeAny, {
3393
+ id: string;
3394
+ label: string;
3395
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3396
+ capture: "at_action" | "historical_lookup" | "fixture";
3397
+ locator?: string | undefined;
3398
+ }, {
3399
+ id: string;
3400
+ label: string;
3401
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3402
+ capture: "at_action" | "historical_lookup" | "fixture";
3403
+ locator?: string | undefined;
3404
+ }>, "many">>;
3405
+ agentId: z.ZodString;
3406
+ sessionId: z.ZodString;
3407
+ kind: z.ZodLiteral<"belief_observed">;
3408
+ }, "strict", z.ZodTypeAny, {
3409
+ kind: "belief_observed";
3410
+ agentId: string;
3411
+ sessionId: string;
3412
+ statement: string;
3413
+ evidence: {
3414
+ id: string;
3415
+ label: string;
3416
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3417
+ capture: "at_action" | "historical_lookup" | "fixture";
3418
+ locator?: string | undefined;
3419
+ }[];
3420
+ beliefId: string;
3421
+ decisionId: string;
3422
+ confidence?: number | undefined;
3423
+ }, {
3424
+ kind: "belief_observed";
3425
+ agentId: string;
3426
+ sessionId: string;
3427
+ statement: string;
3428
+ beliefId: string;
3429
+ decisionId: string;
3430
+ confidence?: number | undefined;
3431
+ evidence?: {
3432
+ id: string;
3433
+ label: string;
3434
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3435
+ capture: "at_action" | "historical_lookup" | "fixture";
3436
+ locator?: string | undefined;
3437
+ }[] | undefined;
3438
+ }>, z.ZodObject<{
3439
+ kind: z.ZodLiteral<"conflict_detected">;
3440
+ conflictId: z.ZodString;
3441
+ decisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3442
+ agentIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3443
+ summary: z.ZodString;
3444
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3445
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3446
+ id: z.ZodString;
3447
+ label: z.ZodString;
3448
+ locator: z.ZodOptional<z.ZodString>;
3449
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3450
+ }, "strict", z.ZodTypeAny, {
3451
+ id: string;
3452
+ label: string;
3453
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3454
+ capture: "at_action" | "historical_lookup" | "fixture";
3455
+ locator?: string | undefined;
3456
+ }, {
3457
+ id: string;
3458
+ label: string;
3459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3460
+ capture: "at_action" | "historical_lookup" | "fixture";
3461
+ locator?: string | undefined;
3462
+ }>, "many">>;
3463
+ }, "strict", z.ZodTypeAny, {
3464
+ summary: string;
3465
+ kind: "conflict_detected";
3466
+ evidence: {
3467
+ id: string;
3468
+ label: string;
3469
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3470
+ capture: "at_action" | "historical_lookup" | "fixture";
3471
+ locator?: string | undefined;
3472
+ }[];
3473
+ conflictId: string;
3474
+ decisionIds: string[];
3475
+ agentIds: string[];
3476
+ }, {
3477
+ summary: string;
3478
+ kind: "conflict_detected";
3479
+ conflictId: string;
3480
+ decisionIds: string[];
3481
+ agentIds: string[];
3482
+ evidence?: {
3483
+ id: string;
3484
+ label: string;
3485
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3486
+ capture: "at_action" | "historical_lookup" | "fixture";
3487
+ locator?: string | undefined;
3488
+ }[] | undefined;
3489
+ }>, z.ZodObject<{
3490
+ kind: z.ZodLiteral<"test_result">;
3491
+ testId: z.ZodString;
3492
+ decisionId: z.ZodString;
3493
+ correctionId: z.ZodOptional<z.ZodString>;
3494
+ command: z.ZodString;
3495
+ status: z.ZodEnum<["passed", "failed", "error"]>;
3496
+ summary: z.ZodString;
3497
+ durationMs: z.ZodOptional<z.ZodNumber>;
3498
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3499
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3500
+ id: z.ZodString;
3501
+ label: z.ZodString;
3502
+ locator: z.ZodOptional<z.ZodString>;
3503
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3504
+ }, "strict", z.ZodTypeAny, {
3505
+ id: string;
3506
+ label: string;
3507
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3508
+ capture: "at_action" | "historical_lookup" | "fixture";
3509
+ locator?: string | undefined;
3510
+ }, {
3511
+ id: string;
3512
+ label: string;
3513
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3514
+ capture: "at_action" | "historical_lookup" | "fixture";
3515
+ locator?: string | undefined;
3516
+ }>, "many">>;
3517
+ }, "strict", z.ZodTypeAny, {
3518
+ summary: string;
3519
+ kind: "test_result";
3520
+ command: string;
3521
+ status: "error" | "failed" | "passed";
3522
+ evidence: {
3523
+ id: string;
3524
+ label: string;
3525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3526
+ capture: "at_action" | "historical_lookup" | "fixture";
3527
+ locator?: string | undefined;
3528
+ }[];
3529
+ decisionId: string;
3530
+ testId: string;
3531
+ durationMs?: number | undefined;
3532
+ correctionId?: string | undefined;
3533
+ }, {
3534
+ summary: string;
3535
+ kind: "test_result";
3536
+ command: string;
3537
+ status: "error" | "failed" | "passed";
3538
+ decisionId: string;
3539
+ testId: string;
3540
+ durationMs?: number | undefined;
3541
+ evidence?: {
3542
+ id: string;
3543
+ label: string;
3544
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3545
+ capture: "at_action" | "historical_lookup" | "fixture";
3546
+ locator?: string | undefined;
3547
+ }[] | undefined;
3548
+ correctionId?: string | undefined;
3549
+ }>, z.ZodObject<{
3550
+ kind: z.ZodLiteral<"correction_proposed">;
3551
+ correctionId: z.ZodString;
3552
+ conflictId: z.ZodString;
3553
+ proposedDecisionId: z.ZodString;
3554
+ supersedesDecisionIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3555
+ statement: z.ZodString;
3556
+ rationale: z.ZodString;
3557
+ proposedBy: z.ZodString;
3558
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3559
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3560
+ id: z.ZodString;
3561
+ label: z.ZodString;
3562
+ locator: z.ZodOptional<z.ZodString>;
3563
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3564
+ }, "strict", z.ZodTypeAny, {
3565
+ id: string;
3566
+ label: string;
3567
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3568
+ capture: "at_action" | "historical_lookup" | "fixture";
3569
+ locator?: string | undefined;
3570
+ }, {
3571
+ id: string;
3572
+ label: string;
3573
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3574
+ capture: "at_action" | "historical_lookup" | "fixture";
3575
+ locator?: string | undefined;
3576
+ }>, "many">>;
3577
+ }, "strict", z.ZodTypeAny, {
3578
+ kind: "correction_proposed";
3579
+ rationale: string;
3580
+ statement: string;
3581
+ evidence: {
3582
+ id: string;
3583
+ label: string;
3584
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3585
+ capture: "at_action" | "historical_lookup" | "fixture";
3586
+ locator?: string | undefined;
3587
+ }[];
3588
+ conflictId: string;
3589
+ correctionId: string;
3590
+ proposedDecisionId: string;
3591
+ supersedesDecisionIds: string[];
3592
+ proposedBy: string;
3593
+ }, {
3594
+ kind: "correction_proposed";
3595
+ rationale: string;
3596
+ statement: string;
3597
+ conflictId: string;
3598
+ correctionId: string;
3599
+ proposedDecisionId: string;
3600
+ supersedesDecisionIds: string[];
3601
+ proposedBy: string;
3602
+ evidence?: {
3603
+ id: string;
3604
+ label: string;
3605
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3606
+ capture: "at_action" | "historical_lookup" | "fixture";
3607
+ locator?: string | undefined;
3608
+ }[] | undefined;
3609
+ }>, z.ZodObject<{
3610
+ kind: z.ZodLiteral<"correction_approved">;
3611
+ correctionId: z.ZodString;
3612
+ approvedBy: z.ZodObject<{
3613
+ kind: z.ZodEnum<["human", "agent"]>;
3614
+ id: z.ZodString;
3615
+ label: z.ZodString;
3616
+ }, "strict", z.ZodTypeAny, {
3617
+ id: string;
3618
+ label: string;
3619
+ kind: "agent" | "human";
3620
+ }, {
3621
+ id: string;
3622
+ label: string;
3623
+ kind: "agent" | "human";
3624
+ }>;
3625
+ note: z.ZodOptional<z.ZodString>;
3626
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3627
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3628
+ id: z.ZodString;
3629
+ label: z.ZodString;
3630
+ locator: z.ZodOptional<z.ZodString>;
3631
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3632
+ }, "strict", z.ZodTypeAny, {
3633
+ id: string;
3634
+ label: string;
3635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3636
+ capture: "at_action" | "historical_lookup" | "fixture";
3637
+ locator?: string | undefined;
3638
+ }, {
3639
+ id: string;
3640
+ label: string;
3641
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3642
+ capture: "at_action" | "historical_lookup" | "fixture";
3643
+ locator?: string | undefined;
3644
+ }>, "many">>;
3645
+ }, "strict", z.ZodTypeAny, {
3646
+ kind: "correction_approved";
3647
+ evidence: {
3648
+ id: string;
3649
+ label: string;
3650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3651
+ capture: "at_action" | "historical_lookup" | "fixture";
3652
+ locator?: string | undefined;
3653
+ }[];
3654
+ correctionId: string;
3655
+ approvedBy: {
3656
+ id: string;
3657
+ label: string;
3658
+ kind: "agent" | "human";
3659
+ };
3660
+ note?: string | undefined;
3661
+ }, {
3662
+ kind: "correction_approved";
3663
+ correctionId: string;
3664
+ approvedBy: {
3665
+ id: string;
3666
+ label: string;
3667
+ kind: "agent" | "human";
3668
+ };
3669
+ note?: string | undefined;
3670
+ evidence?: {
3671
+ id: string;
3672
+ label: string;
3673
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
+ capture: "at_action" | "historical_lookup" | "fixture";
3675
+ locator?: string | undefined;
3676
+ }[] | undefined;
3677
+ }>, z.ZodObject<{
3678
+ kind: z.ZodLiteral<"decision_superseded">;
3679
+ decisionId: z.ZodString;
3680
+ replacementDecisionId: z.ZodString;
3681
+ correctionId: z.ZodString;
3682
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3683
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3684
+ id: z.ZodString;
3685
+ label: z.ZodString;
3686
+ locator: z.ZodOptional<z.ZodString>;
3687
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3688
+ }, "strict", z.ZodTypeAny, {
3689
+ id: string;
3690
+ label: string;
3691
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3692
+ capture: "at_action" | "historical_lookup" | "fixture";
3693
+ locator?: string | undefined;
3694
+ }, {
3695
+ id: string;
3696
+ label: string;
3697
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3698
+ capture: "at_action" | "historical_lookup" | "fixture";
3699
+ locator?: string | undefined;
3700
+ }>, "many">>;
3701
+ }, "strict", z.ZodTypeAny, {
3702
+ kind: "decision_superseded";
3703
+ evidence: {
3704
+ id: string;
3705
+ label: string;
3706
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3707
+ capture: "at_action" | "historical_lookup" | "fixture";
3708
+ locator?: string | undefined;
3709
+ }[];
3710
+ decisionId: string;
3711
+ correctionId: string;
3712
+ replacementDecisionId: string;
3713
+ }, {
3714
+ kind: "decision_superseded";
3715
+ decisionId: string;
3716
+ correctionId: string;
3717
+ replacementDecisionId: string;
3718
+ evidence?: {
3719
+ id: string;
3720
+ label: string;
3721
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3722
+ capture: "at_action" | "historical_lookup" | "fixture";
3723
+ locator?: string | undefined;
3724
+ }[] | undefined;
3725
+ }>, z.ZodObject<{
3726
+ recallReceiptId: z.ZodString;
3727
+ decisionId: z.ZodString;
3728
+ query: z.ZodString;
3729
+ capturedAtAction: z.ZodBoolean;
3730
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3731
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3732
+ id: z.ZodString;
3733
+ label: z.ZodString;
3734
+ locator: z.ZodOptional<z.ZodString>;
3735
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3736
+ }, "strict", z.ZodTypeAny, {
3737
+ id: string;
3738
+ label: string;
3739
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
+ capture: "at_action" | "historical_lookup" | "fixture";
3741
+ locator?: string | undefined;
3742
+ }, {
3743
+ id: string;
3744
+ label: string;
3745
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3746
+ capture: "at_action" | "historical_lookup" | "fixture";
3747
+ locator?: string | undefined;
3748
+ }>, "many">>;
3749
+ agentId: z.ZodString;
3750
+ sessionId: z.ZodString;
3751
+ kind: z.ZodLiteral<"recall_observed">;
3752
+ }, "strict", z.ZodTypeAny, {
3753
+ kind: "recall_observed";
3754
+ query: string;
3755
+ agentId: string;
3756
+ sessionId: string;
3757
+ evidence: {
3758
+ id: string;
3759
+ label: string;
3760
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3761
+ capture: "at_action" | "historical_lookup" | "fixture";
3762
+ locator?: string | undefined;
3763
+ }[];
3764
+ decisionId: string;
3765
+ recallReceiptId: string;
3766
+ capturedAtAction: boolean;
3767
+ }, {
3768
+ kind: "recall_observed";
3769
+ query: string;
3770
+ agentId: string;
3771
+ sessionId: string;
3772
+ decisionId: string;
3773
+ recallReceiptId: string;
3774
+ capturedAtAction: boolean;
3775
+ evidence?: {
3776
+ id: string;
3777
+ label: string;
3778
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3779
+ capture: "at_action" | "historical_lookup" | "fixture";
3780
+ locator?: string | undefined;
3781
+ }[] | undefined;
3782
+ }>, z.ZodObject<{
3783
+ correctionId: z.ZodString;
3784
+ decisionId: z.ZodString;
3785
+ recallReceiptId: z.ZodString;
3786
+ staleDecisionAbsent: z.ZodBoolean;
3787
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3788
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3789
+ id: z.ZodString;
3790
+ label: z.ZodString;
3791
+ locator: z.ZodOptional<z.ZodString>;
3792
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3793
+ }, "strict", z.ZodTypeAny, {
3794
+ id: string;
3795
+ label: string;
3796
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3797
+ capture: "at_action" | "historical_lookup" | "fixture";
3798
+ locator?: string | undefined;
3799
+ }, {
3800
+ id: string;
3801
+ label: string;
3802
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3803
+ capture: "at_action" | "historical_lookup" | "fixture";
3804
+ locator?: string | undefined;
3805
+ }>, "many">>;
3806
+ agentId: z.ZodString;
3807
+ sessionId: z.ZodString;
3808
+ kind: z.ZodLiteral<"propagation_verified">;
3809
+ }, "strict", z.ZodTypeAny, {
3810
+ kind: "propagation_verified";
3811
+ agentId: string;
3812
+ sessionId: string;
3813
+ evidence: {
3814
+ id: string;
3815
+ label: string;
3816
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3817
+ capture: "at_action" | "historical_lookup" | "fixture";
3818
+ locator?: string | undefined;
3819
+ }[];
3820
+ decisionId: string;
3821
+ correctionId: string;
3822
+ recallReceiptId: string;
3823
+ staleDecisionAbsent: boolean;
3824
+ }, {
3825
+ kind: "propagation_verified";
3826
+ agentId: string;
3827
+ sessionId: string;
3828
+ decisionId: string;
3829
+ correctionId: string;
3830
+ recallReceiptId: string;
3831
+ staleDecisionAbsent: boolean;
3832
+ evidence?: {
3833
+ id: string;
3834
+ label: string;
3835
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3836
+ capture: "at_action" | "historical_lookup" | "fixture";
3837
+ locator?: string | undefined;
3838
+ }[] | undefined;
3839
+ }>, z.ZodObject<{
3840
+ kind: z.ZodLiteral<"mission_completed">;
3841
+ outcome: z.ZodEnum<["recovered", "failed", "inconclusive"]>;
3842
+ summary: z.ZodString;
3843
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
3844
+ kind: z.ZodEnum<["memory", "recall_audit", "source", "test", "commit", "correction", "agent_output", "approval"]>;
3845
+ id: z.ZodString;
3846
+ label: z.ZodString;
3847
+ locator: z.ZodOptional<z.ZodString>;
3848
+ capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3849
+ }, "strict", z.ZodTypeAny, {
3850
+ id: string;
3851
+ label: string;
3852
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3853
+ capture: "at_action" | "historical_lookup" | "fixture";
3854
+ locator?: string | undefined;
3855
+ }, {
3856
+ id: string;
3857
+ label: string;
3858
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3859
+ capture: "at_action" | "historical_lookup" | "fixture";
3860
+ locator?: string | undefined;
3861
+ }>, "many">>;
3862
+ }, "strict", z.ZodTypeAny, {
3863
+ summary: string;
3864
+ kind: "mission_completed";
3865
+ outcome: "failed" | "recovered" | "inconclusive";
3866
+ evidence: {
3867
+ id: string;
3868
+ label: string;
3869
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
+ capture: "at_action" | "historical_lookup" | "fixture";
3871
+ locator?: string | undefined;
3872
+ }[];
3873
+ }, {
3874
+ summary: string;
3875
+ kind: "mission_completed";
3876
+ outcome: "failed" | "recovered" | "inconclusive";
3877
+ evidence?: {
3878
+ id: string;
3879
+ label: string;
3880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3881
+ capture: "at_action" | "historical_lookup" | "fixture";
3882
+ locator?: string | undefined;
3883
+ }[] | undefined;
3884
+ }>]>, {
3885
+ kind: "mission_started";
3886
+ title: string;
3887
+ objective: string;
3888
+ runMode: "replay" | "fixture" | "live";
3889
+ evidence: {
3890
+ id: string;
3891
+ label: string;
3892
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3893
+ capture: "at_action" | "historical_lookup" | "fixture";
3894
+ locator?: string | undefined;
3895
+ }[];
3896
+ } | {
3897
+ label: string;
3898
+ kind: "agent_status";
3899
+ role: string;
3900
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
3901
+ agentId: string;
3902
+ sessionId: string;
3903
+ evidence: {
3904
+ id: string;
3905
+ label: string;
3906
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3907
+ capture: "at_action" | "historical_lookup" | "fixture";
3908
+ locator?: string | undefined;
3909
+ }[];
3910
+ detail?: string | undefined;
3911
+ } | {
3912
+ summary: string;
3913
+ kind: "agent_output";
3914
+ agentId: string;
3915
+ sessionId: string;
3916
+ evidence: {
3917
+ id: string;
3918
+ label: string;
3919
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3920
+ capture: "at_action" | "historical_lookup" | "fixture";
3921
+ locator?: string | undefined;
3922
+ }[];
3923
+ outputId: string;
3924
+ } | {
3925
+ kind: "belief_observed";
3926
+ agentId: string;
3927
+ sessionId: string;
3928
+ statement: string;
3929
+ evidence: {
3930
+ id: string;
3931
+ label: string;
3932
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3933
+ capture: "at_action" | "historical_lookup" | "fixture";
3934
+ locator?: string | undefined;
3935
+ }[];
3936
+ beliefId: string;
3937
+ decisionId: string;
3938
+ confidence?: number | undefined;
3939
+ } | {
3940
+ summary: string;
3941
+ kind: "conflict_detected";
3942
+ evidence: {
3943
+ id: string;
3944
+ label: string;
3945
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3946
+ capture: "at_action" | "historical_lookup" | "fixture";
3947
+ locator?: string | undefined;
3948
+ }[];
3949
+ conflictId: string;
3950
+ decisionIds: string[];
3951
+ agentIds: string[];
3952
+ } | {
3953
+ summary: string;
3954
+ kind: "test_result";
3955
+ command: string;
3956
+ status: "error" | "failed" | "passed";
3957
+ evidence: {
3958
+ id: string;
3959
+ label: string;
3960
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3961
+ capture: "at_action" | "historical_lookup" | "fixture";
3962
+ locator?: string | undefined;
3963
+ }[];
3964
+ decisionId: string;
3965
+ testId: string;
3966
+ durationMs?: number | undefined;
3967
+ correctionId?: string | undefined;
3968
+ } | {
3969
+ kind: "correction_proposed";
3970
+ rationale: string;
3971
+ statement: string;
3972
+ evidence: {
3973
+ id: string;
3974
+ label: string;
3975
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3976
+ capture: "at_action" | "historical_lookup" | "fixture";
3977
+ locator?: string | undefined;
3978
+ }[];
3979
+ conflictId: string;
3980
+ correctionId: string;
3981
+ proposedDecisionId: string;
3982
+ supersedesDecisionIds: string[];
3983
+ proposedBy: string;
3984
+ } | {
3985
+ kind: "correction_approved";
3986
+ evidence: {
3987
+ id: string;
3988
+ label: string;
3989
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3990
+ capture: "at_action" | "historical_lookup" | "fixture";
3991
+ locator?: string | undefined;
3992
+ }[];
3993
+ correctionId: string;
3994
+ approvedBy: {
3995
+ id: string;
3996
+ label: string;
3997
+ kind: "agent" | "human";
3998
+ };
3999
+ note?: string | undefined;
4000
+ } | {
4001
+ kind: "decision_superseded";
4002
+ evidence: {
4003
+ id: string;
4004
+ label: string;
4005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4006
+ capture: "at_action" | "historical_lookup" | "fixture";
4007
+ locator?: string | undefined;
4008
+ }[];
4009
+ decisionId: string;
4010
+ correctionId: string;
4011
+ replacementDecisionId: string;
4012
+ } | {
4013
+ kind: "recall_observed";
4014
+ query: string;
4015
+ agentId: string;
4016
+ sessionId: string;
4017
+ evidence: {
4018
+ id: string;
4019
+ label: string;
4020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4021
+ capture: "at_action" | "historical_lookup" | "fixture";
4022
+ locator?: string | undefined;
4023
+ }[];
4024
+ decisionId: string;
4025
+ recallReceiptId: string;
4026
+ capturedAtAction: boolean;
4027
+ } | {
4028
+ kind: "propagation_verified";
4029
+ agentId: string;
4030
+ sessionId: string;
4031
+ evidence: {
4032
+ id: string;
4033
+ label: string;
4034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4035
+ capture: "at_action" | "historical_lookup" | "fixture";
4036
+ locator?: string | undefined;
4037
+ }[];
4038
+ decisionId: string;
4039
+ correctionId: string;
4040
+ recallReceiptId: string;
4041
+ staleDecisionAbsent: boolean;
4042
+ } | {
4043
+ summary: string;
4044
+ kind: "mission_completed";
4045
+ outcome: "failed" | "recovered" | "inconclusive";
4046
+ evidence: {
4047
+ id: string;
4048
+ label: string;
4049
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4050
+ capture: "at_action" | "historical_lookup" | "fixture";
4051
+ locator?: string | undefined;
4052
+ }[];
4053
+ }, {
4054
+ kind: "mission_started";
4055
+ title: string;
4056
+ objective: string;
4057
+ runMode: "replay" | "fixture" | "live";
4058
+ evidence?: {
4059
+ id: string;
4060
+ label: string;
4061
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4062
+ capture: "at_action" | "historical_lookup" | "fixture";
4063
+ locator?: string | undefined;
4064
+ }[] | undefined;
4065
+ } | {
4066
+ label: string;
4067
+ kind: "agent_status";
4068
+ role: string;
4069
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
4070
+ agentId: string;
4071
+ sessionId: string;
4072
+ detail?: string | undefined;
4073
+ evidence?: {
4074
+ id: string;
4075
+ label: string;
4076
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4077
+ capture: "at_action" | "historical_lookup" | "fixture";
4078
+ locator?: string | undefined;
4079
+ }[] | undefined;
4080
+ } | {
4081
+ summary: string;
4082
+ kind: "agent_output";
4083
+ agentId: string;
4084
+ sessionId: string;
4085
+ outputId: string;
4086
+ evidence?: {
4087
+ id: string;
4088
+ label: string;
4089
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4090
+ capture: "at_action" | "historical_lookup" | "fixture";
4091
+ locator?: string | undefined;
4092
+ }[] | undefined;
4093
+ } | {
4094
+ kind: "belief_observed";
4095
+ agentId: string;
4096
+ sessionId: string;
4097
+ statement: string;
4098
+ beliefId: string;
4099
+ decisionId: string;
4100
+ confidence?: number | undefined;
4101
+ evidence?: {
4102
+ id: string;
4103
+ label: string;
4104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4105
+ capture: "at_action" | "historical_lookup" | "fixture";
4106
+ locator?: string | undefined;
4107
+ }[] | undefined;
4108
+ } | {
4109
+ summary: string;
4110
+ kind: "conflict_detected";
4111
+ conflictId: string;
4112
+ decisionIds: string[];
4113
+ agentIds: string[];
4114
+ evidence?: {
4115
+ id: string;
4116
+ label: string;
4117
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4118
+ capture: "at_action" | "historical_lookup" | "fixture";
4119
+ locator?: string | undefined;
4120
+ }[] | undefined;
4121
+ } | {
4122
+ summary: string;
4123
+ kind: "test_result";
4124
+ command: string;
4125
+ status: "error" | "failed" | "passed";
4126
+ decisionId: string;
4127
+ testId: string;
4128
+ durationMs?: number | undefined;
4129
+ evidence?: {
4130
+ id: string;
4131
+ label: string;
4132
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4133
+ capture: "at_action" | "historical_lookup" | "fixture";
4134
+ locator?: string | undefined;
4135
+ }[] | undefined;
4136
+ correctionId?: string | undefined;
4137
+ } | {
4138
+ kind: "correction_proposed";
4139
+ rationale: string;
4140
+ statement: string;
4141
+ conflictId: string;
4142
+ correctionId: string;
4143
+ proposedDecisionId: string;
4144
+ supersedesDecisionIds: string[];
4145
+ proposedBy: string;
4146
+ evidence?: {
4147
+ id: string;
4148
+ label: string;
4149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
+ capture: "at_action" | "historical_lookup" | "fixture";
4151
+ locator?: string | undefined;
4152
+ }[] | undefined;
4153
+ } | {
4154
+ kind: "correction_approved";
4155
+ correctionId: string;
4156
+ approvedBy: {
4157
+ id: string;
4158
+ label: string;
4159
+ kind: "agent" | "human";
4160
+ };
4161
+ note?: string | undefined;
4162
+ evidence?: {
4163
+ id: string;
4164
+ label: string;
4165
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4166
+ capture: "at_action" | "historical_lookup" | "fixture";
4167
+ locator?: string | undefined;
4168
+ }[] | undefined;
4169
+ } | {
4170
+ kind: "decision_superseded";
4171
+ decisionId: string;
4172
+ correctionId: string;
4173
+ replacementDecisionId: string;
4174
+ evidence?: {
4175
+ id: string;
4176
+ label: string;
4177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4178
+ capture: "at_action" | "historical_lookup" | "fixture";
4179
+ locator?: string | undefined;
4180
+ }[] | undefined;
4181
+ } | {
4182
+ kind: "recall_observed";
4183
+ query: string;
4184
+ agentId: string;
4185
+ sessionId: string;
4186
+ decisionId: string;
4187
+ recallReceiptId: string;
4188
+ capturedAtAction: boolean;
4189
+ evidence?: {
4190
+ id: string;
4191
+ label: string;
4192
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4193
+ capture: "at_action" | "historical_lookup" | "fixture";
4194
+ locator?: string | undefined;
4195
+ }[] | undefined;
4196
+ } | {
4197
+ kind: "propagation_verified";
4198
+ agentId: string;
4199
+ sessionId: string;
4200
+ decisionId: string;
4201
+ correctionId: string;
4202
+ recallReceiptId: string;
4203
+ staleDecisionAbsent: boolean;
4204
+ evidence?: {
4205
+ id: string;
4206
+ label: string;
4207
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4208
+ capture: "at_action" | "historical_lookup" | "fixture";
4209
+ locator?: string | undefined;
4210
+ }[] | undefined;
4211
+ } | {
4212
+ summary: string;
4213
+ kind: "mission_completed";
4214
+ outcome: "failed" | "recovered" | "inconclusive";
4215
+ evidence?: {
4216
+ id: string;
4217
+ label: string;
4218
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4219
+ capture: "at_action" | "historical_lookup" | "fixture";
4220
+ locator?: string | undefined;
4221
+ }[] | undefined;
4222
+ }>;
4223
+ }, "strict", z.ZodTypeAny, {
4224
+ namespace: string;
4225
+ recordedAt: string;
4226
+ schemaVersion: "1";
4227
+ payload: {
4228
+ kind: "mission_started";
4229
+ title: string;
4230
+ objective: string;
4231
+ runMode: "replay" | "fixture" | "live";
4232
+ evidence: {
4233
+ id: string;
4234
+ label: string;
4235
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4236
+ capture: "at_action" | "historical_lookup" | "fixture";
4237
+ locator?: string | undefined;
4238
+ }[];
4239
+ } | {
4240
+ label: string;
4241
+ kind: "agent_status";
4242
+ role: string;
4243
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
4244
+ agentId: string;
4245
+ sessionId: string;
4246
+ evidence: {
4247
+ id: string;
4248
+ label: string;
4249
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4250
+ capture: "at_action" | "historical_lookup" | "fixture";
4251
+ locator?: string | undefined;
4252
+ }[];
4253
+ detail?: string | undefined;
4254
+ } | {
4255
+ summary: string;
4256
+ kind: "agent_output";
4257
+ agentId: string;
4258
+ sessionId: string;
4259
+ evidence: {
4260
+ id: string;
4261
+ label: string;
4262
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4263
+ capture: "at_action" | "historical_lookup" | "fixture";
4264
+ locator?: string | undefined;
4265
+ }[];
4266
+ outputId: string;
4267
+ } | {
4268
+ kind: "belief_observed";
4269
+ agentId: string;
4270
+ sessionId: string;
4271
+ statement: string;
4272
+ evidence: {
4273
+ id: string;
4274
+ label: string;
4275
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4276
+ capture: "at_action" | "historical_lookup" | "fixture";
4277
+ locator?: string | undefined;
4278
+ }[];
4279
+ beliefId: string;
4280
+ decisionId: string;
4281
+ confidence?: number | undefined;
4282
+ } | {
4283
+ summary: string;
4284
+ kind: "conflict_detected";
4285
+ evidence: {
4286
+ id: string;
4287
+ label: string;
4288
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4289
+ capture: "at_action" | "historical_lookup" | "fixture";
4290
+ locator?: string | undefined;
4291
+ }[];
4292
+ conflictId: string;
4293
+ decisionIds: string[];
4294
+ agentIds: string[];
4295
+ } | {
4296
+ summary: string;
4297
+ kind: "test_result";
4298
+ command: string;
4299
+ status: "error" | "failed" | "passed";
4300
+ evidence: {
4301
+ id: string;
4302
+ label: string;
4303
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4304
+ capture: "at_action" | "historical_lookup" | "fixture";
4305
+ locator?: string | undefined;
4306
+ }[];
4307
+ decisionId: string;
4308
+ testId: string;
4309
+ durationMs?: number | undefined;
4310
+ correctionId?: string | undefined;
4311
+ } | {
4312
+ kind: "correction_proposed";
4313
+ rationale: string;
4314
+ statement: string;
4315
+ evidence: {
4316
+ id: string;
4317
+ label: string;
4318
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4319
+ capture: "at_action" | "historical_lookup" | "fixture";
4320
+ locator?: string | undefined;
4321
+ }[];
4322
+ conflictId: string;
4323
+ correctionId: string;
4324
+ proposedDecisionId: string;
4325
+ supersedesDecisionIds: string[];
4326
+ proposedBy: string;
4327
+ } | {
4328
+ kind: "correction_approved";
4329
+ evidence: {
4330
+ id: string;
4331
+ label: string;
4332
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4333
+ capture: "at_action" | "historical_lookup" | "fixture";
4334
+ locator?: string | undefined;
4335
+ }[];
4336
+ correctionId: string;
4337
+ approvedBy: {
4338
+ id: string;
4339
+ label: string;
4340
+ kind: "agent" | "human";
4341
+ };
4342
+ note?: string | undefined;
4343
+ } | {
4344
+ kind: "decision_superseded";
4345
+ evidence: {
4346
+ id: string;
4347
+ label: string;
4348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4349
+ capture: "at_action" | "historical_lookup" | "fixture";
4350
+ locator?: string | undefined;
4351
+ }[];
4352
+ decisionId: string;
4353
+ correctionId: string;
4354
+ replacementDecisionId: string;
4355
+ } | {
4356
+ kind: "recall_observed";
4357
+ query: string;
4358
+ agentId: string;
4359
+ sessionId: string;
4360
+ evidence: {
4361
+ id: string;
4362
+ label: string;
4363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4364
+ capture: "at_action" | "historical_lookup" | "fixture";
4365
+ locator?: string | undefined;
4366
+ }[];
4367
+ decisionId: string;
4368
+ recallReceiptId: string;
4369
+ capturedAtAction: boolean;
4370
+ } | {
4371
+ kind: "propagation_verified";
4372
+ agentId: string;
4373
+ sessionId: string;
4374
+ evidence: {
4375
+ id: string;
4376
+ label: string;
4377
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4378
+ capture: "at_action" | "historical_lookup" | "fixture";
4379
+ locator?: string | undefined;
4380
+ }[];
4381
+ decisionId: string;
4382
+ correctionId: string;
4383
+ recallReceiptId: string;
4384
+ staleDecisionAbsent: boolean;
4385
+ } | {
4386
+ summary: string;
4387
+ kind: "mission_completed";
4388
+ outcome: "failed" | "recovered" | "inconclusive";
4389
+ evidence: {
4390
+ id: string;
4391
+ label: string;
4392
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4393
+ capture: "at_action" | "historical_lookup" | "fixture";
4394
+ locator?: string | undefined;
4395
+ }[];
4396
+ };
4397
+ eventId: string;
4398
+ occurredAt: string;
4399
+ missionId: string;
4400
+ idempotencyKey?: string | undefined;
4401
+ authenticatedPrincipal?: string | undefined;
4402
+ }, {
4403
+ namespace: string;
4404
+ recordedAt: string;
4405
+ schemaVersion: "1";
4406
+ payload: {
4407
+ kind: "mission_started";
4408
+ title: string;
4409
+ objective: string;
4410
+ runMode: "replay" | "fixture" | "live";
4411
+ evidence?: {
4412
+ id: string;
4413
+ label: string;
4414
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4415
+ capture: "at_action" | "historical_lookup" | "fixture";
4416
+ locator?: string | undefined;
4417
+ }[] | undefined;
4418
+ } | {
4419
+ label: string;
4420
+ kind: "agent_status";
4421
+ role: string;
4422
+ status: "failed" | "complete" | "working" | "blocked" | "idle";
4423
+ agentId: string;
4424
+ sessionId: string;
4425
+ detail?: string | undefined;
4426
+ evidence?: {
4427
+ id: string;
4428
+ label: string;
4429
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4430
+ capture: "at_action" | "historical_lookup" | "fixture";
4431
+ locator?: string | undefined;
4432
+ }[] | undefined;
4433
+ } | {
4434
+ summary: string;
4435
+ kind: "agent_output";
4436
+ agentId: string;
4437
+ sessionId: string;
4438
+ outputId: string;
4439
+ evidence?: {
4440
+ id: string;
4441
+ label: string;
4442
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4443
+ capture: "at_action" | "historical_lookup" | "fixture";
4444
+ locator?: string | undefined;
4445
+ }[] | undefined;
4446
+ } | {
4447
+ kind: "belief_observed";
4448
+ agentId: string;
4449
+ sessionId: string;
4450
+ statement: string;
4451
+ beliefId: string;
4452
+ decisionId: string;
4453
+ confidence?: number | undefined;
4454
+ evidence?: {
4455
+ id: string;
4456
+ label: string;
4457
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4458
+ capture: "at_action" | "historical_lookup" | "fixture";
4459
+ locator?: string | undefined;
4460
+ }[] | undefined;
4461
+ } | {
4462
+ summary: string;
4463
+ kind: "conflict_detected";
4464
+ conflictId: string;
4465
+ decisionIds: string[];
4466
+ agentIds: string[];
4467
+ evidence?: {
4468
+ id: string;
4469
+ label: string;
4470
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4471
+ capture: "at_action" | "historical_lookup" | "fixture";
4472
+ locator?: string | undefined;
4473
+ }[] | undefined;
4474
+ } | {
4475
+ summary: string;
4476
+ kind: "test_result";
4477
+ command: string;
4478
+ status: "error" | "failed" | "passed";
4479
+ decisionId: string;
4480
+ testId: string;
4481
+ durationMs?: number | undefined;
4482
+ evidence?: {
4483
+ id: string;
4484
+ label: string;
4485
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4486
+ capture: "at_action" | "historical_lookup" | "fixture";
4487
+ locator?: string | undefined;
4488
+ }[] | undefined;
4489
+ correctionId?: string | undefined;
4490
+ } | {
4491
+ kind: "correction_proposed";
4492
+ rationale: string;
4493
+ statement: string;
4494
+ conflictId: string;
4495
+ correctionId: string;
4496
+ proposedDecisionId: string;
4497
+ supersedesDecisionIds: string[];
4498
+ proposedBy: string;
4499
+ evidence?: {
4500
+ id: string;
4501
+ label: string;
4502
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
+ capture: "at_action" | "historical_lookup" | "fixture";
4504
+ locator?: string | undefined;
4505
+ }[] | undefined;
4506
+ } | {
4507
+ kind: "correction_approved";
4508
+ correctionId: string;
4509
+ approvedBy: {
4510
+ id: string;
4511
+ label: string;
4512
+ kind: "agent" | "human";
4513
+ };
4514
+ note?: string | undefined;
4515
+ evidence?: {
4516
+ id: string;
4517
+ label: string;
4518
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4519
+ capture: "at_action" | "historical_lookup" | "fixture";
4520
+ locator?: string | undefined;
4521
+ }[] | undefined;
4522
+ } | {
4523
+ kind: "decision_superseded";
4524
+ decisionId: string;
4525
+ correctionId: string;
4526
+ replacementDecisionId: string;
4527
+ evidence?: {
4528
+ id: string;
4529
+ label: string;
4530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4531
+ capture: "at_action" | "historical_lookup" | "fixture";
4532
+ locator?: string | undefined;
4533
+ }[] | undefined;
4534
+ } | {
4535
+ kind: "recall_observed";
4536
+ query: string;
4537
+ agentId: string;
4538
+ sessionId: string;
4539
+ decisionId: string;
4540
+ recallReceiptId: string;
4541
+ capturedAtAction: boolean;
4542
+ evidence?: {
4543
+ id: string;
4544
+ label: string;
4545
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4546
+ capture: "at_action" | "historical_lookup" | "fixture";
4547
+ locator?: string | undefined;
4548
+ }[] | undefined;
4549
+ } | {
4550
+ kind: "propagation_verified";
4551
+ agentId: string;
4552
+ sessionId: string;
4553
+ decisionId: string;
4554
+ correctionId: string;
4555
+ recallReceiptId: string;
4556
+ staleDecisionAbsent: boolean;
4557
+ evidence?: {
4558
+ id: string;
4559
+ label: string;
4560
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4561
+ capture: "at_action" | "historical_lookup" | "fixture";
4562
+ locator?: string | undefined;
4563
+ }[] | undefined;
4564
+ } | {
4565
+ summary: string;
4566
+ kind: "mission_completed";
4567
+ outcome: "failed" | "recovered" | "inconclusive";
4568
+ evidence?: {
4569
+ id: string;
4570
+ label: string;
4571
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4572
+ capture: "at_action" | "historical_lookup" | "fixture";
4573
+ locator?: string | undefined;
4574
+ }[] | undefined;
4575
+ };
4576
+ eventId: string;
4577
+ occurredAt: string;
4578
+ missionId: string;
4579
+ idempotencyKey?: string | undefined;
4580
+ authenticatedPrincipal?: string | undefined;
4581
+ }>;
4582
+ type RelayMissionEvent = z.infer<typeof RelayMissionEventSchema>;
4583
+ declare const RelayMissionReadOptionsSchema: z.ZodEffects<z.ZodObject<{
4584
+ since: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4585
+ until: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4586
+ limit: z.ZodDefault<z.ZodNumber>;
4587
+ }, "strict", z.ZodTypeAny, {
4588
+ limit: number;
4589
+ since?: string | undefined;
4590
+ until?: string | undefined;
4591
+ }, {
4592
+ since?: string | undefined;
4593
+ limit?: number | undefined;
4594
+ until?: string | undefined;
4595
+ }>, {
4596
+ limit: number;
4597
+ since?: string | undefined;
4598
+ until?: string | undefined;
4599
+ }, {
4600
+ since?: string | undefined;
4601
+ limit?: number | undefined;
4602
+ until?: string | undefined;
4603
+ }>;
4604
+ type RelayMissionReadOptions = z.input<typeof RelayMissionReadOptionsSchema>;
4605
+ type RelayMissionStatus = "not_started" | "active" | "awaiting_approval" | "correcting" | "verified" | "completed" | "failed";
4606
+ interface RelayAgentOutputSnapshot {
4607
+ outputId: string;
4608
+ summary: string;
4609
+ occurredAt: string;
4610
+ evidence: RelayEvidenceRef[];
4611
+ }
4612
+ interface RelayRecallSnapshot {
4613
+ recallReceiptId: string;
4614
+ sessionId: string;
4615
+ decisionId: string;
4616
+ query: string;
4617
+ capturedAtAction: boolean;
4618
+ coldStart: boolean;
4619
+ occurredAt: string;
4620
+ evidence: RelayEvidenceRef[];
4621
+ }
4622
+ interface RelayAgentSnapshot {
4623
+ agentId: string;
4624
+ label: string;
4625
+ role: string;
4626
+ status: "idle" | "working" | "blocked" | "complete" | "failed";
4627
+ sessionIds: string[];
4628
+ outputs: RelayAgentOutputSnapshot[];
4629
+ recalls: RelayRecallSnapshot[];
4630
+ lastSeenAt: string;
4631
+ }
4632
+ interface RelayDecisionSnapshot {
4633
+ decisionId: string;
4634
+ statement: string;
4635
+ status: "active" | "superseded" | "proposed";
4636
+ heldByAgentIds: string[];
4637
+ beliefIds: string[];
4638
+ evidence: RelayEvidenceRef[];
4639
+ firstObservedAt: string;
4640
+ supersededAt?: string;
4641
+ supersededBy?: string;
4642
+ correctionId?: string;
4643
+ }
4644
+ interface RelayConflictSnapshot {
4645
+ conflictId: string;
4646
+ decisionIds: string[];
4647
+ agentIds: string[];
4648
+ summary: string;
4649
+ status: "open" | "proposed" | "resolved";
4650
+ correctionId?: string;
4651
+ occurredAt: string;
4652
+ evidence: RelayEvidenceRef[];
4653
+ }
4654
+ interface RelayCorrectionSnapshot {
4655
+ correctionId: string;
4656
+ conflictId: string;
4657
+ proposedDecisionId: string;
4658
+ supersedesDecisionIds: string[];
4659
+ statement: string;
4660
+ rationale: string;
4661
+ proposedBy: string;
4662
+ status: "proposed" | "approved" | "applied" | "propagated";
4663
+ proposedAt: string;
4664
+ approvedAt?: string;
4665
+ approvedBy?: {
4666
+ kind: "human" | "agent";
4667
+ id: string;
4668
+ label: string;
4669
+ };
4670
+ approvalNote?: string;
4671
+ approvalPrincipal?: string;
4672
+ appliedAt?: string;
4673
+ propagatedAt?: string;
4674
+ evidence: RelayEvidenceRef[];
4675
+ }
4676
+ interface RelayTestSnapshot {
4677
+ testId: string;
4678
+ decisionId: string;
4679
+ correctionId?: string;
4680
+ command: string;
4681
+ status: "passed" | "failed" | "error";
4682
+ summary: string;
4683
+ durationMs?: number;
4684
+ occurredAt: string;
4685
+ evidence: RelayEvidenceRef[];
4686
+ }
4687
+ interface RelayPropagationSnapshot {
4688
+ correctionId: string;
4689
+ agentId: string;
4690
+ sessionId: string;
4691
+ decisionId: string;
4692
+ recallReceiptId: string;
4693
+ staleDecisionAbsent: boolean;
4694
+ occurredAt: string;
4695
+ evidence: RelayEvidenceRef[];
4696
+ }
4697
+ interface RelayMissionSnapshot {
4698
+ schemaVersion: typeof RELAY_MISSION_SCHEMA_VERSION;
4699
+ missionId: string;
4700
+ namespace: string;
4701
+ found: boolean;
4702
+ readHealth: "empty" | "ok" | "partial";
4703
+ status: RelayMissionStatus;
4704
+ mission: {
4705
+ title: string | null;
4706
+ objective: string | null;
4707
+ runMode: "live" | "replay" | "fixture" | null;
4708
+ startedAt: string | null;
4709
+ completedAt: string | null;
4710
+ };
4711
+ agents: RelayAgentSnapshot[];
4712
+ decisions: RelayDecisionSnapshot[];
4713
+ conflicts: RelayConflictSnapshot[];
4714
+ corrections: RelayCorrectionSnapshot[];
4715
+ tests: RelayTestSnapshot[];
4716
+ propagation: RelayPropagationSnapshot[];
4717
+ outcome: {
4718
+ result: "recovered" | "failed" | "inconclusive";
4719
+ summary: string;
4720
+ occurredAt: string;
4721
+ evidence: RelayEvidenceRef[];
4722
+ } | null;
4723
+ receipt: {
4724
+ complete: boolean;
4725
+ missingEvidence: string[];
4726
+ activeDecisionIds: string[];
4727
+ supersededDecisionIds: string[];
4728
+ coldStartVerified: boolean;
4729
+ passingOutcomeVerified: boolean;
4730
+ };
4731
+ bounds: {
4732
+ totalEvents: number;
4733
+ returnedEvents: number;
4734
+ corruptLines: number;
4735
+ truncated: boolean;
4736
+ since: string | null;
4737
+ until: string | null;
4738
+ };
4739
+ events: RelayMissionEvent[];
4740
+ }
4741
+ type RelayMissionStoreErrorCode = "idempotency_conflict" | "limit_exceeded" | "lock_unavailable" | "read_failed" | "unsafe_path" | "write_failed";
4742
+ declare class RelayMissionStoreError extends Error {
4743
+ readonly code: RelayMissionStoreErrorCode;
4744
+ constructor(code: RelayMissionStoreErrorCode, message: string, options?: ErrorOptions);
4745
+ }
4746
+ interface RelayMissionStoreOptions {
4747
+ rootDir: string;
4748
+ namespace: string;
4749
+ now?: () => Date;
4750
+ createEventId?: () => string;
4751
+ maxFileBytes?: number;
4752
+ maxEvents?: number;
4753
+ lockMaxWaitMs?: number;
4754
+ }
4755
+ interface RelayMissionAppendResult {
4756
+ appended: boolean;
4757
+ replayed: boolean;
4758
+ event: RelayMissionEvent;
4759
+ }
4760
+ declare class RelayMissionStore {
4761
+ private readonly rootDir;
4762
+ private readonly namespace;
4763
+ private readonly now;
4764
+ private readonly createEventId;
4765
+ private readonly maxFileBytes;
4766
+ private readonly maxEvents;
4767
+ private readonly lockMaxWaitMs;
4768
+ constructor(options: RelayMissionStoreOptions);
4769
+ append(missionIdValue: string, inputValue: RelayMissionEventInput, hooks?: {
4770
+ authenticatedPrincipal?: string;
4771
+ beforeAppend?: () => void | Promise<void>;
4772
+ }): Promise<RelayMissionAppendResult>;
4773
+ read(missionIdValue: string, readOptions?: RelayMissionReadOptions): Promise<RelayMissionSnapshot>;
4774
+ private openMissionDirectory;
4775
+ private readFile;
4776
+ private appendFile;
4777
+ }
4778
+ interface ReduceRelayMissionInput {
4779
+ missionId: string;
4780
+ namespace: string;
4781
+ events: RelayMissionEvent[];
4782
+ corruptLines?: number;
4783
+ fileExists?: boolean;
4784
+ options?: RelayMissionReadOptions;
4785
+ }
4786
+ declare function reduceRelayMission(input: ReduceRelayMissionInput): RelayMissionSnapshot;
4787
+ declare function compareRelayEvents(a: RelayMissionEvent, b: RelayMissionEvent): number;
4788
+ declare function relayMissionReceiptDigest(snapshot: RelayMissionSnapshot): string;
4789
+
4790
+ interface RelayMissionAppendAccessInput {
4791
+ missionId: string;
4792
+ namespace?: string | null;
4793
+ event: RelayMissionEventInput;
4794
+ }
4795
+ interface RelayMissionReadAccessInput extends RelayMissionReadOptions {
4796
+ missionId: string;
4797
+ namespace?: string | null;
4798
+ }
4799
+ interface RelayMissionAppendAccessOutput {
4800
+ result: RelayMissionAppendResult;
4801
+ }
4802
+ interface RelayMissionReadAccessOutput {
4803
+ result: RelayMissionSnapshot;
4804
+ }
4805
+ /**
4806
+ * Shared service contract for transports that need to append Relay evidence.
4807
+ * Namespace resolution stays in the existing access service so the append
4808
+ * inherits the same tenancy and principal rules as every memory write.
4809
+ */
4810
+ declare function appendRelayMissionEvent(service: EngramAccessService, input: RelayMissionAppendAccessInput, authenticatedPrincipal?: string, beforeAppend?: () => void | Promise<void>): Promise<RelayMissionAppendResult>;
4811
+ /** Namespace-authorized, bounded Relay snapshot read shared by HTTP and UI. */
4812
+ declare function readRelayMission(service: EngramAccessService, input: RelayMissionReadAccessInput, authenticatedPrincipal?: string): Promise<RelayMissionSnapshot>;
4813
+ declare const relayMissionAppendOperation: BoundOperation<RelayMissionAppendAccessInput, RelayMissionAppendAccessOutput>;
4814
+ declare const relayMissionReadOperation: BoundOperation<RelayMissionReadAccessInput, RelayMissionReadAccessOutput>;
4815
+
4816
+ declare const RELAY_DEMO_MISSION_ID = "checkout-token-recovery";
4817
+ declare const RELAY_DEMO_NAMESPACE = "relay-build-week";
4818
+ /**
4819
+ * Deterministic evidence stream shared by contract tests, replay, and the
4820
+ * judge-facing fixture mode. Every event has a stable idempotency key and
4821
+ * source reference so the resulting receipt is complete without fabricated
4822
+ * runtime evidence.
4823
+ */
4824
+ declare function createRelayMissionFixture(): RelayMissionEventInput[];
4825
+
840
4826
  interface GitContext {
841
4827
  /**
842
4828
  * Stable identifier for the project. Derived from `git remote get-url origin`
@@ -3139,4 +7125,4 @@ declare function forkCapsule(opts: ForkCapsuleOptions): Promise<ForkCapsuleResul
3139
7125
  */
3140
7126
  declare function readForkLineage(targetRoot: string, forkId: string): Promise<ForkLineage | null>;
3141
7127
 
3142
- export { type ArchitectureHintsResult, type AuditEntry, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OnboardOptions, type OnboardResult, PUBLISHERS, type PackReviewContextStructuralInput, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type SessionSummaryDraft, type SessionSummaryExcerpt, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TRANSCRIPT_FORMAT_VERSION, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, WearableDayTranscript, WearableDayTranscriptMeta, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, applyCorrections, applyOffTheRecord, bodyIsEscaped, branchNamespaceName, buildProcedureMarkdownBody, buildProcedureRecallSection, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compileCorrectionRule, compileCorrectionRules, compileRedactionPatterns, compileRedactionRules, composeDayTranscriptBody, composeDayTranscriptMeta, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createNotionConnector, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateContextTree, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashTranscriptBody, hostIdForConnector, isLowQualitySegment, isReviewPrompt, isValidTranscriptDate, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, mergeSpaces, normalizeOriginUrl, onboard, packReviewContext, packReviewContextStructural, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseProcedureStepsFromBody, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, reconstructFusionInputs, redactSessionSummaryText, redactText, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, serializeDayTranscript, shareSpace, stableHash, stripFillerTokens, structuralProviderActive, switchSpace, syncChanges, syncStateFilePath, toStructuralContextDegradation, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, writeManifest };
7128
+ export { type ArchitectureHintsResult, type AuditEntry, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OnboardOptions, type OnboardResult, PUBLISHERS, type PackReviewContextStructuralInput, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type SessionSummaryDraft, type SessionSummaryExcerpt, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TRANSCRIPT_FORMAT_VERSION, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, WearableDayTranscript, WearableDayTranscriptMeta, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, appendRelayMissionEvent, applyCorrections, applyOffTheRecord, bodyIsEscaped, branchNamespaceName, buildProcedureMarkdownBody, buildProcedureRecallSection, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileRedactionPatterns, compileRedactionRules, composeDayTranscriptBody, composeDayTranscriptMeta, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateContextTree, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashTranscriptBody, hostIdForConnector, isLowQualitySegment, isReviewPrompt, isValidTranscriptDate, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, mergeSpaces, normalizeOriginUrl, onboard, packReviewContext, packReviewContextStructural, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseProcedureStepsFromBody, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, readRelayMission, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, serializeDayTranscript, shareSpace, stableHash, stripFillerTokens, structuralProviderActive, switchSpace, syncChanges, syncStateFilePath, toStructuralContextDegradation, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, writeManifest };