@exaudeus/workrail 3.39.0 → 3.41.0
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.
- package/dist/cli/commands/init.js +0 -3
- package/dist/cli-worktrain.js +58 -26
- package/dist/cli.js +0 -18
- package/dist/config/app-config.d.ts +0 -16
- package/dist/config/app-config.js +0 -14
- package/dist/config/config-file.js +0 -3
- package/dist/console-ui/assets/index-CQt4UhPB.js +28 -0
- package/dist/console-ui/assets/index-DGj8EsFR.css +1 -0
- package/dist/console-ui/index.html +2 -2
- package/dist/coordinators/pr-review.d.ts +23 -1
- package/dist/coordinators/pr-review.js +224 -5
- package/dist/daemon/daemon-events.d.ts +9 -1
- package/dist/daemon/soul-template.d.ts +2 -2
- package/dist/daemon/soul-template.js +11 -1
- package/dist/daemon/workflow-runner.d.ts +17 -3
- package/dist/daemon/workflow-runner.js +401 -28
- package/dist/di/container.js +1 -25
- package/dist/di/tokens.d.ts +0 -3
- package/dist/di/tokens.js +0 -3
- package/dist/engine/engine-factory.js +0 -1
- package/dist/infrastructure/console-defaults.d.ts +1 -0
- package/dist/infrastructure/console-defaults.js +4 -0
- package/dist/infrastructure/session/index.d.ts +0 -1
- package/dist/infrastructure/session/index.js +1 -3
- package/dist/manifest.json +124 -124
- package/dist/mcp/handlers/session.d.ts +1 -0
- package/dist/mcp/handlers/session.js +61 -13
- package/dist/mcp/output-schemas.d.ts +10 -10
- package/dist/mcp/server.js +1 -18
- package/dist/mcp/tools.d.ts +12 -12
- package/dist/mcp/transports/http-entry.js +0 -2
- package/dist/mcp/transports/stdio-entry.js +1 -2
- package/dist/mcp/types.d.ts +0 -2
- package/dist/trigger/daemon-console.d.ts +2 -0
- package/dist/trigger/daemon-console.js +1 -1
- package/dist/trigger/trigger-listener.d.ts +2 -0
- package/dist/trigger/trigger-listener.js +3 -1
- package/dist/trigger/trigger-router.d.ts +4 -3
- package/dist/trigger/trigger-router.js +13 -5
- package/dist/trigger/trigger-store.js +17 -4
- package/dist/types/workflow-source.d.ts +0 -1
- package/dist/types/workflow-source.js +3 -6
- package/dist/types/workflow.d.ts +1 -1
- package/dist/types/workflow.js +1 -2
- package/dist/v2/durable-core/domain/artifact-contract-validator.js +66 -0
- package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.d.ts +25 -0
- package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.js +31 -0
- package/dist/v2/durable-core/schemas/artifacts/index.d.ts +3 -1
- package/dist/v2/durable-core/schemas/artifacts/index.js +14 -1
- package/dist/v2/durable-core/schemas/artifacts/review-verdict.d.ts +41 -0
- package/dist/v2/durable-core/schemas/artifacts/review-verdict.js +30 -0
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +236 -236
- package/dist/v2/durable-core/schemas/session/events.d.ts +50 -50
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +2 -2
- package/dist/v2/durable-core/schemas/session/manifest.d.ts +4 -4
- package/dist/v2/durable-core/schemas/session/outputs.d.ts +8 -8
- package/dist/v2/usecases/console-routes.d.ts +2 -1
- package/dist/v2/usecases/console-routes.js +207 -5
- package/dist/v2/usecases/console-service.js +14 -0
- package/dist/v2/usecases/console-types.d.ts +1 -0
- package/docs/authoring.md +16 -16
- package/docs/design/coordinator-artifact-protocol-design-candidates.md +155 -0
- package/docs/design/coordinator-artifact-protocol-design-review.md +103 -0
- package/docs/design/coordinator-artifact-protocol-implementation-plan.md +259 -0
- package/docs/design/coordinator-message-queue-drain-plan.md +241 -0
- package/docs/design/coordinator-message-queue-drain-review.md +120 -0
- package/docs/design/coordinator-message-queue-drain.md +289 -0
- package/docs/design/shaping-workflow-external-research.md +119 -0
- package/docs/discovery/late-bound-goals-impl-plan.md +147 -0
- package/docs/discovery/late-bound-goals-review.md +82 -0
- package/docs/discovery/late-bound-goals.md +118 -0
- package/docs/discovery/steer-endpoint-design-candidates.md +288 -0
- package/docs/discovery/steer-endpoint-design-review-findings.md +104 -0
- package/docs/discovery/steer-endpoint-implementation-plan.md +284 -0
- package/docs/ideas/backlog.md +447 -97
- package/docs/ideas/design-candidates-console-session-tree-impl.md +64 -0
- package/docs/ideas/design-candidates-session-tree-view.md +196 -0
- package/docs/ideas/design-review-findings-console-session-tree-impl.md +75 -0
- package/docs/ideas/design-review-findings-session-tree-view.md +88 -0
- package/docs/ideas/implementation_plan_session_tree_view.md +238 -0
- package/package.json +2 -1
- package/spec/authoring-spec.json +16 -16
- package/spec/shape.schema.json +178 -0
- package/spec/workflow-tags.json +232 -47
- package/workflows/coding-task-workflow-agentic.json +491 -480
- package/workflows/mr-review-workflow.agentic.v2.json +5 -1
- package/workflows/wr.shaping.json +182 -0
- package/dist/console-ui/assets/index-3oXZ_A9m.js +0 -28
- package/dist/console-ui/assets/index-8dh0Psu-.css +0 -1
- package/dist/infrastructure/session/DashboardHeartbeat.d.ts +0 -8
- package/dist/infrastructure/session/DashboardHeartbeat.js +0 -39
- package/dist/infrastructure/session/DashboardLockRelease.d.ts +0 -2
- package/dist/infrastructure/session/DashboardLockRelease.js +0 -29
- package/dist/infrastructure/session/HttpServer.d.ts +0 -60
- package/dist/infrastructure/session/HttpServer.js +0 -912
- package/workflows/coding-task-workflow-agentic.lean.v2.json +0 -648
- package/workflows/coding-task-workflow-agentic.v2.json +0 -324
|
@@ -84,11 +84,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
84
84
|
}>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
kind: "session_created";
|
|
87
|
+
sessionId: string;
|
|
87
88
|
data: {
|
|
88
89
|
parentSessionId?: string | undefined;
|
|
89
90
|
};
|
|
90
91
|
v: 1;
|
|
91
|
-
sessionId: string;
|
|
92
92
|
eventIndex: number;
|
|
93
93
|
eventId: string;
|
|
94
94
|
dedupeKey: string;
|
|
@@ -98,11 +98,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
98
98
|
} | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
kind: "session_created";
|
|
101
|
+
sessionId: string;
|
|
101
102
|
data: {
|
|
102
103
|
parentSessionId?: string | undefined;
|
|
103
104
|
};
|
|
104
105
|
v: 1;
|
|
105
|
-
sessionId: string;
|
|
106
106
|
eventIndex: number;
|
|
107
107
|
eventId: string;
|
|
108
108
|
dedupeKey: string;
|
|
@@ -194,6 +194,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
194
194
|
}>;
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
196
|
kind: "observation_recorded";
|
|
197
|
+
sessionId: string;
|
|
197
198
|
data: {
|
|
198
199
|
value: {
|
|
199
200
|
type: "short_string";
|
|
@@ -212,13 +213,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
212
213
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
213
214
|
};
|
|
214
215
|
v: 1;
|
|
215
|
-
sessionId: string;
|
|
216
216
|
eventIndex: number;
|
|
217
217
|
eventId: string;
|
|
218
218
|
dedupeKey: string;
|
|
219
219
|
scope?: undefined;
|
|
220
220
|
}, {
|
|
221
221
|
kind: "observation_recorded";
|
|
222
|
+
sessionId: string;
|
|
222
223
|
data: {
|
|
223
224
|
value: {
|
|
224
225
|
type: "short_string";
|
|
@@ -237,7 +238,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
237
238
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
238
239
|
};
|
|
239
240
|
v: 1;
|
|
240
|
-
sessionId: string;
|
|
241
241
|
eventIndex: number;
|
|
242
242
|
eventId: string;
|
|
243
243
|
dedupeKey: string;
|
|
@@ -275,6 +275,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
275
275
|
}>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
kind: "run_started";
|
|
278
|
+
sessionId: string;
|
|
278
279
|
data: {
|
|
279
280
|
workflowId: string;
|
|
280
281
|
workflowHash: never;
|
|
@@ -282,7 +283,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
282
283
|
workflowSourceRef: string;
|
|
283
284
|
};
|
|
284
285
|
v: 1;
|
|
285
|
-
sessionId: string;
|
|
286
286
|
eventIndex: number;
|
|
287
287
|
eventId: string;
|
|
288
288
|
dedupeKey: string;
|
|
@@ -291,6 +291,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
291
291
|
};
|
|
292
292
|
}, {
|
|
293
293
|
kind: "run_started";
|
|
294
|
+
sessionId: string;
|
|
294
295
|
data: {
|
|
295
296
|
workflowId: string;
|
|
296
297
|
workflowHash: string;
|
|
@@ -298,7 +299,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
298
299
|
workflowSourceRef: string;
|
|
299
300
|
};
|
|
300
301
|
v: 1;
|
|
301
|
-
sessionId: string;
|
|
302
302
|
eventIndex: number;
|
|
303
303
|
eventId: string;
|
|
304
304
|
dedupeKey: string;
|
|
@@ -341,6 +341,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
341
341
|
}>;
|
|
342
342
|
}, "strip", z.ZodTypeAny, {
|
|
343
343
|
kind: "node_created";
|
|
344
|
+
sessionId: string;
|
|
344
345
|
data: {
|
|
345
346
|
snapshotRef: never;
|
|
346
347
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -348,7 +349,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
348
349
|
workflowHash: never;
|
|
349
350
|
};
|
|
350
351
|
v: 1;
|
|
351
|
-
sessionId: string;
|
|
352
352
|
eventIndex: number;
|
|
353
353
|
eventId: string;
|
|
354
354
|
dedupeKey: string;
|
|
@@ -358,6 +358,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
358
358
|
};
|
|
359
359
|
}, {
|
|
360
360
|
kind: "node_created";
|
|
361
|
+
sessionId: string;
|
|
361
362
|
data: {
|
|
362
363
|
snapshotRef: string;
|
|
363
364
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -365,7 +366,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
365
366
|
workflowHash: string;
|
|
366
367
|
};
|
|
367
368
|
v: 1;
|
|
368
|
-
sessionId: string;
|
|
369
369
|
eventIndex: number;
|
|
370
370
|
eventId: string;
|
|
371
371
|
dedupeKey: string;
|
|
@@ -437,6 +437,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
437
437
|
}>;
|
|
438
438
|
}, "strip", z.ZodTypeAny, {
|
|
439
439
|
kind: "edge_created";
|
|
440
|
+
sessionId: string;
|
|
440
441
|
data: {
|
|
441
442
|
cause: {
|
|
442
443
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -447,7 +448,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
447
448
|
toNodeId: string;
|
|
448
449
|
};
|
|
449
450
|
v: 1;
|
|
450
|
-
sessionId: string;
|
|
451
451
|
eventIndex: number;
|
|
452
452
|
eventId: string;
|
|
453
453
|
dedupeKey: string;
|
|
@@ -456,6 +456,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
456
456
|
};
|
|
457
457
|
}, {
|
|
458
458
|
kind: "edge_created";
|
|
459
|
+
sessionId: string;
|
|
459
460
|
data: {
|
|
460
461
|
cause: {
|
|
461
462
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -466,7 +467,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
466
467
|
toNodeId: string;
|
|
467
468
|
};
|
|
468
469
|
v: 1;
|
|
469
|
-
sessionId: string;
|
|
470
470
|
eventIndex: number;
|
|
471
471
|
eventId: string;
|
|
472
472
|
dedupeKey: string;
|
|
@@ -791,6 +791,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
791
791
|
}>;
|
|
792
792
|
}, "strip", z.ZodTypeAny, {
|
|
793
793
|
kind: "advance_recorded";
|
|
794
|
+
sessionId: string;
|
|
794
795
|
data: {
|
|
795
796
|
outcome: {
|
|
796
797
|
kind: "blocked";
|
|
@@ -824,7 +825,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
824
825
|
intent: "ack_pending";
|
|
825
826
|
};
|
|
826
827
|
v: 1;
|
|
827
|
-
sessionId: string;
|
|
828
828
|
eventIndex: number;
|
|
829
829
|
eventId: string;
|
|
830
830
|
dedupeKey: string;
|
|
@@ -834,6 +834,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
834
834
|
};
|
|
835
835
|
}, {
|
|
836
836
|
kind: "advance_recorded";
|
|
837
|
+
sessionId: string;
|
|
837
838
|
data: {
|
|
838
839
|
outcome: {
|
|
839
840
|
kind: "blocked";
|
|
@@ -867,7 +868,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
867
868
|
intent: "ack_pending";
|
|
868
869
|
};
|
|
869
870
|
v: 1;
|
|
870
|
-
sessionId: string;
|
|
871
871
|
eventIndex: number;
|
|
872
872
|
eventId: string;
|
|
873
873
|
dedupeKey: string;
|
|
@@ -939,6 +939,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
939
939
|
}>;
|
|
940
940
|
}, "strip", z.ZodTypeAny, {
|
|
941
941
|
kind: "validation_performed";
|
|
942
|
+
sessionId: string;
|
|
942
943
|
data: {
|
|
943
944
|
contractRef: string;
|
|
944
945
|
result: {
|
|
@@ -950,7 +951,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
950
951
|
attemptId: string;
|
|
951
952
|
};
|
|
952
953
|
v: 1;
|
|
953
|
-
sessionId: string;
|
|
954
954
|
eventIndex: number;
|
|
955
955
|
eventId: string;
|
|
956
956
|
dedupeKey: string;
|
|
@@ -960,6 +960,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
960
960
|
};
|
|
961
961
|
}, {
|
|
962
962
|
kind: "validation_performed";
|
|
963
|
+
sessionId: string;
|
|
963
964
|
data: {
|
|
964
965
|
contractRef: string;
|
|
965
966
|
result: {
|
|
@@ -971,7 +972,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
971
972
|
attemptId: string;
|
|
972
973
|
};
|
|
973
974
|
v: 1;
|
|
974
|
-
sessionId: string;
|
|
975
975
|
eventIndex: number;
|
|
976
976
|
eventId: string;
|
|
977
977
|
dedupeKey: string;
|
|
@@ -1030,8 +1030,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1030
1030
|
content?: unknown;
|
|
1031
1031
|
}>]>;
|
|
1032
1032
|
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
outputId: string;
|
|
1034
|
-
outputChannel: "recap" | "artifact";
|
|
1035
1033
|
payload: {
|
|
1036
1034
|
payloadKind: "notes";
|
|
1037
1035
|
notesMarkdown: string;
|
|
@@ -1042,10 +1040,10 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1042
1040
|
byteLength: number;
|
|
1043
1041
|
content?: unknown;
|
|
1044
1042
|
};
|
|
1045
|
-
supersedesOutputId?: string | undefined;
|
|
1046
|
-
}, {
|
|
1047
1043
|
outputId: string;
|
|
1048
1044
|
outputChannel: "recap" | "artifact";
|
|
1045
|
+
supersedesOutputId?: string | undefined;
|
|
1046
|
+
}, {
|
|
1049
1047
|
payload: {
|
|
1050
1048
|
payloadKind: "notes";
|
|
1051
1049
|
notesMarkdown: string;
|
|
@@ -1056,10 +1054,10 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1056
1054
|
byteLength: number;
|
|
1057
1055
|
content?: unknown;
|
|
1058
1056
|
};
|
|
1059
|
-
supersedesOutputId?: string | undefined;
|
|
1060
|
-
}>, {
|
|
1061
1057
|
outputId: string;
|
|
1062
1058
|
outputChannel: "recap" | "artifact";
|
|
1059
|
+
supersedesOutputId?: string | undefined;
|
|
1060
|
+
}>, {
|
|
1063
1061
|
payload: {
|
|
1064
1062
|
payloadKind: "notes";
|
|
1065
1063
|
notesMarkdown: string;
|
|
@@ -1070,10 +1068,10 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1070
1068
|
byteLength: number;
|
|
1071
1069
|
content?: unknown;
|
|
1072
1070
|
};
|
|
1073
|
-
supersedesOutputId?: string | undefined;
|
|
1074
|
-
}, {
|
|
1075
1071
|
outputId: string;
|
|
1076
1072
|
outputChannel: "recap" | "artifact";
|
|
1073
|
+
supersedesOutputId?: string | undefined;
|
|
1074
|
+
}, {
|
|
1077
1075
|
payload: {
|
|
1078
1076
|
payloadKind: "notes";
|
|
1079
1077
|
notesMarkdown: string;
|
|
@@ -1084,13 +1082,14 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1084
1082
|
byteLength: number;
|
|
1085
1083
|
content?: unknown;
|
|
1086
1084
|
};
|
|
1085
|
+
outputId: string;
|
|
1086
|
+
outputChannel: "recap" | "artifact";
|
|
1087
1087
|
supersedesOutputId?: string | undefined;
|
|
1088
1088
|
}>;
|
|
1089
1089
|
}, "strip", z.ZodTypeAny, {
|
|
1090
1090
|
kind: "node_output_appended";
|
|
1091
|
+
sessionId: string;
|
|
1091
1092
|
data: {
|
|
1092
|
-
outputId: string;
|
|
1093
|
-
outputChannel: "recap" | "artifact";
|
|
1094
1093
|
payload: {
|
|
1095
1094
|
payloadKind: "notes";
|
|
1096
1095
|
notesMarkdown: string;
|
|
@@ -1101,10 +1100,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1101
1100
|
byteLength: number;
|
|
1102
1101
|
content?: unknown;
|
|
1103
1102
|
};
|
|
1103
|
+
outputId: string;
|
|
1104
|
+
outputChannel: "recap" | "artifact";
|
|
1104
1105
|
supersedesOutputId?: string | undefined;
|
|
1105
1106
|
};
|
|
1106
1107
|
v: 1;
|
|
1107
|
-
sessionId: string;
|
|
1108
1108
|
eventIndex: number;
|
|
1109
1109
|
eventId: string;
|
|
1110
1110
|
dedupeKey: string;
|
|
@@ -1114,9 +1114,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1114
1114
|
};
|
|
1115
1115
|
}, {
|
|
1116
1116
|
kind: "node_output_appended";
|
|
1117
|
+
sessionId: string;
|
|
1117
1118
|
data: {
|
|
1118
|
-
outputId: string;
|
|
1119
|
-
outputChannel: "recap" | "artifact";
|
|
1120
1119
|
payload: {
|
|
1121
1120
|
payloadKind: "notes";
|
|
1122
1121
|
notesMarkdown: string;
|
|
@@ -1127,10 +1126,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1127
1126
|
byteLength: number;
|
|
1128
1127
|
content?: unknown;
|
|
1129
1128
|
};
|
|
1129
|
+
outputId: string;
|
|
1130
|
+
outputChannel: "recap" | "artifact";
|
|
1130
1131
|
supersedesOutputId?: string | undefined;
|
|
1131
1132
|
};
|
|
1132
1133
|
v: 1;
|
|
1133
|
-
sessionId: string;
|
|
1134
1134
|
eventIndex: number;
|
|
1135
1135
|
eventId: string;
|
|
1136
1136
|
dedupeKey: string;
|
|
@@ -1205,6 +1205,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1205
1205
|
}>;
|
|
1206
1206
|
}, "strip", z.ZodTypeAny, {
|
|
1207
1207
|
kind: "assessment_recorded";
|
|
1208
|
+
sessionId: string;
|
|
1208
1209
|
data: {
|
|
1209
1210
|
assessmentId: string;
|
|
1210
1211
|
dimensions: readonly {
|
|
@@ -1219,7 +1220,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1219
1220
|
summary?: string | undefined;
|
|
1220
1221
|
};
|
|
1221
1222
|
v: 1;
|
|
1222
|
-
sessionId: string;
|
|
1223
1223
|
eventIndex: number;
|
|
1224
1224
|
eventId: string;
|
|
1225
1225
|
dedupeKey: string;
|
|
@@ -1229,6 +1229,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1229
1229
|
};
|
|
1230
1230
|
}, {
|
|
1231
1231
|
kind: "assessment_recorded";
|
|
1232
|
+
sessionId: string;
|
|
1232
1233
|
data: {
|
|
1233
1234
|
assessmentId: string;
|
|
1234
1235
|
dimensions: readonly {
|
|
@@ -1243,7 +1244,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1243
1244
|
summary?: string | undefined;
|
|
1244
1245
|
};
|
|
1245
1246
|
v: 1;
|
|
1246
|
-
sessionId: string;
|
|
1247
1247
|
eventIndex: number;
|
|
1248
1248
|
eventId: string;
|
|
1249
1249
|
dedupeKey: string;
|
|
@@ -1317,6 +1317,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1317
1317
|
}>;
|
|
1318
1318
|
}, "strip", z.ZodTypeAny, {
|
|
1319
1319
|
kind: "assessment_consequence_applied";
|
|
1320
|
+
sessionId: string;
|
|
1320
1321
|
data: {
|
|
1321
1322
|
assessmentId: string;
|
|
1322
1323
|
effect: {
|
|
@@ -1330,7 +1331,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1330
1331
|
};
|
|
1331
1332
|
};
|
|
1332
1333
|
v: 1;
|
|
1333
|
-
sessionId: string;
|
|
1334
1334
|
eventIndex: number;
|
|
1335
1335
|
eventId: string;
|
|
1336
1336
|
dedupeKey: string;
|
|
@@ -1340,6 +1340,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1340
1340
|
};
|
|
1341
1341
|
}, {
|
|
1342
1342
|
kind: "assessment_consequence_applied";
|
|
1343
|
+
sessionId: string;
|
|
1343
1344
|
data: {
|
|
1344
1345
|
assessmentId: string;
|
|
1345
1346
|
effect: {
|
|
@@ -1353,7 +1354,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1353
1354
|
};
|
|
1354
1355
|
};
|
|
1355
1356
|
v: 1;
|
|
1356
|
-
sessionId: string;
|
|
1357
1357
|
eventIndex: number;
|
|
1358
1358
|
eventId: string;
|
|
1359
1359
|
dedupeKey: string;
|
|
@@ -1470,6 +1470,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1470
1470
|
}>;
|
|
1471
1471
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1472
|
kind: "preferences_changed";
|
|
1473
|
+
sessionId: string;
|
|
1473
1474
|
data: {
|
|
1474
1475
|
source: "user" | "workflow_recommendation" | "system";
|
|
1475
1476
|
changeId: string;
|
|
@@ -1486,7 +1487,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1486
1487
|
};
|
|
1487
1488
|
};
|
|
1488
1489
|
v: 1;
|
|
1489
|
-
sessionId: string;
|
|
1490
1490
|
eventIndex: number;
|
|
1491
1491
|
eventId: string;
|
|
1492
1492
|
dedupeKey: string;
|
|
@@ -1496,6 +1496,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1496
1496
|
};
|
|
1497
1497
|
}, {
|
|
1498
1498
|
kind: "preferences_changed";
|
|
1499
|
+
sessionId: string;
|
|
1499
1500
|
data: {
|
|
1500
1501
|
source: "user" | "workflow_recommendation" | "system";
|
|
1501
1502
|
changeId: string;
|
|
@@ -1512,7 +1513,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1512
1513
|
};
|
|
1513
1514
|
};
|
|
1514
1515
|
v: 1;
|
|
1515
|
-
sessionId: string;
|
|
1516
1516
|
eventIndex: number;
|
|
1517
1517
|
eventId: string;
|
|
1518
1518
|
dedupeKey: string;
|
|
@@ -1749,6 +1749,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1749
1749
|
}>;
|
|
1750
1750
|
}, "strip", z.ZodTypeAny, {
|
|
1751
1751
|
kind: "capability_observed";
|
|
1752
|
+
sessionId: string;
|
|
1752
1753
|
data: {
|
|
1753
1754
|
status: "unknown" | "available" | "unavailable";
|
|
1754
1755
|
capability: "delegation" | "web_browsing";
|
|
@@ -1779,7 +1780,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1779
1780
|
};
|
|
1780
1781
|
};
|
|
1781
1782
|
v: 1;
|
|
1782
|
-
sessionId: string;
|
|
1783
1783
|
eventIndex: number;
|
|
1784
1784
|
eventId: string;
|
|
1785
1785
|
dedupeKey: string;
|
|
@@ -1789,6 +1789,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1789
1789
|
};
|
|
1790
1790
|
}, {
|
|
1791
1791
|
kind: "capability_observed";
|
|
1792
|
+
sessionId: string;
|
|
1792
1793
|
data: {
|
|
1793
1794
|
status: "unknown" | "available" | "unavailable";
|
|
1794
1795
|
capability: "delegation" | "web_browsing";
|
|
@@ -1819,7 +1820,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1819
1820
|
};
|
|
1820
1821
|
};
|
|
1821
1822
|
v: 1;
|
|
1822
|
-
sessionId: string;
|
|
1823
1823
|
eventIndex: number;
|
|
1824
1824
|
eventId: string;
|
|
1825
1825
|
dedupeKey: string;
|
|
@@ -1936,6 +1936,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1936
1936
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1937
1937
|
category: "unexpected";
|
|
1938
1938
|
};
|
|
1939
|
+
severity: "critical" | "info" | "warning";
|
|
1939
1940
|
resolution: {
|
|
1940
1941
|
kind: "unresolved";
|
|
1941
1942
|
} | {
|
|
@@ -1943,7 +1944,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1943
1944
|
resolvesGapId: string;
|
|
1944
1945
|
};
|
|
1945
1946
|
gapId: string;
|
|
1946
|
-
severity: "info" | "warning" | "critical";
|
|
1947
1947
|
evidenceRefs?: ({
|
|
1948
1948
|
kind: "event";
|
|
1949
1949
|
eventId: string;
|
|
@@ -1966,6 +1966,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1966
1966
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1967
1967
|
category: "unexpected";
|
|
1968
1968
|
};
|
|
1969
|
+
severity: "critical" | "info" | "warning";
|
|
1969
1970
|
resolution: {
|
|
1970
1971
|
kind: "unresolved";
|
|
1971
1972
|
} | {
|
|
@@ -1973,7 +1974,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1973
1974
|
resolvesGapId: string;
|
|
1974
1975
|
};
|
|
1975
1976
|
gapId: string;
|
|
1976
|
-
severity: "info" | "warning" | "critical";
|
|
1977
1977
|
evidenceRefs?: ({
|
|
1978
1978
|
kind: "event";
|
|
1979
1979
|
eventId: string;
|
|
@@ -1984,6 +1984,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1984
1984
|
}>;
|
|
1985
1985
|
}, "strip", z.ZodTypeAny, {
|
|
1986
1986
|
kind: "gap_recorded";
|
|
1987
|
+
sessionId: string;
|
|
1987
1988
|
data: {
|
|
1988
1989
|
summary: string;
|
|
1989
1990
|
reason: {
|
|
@@ -1999,6 +2000,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
1999
2000
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
2000
2001
|
category: "unexpected";
|
|
2001
2002
|
};
|
|
2003
|
+
severity: "critical" | "info" | "warning";
|
|
2002
2004
|
resolution: {
|
|
2003
2005
|
kind: "unresolved";
|
|
2004
2006
|
} | {
|
|
@@ -2006,7 +2008,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2006
2008
|
resolvesGapId: string;
|
|
2007
2009
|
};
|
|
2008
2010
|
gapId: string;
|
|
2009
|
-
severity: "info" | "warning" | "critical";
|
|
2010
2011
|
evidenceRefs?: ({
|
|
2011
2012
|
kind: "event";
|
|
2012
2013
|
eventId: string;
|
|
@@ -2016,7 +2017,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2016
2017
|
})[] | undefined;
|
|
2017
2018
|
};
|
|
2018
2019
|
v: 1;
|
|
2019
|
-
sessionId: string;
|
|
2020
2020
|
eventIndex: number;
|
|
2021
2021
|
eventId: string;
|
|
2022
2022
|
dedupeKey: string;
|
|
@@ -2026,6 +2026,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2026
2026
|
};
|
|
2027
2027
|
}, {
|
|
2028
2028
|
kind: "gap_recorded";
|
|
2029
|
+
sessionId: string;
|
|
2029
2030
|
data: {
|
|
2030
2031
|
summary: string;
|
|
2031
2032
|
reason: {
|
|
@@ -2041,6 +2042,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2041
2042
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
2042
2043
|
category: "unexpected";
|
|
2043
2044
|
};
|
|
2045
|
+
severity: "critical" | "info" | "warning";
|
|
2044
2046
|
resolution: {
|
|
2045
2047
|
kind: "unresolved";
|
|
2046
2048
|
} | {
|
|
@@ -2048,7 +2050,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2048
2050
|
resolvesGapId: string;
|
|
2049
2051
|
};
|
|
2050
2052
|
gapId: string;
|
|
2051
|
-
severity: "info" | "warning" | "critical";
|
|
2052
2053
|
evidenceRefs?: ({
|
|
2053
2054
|
kind: "event";
|
|
2054
2055
|
eventId: string;
|
|
@@ -2058,7 +2059,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2058
2059
|
})[] | undefined;
|
|
2059
2060
|
};
|
|
2060
2061
|
v: 1;
|
|
2061
|
-
sessionId: string;
|
|
2062
2062
|
eventIndex: number;
|
|
2063
2063
|
eventId: string;
|
|
2064
2064
|
dedupeKey: string;
|
|
@@ -2096,13 +2096,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2096
2096
|
}>;
|
|
2097
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2098
2098
|
kind: "context_set";
|
|
2099
|
+
sessionId: string;
|
|
2099
2100
|
data: {
|
|
2100
2101
|
source: "initial" | "agent_delta";
|
|
2101
2102
|
contextId: string;
|
|
2102
2103
|
context?: unknown;
|
|
2103
2104
|
};
|
|
2104
2105
|
v: 1;
|
|
2105
|
-
sessionId: string;
|
|
2106
2106
|
eventIndex: number;
|
|
2107
2107
|
eventId: string;
|
|
2108
2108
|
dedupeKey: string;
|
|
@@ -2111,13 +2111,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2111
2111
|
};
|
|
2112
2112
|
}, {
|
|
2113
2113
|
kind: "context_set";
|
|
2114
|
+
sessionId: string;
|
|
2114
2115
|
data: {
|
|
2115
2116
|
source: "initial" | "agent_delta";
|
|
2116
2117
|
contextId: string;
|
|
2117
2118
|
context?: unknown;
|
|
2118
2119
|
};
|
|
2119
2120
|
v: 1;
|
|
2120
|
-
sessionId: string;
|
|
2121
2121
|
eventIndex: number;
|
|
2122
2122
|
eventId: string;
|
|
2123
2123
|
dedupeKey: string;
|
|
@@ -2160,6 +2160,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2160
2160
|
}>;
|
|
2161
2161
|
}, "strip", z.ZodTypeAny, {
|
|
2162
2162
|
kind: "divergence_recorded";
|
|
2163
|
+
sessionId: string;
|
|
2163
2164
|
data: {
|
|
2164
2165
|
summary: string;
|
|
2165
2166
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -2167,7 +2168,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2167
2168
|
relatedStepId?: string | undefined;
|
|
2168
2169
|
};
|
|
2169
2170
|
v: 1;
|
|
2170
|
-
sessionId: string;
|
|
2171
2171
|
eventIndex: number;
|
|
2172
2172
|
eventId: string;
|
|
2173
2173
|
dedupeKey: string;
|
|
@@ -2177,6 +2177,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2177
2177
|
};
|
|
2178
2178
|
}, {
|
|
2179
2179
|
kind: "divergence_recorded";
|
|
2180
|
+
sessionId: string;
|
|
2180
2181
|
data: {
|
|
2181
2182
|
summary: string;
|
|
2182
2183
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -2184,7 +2185,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2184
2185
|
relatedStepId?: string | undefined;
|
|
2185
2186
|
};
|
|
2186
2187
|
v: 1;
|
|
2187
|
-
sessionId: string;
|
|
2188
2188
|
eventIndex: number;
|
|
2189
2189
|
eventId: string;
|
|
2190
2190
|
dedupeKey: string;
|
|
@@ -2364,6 +2364,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2364
2364
|
}>;
|
|
2365
2365
|
}, "strip", z.ZodTypeAny, {
|
|
2366
2366
|
kind: "decision_trace_appended";
|
|
2367
|
+
sessionId: string;
|
|
2367
2368
|
data: {
|
|
2368
2369
|
entries: {
|
|
2369
2370
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2385,7 +2386,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2385
2386
|
traceId: string;
|
|
2386
2387
|
};
|
|
2387
2388
|
v: 1;
|
|
2388
|
-
sessionId: string;
|
|
2389
2389
|
eventIndex: number;
|
|
2390
2390
|
eventId: string;
|
|
2391
2391
|
dedupeKey: string;
|
|
@@ -2395,6 +2395,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2395
2395
|
};
|
|
2396
2396
|
}, {
|
|
2397
2397
|
kind: "decision_trace_appended";
|
|
2398
|
+
sessionId: string;
|
|
2398
2399
|
data: {
|
|
2399
2400
|
entries: {
|
|
2400
2401
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2416,7 +2417,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2416
2417
|
traceId: string;
|
|
2417
2418
|
};
|
|
2418
2419
|
v: 1;
|
|
2419
|
-
sessionId: string;
|
|
2420
2420
|
eventIndex: number;
|
|
2421
2421
|
eventId: string;
|
|
2422
2422
|
dedupeKey: string;
|
|
@@ -2437,20 +2437,20 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2437
2437
|
bytes: z.ZodNumber;
|
|
2438
2438
|
}, "strip", z.ZodTypeAny, {
|
|
2439
2439
|
kind: "segment_closed";
|
|
2440
|
+
sessionId: string;
|
|
2440
2441
|
v: 1;
|
|
2441
2442
|
sha256: string;
|
|
2442
2443
|
manifestIndex: number;
|
|
2443
|
-
sessionId: string;
|
|
2444
2444
|
firstEventIndex: number;
|
|
2445
2445
|
lastEventIndex: number;
|
|
2446
2446
|
segmentRelPath: string;
|
|
2447
2447
|
bytes: number;
|
|
2448
2448
|
}, {
|
|
2449
2449
|
kind: "segment_closed";
|
|
2450
|
+
sessionId: string;
|
|
2450
2451
|
v: 1;
|
|
2451
2452
|
sha256: string;
|
|
2452
2453
|
manifestIndex: number;
|
|
2453
|
-
sessionId: string;
|
|
2454
2454
|
firstEventIndex: number;
|
|
2455
2455
|
lastEventIndex: number;
|
|
2456
2456
|
segmentRelPath: string;
|
|
@@ -2465,17 +2465,17 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
2465
2465
|
createdByEventId: z.ZodString;
|
|
2466
2466
|
}, "strip", z.ZodTypeAny, {
|
|
2467
2467
|
kind: "snapshot_pinned";
|
|
2468
|
+
sessionId: string;
|
|
2468
2469
|
v: 1;
|
|
2469
2470
|
manifestIndex: number;
|
|
2470
|
-
sessionId: string;
|
|
2471
2471
|
eventIndex: number;
|
|
2472
2472
|
snapshotRef: string;
|
|
2473
2473
|
createdByEventId: string;
|
|
2474
2474
|
}, {
|
|
2475
2475
|
kind: "snapshot_pinned";
|
|
2476
|
+
sessionId: string;
|
|
2476
2477
|
v: 1;
|
|
2477
2478
|
manifestIndex: number;
|
|
2478
|
-
sessionId: string;
|
|
2479
2479
|
eventIndex: number;
|
|
2480
2480
|
snapshotRef: string;
|
|
2481
2481
|
createdByEventId: string;
|
|
@@ -4564,6 +4564,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4564
4564
|
}>>;
|
|
4565
4565
|
pinnedWorkflows: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4566
4566
|
}, "strip", z.ZodTypeAny, {
|
|
4567
|
+
sessionId: string;
|
|
4567
4568
|
snapshots: Record<string, {
|
|
4568
4569
|
kind: "execution_snapshot";
|
|
4569
4570
|
v: 1;
|
|
@@ -4734,11 +4735,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4734
4735
|
}>;
|
|
4735
4736
|
events: ({
|
|
4736
4737
|
kind: "session_created";
|
|
4738
|
+
sessionId: string;
|
|
4737
4739
|
data: {
|
|
4738
4740
|
parentSessionId?: string | undefined;
|
|
4739
4741
|
};
|
|
4740
4742
|
v: 1;
|
|
4741
|
-
sessionId: string;
|
|
4742
4743
|
eventIndex: number;
|
|
4743
4744
|
eventId: string;
|
|
4744
4745
|
dedupeKey: string;
|
|
@@ -4748,6 +4749,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4748
4749
|
} | undefined;
|
|
4749
4750
|
} | {
|
|
4750
4751
|
kind: "observation_recorded";
|
|
4752
|
+
sessionId: string;
|
|
4751
4753
|
data: {
|
|
4752
4754
|
value: {
|
|
4753
4755
|
type: "short_string";
|
|
@@ -4766,13 +4768,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4766
4768
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
4767
4769
|
};
|
|
4768
4770
|
v: 1;
|
|
4769
|
-
sessionId: string;
|
|
4770
4771
|
eventIndex: number;
|
|
4771
4772
|
eventId: string;
|
|
4772
4773
|
dedupeKey: string;
|
|
4773
4774
|
scope?: undefined;
|
|
4774
4775
|
} | {
|
|
4775
4776
|
kind: "run_started";
|
|
4777
|
+
sessionId: string;
|
|
4776
4778
|
data: {
|
|
4777
4779
|
workflowId: string;
|
|
4778
4780
|
workflowHash: never;
|
|
@@ -4780,7 +4782,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4780
4782
|
workflowSourceRef: string;
|
|
4781
4783
|
};
|
|
4782
4784
|
v: 1;
|
|
4783
|
-
sessionId: string;
|
|
4784
4785
|
eventIndex: number;
|
|
4785
4786
|
eventId: string;
|
|
4786
4787
|
dedupeKey: string;
|
|
@@ -4789,6 +4790,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4789
4790
|
};
|
|
4790
4791
|
} | {
|
|
4791
4792
|
kind: "node_created";
|
|
4793
|
+
sessionId: string;
|
|
4792
4794
|
data: {
|
|
4793
4795
|
snapshotRef: never;
|
|
4794
4796
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -4796,7 +4798,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4796
4798
|
workflowHash: never;
|
|
4797
4799
|
};
|
|
4798
4800
|
v: 1;
|
|
4799
|
-
sessionId: string;
|
|
4800
4801
|
eventIndex: number;
|
|
4801
4802
|
eventId: string;
|
|
4802
4803
|
dedupeKey: string;
|
|
@@ -4806,6 +4807,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4806
4807
|
};
|
|
4807
4808
|
} | {
|
|
4808
4809
|
kind: "edge_created";
|
|
4810
|
+
sessionId: string;
|
|
4809
4811
|
data: {
|
|
4810
4812
|
cause: {
|
|
4811
4813
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -4816,7 +4818,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4816
4818
|
toNodeId: string;
|
|
4817
4819
|
};
|
|
4818
4820
|
v: 1;
|
|
4819
|
-
sessionId: string;
|
|
4820
4821
|
eventIndex: number;
|
|
4821
4822
|
eventId: string;
|
|
4822
4823
|
dedupeKey: string;
|
|
@@ -4825,6 +4826,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4825
4826
|
};
|
|
4826
4827
|
} | {
|
|
4827
4828
|
kind: "advance_recorded";
|
|
4829
|
+
sessionId: string;
|
|
4828
4830
|
data: {
|
|
4829
4831
|
outcome: {
|
|
4830
4832
|
kind: "blocked";
|
|
@@ -4858,7 +4860,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4858
4860
|
intent: "ack_pending";
|
|
4859
4861
|
};
|
|
4860
4862
|
v: 1;
|
|
4861
|
-
sessionId: string;
|
|
4862
4863
|
eventIndex: number;
|
|
4863
4864
|
eventId: string;
|
|
4864
4865
|
dedupeKey: string;
|
|
@@ -4868,6 +4869,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4868
4869
|
};
|
|
4869
4870
|
} | {
|
|
4870
4871
|
kind: "validation_performed";
|
|
4872
|
+
sessionId: string;
|
|
4871
4873
|
data: {
|
|
4872
4874
|
contractRef: string;
|
|
4873
4875
|
result: {
|
|
@@ -4879,7 +4881,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4879
4881
|
attemptId: string;
|
|
4880
4882
|
};
|
|
4881
4883
|
v: 1;
|
|
4882
|
-
sessionId: string;
|
|
4883
4884
|
eventIndex: number;
|
|
4884
4885
|
eventId: string;
|
|
4885
4886
|
dedupeKey: string;
|
|
@@ -4889,9 +4890,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4889
4890
|
};
|
|
4890
4891
|
} | {
|
|
4891
4892
|
kind: "node_output_appended";
|
|
4893
|
+
sessionId: string;
|
|
4892
4894
|
data: {
|
|
4893
|
-
outputId: string;
|
|
4894
|
-
outputChannel: "recap" | "artifact";
|
|
4895
4895
|
payload: {
|
|
4896
4896
|
payloadKind: "notes";
|
|
4897
4897
|
notesMarkdown: string;
|
|
@@ -4902,10 +4902,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4902
4902
|
byteLength: number;
|
|
4903
4903
|
content?: unknown;
|
|
4904
4904
|
};
|
|
4905
|
+
outputId: string;
|
|
4906
|
+
outputChannel: "recap" | "artifact";
|
|
4905
4907
|
supersedesOutputId?: string | undefined;
|
|
4906
4908
|
};
|
|
4907
4909
|
v: 1;
|
|
4908
|
-
sessionId: string;
|
|
4909
4910
|
eventIndex: number;
|
|
4910
4911
|
eventId: string;
|
|
4911
4912
|
dedupeKey: string;
|
|
@@ -4915,6 +4916,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4915
4916
|
};
|
|
4916
4917
|
} | {
|
|
4917
4918
|
kind: "assessment_recorded";
|
|
4919
|
+
sessionId: string;
|
|
4918
4920
|
data: {
|
|
4919
4921
|
assessmentId: string;
|
|
4920
4922
|
dimensions: readonly {
|
|
@@ -4929,7 +4931,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4929
4931
|
summary?: string | undefined;
|
|
4930
4932
|
};
|
|
4931
4933
|
v: 1;
|
|
4932
|
-
sessionId: string;
|
|
4933
4934
|
eventIndex: number;
|
|
4934
4935
|
eventId: string;
|
|
4935
4936
|
dedupeKey: string;
|
|
@@ -4939,6 +4940,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4939
4940
|
};
|
|
4940
4941
|
} | {
|
|
4941
4942
|
kind: "assessment_consequence_applied";
|
|
4943
|
+
sessionId: string;
|
|
4942
4944
|
data: {
|
|
4943
4945
|
assessmentId: string;
|
|
4944
4946
|
effect: {
|
|
@@ -4952,7 +4954,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4952
4954
|
};
|
|
4953
4955
|
};
|
|
4954
4956
|
v: 1;
|
|
4955
|
-
sessionId: string;
|
|
4956
4957
|
eventIndex: number;
|
|
4957
4958
|
eventId: string;
|
|
4958
4959
|
dedupeKey: string;
|
|
@@ -4962,6 +4963,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4962
4963
|
};
|
|
4963
4964
|
} | {
|
|
4964
4965
|
kind: "preferences_changed";
|
|
4966
|
+
sessionId: string;
|
|
4965
4967
|
data: {
|
|
4966
4968
|
source: "user" | "workflow_recommendation" | "system";
|
|
4967
4969
|
changeId: string;
|
|
@@ -4978,7 +4980,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4978
4980
|
};
|
|
4979
4981
|
};
|
|
4980
4982
|
v: 1;
|
|
4981
|
-
sessionId: string;
|
|
4982
4983
|
eventIndex: number;
|
|
4983
4984
|
eventId: string;
|
|
4984
4985
|
dedupeKey: string;
|
|
@@ -4988,6 +4989,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
4988
4989
|
};
|
|
4989
4990
|
} | {
|
|
4990
4991
|
kind: "capability_observed";
|
|
4992
|
+
sessionId: string;
|
|
4991
4993
|
data: {
|
|
4992
4994
|
status: "unknown" | "available" | "unavailable";
|
|
4993
4995
|
capability: "delegation" | "web_browsing";
|
|
@@ -5018,7 +5020,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5018
5020
|
};
|
|
5019
5021
|
};
|
|
5020
5022
|
v: 1;
|
|
5021
|
-
sessionId: string;
|
|
5022
5023
|
eventIndex: number;
|
|
5023
5024
|
eventId: string;
|
|
5024
5025
|
dedupeKey: string;
|
|
@@ -5028,6 +5029,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5028
5029
|
};
|
|
5029
5030
|
} | {
|
|
5030
5031
|
kind: "gap_recorded";
|
|
5032
|
+
sessionId: string;
|
|
5031
5033
|
data: {
|
|
5032
5034
|
summary: string;
|
|
5033
5035
|
reason: {
|
|
@@ -5043,6 +5045,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5043
5045
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
5044
5046
|
category: "unexpected";
|
|
5045
5047
|
};
|
|
5048
|
+
severity: "critical" | "info" | "warning";
|
|
5046
5049
|
resolution: {
|
|
5047
5050
|
kind: "unresolved";
|
|
5048
5051
|
} | {
|
|
@@ -5050,7 +5053,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5050
5053
|
resolvesGapId: string;
|
|
5051
5054
|
};
|
|
5052
5055
|
gapId: string;
|
|
5053
|
-
severity: "info" | "warning" | "critical";
|
|
5054
5056
|
evidenceRefs?: ({
|
|
5055
5057
|
kind: "event";
|
|
5056
5058
|
eventId: string;
|
|
@@ -5060,7 +5062,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5060
5062
|
})[] | undefined;
|
|
5061
5063
|
};
|
|
5062
5064
|
v: 1;
|
|
5063
|
-
sessionId: string;
|
|
5064
5065
|
eventIndex: number;
|
|
5065
5066
|
eventId: string;
|
|
5066
5067
|
dedupeKey: string;
|
|
@@ -5070,13 +5071,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5070
5071
|
};
|
|
5071
5072
|
} | {
|
|
5072
5073
|
kind: "context_set";
|
|
5074
|
+
sessionId: string;
|
|
5073
5075
|
data: {
|
|
5074
5076
|
source: "initial" | "agent_delta";
|
|
5075
5077
|
contextId: string;
|
|
5076
5078
|
context?: unknown;
|
|
5077
5079
|
};
|
|
5078
5080
|
v: 1;
|
|
5079
|
-
sessionId: string;
|
|
5080
5081
|
eventIndex: number;
|
|
5081
5082
|
eventId: string;
|
|
5082
5083
|
dedupeKey: string;
|
|
@@ -5085,6 +5086,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5085
5086
|
};
|
|
5086
5087
|
} | {
|
|
5087
5088
|
kind: "divergence_recorded";
|
|
5089
|
+
sessionId: string;
|
|
5088
5090
|
data: {
|
|
5089
5091
|
summary: string;
|
|
5090
5092
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -5092,7 +5094,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5092
5094
|
relatedStepId?: string | undefined;
|
|
5093
5095
|
};
|
|
5094
5096
|
v: 1;
|
|
5095
|
-
sessionId: string;
|
|
5096
5097
|
eventIndex: number;
|
|
5097
5098
|
eventId: string;
|
|
5098
5099
|
dedupeKey: string;
|
|
@@ -5102,6 +5103,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5102
5103
|
};
|
|
5103
5104
|
} | {
|
|
5104
5105
|
kind: "decision_trace_appended";
|
|
5106
|
+
sessionId: string;
|
|
5105
5107
|
data: {
|
|
5106
5108
|
entries: {
|
|
5107
5109
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -5123,7 +5125,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5123
5125
|
traceId: string;
|
|
5124
5126
|
};
|
|
5125
5127
|
v: 1;
|
|
5126
|
-
sessionId: string;
|
|
5127
5128
|
eventIndex: number;
|
|
5128
5129
|
eventId: string;
|
|
5129
5130
|
dedupeKey: string;
|
|
@@ -5132,28 +5133,28 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5132
5133
|
nodeId: string;
|
|
5133
5134
|
};
|
|
5134
5135
|
})[];
|
|
5135
|
-
sessionId: string;
|
|
5136
5136
|
manifest: ({
|
|
5137
5137
|
kind: "segment_closed";
|
|
5138
|
+
sessionId: string;
|
|
5138
5139
|
v: 1;
|
|
5139
5140
|
sha256: string;
|
|
5140
5141
|
manifestIndex: number;
|
|
5141
|
-
sessionId: string;
|
|
5142
5142
|
firstEventIndex: number;
|
|
5143
5143
|
lastEventIndex: number;
|
|
5144
5144
|
segmentRelPath: string;
|
|
5145
5145
|
bytes: number;
|
|
5146
5146
|
} | {
|
|
5147
5147
|
kind: "snapshot_pinned";
|
|
5148
|
+
sessionId: string;
|
|
5148
5149
|
v: 1;
|
|
5149
5150
|
manifestIndex: number;
|
|
5150
|
-
sessionId: string;
|
|
5151
5151
|
eventIndex: number;
|
|
5152
5152
|
snapshotRef: string;
|
|
5153
5153
|
createdByEventId: string;
|
|
5154
5154
|
})[];
|
|
5155
5155
|
pinnedWorkflows: Record<string, unknown>;
|
|
5156
5156
|
}, {
|
|
5157
|
+
sessionId: string;
|
|
5157
5158
|
snapshots: Record<string, {
|
|
5158
5159
|
kind: "execution_snapshot";
|
|
5159
5160
|
v: 1;
|
|
@@ -5312,11 +5313,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5312
5313
|
}>;
|
|
5313
5314
|
events: ({
|
|
5314
5315
|
kind: "session_created";
|
|
5316
|
+
sessionId: string;
|
|
5315
5317
|
data: {
|
|
5316
5318
|
parentSessionId?: string | undefined;
|
|
5317
5319
|
};
|
|
5318
5320
|
v: 1;
|
|
5319
|
-
sessionId: string;
|
|
5320
5321
|
eventIndex: number;
|
|
5321
5322
|
eventId: string;
|
|
5322
5323
|
dedupeKey: string;
|
|
@@ -5326,6 +5327,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5326
5327
|
} | undefined;
|
|
5327
5328
|
} | {
|
|
5328
5329
|
kind: "observation_recorded";
|
|
5330
|
+
sessionId: string;
|
|
5329
5331
|
data: {
|
|
5330
5332
|
value: {
|
|
5331
5333
|
type: "short_string";
|
|
@@ -5344,13 +5346,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5344
5346
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
5345
5347
|
};
|
|
5346
5348
|
v: 1;
|
|
5347
|
-
sessionId: string;
|
|
5348
5349
|
eventIndex: number;
|
|
5349
5350
|
eventId: string;
|
|
5350
5351
|
dedupeKey: string;
|
|
5351
5352
|
scope?: undefined;
|
|
5352
5353
|
} | {
|
|
5353
5354
|
kind: "run_started";
|
|
5355
|
+
sessionId: string;
|
|
5354
5356
|
data: {
|
|
5355
5357
|
workflowId: string;
|
|
5356
5358
|
workflowHash: string;
|
|
@@ -5358,7 +5360,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5358
5360
|
workflowSourceRef: string;
|
|
5359
5361
|
};
|
|
5360
5362
|
v: 1;
|
|
5361
|
-
sessionId: string;
|
|
5362
5363
|
eventIndex: number;
|
|
5363
5364
|
eventId: string;
|
|
5364
5365
|
dedupeKey: string;
|
|
@@ -5367,6 +5368,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5367
5368
|
};
|
|
5368
5369
|
} | {
|
|
5369
5370
|
kind: "node_created";
|
|
5371
|
+
sessionId: string;
|
|
5370
5372
|
data: {
|
|
5371
5373
|
snapshotRef: string;
|
|
5372
5374
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -5374,7 +5376,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5374
5376
|
workflowHash: string;
|
|
5375
5377
|
};
|
|
5376
5378
|
v: 1;
|
|
5377
|
-
sessionId: string;
|
|
5378
5379
|
eventIndex: number;
|
|
5379
5380
|
eventId: string;
|
|
5380
5381
|
dedupeKey: string;
|
|
@@ -5384,6 +5385,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5384
5385
|
};
|
|
5385
5386
|
} | {
|
|
5386
5387
|
kind: "edge_created";
|
|
5388
|
+
sessionId: string;
|
|
5387
5389
|
data: {
|
|
5388
5390
|
cause: {
|
|
5389
5391
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -5394,7 +5396,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5394
5396
|
toNodeId: string;
|
|
5395
5397
|
};
|
|
5396
5398
|
v: 1;
|
|
5397
|
-
sessionId: string;
|
|
5398
5399
|
eventIndex: number;
|
|
5399
5400
|
eventId: string;
|
|
5400
5401
|
dedupeKey: string;
|
|
@@ -5403,6 +5404,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5403
5404
|
};
|
|
5404
5405
|
} | {
|
|
5405
5406
|
kind: "advance_recorded";
|
|
5407
|
+
sessionId: string;
|
|
5406
5408
|
data: {
|
|
5407
5409
|
outcome: {
|
|
5408
5410
|
kind: "blocked";
|
|
@@ -5436,7 +5438,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5436
5438
|
intent: "ack_pending";
|
|
5437
5439
|
};
|
|
5438
5440
|
v: 1;
|
|
5439
|
-
sessionId: string;
|
|
5440
5441
|
eventIndex: number;
|
|
5441
5442
|
eventId: string;
|
|
5442
5443
|
dedupeKey: string;
|
|
@@ -5446,6 +5447,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5446
5447
|
};
|
|
5447
5448
|
} | {
|
|
5448
5449
|
kind: "validation_performed";
|
|
5450
|
+
sessionId: string;
|
|
5449
5451
|
data: {
|
|
5450
5452
|
contractRef: string;
|
|
5451
5453
|
result: {
|
|
@@ -5457,7 +5459,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5457
5459
|
attemptId: string;
|
|
5458
5460
|
};
|
|
5459
5461
|
v: 1;
|
|
5460
|
-
sessionId: string;
|
|
5461
5462
|
eventIndex: number;
|
|
5462
5463
|
eventId: string;
|
|
5463
5464
|
dedupeKey: string;
|
|
@@ -5467,9 +5468,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5467
5468
|
};
|
|
5468
5469
|
} | {
|
|
5469
5470
|
kind: "node_output_appended";
|
|
5471
|
+
sessionId: string;
|
|
5470
5472
|
data: {
|
|
5471
|
-
outputId: string;
|
|
5472
|
-
outputChannel: "recap" | "artifact";
|
|
5473
5473
|
payload: {
|
|
5474
5474
|
payloadKind: "notes";
|
|
5475
5475
|
notesMarkdown: string;
|
|
@@ -5480,10 +5480,11 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5480
5480
|
byteLength: number;
|
|
5481
5481
|
content?: unknown;
|
|
5482
5482
|
};
|
|
5483
|
+
outputId: string;
|
|
5484
|
+
outputChannel: "recap" | "artifact";
|
|
5483
5485
|
supersedesOutputId?: string | undefined;
|
|
5484
5486
|
};
|
|
5485
5487
|
v: 1;
|
|
5486
|
-
sessionId: string;
|
|
5487
5488
|
eventIndex: number;
|
|
5488
5489
|
eventId: string;
|
|
5489
5490
|
dedupeKey: string;
|
|
@@ -5493,6 +5494,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5493
5494
|
};
|
|
5494
5495
|
} | {
|
|
5495
5496
|
kind: "assessment_recorded";
|
|
5497
|
+
sessionId: string;
|
|
5496
5498
|
data: {
|
|
5497
5499
|
assessmentId: string;
|
|
5498
5500
|
dimensions: readonly {
|
|
@@ -5507,7 +5509,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5507
5509
|
summary?: string | undefined;
|
|
5508
5510
|
};
|
|
5509
5511
|
v: 1;
|
|
5510
|
-
sessionId: string;
|
|
5511
5512
|
eventIndex: number;
|
|
5512
5513
|
eventId: string;
|
|
5513
5514
|
dedupeKey: string;
|
|
@@ -5517,6 +5518,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5517
5518
|
};
|
|
5518
5519
|
} | {
|
|
5519
5520
|
kind: "assessment_consequence_applied";
|
|
5521
|
+
sessionId: string;
|
|
5520
5522
|
data: {
|
|
5521
5523
|
assessmentId: string;
|
|
5522
5524
|
effect: {
|
|
@@ -5530,7 +5532,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5530
5532
|
};
|
|
5531
5533
|
};
|
|
5532
5534
|
v: 1;
|
|
5533
|
-
sessionId: string;
|
|
5534
5535
|
eventIndex: number;
|
|
5535
5536
|
eventId: string;
|
|
5536
5537
|
dedupeKey: string;
|
|
@@ -5540,6 +5541,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5540
5541
|
};
|
|
5541
5542
|
} | {
|
|
5542
5543
|
kind: "preferences_changed";
|
|
5544
|
+
sessionId: string;
|
|
5543
5545
|
data: {
|
|
5544
5546
|
source: "user" | "workflow_recommendation" | "system";
|
|
5545
5547
|
changeId: string;
|
|
@@ -5556,7 +5558,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5556
5558
|
};
|
|
5557
5559
|
};
|
|
5558
5560
|
v: 1;
|
|
5559
|
-
sessionId: string;
|
|
5560
5561
|
eventIndex: number;
|
|
5561
5562
|
eventId: string;
|
|
5562
5563
|
dedupeKey: string;
|
|
@@ -5566,6 +5567,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5566
5567
|
};
|
|
5567
5568
|
} | {
|
|
5568
5569
|
kind: "capability_observed";
|
|
5570
|
+
sessionId: string;
|
|
5569
5571
|
data: {
|
|
5570
5572
|
status: "unknown" | "available" | "unavailable";
|
|
5571
5573
|
capability: "delegation" | "web_browsing";
|
|
@@ -5596,7 +5598,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5596
5598
|
};
|
|
5597
5599
|
};
|
|
5598
5600
|
v: 1;
|
|
5599
|
-
sessionId: string;
|
|
5600
5601
|
eventIndex: number;
|
|
5601
5602
|
eventId: string;
|
|
5602
5603
|
dedupeKey: string;
|
|
@@ -5606,6 +5607,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5606
5607
|
};
|
|
5607
5608
|
} | {
|
|
5608
5609
|
kind: "gap_recorded";
|
|
5610
|
+
sessionId: string;
|
|
5609
5611
|
data: {
|
|
5610
5612
|
summary: string;
|
|
5611
5613
|
reason: {
|
|
@@ -5621,6 +5623,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5621
5623
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
5622
5624
|
category: "unexpected";
|
|
5623
5625
|
};
|
|
5626
|
+
severity: "critical" | "info" | "warning";
|
|
5624
5627
|
resolution: {
|
|
5625
5628
|
kind: "unresolved";
|
|
5626
5629
|
} | {
|
|
@@ -5628,7 +5631,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5628
5631
|
resolvesGapId: string;
|
|
5629
5632
|
};
|
|
5630
5633
|
gapId: string;
|
|
5631
|
-
severity: "info" | "warning" | "critical";
|
|
5632
5634
|
evidenceRefs?: ({
|
|
5633
5635
|
kind: "event";
|
|
5634
5636
|
eventId: string;
|
|
@@ -5638,7 +5640,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5638
5640
|
})[] | undefined;
|
|
5639
5641
|
};
|
|
5640
5642
|
v: 1;
|
|
5641
|
-
sessionId: string;
|
|
5642
5643
|
eventIndex: number;
|
|
5643
5644
|
eventId: string;
|
|
5644
5645
|
dedupeKey: string;
|
|
@@ -5648,13 +5649,13 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5648
5649
|
};
|
|
5649
5650
|
} | {
|
|
5650
5651
|
kind: "context_set";
|
|
5652
|
+
sessionId: string;
|
|
5651
5653
|
data: {
|
|
5652
5654
|
source: "initial" | "agent_delta";
|
|
5653
5655
|
contextId: string;
|
|
5654
5656
|
context?: unknown;
|
|
5655
5657
|
};
|
|
5656
5658
|
v: 1;
|
|
5657
|
-
sessionId: string;
|
|
5658
5659
|
eventIndex: number;
|
|
5659
5660
|
eventId: string;
|
|
5660
5661
|
dedupeKey: string;
|
|
@@ -5663,6 +5664,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5663
5664
|
};
|
|
5664
5665
|
} | {
|
|
5665
5666
|
kind: "divergence_recorded";
|
|
5667
|
+
sessionId: string;
|
|
5666
5668
|
data: {
|
|
5667
5669
|
summary: string;
|
|
5668
5670
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -5670,7 +5672,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5670
5672
|
relatedStepId?: string | undefined;
|
|
5671
5673
|
};
|
|
5672
5674
|
v: 1;
|
|
5673
|
-
sessionId: string;
|
|
5674
5675
|
eventIndex: number;
|
|
5675
5676
|
eventId: string;
|
|
5676
5677
|
dedupeKey: string;
|
|
@@ -5680,6 +5681,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5680
5681
|
};
|
|
5681
5682
|
} | {
|
|
5682
5683
|
kind: "decision_trace_appended";
|
|
5684
|
+
sessionId: string;
|
|
5683
5685
|
data: {
|
|
5684
5686
|
entries: {
|
|
5685
5687
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -5701,7 +5703,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5701
5703
|
traceId: string;
|
|
5702
5704
|
};
|
|
5703
5705
|
v: 1;
|
|
5704
|
-
sessionId: string;
|
|
5705
5706
|
eventIndex: number;
|
|
5706
5707
|
eventId: string;
|
|
5707
5708
|
dedupeKey: string;
|
|
@@ -5710,22 +5711,21 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
|
|
|
5710
5711
|
nodeId: string;
|
|
5711
5712
|
};
|
|
5712
5713
|
})[];
|
|
5713
|
-
sessionId: string;
|
|
5714
5714
|
manifest: ({
|
|
5715
5715
|
kind: "segment_closed";
|
|
5716
|
+
sessionId: string;
|
|
5716
5717
|
v: 1;
|
|
5717
5718
|
sha256: string;
|
|
5718
5719
|
manifestIndex: number;
|
|
5719
|
-
sessionId: string;
|
|
5720
5720
|
firstEventIndex: number;
|
|
5721
5721
|
lastEventIndex: number;
|
|
5722
5722
|
segmentRelPath: string;
|
|
5723
5723
|
bytes: number;
|
|
5724
5724
|
} | {
|
|
5725
5725
|
kind: "snapshot_pinned";
|
|
5726
|
+
sessionId: string;
|
|
5726
5727
|
v: 1;
|
|
5727
5728
|
manifestIndex: number;
|
|
5728
|
-
sessionId: string;
|
|
5729
5729
|
eventIndex: number;
|
|
5730
5730
|
snapshotRef: string;
|
|
5731
5731
|
createdByEventId: string;
|
|
@@ -5806,11 +5806,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5806
5806
|
}>;
|
|
5807
5807
|
}, "strip", z.ZodTypeAny, {
|
|
5808
5808
|
kind: "session_created";
|
|
5809
|
+
sessionId: string;
|
|
5809
5810
|
data: {
|
|
5810
5811
|
parentSessionId?: string | undefined;
|
|
5811
5812
|
};
|
|
5812
5813
|
v: 1;
|
|
5813
|
-
sessionId: string;
|
|
5814
5814
|
eventIndex: number;
|
|
5815
5815
|
eventId: string;
|
|
5816
5816
|
dedupeKey: string;
|
|
@@ -5820,11 +5820,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5820
5820
|
} | undefined;
|
|
5821
5821
|
}, {
|
|
5822
5822
|
kind: "session_created";
|
|
5823
|
+
sessionId: string;
|
|
5823
5824
|
data: {
|
|
5824
5825
|
parentSessionId?: string | undefined;
|
|
5825
5826
|
};
|
|
5826
5827
|
v: 1;
|
|
5827
|
-
sessionId: string;
|
|
5828
5828
|
eventIndex: number;
|
|
5829
5829
|
eventId: string;
|
|
5830
5830
|
dedupeKey: string;
|
|
@@ -5916,6 +5916,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5916
5916
|
}>;
|
|
5917
5917
|
}, "strip", z.ZodTypeAny, {
|
|
5918
5918
|
kind: "observation_recorded";
|
|
5919
|
+
sessionId: string;
|
|
5919
5920
|
data: {
|
|
5920
5921
|
value: {
|
|
5921
5922
|
type: "short_string";
|
|
@@ -5934,13 +5935,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5934
5935
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
5935
5936
|
};
|
|
5936
5937
|
v: 1;
|
|
5937
|
-
sessionId: string;
|
|
5938
5938
|
eventIndex: number;
|
|
5939
5939
|
eventId: string;
|
|
5940
5940
|
dedupeKey: string;
|
|
5941
5941
|
scope?: undefined;
|
|
5942
5942
|
}, {
|
|
5943
5943
|
kind: "observation_recorded";
|
|
5944
|
+
sessionId: string;
|
|
5944
5945
|
data: {
|
|
5945
5946
|
value: {
|
|
5946
5947
|
type: "short_string";
|
|
@@ -5959,7 +5960,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5959
5960
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
5960
5961
|
};
|
|
5961
5962
|
v: 1;
|
|
5962
|
-
sessionId: string;
|
|
5963
5963
|
eventIndex: number;
|
|
5964
5964
|
eventId: string;
|
|
5965
5965
|
dedupeKey: string;
|
|
@@ -5997,6 +5997,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
5997
5997
|
}>;
|
|
5998
5998
|
}, "strip", z.ZodTypeAny, {
|
|
5999
5999
|
kind: "run_started";
|
|
6000
|
+
sessionId: string;
|
|
6000
6001
|
data: {
|
|
6001
6002
|
workflowId: string;
|
|
6002
6003
|
workflowHash: never;
|
|
@@ -6004,7 +6005,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6004
6005
|
workflowSourceRef: string;
|
|
6005
6006
|
};
|
|
6006
6007
|
v: 1;
|
|
6007
|
-
sessionId: string;
|
|
6008
6008
|
eventIndex: number;
|
|
6009
6009
|
eventId: string;
|
|
6010
6010
|
dedupeKey: string;
|
|
@@ -6013,6 +6013,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6013
6013
|
};
|
|
6014
6014
|
}, {
|
|
6015
6015
|
kind: "run_started";
|
|
6016
|
+
sessionId: string;
|
|
6016
6017
|
data: {
|
|
6017
6018
|
workflowId: string;
|
|
6018
6019
|
workflowHash: string;
|
|
@@ -6020,7 +6021,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6020
6021
|
workflowSourceRef: string;
|
|
6021
6022
|
};
|
|
6022
6023
|
v: 1;
|
|
6023
|
-
sessionId: string;
|
|
6024
6024
|
eventIndex: number;
|
|
6025
6025
|
eventId: string;
|
|
6026
6026
|
dedupeKey: string;
|
|
@@ -6063,6 +6063,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6063
6063
|
}>;
|
|
6064
6064
|
}, "strip", z.ZodTypeAny, {
|
|
6065
6065
|
kind: "node_created";
|
|
6066
|
+
sessionId: string;
|
|
6066
6067
|
data: {
|
|
6067
6068
|
snapshotRef: never;
|
|
6068
6069
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -6070,7 +6071,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6070
6071
|
workflowHash: never;
|
|
6071
6072
|
};
|
|
6072
6073
|
v: 1;
|
|
6073
|
-
sessionId: string;
|
|
6074
6074
|
eventIndex: number;
|
|
6075
6075
|
eventId: string;
|
|
6076
6076
|
dedupeKey: string;
|
|
@@ -6080,6 +6080,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6080
6080
|
};
|
|
6081
6081
|
}, {
|
|
6082
6082
|
kind: "node_created";
|
|
6083
|
+
sessionId: string;
|
|
6083
6084
|
data: {
|
|
6084
6085
|
snapshotRef: string;
|
|
6085
6086
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -6087,7 +6088,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6087
6088
|
workflowHash: string;
|
|
6088
6089
|
};
|
|
6089
6090
|
v: 1;
|
|
6090
|
-
sessionId: string;
|
|
6091
6091
|
eventIndex: number;
|
|
6092
6092
|
eventId: string;
|
|
6093
6093
|
dedupeKey: string;
|
|
@@ -6159,6 +6159,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6159
6159
|
}>;
|
|
6160
6160
|
}, "strip", z.ZodTypeAny, {
|
|
6161
6161
|
kind: "edge_created";
|
|
6162
|
+
sessionId: string;
|
|
6162
6163
|
data: {
|
|
6163
6164
|
cause: {
|
|
6164
6165
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -6169,7 +6170,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6169
6170
|
toNodeId: string;
|
|
6170
6171
|
};
|
|
6171
6172
|
v: 1;
|
|
6172
|
-
sessionId: string;
|
|
6173
6173
|
eventIndex: number;
|
|
6174
6174
|
eventId: string;
|
|
6175
6175
|
dedupeKey: string;
|
|
@@ -6178,6 +6178,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6178
6178
|
};
|
|
6179
6179
|
}, {
|
|
6180
6180
|
kind: "edge_created";
|
|
6181
|
+
sessionId: string;
|
|
6181
6182
|
data: {
|
|
6182
6183
|
cause: {
|
|
6183
6184
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -6188,7 +6189,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6188
6189
|
toNodeId: string;
|
|
6189
6190
|
};
|
|
6190
6191
|
v: 1;
|
|
6191
|
-
sessionId: string;
|
|
6192
6192
|
eventIndex: number;
|
|
6193
6193
|
eventId: string;
|
|
6194
6194
|
dedupeKey: string;
|
|
@@ -6513,6 +6513,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6513
6513
|
}>;
|
|
6514
6514
|
}, "strip", z.ZodTypeAny, {
|
|
6515
6515
|
kind: "advance_recorded";
|
|
6516
|
+
sessionId: string;
|
|
6516
6517
|
data: {
|
|
6517
6518
|
outcome: {
|
|
6518
6519
|
kind: "blocked";
|
|
@@ -6546,7 +6547,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6546
6547
|
intent: "ack_pending";
|
|
6547
6548
|
};
|
|
6548
6549
|
v: 1;
|
|
6549
|
-
sessionId: string;
|
|
6550
6550
|
eventIndex: number;
|
|
6551
6551
|
eventId: string;
|
|
6552
6552
|
dedupeKey: string;
|
|
@@ -6556,6 +6556,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6556
6556
|
};
|
|
6557
6557
|
}, {
|
|
6558
6558
|
kind: "advance_recorded";
|
|
6559
|
+
sessionId: string;
|
|
6559
6560
|
data: {
|
|
6560
6561
|
outcome: {
|
|
6561
6562
|
kind: "blocked";
|
|
@@ -6589,7 +6590,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6589
6590
|
intent: "ack_pending";
|
|
6590
6591
|
};
|
|
6591
6592
|
v: 1;
|
|
6592
|
-
sessionId: string;
|
|
6593
6593
|
eventIndex: number;
|
|
6594
6594
|
eventId: string;
|
|
6595
6595
|
dedupeKey: string;
|
|
@@ -6661,6 +6661,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6661
6661
|
}>;
|
|
6662
6662
|
}, "strip", z.ZodTypeAny, {
|
|
6663
6663
|
kind: "validation_performed";
|
|
6664
|
+
sessionId: string;
|
|
6664
6665
|
data: {
|
|
6665
6666
|
contractRef: string;
|
|
6666
6667
|
result: {
|
|
@@ -6672,7 +6673,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6672
6673
|
attemptId: string;
|
|
6673
6674
|
};
|
|
6674
6675
|
v: 1;
|
|
6675
|
-
sessionId: string;
|
|
6676
6676
|
eventIndex: number;
|
|
6677
6677
|
eventId: string;
|
|
6678
6678
|
dedupeKey: string;
|
|
@@ -6682,6 +6682,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6682
6682
|
};
|
|
6683
6683
|
}, {
|
|
6684
6684
|
kind: "validation_performed";
|
|
6685
|
+
sessionId: string;
|
|
6685
6686
|
data: {
|
|
6686
6687
|
contractRef: string;
|
|
6687
6688
|
result: {
|
|
@@ -6693,7 +6694,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6693
6694
|
attemptId: string;
|
|
6694
6695
|
};
|
|
6695
6696
|
v: 1;
|
|
6696
|
-
sessionId: string;
|
|
6697
6697
|
eventIndex: number;
|
|
6698
6698
|
eventId: string;
|
|
6699
6699
|
dedupeKey: string;
|
|
@@ -6752,8 +6752,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6752
6752
|
content?: unknown;
|
|
6753
6753
|
}>]>;
|
|
6754
6754
|
}, "strip", z.ZodTypeAny, {
|
|
6755
|
-
outputId: string;
|
|
6756
|
-
outputChannel: "recap" | "artifact";
|
|
6757
6755
|
payload: {
|
|
6758
6756
|
payloadKind: "notes";
|
|
6759
6757
|
notesMarkdown: string;
|
|
@@ -6764,10 +6762,10 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6764
6762
|
byteLength: number;
|
|
6765
6763
|
content?: unknown;
|
|
6766
6764
|
};
|
|
6767
|
-
supersedesOutputId?: string | undefined;
|
|
6768
|
-
}, {
|
|
6769
6765
|
outputId: string;
|
|
6770
6766
|
outputChannel: "recap" | "artifact";
|
|
6767
|
+
supersedesOutputId?: string | undefined;
|
|
6768
|
+
}, {
|
|
6771
6769
|
payload: {
|
|
6772
6770
|
payloadKind: "notes";
|
|
6773
6771
|
notesMarkdown: string;
|
|
@@ -6778,10 +6776,10 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6778
6776
|
byteLength: number;
|
|
6779
6777
|
content?: unknown;
|
|
6780
6778
|
};
|
|
6781
|
-
supersedesOutputId?: string | undefined;
|
|
6782
|
-
}>, {
|
|
6783
6779
|
outputId: string;
|
|
6784
6780
|
outputChannel: "recap" | "artifact";
|
|
6781
|
+
supersedesOutputId?: string | undefined;
|
|
6782
|
+
}>, {
|
|
6785
6783
|
payload: {
|
|
6786
6784
|
payloadKind: "notes";
|
|
6787
6785
|
notesMarkdown: string;
|
|
@@ -6792,10 +6790,10 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6792
6790
|
byteLength: number;
|
|
6793
6791
|
content?: unknown;
|
|
6794
6792
|
};
|
|
6795
|
-
supersedesOutputId?: string | undefined;
|
|
6796
|
-
}, {
|
|
6797
6793
|
outputId: string;
|
|
6798
6794
|
outputChannel: "recap" | "artifact";
|
|
6795
|
+
supersedesOutputId?: string | undefined;
|
|
6796
|
+
}, {
|
|
6799
6797
|
payload: {
|
|
6800
6798
|
payloadKind: "notes";
|
|
6801
6799
|
notesMarkdown: string;
|
|
@@ -6806,13 +6804,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6806
6804
|
byteLength: number;
|
|
6807
6805
|
content?: unknown;
|
|
6808
6806
|
};
|
|
6807
|
+
outputId: string;
|
|
6808
|
+
outputChannel: "recap" | "artifact";
|
|
6809
6809
|
supersedesOutputId?: string | undefined;
|
|
6810
6810
|
}>;
|
|
6811
6811
|
}, "strip", z.ZodTypeAny, {
|
|
6812
6812
|
kind: "node_output_appended";
|
|
6813
|
+
sessionId: string;
|
|
6813
6814
|
data: {
|
|
6814
|
-
outputId: string;
|
|
6815
|
-
outputChannel: "recap" | "artifact";
|
|
6816
6815
|
payload: {
|
|
6817
6816
|
payloadKind: "notes";
|
|
6818
6817
|
notesMarkdown: string;
|
|
@@ -6823,10 +6822,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6823
6822
|
byteLength: number;
|
|
6824
6823
|
content?: unknown;
|
|
6825
6824
|
};
|
|
6825
|
+
outputId: string;
|
|
6826
|
+
outputChannel: "recap" | "artifact";
|
|
6826
6827
|
supersedesOutputId?: string | undefined;
|
|
6827
6828
|
};
|
|
6828
6829
|
v: 1;
|
|
6829
|
-
sessionId: string;
|
|
6830
6830
|
eventIndex: number;
|
|
6831
6831
|
eventId: string;
|
|
6832
6832
|
dedupeKey: string;
|
|
@@ -6836,9 +6836,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6836
6836
|
};
|
|
6837
6837
|
}, {
|
|
6838
6838
|
kind: "node_output_appended";
|
|
6839
|
+
sessionId: string;
|
|
6839
6840
|
data: {
|
|
6840
|
-
outputId: string;
|
|
6841
|
-
outputChannel: "recap" | "artifact";
|
|
6842
6841
|
payload: {
|
|
6843
6842
|
payloadKind: "notes";
|
|
6844
6843
|
notesMarkdown: string;
|
|
@@ -6849,10 +6848,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6849
6848
|
byteLength: number;
|
|
6850
6849
|
content?: unknown;
|
|
6851
6850
|
};
|
|
6851
|
+
outputId: string;
|
|
6852
|
+
outputChannel: "recap" | "artifact";
|
|
6852
6853
|
supersedesOutputId?: string | undefined;
|
|
6853
6854
|
};
|
|
6854
6855
|
v: 1;
|
|
6855
|
-
sessionId: string;
|
|
6856
6856
|
eventIndex: number;
|
|
6857
6857
|
eventId: string;
|
|
6858
6858
|
dedupeKey: string;
|
|
@@ -6927,6 +6927,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6927
6927
|
}>;
|
|
6928
6928
|
}, "strip", z.ZodTypeAny, {
|
|
6929
6929
|
kind: "assessment_recorded";
|
|
6930
|
+
sessionId: string;
|
|
6930
6931
|
data: {
|
|
6931
6932
|
assessmentId: string;
|
|
6932
6933
|
dimensions: readonly {
|
|
@@ -6941,7 +6942,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6941
6942
|
summary?: string | undefined;
|
|
6942
6943
|
};
|
|
6943
6944
|
v: 1;
|
|
6944
|
-
sessionId: string;
|
|
6945
6945
|
eventIndex: number;
|
|
6946
6946
|
eventId: string;
|
|
6947
6947
|
dedupeKey: string;
|
|
@@ -6951,6 +6951,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6951
6951
|
};
|
|
6952
6952
|
}, {
|
|
6953
6953
|
kind: "assessment_recorded";
|
|
6954
|
+
sessionId: string;
|
|
6954
6955
|
data: {
|
|
6955
6956
|
assessmentId: string;
|
|
6956
6957
|
dimensions: readonly {
|
|
@@ -6965,7 +6966,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
6965
6966
|
summary?: string | undefined;
|
|
6966
6967
|
};
|
|
6967
6968
|
v: 1;
|
|
6968
|
-
sessionId: string;
|
|
6969
6969
|
eventIndex: number;
|
|
6970
6970
|
eventId: string;
|
|
6971
6971
|
dedupeKey: string;
|
|
@@ -7039,6 +7039,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7039
7039
|
}>;
|
|
7040
7040
|
}, "strip", z.ZodTypeAny, {
|
|
7041
7041
|
kind: "assessment_consequence_applied";
|
|
7042
|
+
sessionId: string;
|
|
7042
7043
|
data: {
|
|
7043
7044
|
assessmentId: string;
|
|
7044
7045
|
effect: {
|
|
@@ -7052,7 +7053,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7052
7053
|
};
|
|
7053
7054
|
};
|
|
7054
7055
|
v: 1;
|
|
7055
|
-
sessionId: string;
|
|
7056
7056
|
eventIndex: number;
|
|
7057
7057
|
eventId: string;
|
|
7058
7058
|
dedupeKey: string;
|
|
@@ -7062,6 +7062,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7062
7062
|
};
|
|
7063
7063
|
}, {
|
|
7064
7064
|
kind: "assessment_consequence_applied";
|
|
7065
|
+
sessionId: string;
|
|
7065
7066
|
data: {
|
|
7066
7067
|
assessmentId: string;
|
|
7067
7068
|
effect: {
|
|
@@ -7075,7 +7076,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7075
7076
|
};
|
|
7076
7077
|
};
|
|
7077
7078
|
v: 1;
|
|
7078
|
-
sessionId: string;
|
|
7079
7079
|
eventIndex: number;
|
|
7080
7080
|
eventId: string;
|
|
7081
7081
|
dedupeKey: string;
|
|
@@ -7192,6 +7192,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7192
7192
|
}>;
|
|
7193
7193
|
}, "strip", z.ZodTypeAny, {
|
|
7194
7194
|
kind: "preferences_changed";
|
|
7195
|
+
sessionId: string;
|
|
7195
7196
|
data: {
|
|
7196
7197
|
source: "user" | "workflow_recommendation" | "system";
|
|
7197
7198
|
changeId: string;
|
|
@@ -7208,7 +7209,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7208
7209
|
};
|
|
7209
7210
|
};
|
|
7210
7211
|
v: 1;
|
|
7211
|
-
sessionId: string;
|
|
7212
7212
|
eventIndex: number;
|
|
7213
7213
|
eventId: string;
|
|
7214
7214
|
dedupeKey: string;
|
|
@@ -7218,6 +7218,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7218
7218
|
};
|
|
7219
7219
|
}, {
|
|
7220
7220
|
kind: "preferences_changed";
|
|
7221
|
+
sessionId: string;
|
|
7221
7222
|
data: {
|
|
7222
7223
|
source: "user" | "workflow_recommendation" | "system";
|
|
7223
7224
|
changeId: string;
|
|
@@ -7234,7 +7235,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7234
7235
|
};
|
|
7235
7236
|
};
|
|
7236
7237
|
v: 1;
|
|
7237
|
-
sessionId: string;
|
|
7238
7238
|
eventIndex: number;
|
|
7239
7239
|
eventId: string;
|
|
7240
7240
|
dedupeKey: string;
|
|
@@ -7471,6 +7471,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7471
7471
|
}>;
|
|
7472
7472
|
}, "strip", z.ZodTypeAny, {
|
|
7473
7473
|
kind: "capability_observed";
|
|
7474
|
+
sessionId: string;
|
|
7474
7475
|
data: {
|
|
7475
7476
|
status: "unknown" | "available" | "unavailable";
|
|
7476
7477
|
capability: "delegation" | "web_browsing";
|
|
@@ -7501,7 +7502,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7501
7502
|
};
|
|
7502
7503
|
};
|
|
7503
7504
|
v: 1;
|
|
7504
|
-
sessionId: string;
|
|
7505
7505
|
eventIndex: number;
|
|
7506
7506
|
eventId: string;
|
|
7507
7507
|
dedupeKey: string;
|
|
@@ -7511,6 +7511,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7511
7511
|
};
|
|
7512
7512
|
}, {
|
|
7513
7513
|
kind: "capability_observed";
|
|
7514
|
+
sessionId: string;
|
|
7514
7515
|
data: {
|
|
7515
7516
|
status: "unknown" | "available" | "unavailable";
|
|
7516
7517
|
capability: "delegation" | "web_browsing";
|
|
@@ -7541,7 +7542,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7541
7542
|
};
|
|
7542
7543
|
};
|
|
7543
7544
|
v: 1;
|
|
7544
|
-
sessionId: string;
|
|
7545
7545
|
eventIndex: number;
|
|
7546
7546
|
eventId: string;
|
|
7547
7547
|
dedupeKey: string;
|
|
@@ -7658,6 +7658,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7658
7658
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
7659
7659
|
category: "unexpected";
|
|
7660
7660
|
};
|
|
7661
|
+
severity: "critical" | "info" | "warning";
|
|
7661
7662
|
resolution: {
|
|
7662
7663
|
kind: "unresolved";
|
|
7663
7664
|
} | {
|
|
@@ -7665,7 +7666,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7665
7666
|
resolvesGapId: string;
|
|
7666
7667
|
};
|
|
7667
7668
|
gapId: string;
|
|
7668
|
-
severity: "info" | "warning" | "critical";
|
|
7669
7669
|
evidenceRefs?: ({
|
|
7670
7670
|
kind: "event";
|
|
7671
7671
|
eventId: string;
|
|
@@ -7688,6 +7688,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7688
7688
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
7689
7689
|
category: "unexpected";
|
|
7690
7690
|
};
|
|
7691
|
+
severity: "critical" | "info" | "warning";
|
|
7691
7692
|
resolution: {
|
|
7692
7693
|
kind: "unresolved";
|
|
7693
7694
|
} | {
|
|
@@ -7695,7 +7696,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7695
7696
|
resolvesGapId: string;
|
|
7696
7697
|
};
|
|
7697
7698
|
gapId: string;
|
|
7698
|
-
severity: "info" | "warning" | "critical";
|
|
7699
7699
|
evidenceRefs?: ({
|
|
7700
7700
|
kind: "event";
|
|
7701
7701
|
eventId: string;
|
|
@@ -7706,6 +7706,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7706
7706
|
}>;
|
|
7707
7707
|
}, "strip", z.ZodTypeAny, {
|
|
7708
7708
|
kind: "gap_recorded";
|
|
7709
|
+
sessionId: string;
|
|
7709
7710
|
data: {
|
|
7710
7711
|
summary: string;
|
|
7711
7712
|
reason: {
|
|
@@ -7721,6 +7722,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7721
7722
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
7722
7723
|
category: "unexpected";
|
|
7723
7724
|
};
|
|
7725
|
+
severity: "critical" | "info" | "warning";
|
|
7724
7726
|
resolution: {
|
|
7725
7727
|
kind: "unresolved";
|
|
7726
7728
|
} | {
|
|
@@ -7728,7 +7730,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7728
7730
|
resolvesGapId: string;
|
|
7729
7731
|
};
|
|
7730
7732
|
gapId: string;
|
|
7731
|
-
severity: "info" | "warning" | "critical";
|
|
7732
7733
|
evidenceRefs?: ({
|
|
7733
7734
|
kind: "event";
|
|
7734
7735
|
eventId: string;
|
|
@@ -7738,7 +7739,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7738
7739
|
})[] | undefined;
|
|
7739
7740
|
};
|
|
7740
7741
|
v: 1;
|
|
7741
|
-
sessionId: string;
|
|
7742
7742
|
eventIndex: number;
|
|
7743
7743
|
eventId: string;
|
|
7744
7744
|
dedupeKey: string;
|
|
@@ -7748,6 +7748,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7748
7748
|
};
|
|
7749
7749
|
}, {
|
|
7750
7750
|
kind: "gap_recorded";
|
|
7751
|
+
sessionId: string;
|
|
7751
7752
|
data: {
|
|
7752
7753
|
summary: string;
|
|
7753
7754
|
reason: {
|
|
@@ -7763,6 +7764,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7763
7764
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
7764
7765
|
category: "unexpected";
|
|
7765
7766
|
};
|
|
7767
|
+
severity: "critical" | "info" | "warning";
|
|
7766
7768
|
resolution: {
|
|
7767
7769
|
kind: "unresolved";
|
|
7768
7770
|
} | {
|
|
@@ -7770,7 +7772,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7770
7772
|
resolvesGapId: string;
|
|
7771
7773
|
};
|
|
7772
7774
|
gapId: string;
|
|
7773
|
-
severity: "info" | "warning" | "critical";
|
|
7774
7775
|
evidenceRefs?: ({
|
|
7775
7776
|
kind: "event";
|
|
7776
7777
|
eventId: string;
|
|
@@ -7780,7 +7781,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7780
7781
|
})[] | undefined;
|
|
7781
7782
|
};
|
|
7782
7783
|
v: 1;
|
|
7783
|
-
sessionId: string;
|
|
7784
7784
|
eventIndex: number;
|
|
7785
7785
|
eventId: string;
|
|
7786
7786
|
dedupeKey: string;
|
|
@@ -7818,13 +7818,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7818
7818
|
}>;
|
|
7819
7819
|
}, "strip", z.ZodTypeAny, {
|
|
7820
7820
|
kind: "context_set";
|
|
7821
|
+
sessionId: string;
|
|
7821
7822
|
data: {
|
|
7822
7823
|
source: "initial" | "agent_delta";
|
|
7823
7824
|
contextId: string;
|
|
7824
7825
|
context?: unknown;
|
|
7825
7826
|
};
|
|
7826
7827
|
v: 1;
|
|
7827
|
-
sessionId: string;
|
|
7828
7828
|
eventIndex: number;
|
|
7829
7829
|
eventId: string;
|
|
7830
7830
|
dedupeKey: string;
|
|
@@ -7833,13 +7833,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7833
7833
|
};
|
|
7834
7834
|
}, {
|
|
7835
7835
|
kind: "context_set";
|
|
7836
|
+
sessionId: string;
|
|
7836
7837
|
data: {
|
|
7837
7838
|
source: "initial" | "agent_delta";
|
|
7838
7839
|
contextId: string;
|
|
7839
7840
|
context?: unknown;
|
|
7840
7841
|
};
|
|
7841
7842
|
v: 1;
|
|
7842
|
-
sessionId: string;
|
|
7843
7843
|
eventIndex: number;
|
|
7844
7844
|
eventId: string;
|
|
7845
7845
|
dedupeKey: string;
|
|
@@ -7882,6 +7882,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7882
7882
|
}>;
|
|
7883
7883
|
}, "strip", z.ZodTypeAny, {
|
|
7884
7884
|
kind: "divergence_recorded";
|
|
7885
|
+
sessionId: string;
|
|
7885
7886
|
data: {
|
|
7886
7887
|
summary: string;
|
|
7887
7888
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -7889,7 +7890,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7889
7890
|
relatedStepId?: string | undefined;
|
|
7890
7891
|
};
|
|
7891
7892
|
v: 1;
|
|
7892
|
-
sessionId: string;
|
|
7893
7893
|
eventIndex: number;
|
|
7894
7894
|
eventId: string;
|
|
7895
7895
|
dedupeKey: string;
|
|
@@ -7899,6 +7899,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7899
7899
|
};
|
|
7900
7900
|
}, {
|
|
7901
7901
|
kind: "divergence_recorded";
|
|
7902
|
+
sessionId: string;
|
|
7902
7903
|
data: {
|
|
7903
7904
|
summary: string;
|
|
7904
7905
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -7906,7 +7907,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
7906
7907
|
relatedStepId?: string | undefined;
|
|
7907
7908
|
};
|
|
7908
7909
|
v: 1;
|
|
7909
|
-
sessionId: string;
|
|
7910
7910
|
eventIndex: number;
|
|
7911
7911
|
eventId: string;
|
|
7912
7912
|
dedupeKey: string;
|
|
@@ -8086,6 +8086,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8086
8086
|
}>;
|
|
8087
8087
|
}, "strip", z.ZodTypeAny, {
|
|
8088
8088
|
kind: "decision_trace_appended";
|
|
8089
|
+
sessionId: string;
|
|
8089
8090
|
data: {
|
|
8090
8091
|
entries: {
|
|
8091
8092
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -8107,7 +8108,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8107
8108
|
traceId: string;
|
|
8108
8109
|
};
|
|
8109
8110
|
v: 1;
|
|
8110
|
-
sessionId: string;
|
|
8111
8111
|
eventIndex: number;
|
|
8112
8112
|
eventId: string;
|
|
8113
8113
|
dedupeKey: string;
|
|
@@ -8117,6 +8117,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8117
8117
|
};
|
|
8118
8118
|
}, {
|
|
8119
8119
|
kind: "decision_trace_appended";
|
|
8120
|
+
sessionId: string;
|
|
8120
8121
|
data: {
|
|
8121
8122
|
entries: {
|
|
8122
8123
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -8138,7 +8139,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8138
8139
|
traceId: string;
|
|
8139
8140
|
};
|
|
8140
8141
|
v: 1;
|
|
8141
|
-
sessionId: string;
|
|
8142
8142
|
eventIndex: number;
|
|
8143
8143
|
eventId: string;
|
|
8144
8144
|
dedupeKey: string;
|
|
@@ -8159,20 +8159,20 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8159
8159
|
bytes: z.ZodNumber;
|
|
8160
8160
|
}, "strip", z.ZodTypeAny, {
|
|
8161
8161
|
kind: "segment_closed";
|
|
8162
|
+
sessionId: string;
|
|
8162
8163
|
v: 1;
|
|
8163
8164
|
sha256: string;
|
|
8164
8165
|
manifestIndex: number;
|
|
8165
|
-
sessionId: string;
|
|
8166
8166
|
firstEventIndex: number;
|
|
8167
8167
|
lastEventIndex: number;
|
|
8168
8168
|
segmentRelPath: string;
|
|
8169
8169
|
bytes: number;
|
|
8170
8170
|
}, {
|
|
8171
8171
|
kind: "segment_closed";
|
|
8172
|
+
sessionId: string;
|
|
8172
8173
|
v: 1;
|
|
8173
8174
|
sha256: string;
|
|
8174
8175
|
manifestIndex: number;
|
|
8175
|
-
sessionId: string;
|
|
8176
8176
|
firstEventIndex: number;
|
|
8177
8177
|
lastEventIndex: number;
|
|
8178
8178
|
segmentRelPath: string;
|
|
@@ -8187,17 +8187,17 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
8187
8187
|
createdByEventId: z.ZodString;
|
|
8188
8188
|
}, "strip", z.ZodTypeAny, {
|
|
8189
8189
|
kind: "snapshot_pinned";
|
|
8190
|
+
sessionId: string;
|
|
8190
8191
|
v: 1;
|
|
8191
8192
|
manifestIndex: number;
|
|
8192
|
-
sessionId: string;
|
|
8193
8193
|
eventIndex: number;
|
|
8194
8194
|
snapshotRef: string;
|
|
8195
8195
|
createdByEventId: string;
|
|
8196
8196
|
}, {
|
|
8197
8197
|
kind: "snapshot_pinned";
|
|
8198
|
+
sessionId: string;
|
|
8198
8199
|
v: 1;
|
|
8199
8200
|
manifestIndex: number;
|
|
8200
|
-
sessionId: string;
|
|
8201
8201
|
eventIndex: number;
|
|
8202
8202
|
snapshotRef: string;
|
|
8203
8203
|
createdByEventId: string;
|
|
@@ -10286,6 +10286,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10286
10286
|
}>>;
|
|
10287
10287
|
pinnedWorkflows: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10288
10288
|
}, "strip", z.ZodTypeAny, {
|
|
10289
|
+
sessionId: string;
|
|
10289
10290
|
snapshots: Record<string, {
|
|
10290
10291
|
kind: "execution_snapshot";
|
|
10291
10292
|
v: 1;
|
|
@@ -10456,11 +10457,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10456
10457
|
}>;
|
|
10457
10458
|
events: ({
|
|
10458
10459
|
kind: "session_created";
|
|
10460
|
+
sessionId: string;
|
|
10459
10461
|
data: {
|
|
10460
10462
|
parentSessionId?: string | undefined;
|
|
10461
10463
|
};
|
|
10462
10464
|
v: 1;
|
|
10463
|
-
sessionId: string;
|
|
10464
10465
|
eventIndex: number;
|
|
10465
10466
|
eventId: string;
|
|
10466
10467
|
dedupeKey: string;
|
|
@@ -10470,6 +10471,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10470
10471
|
} | undefined;
|
|
10471
10472
|
} | {
|
|
10472
10473
|
kind: "observation_recorded";
|
|
10474
|
+
sessionId: string;
|
|
10473
10475
|
data: {
|
|
10474
10476
|
value: {
|
|
10475
10477
|
type: "short_string";
|
|
@@ -10488,13 +10490,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10488
10490
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
10489
10491
|
};
|
|
10490
10492
|
v: 1;
|
|
10491
|
-
sessionId: string;
|
|
10492
10493
|
eventIndex: number;
|
|
10493
10494
|
eventId: string;
|
|
10494
10495
|
dedupeKey: string;
|
|
10495
10496
|
scope?: undefined;
|
|
10496
10497
|
} | {
|
|
10497
10498
|
kind: "run_started";
|
|
10499
|
+
sessionId: string;
|
|
10498
10500
|
data: {
|
|
10499
10501
|
workflowId: string;
|
|
10500
10502
|
workflowHash: never;
|
|
@@ -10502,7 +10504,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10502
10504
|
workflowSourceRef: string;
|
|
10503
10505
|
};
|
|
10504
10506
|
v: 1;
|
|
10505
|
-
sessionId: string;
|
|
10506
10507
|
eventIndex: number;
|
|
10507
10508
|
eventId: string;
|
|
10508
10509
|
dedupeKey: string;
|
|
@@ -10511,6 +10512,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10511
10512
|
};
|
|
10512
10513
|
} | {
|
|
10513
10514
|
kind: "node_created";
|
|
10515
|
+
sessionId: string;
|
|
10514
10516
|
data: {
|
|
10515
10517
|
snapshotRef: never;
|
|
10516
10518
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -10518,7 +10520,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10518
10520
|
workflowHash: never;
|
|
10519
10521
|
};
|
|
10520
10522
|
v: 1;
|
|
10521
|
-
sessionId: string;
|
|
10522
10523
|
eventIndex: number;
|
|
10523
10524
|
eventId: string;
|
|
10524
10525
|
dedupeKey: string;
|
|
@@ -10528,6 +10529,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10528
10529
|
};
|
|
10529
10530
|
} | {
|
|
10530
10531
|
kind: "edge_created";
|
|
10532
|
+
sessionId: string;
|
|
10531
10533
|
data: {
|
|
10532
10534
|
cause: {
|
|
10533
10535
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -10538,7 +10540,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10538
10540
|
toNodeId: string;
|
|
10539
10541
|
};
|
|
10540
10542
|
v: 1;
|
|
10541
|
-
sessionId: string;
|
|
10542
10543
|
eventIndex: number;
|
|
10543
10544
|
eventId: string;
|
|
10544
10545
|
dedupeKey: string;
|
|
@@ -10547,6 +10548,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10547
10548
|
};
|
|
10548
10549
|
} | {
|
|
10549
10550
|
kind: "advance_recorded";
|
|
10551
|
+
sessionId: string;
|
|
10550
10552
|
data: {
|
|
10551
10553
|
outcome: {
|
|
10552
10554
|
kind: "blocked";
|
|
@@ -10580,7 +10582,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10580
10582
|
intent: "ack_pending";
|
|
10581
10583
|
};
|
|
10582
10584
|
v: 1;
|
|
10583
|
-
sessionId: string;
|
|
10584
10585
|
eventIndex: number;
|
|
10585
10586
|
eventId: string;
|
|
10586
10587
|
dedupeKey: string;
|
|
@@ -10590,6 +10591,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10590
10591
|
};
|
|
10591
10592
|
} | {
|
|
10592
10593
|
kind: "validation_performed";
|
|
10594
|
+
sessionId: string;
|
|
10593
10595
|
data: {
|
|
10594
10596
|
contractRef: string;
|
|
10595
10597
|
result: {
|
|
@@ -10601,7 +10603,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10601
10603
|
attemptId: string;
|
|
10602
10604
|
};
|
|
10603
10605
|
v: 1;
|
|
10604
|
-
sessionId: string;
|
|
10605
10606
|
eventIndex: number;
|
|
10606
10607
|
eventId: string;
|
|
10607
10608
|
dedupeKey: string;
|
|
@@ -10611,9 +10612,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10611
10612
|
};
|
|
10612
10613
|
} | {
|
|
10613
10614
|
kind: "node_output_appended";
|
|
10615
|
+
sessionId: string;
|
|
10614
10616
|
data: {
|
|
10615
|
-
outputId: string;
|
|
10616
|
-
outputChannel: "recap" | "artifact";
|
|
10617
10617
|
payload: {
|
|
10618
10618
|
payloadKind: "notes";
|
|
10619
10619
|
notesMarkdown: string;
|
|
@@ -10624,10 +10624,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10624
10624
|
byteLength: number;
|
|
10625
10625
|
content?: unknown;
|
|
10626
10626
|
};
|
|
10627
|
+
outputId: string;
|
|
10628
|
+
outputChannel: "recap" | "artifact";
|
|
10627
10629
|
supersedesOutputId?: string | undefined;
|
|
10628
10630
|
};
|
|
10629
10631
|
v: 1;
|
|
10630
|
-
sessionId: string;
|
|
10631
10632
|
eventIndex: number;
|
|
10632
10633
|
eventId: string;
|
|
10633
10634
|
dedupeKey: string;
|
|
@@ -10637,6 +10638,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10637
10638
|
};
|
|
10638
10639
|
} | {
|
|
10639
10640
|
kind: "assessment_recorded";
|
|
10641
|
+
sessionId: string;
|
|
10640
10642
|
data: {
|
|
10641
10643
|
assessmentId: string;
|
|
10642
10644
|
dimensions: readonly {
|
|
@@ -10651,7 +10653,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10651
10653
|
summary?: string | undefined;
|
|
10652
10654
|
};
|
|
10653
10655
|
v: 1;
|
|
10654
|
-
sessionId: string;
|
|
10655
10656
|
eventIndex: number;
|
|
10656
10657
|
eventId: string;
|
|
10657
10658
|
dedupeKey: string;
|
|
@@ -10661,6 +10662,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10661
10662
|
};
|
|
10662
10663
|
} | {
|
|
10663
10664
|
kind: "assessment_consequence_applied";
|
|
10665
|
+
sessionId: string;
|
|
10664
10666
|
data: {
|
|
10665
10667
|
assessmentId: string;
|
|
10666
10668
|
effect: {
|
|
@@ -10674,7 +10676,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10674
10676
|
};
|
|
10675
10677
|
};
|
|
10676
10678
|
v: 1;
|
|
10677
|
-
sessionId: string;
|
|
10678
10679
|
eventIndex: number;
|
|
10679
10680
|
eventId: string;
|
|
10680
10681
|
dedupeKey: string;
|
|
@@ -10684,6 +10685,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10684
10685
|
};
|
|
10685
10686
|
} | {
|
|
10686
10687
|
kind: "preferences_changed";
|
|
10688
|
+
sessionId: string;
|
|
10687
10689
|
data: {
|
|
10688
10690
|
source: "user" | "workflow_recommendation" | "system";
|
|
10689
10691
|
changeId: string;
|
|
@@ -10700,7 +10702,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10700
10702
|
};
|
|
10701
10703
|
};
|
|
10702
10704
|
v: 1;
|
|
10703
|
-
sessionId: string;
|
|
10704
10705
|
eventIndex: number;
|
|
10705
10706
|
eventId: string;
|
|
10706
10707
|
dedupeKey: string;
|
|
@@ -10710,6 +10711,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10710
10711
|
};
|
|
10711
10712
|
} | {
|
|
10712
10713
|
kind: "capability_observed";
|
|
10714
|
+
sessionId: string;
|
|
10713
10715
|
data: {
|
|
10714
10716
|
status: "unknown" | "available" | "unavailable";
|
|
10715
10717
|
capability: "delegation" | "web_browsing";
|
|
@@ -10740,7 +10742,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10740
10742
|
};
|
|
10741
10743
|
};
|
|
10742
10744
|
v: 1;
|
|
10743
|
-
sessionId: string;
|
|
10744
10745
|
eventIndex: number;
|
|
10745
10746
|
eventId: string;
|
|
10746
10747
|
dedupeKey: string;
|
|
@@ -10750,6 +10751,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10750
10751
|
};
|
|
10751
10752
|
} | {
|
|
10752
10753
|
kind: "gap_recorded";
|
|
10754
|
+
sessionId: string;
|
|
10753
10755
|
data: {
|
|
10754
10756
|
summary: string;
|
|
10755
10757
|
reason: {
|
|
@@ -10765,6 +10767,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10765
10767
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
10766
10768
|
category: "unexpected";
|
|
10767
10769
|
};
|
|
10770
|
+
severity: "critical" | "info" | "warning";
|
|
10768
10771
|
resolution: {
|
|
10769
10772
|
kind: "unresolved";
|
|
10770
10773
|
} | {
|
|
@@ -10772,7 +10775,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10772
10775
|
resolvesGapId: string;
|
|
10773
10776
|
};
|
|
10774
10777
|
gapId: string;
|
|
10775
|
-
severity: "info" | "warning" | "critical";
|
|
10776
10778
|
evidenceRefs?: ({
|
|
10777
10779
|
kind: "event";
|
|
10778
10780
|
eventId: string;
|
|
@@ -10782,7 +10784,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10782
10784
|
})[] | undefined;
|
|
10783
10785
|
};
|
|
10784
10786
|
v: 1;
|
|
10785
|
-
sessionId: string;
|
|
10786
10787
|
eventIndex: number;
|
|
10787
10788
|
eventId: string;
|
|
10788
10789
|
dedupeKey: string;
|
|
@@ -10792,13 +10793,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10792
10793
|
};
|
|
10793
10794
|
} | {
|
|
10794
10795
|
kind: "context_set";
|
|
10796
|
+
sessionId: string;
|
|
10795
10797
|
data: {
|
|
10796
10798
|
source: "initial" | "agent_delta";
|
|
10797
10799
|
contextId: string;
|
|
10798
10800
|
context?: unknown;
|
|
10799
10801
|
};
|
|
10800
10802
|
v: 1;
|
|
10801
|
-
sessionId: string;
|
|
10802
10803
|
eventIndex: number;
|
|
10803
10804
|
eventId: string;
|
|
10804
10805
|
dedupeKey: string;
|
|
@@ -10807,6 +10808,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10807
10808
|
};
|
|
10808
10809
|
} | {
|
|
10809
10810
|
kind: "divergence_recorded";
|
|
10811
|
+
sessionId: string;
|
|
10810
10812
|
data: {
|
|
10811
10813
|
summary: string;
|
|
10812
10814
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -10814,7 +10816,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10814
10816
|
relatedStepId?: string | undefined;
|
|
10815
10817
|
};
|
|
10816
10818
|
v: 1;
|
|
10817
|
-
sessionId: string;
|
|
10818
10819
|
eventIndex: number;
|
|
10819
10820
|
eventId: string;
|
|
10820
10821
|
dedupeKey: string;
|
|
@@ -10824,6 +10825,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10824
10825
|
};
|
|
10825
10826
|
} | {
|
|
10826
10827
|
kind: "decision_trace_appended";
|
|
10828
|
+
sessionId: string;
|
|
10827
10829
|
data: {
|
|
10828
10830
|
entries: {
|
|
10829
10831
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -10845,7 +10847,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10845
10847
|
traceId: string;
|
|
10846
10848
|
};
|
|
10847
10849
|
v: 1;
|
|
10848
|
-
sessionId: string;
|
|
10849
10850
|
eventIndex: number;
|
|
10850
10851
|
eventId: string;
|
|
10851
10852
|
dedupeKey: string;
|
|
@@ -10854,28 +10855,28 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
10854
10855
|
nodeId: string;
|
|
10855
10856
|
};
|
|
10856
10857
|
})[];
|
|
10857
|
-
sessionId: string;
|
|
10858
10858
|
manifest: ({
|
|
10859
10859
|
kind: "segment_closed";
|
|
10860
|
+
sessionId: string;
|
|
10860
10861
|
v: 1;
|
|
10861
10862
|
sha256: string;
|
|
10862
10863
|
manifestIndex: number;
|
|
10863
|
-
sessionId: string;
|
|
10864
10864
|
firstEventIndex: number;
|
|
10865
10865
|
lastEventIndex: number;
|
|
10866
10866
|
segmentRelPath: string;
|
|
10867
10867
|
bytes: number;
|
|
10868
10868
|
} | {
|
|
10869
10869
|
kind: "snapshot_pinned";
|
|
10870
|
+
sessionId: string;
|
|
10870
10871
|
v: 1;
|
|
10871
10872
|
manifestIndex: number;
|
|
10872
|
-
sessionId: string;
|
|
10873
10873
|
eventIndex: number;
|
|
10874
10874
|
snapshotRef: string;
|
|
10875
10875
|
createdByEventId: string;
|
|
10876
10876
|
})[];
|
|
10877
10877
|
pinnedWorkflows: Record<string, unknown>;
|
|
10878
10878
|
}, {
|
|
10879
|
+
sessionId: string;
|
|
10879
10880
|
snapshots: Record<string, {
|
|
10880
10881
|
kind: "execution_snapshot";
|
|
10881
10882
|
v: 1;
|
|
@@ -11034,11 +11035,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11034
11035
|
}>;
|
|
11035
11036
|
events: ({
|
|
11036
11037
|
kind: "session_created";
|
|
11038
|
+
sessionId: string;
|
|
11037
11039
|
data: {
|
|
11038
11040
|
parentSessionId?: string | undefined;
|
|
11039
11041
|
};
|
|
11040
11042
|
v: 1;
|
|
11041
|
-
sessionId: string;
|
|
11042
11043
|
eventIndex: number;
|
|
11043
11044
|
eventId: string;
|
|
11044
11045
|
dedupeKey: string;
|
|
@@ -11048,6 +11049,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11048
11049
|
} | undefined;
|
|
11049
11050
|
} | {
|
|
11050
11051
|
kind: "observation_recorded";
|
|
11052
|
+
sessionId: string;
|
|
11051
11053
|
data: {
|
|
11052
11054
|
value: {
|
|
11053
11055
|
type: "short_string";
|
|
@@ -11066,13 +11068,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11066
11068
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
11067
11069
|
};
|
|
11068
11070
|
v: 1;
|
|
11069
|
-
sessionId: string;
|
|
11070
11071
|
eventIndex: number;
|
|
11071
11072
|
eventId: string;
|
|
11072
11073
|
dedupeKey: string;
|
|
11073
11074
|
scope?: undefined;
|
|
11074
11075
|
} | {
|
|
11075
11076
|
kind: "run_started";
|
|
11077
|
+
sessionId: string;
|
|
11076
11078
|
data: {
|
|
11077
11079
|
workflowId: string;
|
|
11078
11080
|
workflowHash: string;
|
|
@@ -11080,7 +11082,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11080
11082
|
workflowSourceRef: string;
|
|
11081
11083
|
};
|
|
11082
11084
|
v: 1;
|
|
11083
|
-
sessionId: string;
|
|
11084
11085
|
eventIndex: number;
|
|
11085
11086
|
eventId: string;
|
|
11086
11087
|
dedupeKey: string;
|
|
@@ -11089,6 +11090,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11089
11090
|
};
|
|
11090
11091
|
} | {
|
|
11091
11092
|
kind: "node_created";
|
|
11093
|
+
sessionId: string;
|
|
11092
11094
|
data: {
|
|
11093
11095
|
snapshotRef: string;
|
|
11094
11096
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -11096,7 +11098,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11096
11098
|
workflowHash: string;
|
|
11097
11099
|
};
|
|
11098
11100
|
v: 1;
|
|
11099
|
-
sessionId: string;
|
|
11100
11101
|
eventIndex: number;
|
|
11101
11102
|
eventId: string;
|
|
11102
11103
|
dedupeKey: string;
|
|
@@ -11106,6 +11107,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11106
11107
|
};
|
|
11107
11108
|
} | {
|
|
11108
11109
|
kind: "edge_created";
|
|
11110
|
+
sessionId: string;
|
|
11109
11111
|
data: {
|
|
11110
11112
|
cause: {
|
|
11111
11113
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -11116,7 +11118,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11116
11118
|
toNodeId: string;
|
|
11117
11119
|
};
|
|
11118
11120
|
v: 1;
|
|
11119
|
-
sessionId: string;
|
|
11120
11121
|
eventIndex: number;
|
|
11121
11122
|
eventId: string;
|
|
11122
11123
|
dedupeKey: string;
|
|
@@ -11125,6 +11126,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11125
11126
|
};
|
|
11126
11127
|
} | {
|
|
11127
11128
|
kind: "advance_recorded";
|
|
11129
|
+
sessionId: string;
|
|
11128
11130
|
data: {
|
|
11129
11131
|
outcome: {
|
|
11130
11132
|
kind: "blocked";
|
|
@@ -11158,7 +11160,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11158
11160
|
intent: "ack_pending";
|
|
11159
11161
|
};
|
|
11160
11162
|
v: 1;
|
|
11161
|
-
sessionId: string;
|
|
11162
11163
|
eventIndex: number;
|
|
11163
11164
|
eventId: string;
|
|
11164
11165
|
dedupeKey: string;
|
|
@@ -11168,6 +11169,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11168
11169
|
};
|
|
11169
11170
|
} | {
|
|
11170
11171
|
kind: "validation_performed";
|
|
11172
|
+
sessionId: string;
|
|
11171
11173
|
data: {
|
|
11172
11174
|
contractRef: string;
|
|
11173
11175
|
result: {
|
|
@@ -11179,7 +11181,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11179
11181
|
attemptId: string;
|
|
11180
11182
|
};
|
|
11181
11183
|
v: 1;
|
|
11182
|
-
sessionId: string;
|
|
11183
11184
|
eventIndex: number;
|
|
11184
11185
|
eventId: string;
|
|
11185
11186
|
dedupeKey: string;
|
|
@@ -11189,9 +11190,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11189
11190
|
};
|
|
11190
11191
|
} | {
|
|
11191
11192
|
kind: "node_output_appended";
|
|
11193
|
+
sessionId: string;
|
|
11192
11194
|
data: {
|
|
11193
|
-
outputId: string;
|
|
11194
|
-
outputChannel: "recap" | "artifact";
|
|
11195
11195
|
payload: {
|
|
11196
11196
|
payloadKind: "notes";
|
|
11197
11197
|
notesMarkdown: string;
|
|
@@ -11202,10 +11202,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11202
11202
|
byteLength: number;
|
|
11203
11203
|
content?: unknown;
|
|
11204
11204
|
};
|
|
11205
|
+
outputId: string;
|
|
11206
|
+
outputChannel: "recap" | "artifact";
|
|
11205
11207
|
supersedesOutputId?: string | undefined;
|
|
11206
11208
|
};
|
|
11207
11209
|
v: 1;
|
|
11208
|
-
sessionId: string;
|
|
11209
11210
|
eventIndex: number;
|
|
11210
11211
|
eventId: string;
|
|
11211
11212
|
dedupeKey: string;
|
|
@@ -11215,6 +11216,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11215
11216
|
};
|
|
11216
11217
|
} | {
|
|
11217
11218
|
kind: "assessment_recorded";
|
|
11219
|
+
sessionId: string;
|
|
11218
11220
|
data: {
|
|
11219
11221
|
assessmentId: string;
|
|
11220
11222
|
dimensions: readonly {
|
|
@@ -11229,7 +11231,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11229
11231
|
summary?: string | undefined;
|
|
11230
11232
|
};
|
|
11231
11233
|
v: 1;
|
|
11232
|
-
sessionId: string;
|
|
11233
11234
|
eventIndex: number;
|
|
11234
11235
|
eventId: string;
|
|
11235
11236
|
dedupeKey: string;
|
|
@@ -11239,6 +11240,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11239
11240
|
};
|
|
11240
11241
|
} | {
|
|
11241
11242
|
kind: "assessment_consequence_applied";
|
|
11243
|
+
sessionId: string;
|
|
11242
11244
|
data: {
|
|
11243
11245
|
assessmentId: string;
|
|
11244
11246
|
effect: {
|
|
@@ -11252,7 +11254,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11252
11254
|
};
|
|
11253
11255
|
};
|
|
11254
11256
|
v: 1;
|
|
11255
|
-
sessionId: string;
|
|
11256
11257
|
eventIndex: number;
|
|
11257
11258
|
eventId: string;
|
|
11258
11259
|
dedupeKey: string;
|
|
@@ -11262,6 +11263,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11262
11263
|
};
|
|
11263
11264
|
} | {
|
|
11264
11265
|
kind: "preferences_changed";
|
|
11266
|
+
sessionId: string;
|
|
11265
11267
|
data: {
|
|
11266
11268
|
source: "user" | "workflow_recommendation" | "system";
|
|
11267
11269
|
changeId: string;
|
|
@@ -11278,7 +11280,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11278
11280
|
};
|
|
11279
11281
|
};
|
|
11280
11282
|
v: 1;
|
|
11281
|
-
sessionId: string;
|
|
11282
11283
|
eventIndex: number;
|
|
11283
11284
|
eventId: string;
|
|
11284
11285
|
dedupeKey: string;
|
|
@@ -11288,6 +11289,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11288
11289
|
};
|
|
11289
11290
|
} | {
|
|
11290
11291
|
kind: "capability_observed";
|
|
11292
|
+
sessionId: string;
|
|
11291
11293
|
data: {
|
|
11292
11294
|
status: "unknown" | "available" | "unavailable";
|
|
11293
11295
|
capability: "delegation" | "web_browsing";
|
|
@@ -11318,7 +11320,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11318
11320
|
};
|
|
11319
11321
|
};
|
|
11320
11322
|
v: 1;
|
|
11321
|
-
sessionId: string;
|
|
11322
11323
|
eventIndex: number;
|
|
11323
11324
|
eventId: string;
|
|
11324
11325
|
dedupeKey: string;
|
|
@@ -11328,6 +11329,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11328
11329
|
};
|
|
11329
11330
|
} | {
|
|
11330
11331
|
kind: "gap_recorded";
|
|
11332
|
+
sessionId: string;
|
|
11331
11333
|
data: {
|
|
11332
11334
|
summary: string;
|
|
11333
11335
|
reason: {
|
|
@@ -11343,6 +11345,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11343
11345
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
11344
11346
|
category: "unexpected";
|
|
11345
11347
|
};
|
|
11348
|
+
severity: "critical" | "info" | "warning";
|
|
11346
11349
|
resolution: {
|
|
11347
11350
|
kind: "unresolved";
|
|
11348
11351
|
} | {
|
|
@@ -11350,7 +11353,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11350
11353
|
resolvesGapId: string;
|
|
11351
11354
|
};
|
|
11352
11355
|
gapId: string;
|
|
11353
|
-
severity: "info" | "warning" | "critical";
|
|
11354
11356
|
evidenceRefs?: ({
|
|
11355
11357
|
kind: "event";
|
|
11356
11358
|
eventId: string;
|
|
@@ -11360,7 +11362,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11360
11362
|
})[] | undefined;
|
|
11361
11363
|
};
|
|
11362
11364
|
v: 1;
|
|
11363
|
-
sessionId: string;
|
|
11364
11365
|
eventIndex: number;
|
|
11365
11366
|
eventId: string;
|
|
11366
11367
|
dedupeKey: string;
|
|
@@ -11370,13 +11371,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11370
11371
|
};
|
|
11371
11372
|
} | {
|
|
11372
11373
|
kind: "context_set";
|
|
11374
|
+
sessionId: string;
|
|
11373
11375
|
data: {
|
|
11374
11376
|
source: "initial" | "agent_delta";
|
|
11375
11377
|
contextId: string;
|
|
11376
11378
|
context?: unknown;
|
|
11377
11379
|
};
|
|
11378
11380
|
v: 1;
|
|
11379
|
-
sessionId: string;
|
|
11380
11381
|
eventIndex: number;
|
|
11381
11382
|
eventId: string;
|
|
11382
11383
|
dedupeKey: string;
|
|
@@ -11385,6 +11386,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11385
11386
|
};
|
|
11386
11387
|
} | {
|
|
11387
11388
|
kind: "divergence_recorded";
|
|
11389
|
+
sessionId: string;
|
|
11388
11390
|
data: {
|
|
11389
11391
|
summary: string;
|
|
11390
11392
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -11392,7 +11394,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11392
11394
|
relatedStepId?: string | undefined;
|
|
11393
11395
|
};
|
|
11394
11396
|
v: 1;
|
|
11395
|
-
sessionId: string;
|
|
11396
11397
|
eventIndex: number;
|
|
11397
11398
|
eventId: string;
|
|
11398
11399
|
dedupeKey: string;
|
|
@@ -11402,6 +11403,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11402
11403
|
};
|
|
11403
11404
|
} | {
|
|
11404
11405
|
kind: "decision_trace_appended";
|
|
11406
|
+
sessionId: string;
|
|
11405
11407
|
data: {
|
|
11406
11408
|
entries: {
|
|
11407
11409
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -11423,7 +11425,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11423
11425
|
traceId: string;
|
|
11424
11426
|
};
|
|
11425
11427
|
v: 1;
|
|
11426
|
-
sessionId: string;
|
|
11427
11428
|
eventIndex: number;
|
|
11428
11429
|
eventId: string;
|
|
11429
11430
|
dedupeKey: string;
|
|
@@ -11432,22 +11433,21 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11432
11433
|
nodeId: string;
|
|
11433
11434
|
};
|
|
11434
11435
|
})[];
|
|
11435
|
-
sessionId: string;
|
|
11436
11436
|
manifest: ({
|
|
11437
11437
|
kind: "segment_closed";
|
|
11438
|
+
sessionId: string;
|
|
11438
11439
|
v: 1;
|
|
11439
11440
|
sha256: string;
|
|
11440
11441
|
manifestIndex: number;
|
|
11441
|
-
sessionId: string;
|
|
11442
11442
|
firstEventIndex: number;
|
|
11443
11443
|
lastEventIndex: number;
|
|
11444
11444
|
segmentRelPath: string;
|
|
11445
11445
|
bytes: number;
|
|
11446
11446
|
} | {
|
|
11447
11447
|
kind: "snapshot_pinned";
|
|
11448
|
+
sessionId: string;
|
|
11448
11449
|
v: 1;
|
|
11449
11450
|
manifestIndex: number;
|
|
11450
|
-
sessionId: string;
|
|
11451
11451
|
eventIndex: number;
|
|
11452
11452
|
snapshotRef: string;
|
|
11453
11453
|
createdByEventId: string;
|
|
@@ -11471,6 +11471,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11471
11471
|
kind: "sha256_manifest_v1";
|
|
11472
11472
|
};
|
|
11473
11473
|
session: {
|
|
11474
|
+
sessionId: string;
|
|
11474
11475
|
snapshots: Record<string, {
|
|
11475
11476
|
kind: "execution_snapshot";
|
|
11476
11477
|
v: 1;
|
|
@@ -11641,11 +11642,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11641
11642
|
}>;
|
|
11642
11643
|
events: ({
|
|
11643
11644
|
kind: "session_created";
|
|
11645
|
+
sessionId: string;
|
|
11644
11646
|
data: {
|
|
11645
11647
|
parentSessionId?: string | undefined;
|
|
11646
11648
|
};
|
|
11647
11649
|
v: 1;
|
|
11648
|
-
sessionId: string;
|
|
11649
11650
|
eventIndex: number;
|
|
11650
11651
|
eventId: string;
|
|
11651
11652
|
dedupeKey: string;
|
|
@@ -11655,6 +11656,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11655
11656
|
} | undefined;
|
|
11656
11657
|
} | {
|
|
11657
11658
|
kind: "observation_recorded";
|
|
11659
|
+
sessionId: string;
|
|
11658
11660
|
data: {
|
|
11659
11661
|
value: {
|
|
11660
11662
|
type: "short_string";
|
|
@@ -11673,13 +11675,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11673
11675
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
11674
11676
|
};
|
|
11675
11677
|
v: 1;
|
|
11676
|
-
sessionId: string;
|
|
11677
11678
|
eventIndex: number;
|
|
11678
11679
|
eventId: string;
|
|
11679
11680
|
dedupeKey: string;
|
|
11680
11681
|
scope?: undefined;
|
|
11681
11682
|
} | {
|
|
11682
11683
|
kind: "run_started";
|
|
11684
|
+
sessionId: string;
|
|
11683
11685
|
data: {
|
|
11684
11686
|
workflowId: string;
|
|
11685
11687
|
workflowHash: never;
|
|
@@ -11687,7 +11689,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11687
11689
|
workflowSourceRef: string;
|
|
11688
11690
|
};
|
|
11689
11691
|
v: 1;
|
|
11690
|
-
sessionId: string;
|
|
11691
11692
|
eventIndex: number;
|
|
11692
11693
|
eventId: string;
|
|
11693
11694
|
dedupeKey: string;
|
|
@@ -11696,6 +11697,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11696
11697
|
};
|
|
11697
11698
|
} | {
|
|
11698
11699
|
kind: "node_created";
|
|
11700
|
+
sessionId: string;
|
|
11699
11701
|
data: {
|
|
11700
11702
|
snapshotRef: never;
|
|
11701
11703
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -11703,7 +11705,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11703
11705
|
workflowHash: never;
|
|
11704
11706
|
};
|
|
11705
11707
|
v: 1;
|
|
11706
|
-
sessionId: string;
|
|
11707
11708
|
eventIndex: number;
|
|
11708
11709
|
eventId: string;
|
|
11709
11710
|
dedupeKey: string;
|
|
@@ -11713,6 +11714,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11713
11714
|
};
|
|
11714
11715
|
} | {
|
|
11715
11716
|
kind: "edge_created";
|
|
11717
|
+
sessionId: string;
|
|
11716
11718
|
data: {
|
|
11717
11719
|
cause: {
|
|
11718
11720
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -11723,7 +11725,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11723
11725
|
toNodeId: string;
|
|
11724
11726
|
};
|
|
11725
11727
|
v: 1;
|
|
11726
|
-
sessionId: string;
|
|
11727
11728
|
eventIndex: number;
|
|
11728
11729
|
eventId: string;
|
|
11729
11730
|
dedupeKey: string;
|
|
@@ -11732,6 +11733,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11732
11733
|
};
|
|
11733
11734
|
} | {
|
|
11734
11735
|
kind: "advance_recorded";
|
|
11736
|
+
sessionId: string;
|
|
11735
11737
|
data: {
|
|
11736
11738
|
outcome: {
|
|
11737
11739
|
kind: "blocked";
|
|
@@ -11765,7 +11767,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11765
11767
|
intent: "ack_pending";
|
|
11766
11768
|
};
|
|
11767
11769
|
v: 1;
|
|
11768
|
-
sessionId: string;
|
|
11769
11770
|
eventIndex: number;
|
|
11770
11771
|
eventId: string;
|
|
11771
11772
|
dedupeKey: string;
|
|
@@ -11775,6 +11776,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11775
11776
|
};
|
|
11776
11777
|
} | {
|
|
11777
11778
|
kind: "validation_performed";
|
|
11779
|
+
sessionId: string;
|
|
11778
11780
|
data: {
|
|
11779
11781
|
contractRef: string;
|
|
11780
11782
|
result: {
|
|
@@ -11786,7 +11788,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11786
11788
|
attemptId: string;
|
|
11787
11789
|
};
|
|
11788
11790
|
v: 1;
|
|
11789
|
-
sessionId: string;
|
|
11790
11791
|
eventIndex: number;
|
|
11791
11792
|
eventId: string;
|
|
11792
11793
|
dedupeKey: string;
|
|
@@ -11796,9 +11797,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11796
11797
|
};
|
|
11797
11798
|
} | {
|
|
11798
11799
|
kind: "node_output_appended";
|
|
11800
|
+
sessionId: string;
|
|
11799
11801
|
data: {
|
|
11800
|
-
outputId: string;
|
|
11801
|
-
outputChannel: "recap" | "artifact";
|
|
11802
11802
|
payload: {
|
|
11803
11803
|
payloadKind: "notes";
|
|
11804
11804
|
notesMarkdown: string;
|
|
@@ -11809,10 +11809,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11809
11809
|
byteLength: number;
|
|
11810
11810
|
content?: unknown;
|
|
11811
11811
|
};
|
|
11812
|
+
outputId: string;
|
|
11813
|
+
outputChannel: "recap" | "artifact";
|
|
11812
11814
|
supersedesOutputId?: string | undefined;
|
|
11813
11815
|
};
|
|
11814
11816
|
v: 1;
|
|
11815
|
-
sessionId: string;
|
|
11816
11817
|
eventIndex: number;
|
|
11817
11818
|
eventId: string;
|
|
11818
11819
|
dedupeKey: string;
|
|
@@ -11822,6 +11823,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11822
11823
|
};
|
|
11823
11824
|
} | {
|
|
11824
11825
|
kind: "assessment_recorded";
|
|
11826
|
+
sessionId: string;
|
|
11825
11827
|
data: {
|
|
11826
11828
|
assessmentId: string;
|
|
11827
11829
|
dimensions: readonly {
|
|
@@ -11836,7 +11838,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11836
11838
|
summary?: string | undefined;
|
|
11837
11839
|
};
|
|
11838
11840
|
v: 1;
|
|
11839
|
-
sessionId: string;
|
|
11840
11841
|
eventIndex: number;
|
|
11841
11842
|
eventId: string;
|
|
11842
11843
|
dedupeKey: string;
|
|
@@ -11846,6 +11847,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11846
11847
|
};
|
|
11847
11848
|
} | {
|
|
11848
11849
|
kind: "assessment_consequence_applied";
|
|
11850
|
+
sessionId: string;
|
|
11849
11851
|
data: {
|
|
11850
11852
|
assessmentId: string;
|
|
11851
11853
|
effect: {
|
|
@@ -11859,7 +11861,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11859
11861
|
};
|
|
11860
11862
|
};
|
|
11861
11863
|
v: 1;
|
|
11862
|
-
sessionId: string;
|
|
11863
11864
|
eventIndex: number;
|
|
11864
11865
|
eventId: string;
|
|
11865
11866
|
dedupeKey: string;
|
|
@@ -11869,6 +11870,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11869
11870
|
};
|
|
11870
11871
|
} | {
|
|
11871
11872
|
kind: "preferences_changed";
|
|
11873
|
+
sessionId: string;
|
|
11872
11874
|
data: {
|
|
11873
11875
|
source: "user" | "workflow_recommendation" | "system";
|
|
11874
11876
|
changeId: string;
|
|
@@ -11885,7 +11887,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11885
11887
|
};
|
|
11886
11888
|
};
|
|
11887
11889
|
v: 1;
|
|
11888
|
-
sessionId: string;
|
|
11889
11890
|
eventIndex: number;
|
|
11890
11891
|
eventId: string;
|
|
11891
11892
|
dedupeKey: string;
|
|
@@ -11895,6 +11896,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11895
11896
|
};
|
|
11896
11897
|
} | {
|
|
11897
11898
|
kind: "capability_observed";
|
|
11899
|
+
sessionId: string;
|
|
11898
11900
|
data: {
|
|
11899
11901
|
status: "unknown" | "available" | "unavailable";
|
|
11900
11902
|
capability: "delegation" | "web_browsing";
|
|
@@ -11925,7 +11927,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11925
11927
|
};
|
|
11926
11928
|
};
|
|
11927
11929
|
v: 1;
|
|
11928
|
-
sessionId: string;
|
|
11929
11930
|
eventIndex: number;
|
|
11930
11931
|
eventId: string;
|
|
11931
11932
|
dedupeKey: string;
|
|
@@ -11935,6 +11936,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11935
11936
|
};
|
|
11936
11937
|
} | {
|
|
11937
11938
|
kind: "gap_recorded";
|
|
11939
|
+
sessionId: string;
|
|
11938
11940
|
data: {
|
|
11939
11941
|
summary: string;
|
|
11940
11942
|
reason: {
|
|
@@ -11950,6 +11952,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11950
11952
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
11951
11953
|
category: "unexpected";
|
|
11952
11954
|
};
|
|
11955
|
+
severity: "critical" | "info" | "warning";
|
|
11953
11956
|
resolution: {
|
|
11954
11957
|
kind: "unresolved";
|
|
11955
11958
|
} | {
|
|
@@ -11957,7 +11960,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11957
11960
|
resolvesGapId: string;
|
|
11958
11961
|
};
|
|
11959
11962
|
gapId: string;
|
|
11960
|
-
severity: "info" | "warning" | "critical";
|
|
11961
11963
|
evidenceRefs?: ({
|
|
11962
11964
|
kind: "event";
|
|
11963
11965
|
eventId: string;
|
|
@@ -11967,7 +11969,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11967
11969
|
})[] | undefined;
|
|
11968
11970
|
};
|
|
11969
11971
|
v: 1;
|
|
11970
|
-
sessionId: string;
|
|
11971
11972
|
eventIndex: number;
|
|
11972
11973
|
eventId: string;
|
|
11973
11974
|
dedupeKey: string;
|
|
@@ -11977,13 +11978,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11977
11978
|
};
|
|
11978
11979
|
} | {
|
|
11979
11980
|
kind: "context_set";
|
|
11981
|
+
sessionId: string;
|
|
11980
11982
|
data: {
|
|
11981
11983
|
source: "initial" | "agent_delta";
|
|
11982
11984
|
contextId: string;
|
|
11983
11985
|
context?: unknown;
|
|
11984
11986
|
};
|
|
11985
11987
|
v: 1;
|
|
11986
|
-
sessionId: string;
|
|
11987
11988
|
eventIndex: number;
|
|
11988
11989
|
eventId: string;
|
|
11989
11990
|
dedupeKey: string;
|
|
@@ -11992,6 +11993,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11992
11993
|
};
|
|
11993
11994
|
} | {
|
|
11994
11995
|
kind: "divergence_recorded";
|
|
11996
|
+
sessionId: string;
|
|
11995
11997
|
data: {
|
|
11996
11998
|
summary: string;
|
|
11997
11999
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -11999,7 +12001,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
11999
12001
|
relatedStepId?: string | undefined;
|
|
12000
12002
|
};
|
|
12001
12003
|
v: 1;
|
|
12002
|
-
sessionId: string;
|
|
12003
12004
|
eventIndex: number;
|
|
12004
12005
|
eventId: string;
|
|
12005
12006
|
dedupeKey: string;
|
|
@@ -12009,6 +12010,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12009
12010
|
};
|
|
12010
12011
|
} | {
|
|
12011
12012
|
kind: "decision_trace_appended";
|
|
12013
|
+
sessionId: string;
|
|
12012
12014
|
data: {
|
|
12013
12015
|
entries: {
|
|
12014
12016
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -12030,7 +12032,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12030
12032
|
traceId: string;
|
|
12031
12033
|
};
|
|
12032
12034
|
v: 1;
|
|
12033
|
-
sessionId: string;
|
|
12034
12035
|
eventIndex: number;
|
|
12035
12036
|
eventId: string;
|
|
12036
12037
|
dedupeKey: string;
|
|
@@ -12039,22 +12040,21 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12039
12040
|
nodeId: string;
|
|
12040
12041
|
};
|
|
12041
12042
|
})[];
|
|
12042
|
-
sessionId: string;
|
|
12043
12043
|
manifest: ({
|
|
12044
12044
|
kind: "segment_closed";
|
|
12045
|
+
sessionId: string;
|
|
12045
12046
|
v: 1;
|
|
12046
12047
|
sha256: string;
|
|
12047
12048
|
manifestIndex: number;
|
|
12048
|
-
sessionId: string;
|
|
12049
12049
|
firstEventIndex: number;
|
|
12050
12050
|
lastEventIndex: number;
|
|
12051
12051
|
segmentRelPath: string;
|
|
12052
12052
|
bytes: number;
|
|
12053
12053
|
} | {
|
|
12054
12054
|
kind: "snapshot_pinned";
|
|
12055
|
+
sessionId: string;
|
|
12055
12056
|
v: 1;
|
|
12056
12057
|
manifestIndex: number;
|
|
12057
|
-
sessionId: string;
|
|
12058
12058
|
eventIndex: number;
|
|
12059
12059
|
snapshotRef: string;
|
|
12060
12060
|
createdByEventId: string;
|
|
@@ -12078,6 +12078,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12078
12078
|
kind: "sha256_manifest_v1";
|
|
12079
12079
|
};
|
|
12080
12080
|
session: {
|
|
12081
|
+
sessionId: string;
|
|
12081
12082
|
snapshots: Record<string, {
|
|
12082
12083
|
kind: "execution_snapshot";
|
|
12083
12084
|
v: 1;
|
|
@@ -12236,11 +12237,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12236
12237
|
}>;
|
|
12237
12238
|
events: ({
|
|
12238
12239
|
kind: "session_created";
|
|
12240
|
+
sessionId: string;
|
|
12239
12241
|
data: {
|
|
12240
12242
|
parentSessionId?: string | undefined;
|
|
12241
12243
|
};
|
|
12242
12244
|
v: 1;
|
|
12243
|
-
sessionId: string;
|
|
12244
12245
|
eventIndex: number;
|
|
12245
12246
|
eventId: string;
|
|
12246
12247
|
dedupeKey: string;
|
|
@@ -12250,6 +12251,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12250
12251
|
} | undefined;
|
|
12251
12252
|
} | {
|
|
12252
12253
|
kind: "observation_recorded";
|
|
12254
|
+
sessionId: string;
|
|
12253
12255
|
data: {
|
|
12254
12256
|
value: {
|
|
12255
12257
|
type: "short_string";
|
|
@@ -12268,13 +12270,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12268
12270
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
12269
12271
|
};
|
|
12270
12272
|
v: 1;
|
|
12271
|
-
sessionId: string;
|
|
12272
12273
|
eventIndex: number;
|
|
12273
12274
|
eventId: string;
|
|
12274
12275
|
dedupeKey: string;
|
|
12275
12276
|
scope?: undefined;
|
|
12276
12277
|
} | {
|
|
12277
12278
|
kind: "run_started";
|
|
12279
|
+
sessionId: string;
|
|
12278
12280
|
data: {
|
|
12279
12281
|
workflowId: string;
|
|
12280
12282
|
workflowHash: string;
|
|
@@ -12282,7 +12284,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12282
12284
|
workflowSourceRef: string;
|
|
12283
12285
|
};
|
|
12284
12286
|
v: 1;
|
|
12285
|
-
sessionId: string;
|
|
12286
12287
|
eventIndex: number;
|
|
12287
12288
|
eventId: string;
|
|
12288
12289
|
dedupeKey: string;
|
|
@@ -12291,6 +12292,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12291
12292
|
};
|
|
12292
12293
|
} | {
|
|
12293
12294
|
kind: "node_created";
|
|
12295
|
+
sessionId: string;
|
|
12294
12296
|
data: {
|
|
12295
12297
|
snapshotRef: string;
|
|
12296
12298
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
@@ -12298,7 +12300,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12298
12300
|
workflowHash: string;
|
|
12299
12301
|
};
|
|
12300
12302
|
v: 1;
|
|
12301
|
-
sessionId: string;
|
|
12302
12303
|
eventIndex: number;
|
|
12303
12304
|
eventId: string;
|
|
12304
12305
|
dedupeKey: string;
|
|
@@ -12308,6 +12309,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12308
12309
|
};
|
|
12309
12310
|
} | {
|
|
12310
12311
|
kind: "edge_created";
|
|
12312
|
+
sessionId: string;
|
|
12311
12313
|
data: {
|
|
12312
12314
|
cause: {
|
|
12313
12315
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
@@ -12318,7 +12320,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12318
12320
|
toNodeId: string;
|
|
12319
12321
|
};
|
|
12320
12322
|
v: 1;
|
|
12321
|
-
sessionId: string;
|
|
12322
12323
|
eventIndex: number;
|
|
12323
12324
|
eventId: string;
|
|
12324
12325
|
dedupeKey: string;
|
|
@@ -12327,6 +12328,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12327
12328
|
};
|
|
12328
12329
|
} | {
|
|
12329
12330
|
kind: "advance_recorded";
|
|
12331
|
+
sessionId: string;
|
|
12330
12332
|
data: {
|
|
12331
12333
|
outcome: {
|
|
12332
12334
|
kind: "blocked";
|
|
@@ -12360,7 +12362,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12360
12362
|
intent: "ack_pending";
|
|
12361
12363
|
};
|
|
12362
12364
|
v: 1;
|
|
12363
|
-
sessionId: string;
|
|
12364
12365
|
eventIndex: number;
|
|
12365
12366
|
eventId: string;
|
|
12366
12367
|
dedupeKey: string;
|
|
@@ -12370,6 +12371,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12370
12371
|
};
|
|
12371
12372
|
} | {
|
|
12372
12373
|
kind: "validation_performed";
|
|
12374
|
+
sessionId: string;
|
|
12373
12375
|
data: {
|
|
12374
12376
|
contractRef: string;
|
|
12375
12377
|
result: {
|
|
@@ -12381,7 +12383,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12381
12383
|
attemptId: string;
|
|
12382
12384
|
};
|
|
12383
12385
|
v: 1;
|
|
12384
|
-
sessionId: string;
|
|
12385
12386
|
eventIndex: number;
|
|
12386
12387
|
eventId: string;
|
|
12387
12388
|
dedupeKey: string;
|
|
@@ -12391,9 +12392,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12391
12392
|
};
|
|
12392
12393
|
} | {
|
|
12393
12394
|
kind: "node_output_appended";
|
|
12395
|
+
sessionId: string;
|
|
12394
12396
|
data: {
|
|
12395
|
-
outputId: string;
|
|
12396
|
-
outputChannel: "recap" | "artifact";
|
|
12397
12397
|
payload: {
|
|
12398
12398
|
payloadKind: "notes";
|
|
12399
12399
|
notesMarkdown: string;
|
|
@@ -12404,10 +12404,11 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12404
12404
|
byteLength: number;
|
|
12405
12405
|
content?: unknown;
|
|
12406
12406
|
};
|
|
12407
|
+
outputId: string;
|
|
12408
|
+
outputChannel: "recap" | "artifact";
|
|
12407
12409
|
supersedesOutputId?: string | undefined;
|
|
12408
12410
|
};
|
|
12409
12411
|
v: 1;
|
|
12410
|
-
sessionId: string;
|
|
12411
12412
|
eventIndex: number;
|
|
12412
12413
|
eventId: string;
|
|
12413
12414
|
dedupeKey: string;
|
|
@@ -12417,6 +12418,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12417
12418
|
};
|
|
12418
12419
|
} | {
|
|
12419
12420
|
kind: "assessment_recorded";
|
|
12421
|
+
sessionId: string;
|
|
12420
12422
|
data: {
|
|
12421
12423
|
assessmentId: string;
|
|
12422
12424
|
dimensions: readonly {
|
|
@@ -12431,7 +12433,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12431
12433
|
summary?: string | undefined;
|
|
12432
12434
|
};
|
|
12433
12435
|
v: 1;
|
|
12434
|
-
sessionId: string;
|
|
12435
12436
|
eventIndex: number;
|
|
12436
12437
|
eventId: string;
|
|
12437
12438
|
dedupeKey: string;
|
|
@@ -12441,6 +12442,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12441
12442
|
};
|
|
12442
12443
|
} | {
|
|
12443
12444
|
kind: "assessment_consequence_applied";
|
|
12445
|
+
sessionId: string;
|
|
12444
12446
|
data: {
|
|
12445
12447
|
assessmentId: string;
|
|
12446
12448
|
effect: {
|
|
@@ -12454,7 +12456,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12454
12456
|
};
|
|
12455
12457
|
};
|
|
12456
12458
|
v: 1;
|
|
12457
|
-
sessionId: string;
|
|
12458
12459
|
eventIndex: number;
|
|
12459
12460
|
eventId: string;
|
|
12460
12461
|
dedupeKey: string;
|
|
@@ -12464,6 +12465,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12464
12465
|
};
|
|
12465
12466
|
} | {
|
|
12466
12467
|
kind: "preferences_changed";
|
|
12468
|
+
sessionId: string;
|
|
12467
12469
|
data: {
|
|
12468
12470
|
source: "user" | "workflow_recommendation" | "system";
|
|
12469
12471
|
changeId: string;
|
|
@@ -12480,7 +12482,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12480
12482
|
};
|
|
12481
12483
|
};
|
|
12482
12484
|
v: 1;
|
|
12483
|
-
sessionId: string;
|
|
12484
12485
|
eventIndex: number;
|
|
12485
12486
|
eventId: string;
|
|
12486
12487
|
dedupeKey: string;
|
|
@@ -12490,6 +12491,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12490
12491
|
};
|
|
12491
12492
|
} | {
|
|
12492
12493
|
kind: "capability_observed";
|
|
12494
|
+
sessionId: string;
|
|
12493
12495
|
data: {
|
|
12494
12496
|
status: "unknown" | "available" | "unavailable";
|
|
12495
12497
|
capability: "delegation" | "web_browsing";
|
|
@@ -12520,7 +12522,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12520
12522
|
};
|
|
12521
12523
|
};
|
|
12522
12524
|
v: 1;
|
|
12523
|
-
sessionId: string;
|
|
12524
12525
|
eventIndex: number;
|
|
12525
12526
|
eventId: string;
|
|
12526
12527
|
dedupeKey: string;
|
|
@@ -12530,6 +12531,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12530
12531
|
};
|
|
12531
12532
|
} | {
|
|
12532
12533
|
kind: "gap_recorded";
|
|
12534
|
+
sessionId: string;
|
|
12533
12535
|
data: {
|
|
12534
12536
|
summary: string;
|
|
12535
12537
|
reason: {
|
|
@@ -12545,6 +12547,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12545
12547
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
12546
12548
|
category: "unexpected";
|
|
12547
12549
|
};
|
|
12550
|
+
severity: "critical" | "info" | "warning";
|
|
12548
12551
|
resolution: {
|
|
12549
12552
|
kind: "unresolved";
|
|
12550
12553
|
} | {
|
|
@@ -12552,7 +12555,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12552
12555
|
resolvesGapId: string;
|
|
12553
12556
|
};
|
|
12554
12557
|
gapId: string;
|
|
12555
|
-
severity: "info" | "warning" | "critical";
|
|
12556
12558
|
evidenceRefs?: ({
|
|
12557
12559
|
kind: "event";
|
|
12558
12560
|
eventId: string;
|
|
@@ -12562,7 +12564,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12562
12564
|
})[] | undefined;
|
|
12563
12565
|
};
|
|
12564
12566
|
v: 1;
|
|
12565
|
-
sessionId: string;
|
|
12566
12567
|
eventIndex: number;
|
|
12567
12568
|
eventId: string;
|
|
12568
12569
|
dedupeKey: string;
|
|
@@ -12572,13 +12573,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12572
12573
|
};
|
|
12573
12574
|
} | {
|
|
12574
12575
|
kind: "context_set";
|
|
12576
|
+
sessionId: string;
|
|
12575
12577
|
data: {
|
|
12576
12578
|
source: "initial" | "agent_delta";
|
|
12577
12579
|
contextId: string;
|
|
12578
12580
|
context?: unknown;
|
|
12579
12581
|
};
|
|
12580
12582
|
v: 1;
|
|
12581
|
-
sessionId: string;
|
|
12582
12583
|
eventIndex: number;
|
|
12583
12584
|
eventId: string;
|
|
12584
12585
|
dedupeKey: string;
|
|
@@ -12587,6 +12588,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12587
12588
|
};
|
|
12588
12589
|
} | {
|
|
12589
12590
|
kind: "divergence_recorded";
|
|
12591
|
+
sessionId: string;
|
|
12590
12592
|
data: {
|
|
12591
12593
|
summary: string;
|
|
12592
12594
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
@@ -12594,7 +12596,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12594
12596
|
relatedStepId?: string | undefined;
|
|
12595
12597
|
};
|
|
12596
12598
|
v: 1;
|
|
12597
|
-
sessionId: string;
|
|
12598
12599
|
eventIndex: number;
|
|
12599
12600
|
eventId: string;
|
|
12600
12601
|
dedupeKey: string;
|
|
@@ -12604,6 +12605,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12604
12605
|
};
|
|
12605
12606
|
} | {
|
|
12606
12607
|
kind: "decision_trace_appended";
|
|
12608
|
+
sessionId: string;
|
|
12607
12609
|
data: {
|
|
12608
12610
|
entries: {
|
|
12609
12611
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -12625,7 +12627,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12625
12627
|
traceId: string;
|
|
12626
12628
|
};
|
|
12627
12629
|
v: 1;
|
|
12628
|
-
sessionId: string;
|
|
12629
12630
|
eventIndex: number;
|
|
12630
12631
|
eventId: string;
|
|
12631
12632
|
dedupeKey: string;
|
|
@@ -12634,22 +12635,21 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
12634
12635
|
nodeId: string;
|
|
12635
12636
|
};
|
|
12636
12637
|
})[];
|
|
12637
|
-
sessionId: string;
|
|
12638
12638
|
manifest: ({
|
|
12639
12639
|
kind: "segment_closed";
|
|
12640
|
+
sessionId: string;
|
|
12640
12641
|
v: 1;
|
|
12641
12642
|
sha256: string;
|
|
12642
12643
|
manifestIndex: number;
|
|
12643
|
-
sessionId: string;
|
|
12644
12644
|
firstEventIndex: number;
|
|
12645
12645
|
lastEventIndex: number;
|
|
12646
12646
|
segmentRelPath: string;
|
|
12647
12647
|
bytes: number;
|
|
12648
12648
|
} | {
|
|
12649
12649
|
kind: "snapshot_pinned";
|
|
12650
|
+
sessionId: string;
|
|
12650
12651
|
v: 1;
|
|
12651
12652
|
manifestIndex: number;
|
|
12652
|
-
sessionId: string;
|
|
12653
12653
|
eventIndex: number;
|
|
12654
12654
|
snapshotRef: string;
|
|
12655
12655
|
createdByEventId: string;
|