@exaudeus/workrail 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/application/services/workflow-compiler.js +14 -2
  2. package/dist/infrastructure/session/HttpServer.js +7 -2
  3. package/dist/infrastructure/session/SessionManager.d.ts +12 -4
  4. package/dist/infrastructure/session/SessionManager.js +30 -15
  5. package/dist/manifest.json +74 -74
  6. package/dist/mcp/error-mapper.d.ts +1 -1
  7. package/dist/mcp/error-mapper.js +12 -8
  8. package/dist/mcp/handler-factory.js +8 -1
  9. package/dist/mcp/handlers/session.js +36 -58
  10. package/dist/mcp/handlers/v2-advance-core/index.js +27 -8
  11. package/dist/mcp/handlers/v2-checkpoint.js +38 -37
  12. package/dist/mcp/handlers/v2-error-mapping.d.ts +3 -3
  13. package/dist/mcp/handlers/v2-error-mapping.js +31 -27
  14. package/dist/mcp/handlers/v2-execution/continue-advance.js +3 -6
  15. package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +0 -1
  16. package/dist/mcp/handlers/v2-execution/index.d.ts +9 -1
  17. package/dist/mcp/handlers/v2-execution/index.js +8 -19
  18. package/dist/mcp/handlers/v2-execution/replay.js +2 -4
  19. package/dist/mcp/handlers/v2-execution/start.d.ts +2 -2
  20. package/dist/mcp/handlers/v2-execution/start.js +0 -19
  21. package/dist/mcp/handlers/v2-execution-helpers.d.ts +3 -2
  22. package/dist/mcp/handlers/v2-execution-helpers.js +34 -59
  23. package/dist/mcp/handlers/v2-workflow.js +13 -18
  24. package/dist/mcp/output-schemas.d.ts +197 -34
  25. package/dist/mcp/output-schemas.js +12 -5
  26. package/dist/mcp/tool-descriptions.js +22 -16
  27. package/dist/mcp/types.d.ts +10 -0
  28. package/dist/mcp/types.js +10 -0
  29. package/dist/mcp/v2/tools.d.ts +45 -7
  30. package/dist/mcp/v2/tools.js +7 -3
  31. package/dist/types/workflow-definition.d.ts +3 -2
  32. package/dist/v2/durable-core/canonical/jcs.js +8 -1
  33. package/dist/v2/durable-core/domain/ack-advance-append-plan.d.ts +1 -10
  34. package/dist/v2/durable-core/domain/ack-advance-append-plan.js +8 -28
  35. package/dist/v2/durable-core/domain/blocked-node-builder.js +1 -1
  36. package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
  37. package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +4 -4
  38. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +116 -116
  39. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +184 -184
  40. package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +2 -2
  41. package/dist/v2/durable-core/schemas/session/events.d.ts +20 -20
  42. package/package.json +1 -1
  43. package/workflows/coding-task-workflow-agentic.json +0 -9
  44. package/workflows/workflow-for-workflows.json +18 -5
@@ -299,12 +299,12 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
299
299
  snapshotRef: z.ZodEffects<z.ZodString, never, string>;
300
300
  }, "strip", z.ZodTypeAny, {
301
301
  snapshotRef: never;
302
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
302
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
303
303
  parentNodeId: string | null;
304
304
  workflowHash: never;
305
305
  }, {
306
306
  snapshotRef: string;
307
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
307
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
308
308
  parentNodeId: string | null;
309
309
  workflowHash: string;
310
310
  }>;
@@ -313,7 +313,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
313
313
  sessionId: string;
314
314
  data: {
315
315
  snapshotRef: never;
316
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
316
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
317
317
  parentNodeId: string | null;
318
318
  workflowHash: never;
319
319
  };
@@ -330,7 +330,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
330
330
  sessionId: string;
331
331
  data: {
332
332
  snapshotRef: string;
333
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
333
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
334
334
  parentNodeId: string | null;
335
335
  workflowHash: string;
336
336
  };
@@ -1132,10 +1132,10 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1132
1132
  key: z.ZodLiteral<"autonomy">;
1133
1133
  value: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
1134
1134
  }, "strip", z.ZodTypeAny, {
1135
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1135
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1136
1136
  key: "autonomy";
1137
1137
  }, {
1138
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1138
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1139
1139
  key: "autonomy";
1140
1140
  }>, z.ZodObject<{
1141
1141
  key: z.ZodLiteral<"riskPolicy">;
@@ -1151,66 +1151,66 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1151
1151
  autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
1152
1152
  riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
1153
1153
  }, "strip", z.ZodTypeAny, {
1154
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1154
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1155
1155
  riskPolicy: "conservative" | "balanced" | "aggressive";
1156
1156
  }, {
1157
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1157
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1158
1158
  riskPolicy: "conservative" | "balanced" | "aggressive";
1159
1159
  }>;
1160
1160
  }, "strip", z.ZodTypeAny, {
1161
1161
  source: "user" | "workflow_recommendation" | "system";
1162
1162
  changeId: string;
1163
1163
  delta: ({
1164
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1164
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1165
1165
  key: "autonomy";
1166
1166
  } | {
1167
1167
  value: "conservative" | "balanced" | "aggressive";
1168
1168
  key: "riskPolicy";
1169
1169
  })[];
1170
1170
  effective: {
1171
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1171
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1172
1172
  riskPolicy: "conservative" | "balanced" | "aggressive";
1173
1173
  };
1174
1174
  }, {
1175
1175
  source: "user" | "workflow_recommendation" | "system";
1176
1176
  changeId: string;
1177
1177
  delta: ({
1178
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1178
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1179
1179
  key: "autonomy";
1180
1180
  } | {
1181
1181
  value: "conservative" | "balanced" | "aggressive";
1182
1182
  key: "riskPolicy";
1183
1183
  })[];
1184
1184
  effective: {
1185
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1185
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1186
1186
  riskPolicy: "conservative" | "balanced" | "aggressive";
1187
1187
  };
1188
1188
  }>, {
1189
1189
  source: "user" | "workflow_recommendation" | "system";
1190
1190
  changeId: string;
1191
1191
  delta: ({
1192
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1192
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1193
1193
  key: "autonomy";
1194
1194
  } | {
1195
1195
  value: "conservative" | "balanced" | "aggressive";
1196
1196
  key: "riskPolicy";
1197
1197
  })[];
1198
1198
  effective: {
1199
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1199
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1200
1200
  riskPolicy: "conservative" | "balanced" | "aggressive";
1201
1201
  };
1202
1202
  }, {
1203
1203
  source: "user" | "workflow_recommendation" | "system";
1204
1204
  changeId: string;
1205
1205
  delta: ({
1206
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1206
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1207
1207
  key: "autonomy";
1208
1208
  } | {
1209
1209
  value: "conservative" | "balanced" | "aggressive";
1210
1210
  key: "riskPolicy";
1211
1211
  })[];
1212
1212
  effective: {
1213
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1213
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1214
1214
  riskPolicy: "conservative" | "balanced" | "aggressive";
1215
1215
  };
1216
1216
  }>;
@@ -1221,14 +1221,14 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1221
1221
  source: "user" | "workflow_recommendation" | "system";
1222
1222
  changeId: string;
1223
1223
  delta: ({
1224
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1224
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1225
1225
  key: "autonomy";
1226
1226
  } | {
1227
1227
  value: "conservative" | "balanced" | "aggressive";
1228
1228
  key: "riskPolicy";
1229
1229
  })[];
1230
1230
  effective: {
1231
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1231
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1232
1232
  riskPolicy: "conservative" | "balanced" | "aggressive";
1233
1233
  };
1234
1234
  };
@@ -1247,14 +1247,14 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
1247
1247
  source: "user" | "workflow_recommendation" | "system";
1248
1248
  changeId: string;
1249
1249
  delta: ({
1250
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1250
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1251
1251
  key: "autonomy";
1252
1252
  } | {
1253
1253
  value: "conservative" | "balanced" | "aggressive";
1254
1254
  key: "riskPolicy";
1255
1255
  })[];
1256
1256
  effective: {
1257
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
1257
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
1258
1258
  riskPolicy: "conservative" | "balanced" | "aggressive";
1259
1259
  };
1260
1260
  };
@@ -2310,6 +2310,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2310
2310
  }[];
2311
2311
  }>;
2312
2312
  }, "strict", z.ZodTypeAny, {
2313
+ kind: "some";
2313
2314
  step: {
2314
2315
  stepId: string & {
2315
2316
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -2321,8 +2322,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2321
2322
  iteration: number;
2322
2323
  }[];
2323
2324
  };
2324
- kind: "some";
2325
2325
  }, {
2326
+ kind: "some";
2326
2327
  step: {
2327
2328
  stepId: string;
2328
2329
  loopPath: {
@@ -2330,7 +2331,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2330
2331
  iteration: number;
2331
2332
  }[];
2332
2333
  };
2333
- kind: "some";
2334
2334
  }>]>;
2335
2335
  }, "strict", z.ZodTypeAny, {
2336
2336
  kind: "running";
@@ -2348,6 +2348,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2348
2348
  pending: {
2349
2349
  kind: "none";
2350
2350
  } | {
2351
+ kind: "some";
2351
2352
  step: {
2352
2353
  stepId: string & {
2353
2354
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -2359,7 +2360,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2359
2360
  iteration: number;
2360
2361
  }[];
2361
2362
  };
2362
- kind: "some";
2363
2363
  };
2364
2364
  }, {
2365
2365
  kind: "running";
@@ -2375,6 +2375,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2375
2375
  pending: {
2376
2376
  kind: "none";
2377
2377
  } | {
2378
+ kind: "some";
2378
2379
  step: {
2379
2380
  stepId: string;
2380
2381
  loopPath: {
@@ -2382,7 +2383,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2382
2383
  iteration: number;
2383
2384
  }[];
2384
2385
  };
2385
- kind: "some";
2386
2386
  };
2387
2387
  }>, z.ZodObject<{
2388
2388
  kind: z.ZodLiteral<"blocked">;
@@ -2457,6 +2457,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2457
2457
  }[];
2458
2458
  }>;
2459
2459
  }, "strict", z.ZodTypeAny, {
2460
+ kind: "some";
2460
2461
  step: {
2461
2462
  stepId: string & {
2462
2463
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -2468,8 +2469,8 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2468
2469
  iteration: number;
2469
2470
  }[];
2470
2471
  };
2471
- kind: "some";
2472
2472
  }, {
2473
+ kind: "some";
2473
2474
  step: {
2474
2475
  stepId: string;
2475
2476
  loopPath: {
@@ -2477,7 +2478,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2477
2478
  iteration: number;
2478
2479
  }[];
2479
2480
  };
2480
- kind: "some";
2481
2481
  }>]>;
2482
2482
  blocked: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2483
2483
  kind: z.ZodLiteral<"retryable_block">;
@@ -2648,7 +2648,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2648
2648
  }[];
2649
2649
  }>>;
2650
2650
  }, "strict", z.ZodTypeAny, {
2651
- kind: "retryable_block";
2652
2651
  reason: {
2653
2652
  kind: "invalid_required_output";
2654
2653
  contractRef: string;
@@ -2661,6 +2660,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2661
2660
  } | {
2662
2661
  kind: "context_budget_exceeded";
2663
2662
  };
2663
+ kind: "retryable_block";
2664
2664
  blockers: Readonly<{
2665
2665
  blockers: readonly {
2666
2666
  message: string;
@@ -2686,7 +2686,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2686
2686
  retryAttemptId: string;
2687
2687
  validationRef: string;
2688
2688
  }, {
2689
- kind: "retryable_block";
2690
2689
  reason: {
2691
2690
  kind: "invalid_required_output";
2692
2691
  contractRef: string;
@@ -2699,6 +2698,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2699
2698
  } | {
2700
2699
  kind: "context_budget_exceeded";
2701
2700
  };
2701
+ kind: "retryable_block";
2702
2702
  blockers: Readonly<{
2703
2703
  blockers: readonly {
2704
2704
  message: string;
@@ -2906,7 +2906,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2906
2906
  }[];
2907
2907
  }>>;
2908
2908
  }, "strict", z.ZodTypeAny, {
2909
- kind: "terminal_block";
2910
2909
  reason: {
2911
2910
  kind: "user_only_dependency";
2912
2911
  stepId: string;
@@ -2924,6 +2923,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2924
2923
  } | {
2925
2924
  kind: "evaluation_error";
2926
2925
  };
2926
+ kind: "terminal_block";
2927
2927
  blockers: Readonly<{
2928
2928
  blockers: readonly {
2929
2929
  message: string;
@@ -2948,7 +2948,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2948
2948
  }>;
2949
2949
  validationRef?: string | undefined;
2950
2950
  }, {
2951
- kind: "terminal_block";
2952
2951
  reason: {
2953
2952
  kind: "user_only_dependency";
2954
2953
  stepId: string;
@@ -2966,6 +2965,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2966
2965
  } | {
2967
2966
  kind: "evaluation_error";
2968
2967
  };
2968
+ kind: "terminal_block";
2969
2969
  blockers: Readonly<{
2970
2970
  blockers: readonly {
2971
2971
  message: string;
@@ -2991,9 +2991,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
2991
2991
  validationRef?: string | undefined;
2992
2992
  }>]>;
2993
2993
  }, "strict", z.ZodTypeAny, {
2994
- kind: "blocked";
2995
2994
  blocked: {
2996
- kind: "retryable_block";
2997
2995
  reason: {
2998
2996
  kind: "invalid_required_output";
2999
2997
  contractRef: string;
@@ -3006,6 +3004,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3006
3004
  } | {
3007
3005
  kind: "context_budget_exceeded";
3008
3006
  };
3007
+ kind: "retryable_block";
3009
3008
  blockers: Readonly<{
3010
3009
  blockers: readonly {
3011
3010
  message: string;
@@ -3031,7 +3030,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3031
3030
  retryAttemptId: string;
3032
3031
  validationRef: string;
3033
3032
  } | {
3034
- kind: "terminal_block";
3035
3033
  reason: {
3036
3034
  kind: "user_only_dependency";
3037
3035
  stepId: string;
@@ -3049,6 +3047,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3049
3047
  } | {
3050
3048
  kind: "evaluation_error";
3051
3049
  };
3050
+ kind: "terminal_block";
3052
3051
  blockers: Readonly<{
3053
3052
  blockers: readonly {
3054
3053
  message: string;
@@ -3073,6 +3072,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3073
3072
  }>;
3074
3073
  validationRef?: string | undefined;
3075
3074
  };
3075
+ kind: "blocked";
3076
3076
  completed: {
3077
3077
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
3078
3078
  kind: "set";
@@ -3087,6 +3087,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3087
3087
  pending: {
3088
3088
  kind: "none";
3089
3089
  } | {
3090
+ kind: "some";
3090
3091
  step: {
3091
3092
  stepId: string & {
3092
3093
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3098,12 +3099,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3098
3099
  iteration: number;
3099
3100
  }[];
3100
3101
  };
3101
- kind: "some";
3102
3102
  };
3103
3103
  }, {
3104
- kind: "blocked";
3105
3104
  blocked: {
3106
- kind: "retryable_block";
3107
3105
  reason: {
3108
3106
  kind: "invalid_required_output";
3109
3107
  contractRef: string;
@@ -3116,6 +3114,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3116
3114
  } | {
3117
3115
  kind: "context_budget_exceeded";
3118
3116
  };
3117
+ kind: "retryable_block";
3119
3118
  blockers: Readonly<{
3120
3119
  blockers: readonly {
3121
3120
  message: string;
@@ -3141,7 +3140,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3141
3140
  retryAttemptId: string;
3142
3141
  validationRef: string;
3143
3142
  } | {
3144
- kind: "terminal_block";
3145
3143
  reason: {
3146
3144
  kind: "user_only_dependency";
3147
3145
  stepId: string;
@@ -3159,6 +3157,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3159
3157
  } | {
3160
3158
  kind: "evaluation_error";
3161
3159
  };
3160
+ kind: "terminal_block";
3162
3161
  blockers: Readonly<{
3163
3162
  blockers: readonly {
3164
3163
  message: string;
@@ -3183,6 +3182,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3183
3182
  }>;
3184
3183
  validationRef?: string | undefined;
3185
3184
  };
3185
+ kind: "blocked";
3186
3186
  completed: {
3187
3187
  values: string[];
3188
3188
  kind: "set";
@@ -3195,6 +3195,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3195
3195
  pending: {
3196
3196
  kind: "none";
3197
3197
  } | {
3198
+ kind: "some";
3198
3199
  step: {
3199
3200
  stepId: string;
3200
3201
  loopPath: {
@@ -3202,7 +3203,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3202
3203
  iteration: number;
3203
3204
  }[];
3204
3205
  };
3205
- kind: "some";
3206
3206
  };
3207
3207
  }>, z.ZodObject<{
3208
3208
  kind: z.ZodLiteral<"complete">;
@@ -3228,6 +3228,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3228
3228
  pending: {
3229
3229
  kind: "none";
3230
3230
  } | {
3231
+ kind: "some";
3231
3232
  step: {
3232
3233
  stepId: string & {
3233
3234
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3239,12 +3240,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3239
3240
  iteration: number;
3240
3241
  }[];
3241
3242
  };
3242
- kind: "some";
3243
3243
  };
3244
3244
  } | {
3245
- kind: "blocked";
3246
3245
  blocked: {
3247
- kind: "retryable_block";
3248
3246
  reason: {
3249
3247
  kind: "invalid_required_output";
3250
3248
  contractRef: string;
@@ -3257,6 +3255,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3257
3255
  } | {
3258
3256
  kind: "context_budget_exceeded";
3259
3257
  };
3258
+ kind: "retryable_block";
3260
3259
  blockers: Readonly<{
3261
3260
  blockers: readonly {
3262
3261
  message: string;
@@ -3282,7 +3281,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3282
3281
  retryAttemptId: string;
3283
3282
  validationRef: string;
3284
3283
  } | {
3285
- kind: "terminal_block";
3286
3284
  reason: {
3287
3285
  kind: "user_only_dependency";
3288
3286
  stepId: string;
@@ -3300,6 +3298,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3300
3298
  } | {
3301
3299
  kind: "evaluation_error";
3302
3300
  };
3301
+ kind: "terminal_block";
3303
3302
  blockers: Readonly<{
3304
3303
  blockers: readonly {
3305
3304
  message: string;
@@ -3324,6 +3323,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3324
3323
  }>;
3325
3324
  validationRef?: string | undefined;
3326
3325
  };
3326
+ kind: "blocked";
3327
3327
  completed: {
3328
3328
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
3329
3329
  kind: "set";
@@ -3338,6 +3338,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3338
3338
  pending: {
3339
3339
  kind: "none";
3340
3340
  } | {
3341
+ kind: "some";
3341
3342
  step: {
3342
3343
  stepId: string & {
3343
3344
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3349,7 +3350,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3349
3350
  iteration: number;
3350
3351
  }[];
3351
3352
  };
3352
- kind: "some";
3353
3353
  };
3354
3354
  } | {
3355
3355
  kind: "complete";
@@ -3369,6 +3369,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3369
3369
  pending: {
3370
3370
  kind: "none";
3371
3371
  } | {
3372
+ kind: "some";
3372
3373
  step: {
3373
3374
  stepId: string;
3374
3375
  loopPath: {
@@ -3376,12 +3377,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3376
3377
  iteration: number;
3377
3378
  }[];
3378
3379
  };
3379
- kind: "some";
3380
3380
  };
3381
3381
  } | {
3382
- kind: "blocked";
3383
3382
  blocked: {
3384
- kind: "retryable_block";
3385
3383
  reason: {
3386
3384
  kind: "invalid_required_output";
3387
3385
  contractRef: string;
@@ -3394,6 +3392,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3394
3392
  } | {
3395
3393
  kind: "context_budget_exceeded";
3396
3394
  };
3395
+ kind: "retryable_block";
3397
3396
  blockers: Readonly<{
3398
3397
  blockers: readonly {
3399
3398
  message: string;
@@ -3419,7 +3418,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3419
3418
  retryAttemptId: string;
3420
3419
  validationRef: string;
3421
3420
  } | {
3422
- kind: "terminal_block";
3423
3421
  reason: {
3424
3422
  kind: "user_only_dependency";
3425
3423
  stepId: string;
@@ -3437,6 +3435,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3437
3435
  } | {
3438
3436
  kind: "evaluation_error";
3439
3437
  };
3438
+ kind: "terminal_block";
3440
3439
  blockers: Readonly<{
3441
3440
  blockers: readonly {
3442
3441
  message: string;
@@ -3461,6 +3460,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3461
3460
  }>;
3462
3461
  validationRef?: string | undefined;
3463
3462
  };
3463
+ kind: "blocked";
3464
3464
  completed: {
3465
3465
  values: string[];
3466
3466
  kind: "set";
@@ -3473,6 +3473,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3473
3473
  pending: {
3474
3474
  kind: "none";
3475
3475
  } | {
3476
+ kind: "some";
3476
3477
  step: {
3477
3478
  stepId: string;
3478
3479
  loopPath: {
@@ -3480,7 +3481,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3480
3481
  iteration: number;
3481
3482
  }[];
3482
3483
  };
3483
- kind: "some";
3484
3484
  };
3485
3485
  } | {
3486
3486
  kind: "complete";
@@ -3505,6 +3505,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3505
3505
  pending: {
3506
3506
  kind: "none";
3507
3507
  } | {
3508
+ kind: "some";
3508
3509
  step: {
3509
3510
  stepId: string & {
3510
3511
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3516,12 +3517,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3516
3517
  iteration: number;
3517
3518
  }[];
3518
3519
  };
3519
- kind: "some";
3520
3520
  };
3521
3521
  } | {
3522
- kind: "blocked";
3523
3522
  blocked: {
3524
- kind: "retryable_block";
3525
3523
  reason: {
3526
3524
  kind: "invalid_required_output";
3527
3525
  contractRef: string;
@@ -3534,6 +3532,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3534
3532
  } | {
3535
3533
  kind: "context_budget_exceeded";
3536
3534
  };
3535
+ kind: "retryable_block";
3537
3536
  blockers: Readonly<{
3538
3537
  blockers: readonly {
3539
3538
  message: string;
@@ -3559,7 +3558,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3559
3558
  retryAttemptId: string;
3560
3559
  validationRef: string;
3561
3560
  } | {
3562
- kind: "terminal_block";
3563
3561
  reason: {
3564
3562
  kind: "user_only_dependency";
3565
3563
  stepId: string;
@@ -3577,6 +3575,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3577
3575
  } | {
3578
3576
  kind: "evaluation_error";
3579
3577
  };
3578
+ kind: "terminal_block";
3580
3579
  blockers: Readonly<{
3581
3580
  blockers: readonly {
3582
3581
  message: string;
@@ -3601,6 +3600,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3601
3600
  }>;
3602
3601
  validationRef?: string | undefined;
3603
3602
  };
3603
+ kind: "blocked";
3604
3604
  completed: {
3605
3605
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
3606
3606
  kind: "set";
@@ -3615,6 +3615,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3615
3615
  pending: {
3616
3616
  kind: "none";
3617
3617
  } | {
3618
+ kind: "some";
3618
3619
  step: {
3619
3620
  stepId: string & {
3620
3621
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3626,7 +3627,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3626
3627
  iteration: number;
3627
3628
  }[];
3628
3629
  };
3629
- kind: "some";
3630
3630
  };
3631
3631
  } | {
3632
3632
  kind: "complete";
@@ -3649,6 +3649,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3649
3649
  pending: {
3650
3650
  kind: "none";
3651
3651
  } | {
3652
+ kind: "some";
3652
3653
  step: {
3653
3654
  stepId: string;
3654
3655
  loopPath: {
@@ -3656,12 +3657,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3656
3657
  iteration: number;
3657
3658
  }[];
3658
3659
  };
3659
- kind: "some";
3660
3660
  };
3661
3661
  } | {
3662
- kind: "blocked";
3663
3662
  blocked: {
3664
- kind: "retryable_block";
3665
3663
  reason: {
3666
3664
  kind: "invalid_required_output";
3667
3665
  contractRef: string;
@@ -3674,6 +3672,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3674
3672
  } | {
3675
3673
  kind: "context_budget_exceeded";
3676
3674
  };
3675
+ kind: "retryable_block";
3677
3676
  blockers: Readonly<{
3678
3677
  blockers: readonly {
3679
3678
  message: string;
@@ -3699,7 +3698,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3699
3698
  retryAttemptId: string;
3700
3699
  validationRef: string;
3701
3700
  } | {
3702
- kind: "terminal_block";
3703
3701
  reason: {
3704
3702
  kind: "user_only_dependency";
3705
3703
  stepId: string;
@@ -3717,6 +3715,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3717
3715
  } | {
3718
3716
  kind: "evaluation_error";
3719
3717
  };
3718
+ kind: "terminal_block";
3720
3719
  blockers: Readonly<{
3721
3720
  blockers: readonly {
3722
3721
  message: string;
@@ -3741,6 +3740,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3741
3740
  }>;
3742
3741
  validationRef?: string | undefined;
3743
3742
  };
3743
+ kind: "blocked";
3744
3744
  completed: {
3745
3745
  values: string[];
3746
3746
  kind: "set";
@@ -3753,6 +3753,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3753
3753
  pending: {
3754
3754
  kind: "none";
3755
3755
  } | {
3756
+ kind: "some";
3756
3757
  step: {
3757
3758
  stepId: string;
3758
3759
  loopPath: {
@@ -3760,7 +3761,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3760
3761
  iteration: number;
3761
3762
  }[];
3762
3763
  };
3763
- kind: "some";
3764
3764
  };
3765
3765
  } | {
3766
3766
  kind: "complete";
@@ -3789,6 +3789,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3789
3789
  pending: {
3790
3790
  kind: "none";
3791
3791
  } | {
3792
+ kind: "some";
3792
3793
  step: {
3793
3794
  stepId: string & {
3794
3795
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3800,12 +3801,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3800
3801
  iteration: number;
3801
3802
  }[];
3802
3803
  };
3803
- kind: "some";
3804
3804
  };
3805
3805
  } | {
3806
- kind: "blocked";
3807
3806
  blocked: {
3808
- kind: "retryable_block";
3809
3807
  reason: {
3810
3808
  kind: "invalid_required_output";
3811
3809
  contractRef: string;
@@ -3818,6 +3816,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3818
3816
  } | {
3819
3817
  kind: "context_budget_exceeded";
3820
3818
  };
3819
+ kind: "retryable_block";
3821
3820
  blockers: Readonly<{
3822
3821
  blockers: readonly {
3823
3822
  message: string;
@@ -3843,7 +3842,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3843
3842
  retryAttemptId: string;
3844
3843
  validationRef: string;
3845
3844
  } | {
3846
- kind: "terminal_block";
3847
3845
  reason: {
3848
3846
  kind: "user_only_dependency";
3849
3847
  stepId: string;
@@ -3861,6 +3859,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3861
3859
  } | {
3862
3860
  kind: "evaluation_error";
3863
3861
  };
3862
+ kind: "terminal_block";
3864
3863
  blockers: Readonly<{
3865
3864
  blockers: readonly {
3866
3865
  message: string;
@@ -3885,6 +3884,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3885
3884
  }>;
3886
3885
  validationRef?: string | undefined;
3887
3886
  };
3887
+ kind: "blocked";
3888
3888
  completed: {
3889
3889
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
3890
3890
  kind: "set";
@@ -3899,6 +3899,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3899
3899
  pending: {
3900
3900
  kind: "none";
3901
3901
  } | {
3902
+ kind: "some";
3902
3903
  step: {
3903
3904
  stepId: string & {
3904
3905
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -3910,7 +3911,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3910
3911
  iteration: number;
3911
3912
  }[];
3912
3913
  };
3913
- kind: "some";
3914
3914
  };
3915
3915
  } | {
3916
3916
  kind: "complete";
@@ -3937,6 +3937,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3937
3937
  pending: {
3938
3938
  kind: "none";
3939
3939
  } | {
3940
+ kind: "some";
3940
3941
  step: {
3941
3942
  stepId: string;
3942
3943
  loopPath: {
@@ -3944,12 +3945,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3944
3945
  iteration: number;
3945
3946
  }[];
3946
3947
  };
3947
- kind: "some";
3948
3948
  };
3949
3949
  } | {
3950
- kind: "blocked";
3951
3950
  blocked: {
3952
- kind: "retryable_block";
3953
3951
  reason: {
3954
3952
  kind: "invalid_required_output";
3955
3953
  contractRef: string;
@@ -3962,6 +3960,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3962
3960
  } | {
3963
3961
  kind: "context_budget_exceeded";
3964
3962
  };
3963
+ kind: "retryable_block";
3965
3964
  blockers: Readonly<{
3966
3965
  blockers: readonly {
3967
3966
  message: string;
@@ -3987,7 +3986,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
3987
3986
  retryAttemptId: string;
3988
3987
  validationRef: string;
3989
3988
  } | {
3990
- kind: "terminal_block";
3991
3989
  reason: {
3992
3990
  kind: "user_only_dependency";
3993
3991
  stepId: string;
@@ -4005,6 +4003,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4005
4003
  } | {
4006
4004
  kind: "evaluation_error";
4007
4005
  };
4006
+ kind: "terminal_block";
4008
4007
  blockers: Readonly<{
4009
4008
  blockers: readonly {
4010
4009
  message: string;
@@ -4029,6 +4028,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4029
4028
  }>;
4030
4029
  validationRef?: string | undefined;
4031
4030
  };
4031
+ kind: "blocked";
4032
4032
  completed: {
4033
4033
  values: string[];
4034
4034
  kind: "set";
@@ -4041,6 +4041,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4041
4041
  pending: {
4042
4042
  kind: "none";
4043
4043
  } | {
4044
+ kind: "some";
4044
4045
  step: {
4045
4046
  stepId: string;
4046
4047
  loopPath: {
@@ -4048,7 +4049,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4048
4049
  iteration: number;
4049
4050
  }[];
4050
4051
  };
4051
- kind: "some";
4052
4052
  };
4053
4053
  } | {
4054
4054
  kind: "complete";
@@ -4081,6 +4081,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4081
4081
  pending: {
4082
4082
  kind: "none";
4083
4083
  } | {
4084
+ kind: "some";
4084
4085
  step: {
4085
4086
  stepId: string & {
4086
4087
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -4092,12 +4093,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4092
4093
  iteration: number;
4093
4094
  }[];
4094
4095
  };
4095
- kind: "some";
4096
4096
  };
4097
4097
  } | {
4098
- kind: "blocked";
4099
4098
  blocked: {
4100
- kind: "retryable_block";
4101
4099
  reason: {
4102
4100
  kind: "invalid_required_output";
4103
4101
  contractRef: string;
@@ -4110,6 +4108,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4110
4108
  } | {
4111
4109
  kind: "context_budget_exceeded";
4112
4110
  };
4111
+ kind: "retryable_block";
4113
4112
  blockers: Readonly<{
4114
4113
  blockers: readonly {
4115
4114
  message: string;
@@ -4135,7 +4134,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4135
4134
  retryAttemptId: string;
4136
4135
  validationRef: string;
4137
4136
  } | {
4138
- kind: "terminal_block";
4139
4137
  reason: {
4140
4138
  kind: "user_only_dependency";
4141
4139
  stepId: string;
@@ -4153,6 +4151,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4153
4151
  } | {
4154
4152
  kind: "evaluation_error";
4155
4153
  };
4154
+ kind: "terminal_block";
4156
4155
  blockers: Readonly<{
4157
4156
  blockers: readonly {
4158
4157
  message: string;
@@ -4177,6 +4176,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4177
4176
  }>;
4178
4177
  validationRef?: string | undefined;
4179
4178
  };
4179
+ kind: "blocked";
4180
4180
  completed: {
4181
4181
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
4182
4182
  kind: "set";
@@ -4191,6 +4191,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4191
4191
  pending: {
4192
4192
  kind: "none";
4193
4193
  } | {
4194
+ kind: "some";
4194
4195
  step: {
4195
4196
  stepId: string & {
4196
4197
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -4202,7 +4203,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4202
4203
  iteration: number;
4203
4204
  }[];
4204
4205
  };
4205
- kind: "some";
4206
4206
  };
4207
4207
  } | {
4208
4208
  kind: "complete";
@@ -4264,7 +4264,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4264
4264
  sessionId: string;
4265
4265
  data: {
4266
4266
  snapshotRef: never;
4267
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
4267
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
4268
4268
  parentNodeId: string | null;
4269
4269
  workflowHash: never;
4270
4270
  };
@@ -4392,14 +4392,14 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4392
4392
  source: "user" | "workflow_recommendation" | "system";
4393
4393
  changeId: string;
4394
4394
  delta: ({
4395
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
4395
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
4396
4396
  key: "autonomy";
4397
4397
  } | {
4398
4398
  value: "conservative" | "balanced" | "aggressive";
4399
4399
  key: "riskPolicy";
4400
4400
  })[];
4401
4401
  effective: {
4402
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
4402
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
4403
4403
  riskPolicy: "conservative" | "balanced" | "aggressive";
4404
4404
  };
4405
4405
  };
@@ -4600,6 +4600,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4600
4600
  pending: {
4601
4601
  kind: "none";
4602
4602
  } | {
4603
+ kind: "some";
4603
4604
  step: {
4604
4605
  stepId: string;
4605
4606
  loopPath: {
@@ -4607,12 +4608,9 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4607
4608
  iteration: number;
4608
4609
  }[];
4609
4610
  };
4610
- kind: "some";
4611
4611
  };
4612
4612
  } | {
4613
- kind: "blocked";
4614
4613
  blocked: {
4615
- kind: "retryable_block";
4616
4614
  reason: {
4617
4615
  kind: "invalid_required_output";
4618
4616
  contractRef: string;
@@ -4625,6 +4623,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4625
4623
  } | {
4626
4624
  kind: "context_budget_exceeded";
4627
4625
  };
4626
+ kind: "retryable_block";
4628
4627
  blockers: Readonly<{
4629
4628
  blockers: readonly {
4630
4629
  message: string;
@@ -4650,7 +4649,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4650
4649
  retryAttemptId: string;
4651
4650
  validationRef: string;
4652
4651
  } | {
4653
- kind: "terminal_block";
4654
4652
  reason: {
4655
4653
  kind: "user_only_dependency";
4656
4654
  stepId: string;
@@ -4668,6 +4666,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4668
4666
  } | {
4669
4667
  kind: "evaluation_error";
4670
4668
  };
4669
+ kind: "terminal_block";
4671
4670
  blockers: Readonly<{
4672
4671
  blockers: readonly {
4673
4672
  message: string;
@@ -4692,6 +4691,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4692
4691
  }>;
4693
4692
  validationRef?: string | undefined;
4694
4693
  };
4694
+ kind: "blocked";
4695
4695
  completed: {
4696
4696
  values: string[];
4697
4697
  kind: "set";
@@ -4704,6 +4704,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4704
4704
  pending: {
4705
4705
  kind: "none";
4706
4706
  } | {
4707
+ kind: "some";
4707
4708
  step: {
4708
4709
  stepId: string;
4709
4710
  loopPath: {
@@ -4711,7 +4712,6 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4711
4712
  iteration: number;
4712
4713
  }[];
4713
4714
  };
4714
- kind: "some";
4715
4715
  };
4716
4716
  } | {
4717
4717
  kind: "complete";
@@ -4773,7 +4773,7 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4773
4773
  sessionId: string;
4774
4774
  data: {
4775
4775
  snapshotRef: string;
4776
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
4776
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
4777
4777
  parentNodeId: string | null;
4778
4778
  workflowHash: string;
4779
4779
  };
@@ -4901,14 +4901,14 @@ export declare const SessionContentsV1Schema: z.ZodObject<{
4901
4901
  source: "user" | "workflow_recommendation" | "system";
4902
4902
  changeId: string;
4903
4903
  delta: ({
4904
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
4904
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
4905
4905
  key: "autonomy";
4906
4906
  } | {
4907
4907
  value: "conservative" | "balanced" | "aggressive";
4908
4908
  key: "riskPolicy";
4909
4909
  })[];
4910
4910
  effective: {
4911
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
4911
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
4912
4912
  riskPolicy: "conservative" | "balanced" | "aggressive";
4913
4913
  };
4914
4914
  };
@@ -5376,12 +5376,12 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5376
5376
  snapshotRef: z.ZodEffects<z.ZodString, never, string>;
5377
5377
  }, "strip", z.ZodTypeAny, {
5378
5378
  snapshotRef: never;
5379
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
5379
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
5380
5380
  parentNodeId: string | null;
5381
5381
  workflowHash: never;
5382
5382
  }, {
5383
5383
  snapshotRef: string;
5384
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
5384
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
5385
5385
  parentNodeId: string | null;
5386
5386
  workflowHash: string;
5387
5387
  }>;
@@ -5390,7 +5390,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5390
5390
  sessionId: string;
5391
5391
  data: {
5392
5392
  snapshotRef: never;
5393
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
5393
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
5394
5394
  parentNodeId: string | null;
5395
5395
  workflowHash: never;
5396
5396
  };
@@ -5407,7 +5407,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
5407
5407
  sessionId: string;
5408
5408
  data: {
5409
5409
  snapshotRef: string;
5410
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
5410
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
5411
5411
  parentNodeId: string | null;
5412
5412
  workflowHash: string;
5413
5413
  };
@@ -6209,10 +6209,10 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6209
6209
  key: z.ZodLiteral<"autonomy">;
6210
6210
  value: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
6211
6211
  }, "strip", z.ZodTypeAny, {
6212
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6212
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6213
6213
  key: "autonomy";
6214
6214
  }, {
6215
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6215
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6216
6216
  key: "autonomy";
6217
6217
  }>, z.ZodObject<{
6218
6218
  key: z.ZodLiteral<"riskPolicy">;
@@ -6228,66 +6228,66 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6228
6228
  autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
6229
6229
  riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
6230
6230
  }, "strip", z.ZodTypeAny, {
6231
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6231
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6232
6232
  riskPolicy: "conservative" | "balanced" | "aggressive";
6233
6233
  }, {
6234
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6234
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6235
6235
  riskPolicy: "conservative" | "balanced" | "aggressive";
6236
6236
  }>;
6237
6237
  }, "strip", z.ZodTypeAny, {
6238
6238
  source: "user" | "workflow_recommendation" | "system";
6239
6239
  changeId: string;
6240
6240
  delta: ({
6241
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6241
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6242
6242
  key: "autonomy";
6243
6243
  } | {
6244
6244
  value: "conservative" | "balanced" | "aggressive";
6245
6245
  key: "riskPolicy";
6246
6246
  })[];
6247
6247
  effective: {
6248
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6248
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6249
6249
  riskPolicy: "conservative" | "balanced" | "aggressive";
6250
6250
  };
6251
6251
  }, {
6252
6252
  source: "user" | "workflow_recommendation" | "system";
6253
6253
  changeId: string;
6254
6254
  delta: ({
6255
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6255
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6256
6256
  key: "autonomy";
6257
6257
  } | {
6258
6258
  value: "conservative" | "balanced" | "aggressive";
6259
6259
  key: "riskPolicy";
6260
6260
  })[];
6261
6261
  effective: {
6262
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6262
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6263
6263
  riskPolicy: "conservative" | "balanced" | "aggressive";
6264
6264
  };
6265
6265
  }>, {
6266
6266
  source: "user" | "workflow_recommendation" | "system";
6267
6267
  changeId: string;
6268
6268
  delta: ({
6269
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6269
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6270
6270
  key: "autonomy";
6271
6271
  } | {
6272
6272
  value: "conservative" | "balanced" | "aggressive";
6273
6273
  key: "riskPolicy";
6274
6274
  })[];
6275
6275
  effective: {
6276
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6276
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6277
6277
  riskPolicy: "conservative" | "balanced" | "aggressive";
6278
6278
  };
6279
6279
  }, {
6280
6280
  source: "user" | "workflow_recommendation" | "system";
6281
6281
  changeId: string;
6282
6282
  delta: ({
6283
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6283
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6284
6284
  key: "autonomy";
6285
6285
  } | {
6286
6286
  value: "conservative" | "balanced" | "aggressive";
6287
6287
  key: "riskPolicy";
6288
6288
  })[];
6289
6289
  effective: {
6290
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6290
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6291
6291
  riskPolicy: "conservative" | "balanced" | "aggressive";
6292
6292
  };
6293
6293
  }>;
@@ -6298,14 +6298,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6298
6298
  source: "user" | "workflow_recommendation" | "system";
6299
6299
  changeId: string;
6300
6300
  delta: ({
6301
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6301
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6302
6302
  key: "autonomy";
6303
6303
  } | {
6304
6304
  value: "conservative" | "balanced" | "aggressive";
6305
6305
  key: "riskPolicy";
6306
6306
  })[];
6307
6307
  effective: {
6308
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6308
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6309
6309
  riskPolicy: "conservative" | "balanced" | "aggressive";
6310
6310
  };
6311
6311
  };
@@ -6324,14 +6324,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
6324
6324
  source: "user" | "workflow_recommendation" | "system";
6325
6325
  changeId: string;
6326
6326
  delta: ({
6327
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6327
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6328
6328
  key: "autonomy";
6329
6329
  } | {
6330
6330
  value: "conservative" | "balanced" | "aggressive";
6331
6331
  key: "riskPolicy";
6332
6332
  })[];
6333
6333
  effective: {
6334
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
6334
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
6335
6335
  riskPolicy: "conservative" | "balanced" | "aggressive";
6336
6336
  };
6337
6337
  };
@@ -7387,6 +7387,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7387
7387
  }[];
7388
7388
  }>;
7389
7389
  }, "strict", z.ZodTypeAny, {
7390
+ kind: "some";
7390
7391
  step: {
7391
7392
  stepId: string & {
7392
7393
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -7398,8 +7399,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7398
7399
  iteration: number;
7399
7400
  }[];
7400
7401
  };
7401
- kind: "some";
7402
7402
  }, {
7403
+ kind: "some";
7403
7404
  step: {
7404
7405
  stepId: string;
7405
7406
  loopPath: {
@@ -7407,7 +7408,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7407
7408
  iteration: number;
7408
7409
  }[];
7409
7410
  };
7410
- kind: "some";
7411
7411
  }>]>;
7412
7412
  }, "strict", z.ZodTypeAny, {
7413
7413
  kind: "running";
@@ -7425,6 +7425,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7425
7425
  pending: {
7426
7426
  kind: "none";
7427
7427
  } | {
7428
+ kind: "some";
7428
7429
  step: {
7429
7430
  stepId: string & {
7430
7431
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -7436,7 +7437,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7436
7437
  iteration: number;
7437
7438
  }[];
7438
7439
  };
7439
- kind: "some";
7440
7440
  };
7441
7441
  }, {
7442
7442
  kind: "running";
@@ -7452,6 +7452,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7452
7452
  pending: {
7453
7453
  kind: "none";
7454
7454
  } | {
7455
+ kind: "some";
7455
7456
  step: {
7456
7457
  stepId: string;
7457
7458
  loopPath: {
@@ -7459,7 +7460,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7459
7460
  iteration: number;
7460
7461
  }[];
7461
7462
  };
7462
- kind: "some";
7463
7463
  };
7464
7464
  }>, z.ZodObject<{
7465
7465
  kind: z.ZodLiteral<"blocked">;
@@ -7534,6 +7534,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7534
7534
  }[];
7535
7535
  }>;
7536
7536
  }, "strict", z.ZodTypeAny, {
7537
+ kind: "some";
7537
7538
  step: {
7538
7539
  stepId: string & {
7539
7540
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -7545,8 +7546,8 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7545
7546
  iteration: number;
7546
7547
  }[];
7547
7548
  };
7548
- kind: "some";
7549
7549
  }, {
7550
+ kind: "some";
7550
7551
  step: {
7551
7552
  stepId: string;
7552
7553
  loopPath: {
@@ -7554,7 +7555,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7554
7555
  iteration: number;
7555
7556
  }[];
7556
7557
  };
7557
- kind: "some";
7558
7558
  }>]>;
7559
7559
  blocked: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
7560
7560
  kind: z.ZodLiteral<"retryable_block">;
@@ -7725,7 +7725,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7725
7725
  }[];
7726
7726
  }>>;
7727
7727
  }, "strict", z.ZodTypeAny, {
7728
- kind: "retryable_block";
7729
7728
  reason: {
7730
7729
  kind: "invalid_required_output";
7731
7730
  contractRef: string;
@@ -7738,6 +7737,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7738
7737
  } | {
7739
7738
  kind: "context_budget_exceeded";
7740
7739
  };
7740
+ kind: "retryable_block";
7741
7741
  blockers: Readonly<{
7742
7742
  blockers: readonly {
7743
7743
  message: string;
@@ -7763,7 +7763,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7763
7763
  retryAttemptId: string;
7764
7764
  validationRef: string;
7765
7765
  }, {
7766
- kind: "retryable_block";
7767
7766
  reason: {
7768
7767
  kind: "invalid_required_output";
7769
7768
  contractRef: string;
@@ -7776,6 +7775,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7776
7775
  } | {
7777
7776
  kind: "context_budget_exceeded";
7778
7777
  };
7778
+ kind: "retryable_block";
7779
7779
  blockers: Readonly<{
7780
7780
  blockers: readonly {
7781
7781
  message: string;
@@ -7983,7 +7983,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
7983
7983
  }[];
7984
7984
  }>>;
7985
7985
  }, "strict", z.ZodTypeAny, {
7986
- kind: "terminal_block";
7987
7986
  reason: {
7988
7987
  kind: "user_only_dependency";
7989
7988
  stepId: string;
@@ -8001,6 +8000,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8001
8000
  } | {
8002
8001
  kind: "evaluation_error";
8003
8002
  };
8003
+ kind: "terminal_block";
8004
8004
  blockers: Readonly<{
8005
8005
  blockers: readonly {
8006
8006
  message: string;
@@ -8025,7 +8025,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8025
8025
  }>;
8026
8026
  validationRef?: string | undefined;
8027
8027
  }, {
8028
- kind: "terminal_block";
8029
8028
  reason: {
8030
8029
  kind: "user_only_dependency";
8031
8030
  stepId: string;
@@ -8043,6 +8042,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8043
8042
  } | {
8044
8043
  kind: "evaluation_error";
8045
8044
  };
8045
+ kind: "terminal_block";
8046
8046
  blockers: Readonly<{
8047
8047
  blockers: readonly {
8048
8048
  message: string;
@@ -8068,9 +8068,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8068
8068
  validationRef?: string | undefined;
8069
8069
  }>]>;
8070
8070
  }, "strict", z.ZodTypeAny, {
8071
- kind: "blocked";
8072
8071
  blocked: {
8073
- kind: "retryable_block";
8074
8072
  reason: {
8075
8073
  kind: "invalid_required_output";
8076
8074
  contractRef: string;
@@ -8083,6 +8081,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8083
8081
  } | {
8084
8082
  kind: "context_budget_exceeded";
8085
8083
  };
8084
+ kind: "retryable_block";
8086
8085
  blockers: Readonly<{
8087
8086
  blockers: readonly {
8088
8087
  message: string;
@@ -8108,7 +8107,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8108
8107
  retryAttemptId: string;
8109
8108
  validationRef: string;
8110
8109
  } | {
8111
- kind: "terminal_block";
8112
8110
  reason: {
8113
8111
  kind: "user_only_dependency";
8114
8112
  stepId: string;
@@ -8126,6 +8124,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8126
8124
  } | {
8127
8125
  kind: "evaluation_error";
8128
8126
  };
8127
+ kind: "terminal_block";
8129
8128
  blockers: Readonly<{
8130
8129
  blockers: readonly {
8131
8130
  message: string;
@@ -8150,6 +8149,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8150
8149
  }>;
8151
8150
  validationRef?: string | undefined;
8152
8151
  };
8152
+ kind: "blocked";
8153
8153
  completed: {
8154
8154
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
8155
8155
  kind: "set";
@@ -8164,6 +8164,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8164
8164
  pending: {
8165
8165
  kind: "none";
8166
8166
  } | {
8167
+ kind: "some";
8167
8168
  step: {
8168
8169
  stepId: string & {
8169
8170
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8175,12 +8176,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8175
8176
  iteration: number;
8176
8177
  }[];
8177
8178
  };
8178
- kind: "some";
8179
8179
  };
8180
8180
  }, {
8181
- kind: "blocked";
8182
8181
  blocked: {
8183
- kind: "retryable_block";
8184
8182
  reason: {
8185
8183
  kind: "invalid_required_output";
8186
8184
  contractRef: string;
@@ -8193,6 +8191,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8193
8191
  } | {
8194
8192
  kind: "context_budget_exceeded";
8195
8193
  };
8194
+ kind: "retryable_block";
8196
8195
  blockers: Readonly<{
8197
8196
  blockers: readonly {
8198
8197
  message: string;
@@ -8218,7 +8217,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8218
8217
  retryAttemptId: string;
8219
8218
  validationRef: string;
8220
8219
  } | {
8221
- kind: "terminal_block";
8222
8220
  reason: {
8223
8221
  kind: "user_only_dependency";
8224
8222
  stepId: string;
@@ -8236,6 +8234,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8236
8234
  } | {
8237
8235
  kind: "evaluation_error";
8238
8236
  };
8237
+ kind: "terminal_block";
8239
8238
  blockers: Readonly<{
8240
8239
  blockers: readonly {
8241
8240
  message: string;
@@ -8260,6 +8259,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8260
8259
  }>;
8261
8260
  validationRef?: string | undefined;
8262
8261
  };
8262
+ kind: "blocked";
8263
8263
  completed: {
8264
8264
  values: string[];
8265
8265
  kind: "set";
@@ -8272,6 +8272,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8272
8272
  pending: {
8273
8273
  kind: "none";
8274
8274
  } | {
8275
+ kind: "some";
8275
8276
  step: {
8276
8277
  stepId: string;
8277
8278
  loopPath: {
@@ -8279,7 +8280,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8279
8280
  iteration: number;
8280
8281
  }[];
8281
8282
  };
8282
- kind: "some";
8283
8283
  };
8284
8284
  }>, z.ZodObject<{
8285
8285
  kind: z.ZodLiteral<"complete">;
@@ -8305,6 +8305,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8305
8305
  pending: {
8306
8306
  kind: "none";
8307
8307
  } | {
8308
+ kind: "some";
8308
8309
  step: {
8309
8310
  stepId: string & {
8310
8311
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8316,12 +8317,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8316
8317
  iteration: number;
8317
8318
  }[];
8318
8319
  };
8319
- kind: "some";
8320
8320
  };
8321
8321
  } | {
8322
- kind: "blocked";
8323
8322
  blocked: {
8324
- kind: "retryable_block";
8325
8323
  reason: {
8326
8324
  kind: "invalid_required_output";
8327
8325
  contractRef: string;
@@ -8334,6 +8332,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8334
8332
  } | {
8335
8333
  kind: "context_budget_exceeded";
8336
8334
  };
8335
+ kind: "retryable_block";
8337
8336
  blockers: Readonly<{
8338
8337
  blockers: readonly {
8339
8338
  message: string;
@@ -8359,7 +8358,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8359
8358
  retryAttemptId: string;
8360
8359
  validationRef: string;
8361
8360
  } | {
8362
- kind: "terminal_block";
8363
8361
  reason: {
8364
8362
  kind: "user_only_dependency";
8365
8363
  stepId: string;
@@ -8377,6 +8375,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8377
8375
  } | {
8378
8376
  kind: "evaluation_error";
8379
8377
  };
8378
+ kind: "terminal_block";
8380
8379
  blockers: Readonly<{
8381
8380
  blockers: readonly {
8382
8381
  message: string;
@@ -8401,6 +8400,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8401
8400
  }>;
8402
8401
  validationRef?: string | undefined;
8403
8402
  };
8403
+ kind: "blocked";
8404
8404
  completed: {
8405
8405
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
8406
8406
  kind: "set";
@@ -8415,6 +8415,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8415
8415
  pending: {
8416
8416
  kind: "none";
8417
8417
  } | {
8418
+ kind: "some";
8418
8419
  step: {
8419
8420
  stepId: string & {
8420
8421
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8426,7 +8427,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8426
8427
  iteration: number;
8427
8428
  }[];
8428
8429
  };
8429
- kind: "some";
8430
8430
  };
8431
8431
  } | {
8432
8432
  kind: "complete";
@@ -8446,6 +8446,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8446
8446
  pending: {
8447
8447
  kind: "none";
8448
8448
  } | {
8449
+ kind: "some";
8449
8450
  step: {
8450
8451
  stepId: string;
8451
8452
  loopPath: {
@@ -8453,12 +8454,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8453
8454
  iteration: number;
8454
8455
  }[];
8455
8456
  };
8456
- kind: "some";
8457
8457
  };
8458
8458
  } | {
8459
- kind: "blocked";
8460
8459
  blocked: {
8461
- kind: "retryable_block";
8462
8460
  reason: {
8463
8461
  kind: "invalid_required_output";
8464
8462
  contractRef: string;
@@ -8471,6 +8469,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8471
8469
  } | {
8472
8470
  kind: "context_budget_exceeded";
8473
8471
  };
8472
+ kind: "retryable_block";
8474
8473
  blockers: Readonly<{
8475
8474
  blockers: readonly {
8476
8475
  message: string;
@@ -8496,7 +8495,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8496
8495
  retryAttemptId: string;
8497
8496
  validationRef: string;
8498
8497
  } | {
8499
- kind: "terminal_block";
8500
8498
  reason: {
8501
8499
  kind: "user_only_dependency";
8502
8500
  stepId: string;
@@ -8514,6 +8512,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8514
8512
  } | {
8515
8513
  kind: "evaluation_error";
8516
8514
  };
8515
+ kind: "terminal_block";
8517
8516
  blockers: Readonly<{
8518
8517
  blockers: readonly {
8519
8518
  message: string;
@@ -8538,6 +8537,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8538
8537
  }>;
8539
8538
  validationRef?: string | undefined;
8540
8539
  };
8540
+ kind: "blocked";
8541
8541
  completed: {
8542
8542
  values: string[];
8543
8543
  kind: "set";
@@ -8550,6 +8550,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8550
8550
  pending: {
8551
8551
  kind: "none";
8552
8552
  } | {
8553
+ kind: "some";
8553
8554
  step: {
8554
8555
  stepId: string;
8555
8556
  loopPath: {
@@ -8557,7 +8558,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8557
8558
  iteration: number;
8558
8559
  }[];
8559
8560
  };
8560
- kind: "some";
8561
8561
  };
8562
8562
  } | {
8563
8563
  kind: "complete";
@@ -8582,6 +8582,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8582
8582
  pending: {
8583
8583
  kind: "none";
8584
8584
  } | {
8585
+ kind: "some";
8585
8586
  step: {
8586
8587
  stepId: string & {
8587
8588
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8593,12 +8594,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8593
8594
  iteration: number;
8594
8595
  }[];
8595
8596
  };
8596
- kind: "some";
8597
8597
  };
8598
8598
  } | {
8599
- kind: "blocked";
8600
8599
  blocked: {
8601
- kind: "retryable_block";
8602
8600
  reason: {
8603
8601
  kind: "invalid_required_output";
8604
8602
  contractRef: string;
@@ -8611,6 +8609,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8611
8609
  } | {
8612
8610
  kind: "context_budget_exceeded";
8613
8611
  };
8612
+ kind: "retryable_block";
8614
8613
  blockers: Readonly<{
8615
8614
  blockers: readonly {
8616
8615
  message: string;
@@ -8636,7 +8635,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8636
8635
  retryAttemptId: string;
8637
8636
  validationRef: string;
8638
8637
  } | {
8639
- kind: "terminal_block";
8640
8638
  reason: {
8641
8639
  kind: "user_only_dependency";
8642
8640
  stepId: string;
@@ -8654,6 +8652,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8654
8652
  } | {
8655
8653
  kind: "evaluation_error";
8656
8654
  };
8655
+ kind: "terminal_block";
8657
8656
  blockers: Readonly<{
8658
8657
  blockers: readonly {
8659
8658
  message: string;
@@ -8678,6 +8677,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8678
8677
  }>;
8679
8678
  validationRef?: string | undefined;
8680
8679
  };
8680
+ kind: "blocked";
8681
8681
  completed: {
8682
8682
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
8683
8683
  kind: "set";
@@ -8692,6 +8692,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8692
8692
  pending: {
8693
8693
  kind: "none";
8694
8694
  } | {
8695
+ kind: "some";
8695
8696
  step: {
8696
8697
  stepId: string & {
8697
8698
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8703,7 +8704,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8703
8704
  iteration: number;
8704
8705
  }[];
8705
8706
  };
8706
- kind: "some";
8707
8707
  };
8708
8708
  } | {
8709
8709
  kind: "complete";
@@ -8726,6 +8726,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8726
8726
  pending: {
8727
8727
  kind: "none";
8728
8728
  } | {
8729
+ kind: "some";
8729
8730
  step: {
8730
8731
  stepId: string;
8731
8732
  loopPath: {
@@ -8733,12 +8734,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8733
8734
  iteration: number;
8734
8735
  }[];
8735
8736
  };
8736
- kind: "some";
8737
8737
  };
8738
8738
  } | {
8739
- kind: "blocked";
8740
8739
  blocked: {
8741
- kind: "retryable_block";
8742
8740
  reason: {
8743
8741
  kind: "invalid_required_output";
8744
8742
  contractRef: string;
@@ -8751,6 +8749,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8751
8749
  } | {
8752
8750
  kind: "context_budget_exceeded";
8753
8751
  };
8752
+ kind: "retryable_block";
8754
8753
  blockers: Readonly<{
8755
8754
  blockers: readonly {
8756
8755
  message: string;
@@ -8776,7 +8775,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8776
8775
  retryAttemptId: string;
8777
8776
  validationRef: string;
8778
8777
  } | {
8779
- kind: "terminal_block";
8780
8778
  reason: {
8781
8779
  kind: "user_only_dependency";
8782
8780
  stepId: string;
@@ -8794,6 +8792,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8794
8792
  } | {
8795
8793
  kind: "evaluation_error";
8796
8794
  };
8795
+ kind: "terminal_block";
8797
8796
  blockers: Readonly<{
8798
8797
  blockers: readonly {
8799
8798
  message: string;
@@ -8818,6 +8817,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8818
8817
  }>;
8819
8818
  validationRef?: string | undefined;
8820
8819
  };
8820
+ kind: "blocked";
8821
8821
  completed: {
8822
8822
  values: string[];
8823
8823
  kind: "set";
@@ -8830,6 +8830,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8830
8830
  pending: {
8831
8831
  kind: "none";
8832
8832
  } | {
8833
+ kind: "some";
8833
8834
  step: {
8834
8835
  stepId: string;
8835
8836
  loopPath: {
@@ -8837,7 +8838,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8837
8838
  iteration: number;
8838
8839
  }[];
8839
8840
  };
8840
- kind: "some";
8841
8841
  };
8842
8842
  } | {
8843
8843
  kind: "complete";
@@ -8866,6 +8866,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8866
8866
  pending: {
8867
8867
  kind: "none";
8868
8868
  } | {
8869
+ kind: "some";
8869
8870
  step: {
8870
8871
  stepId: string & {
8871
8872
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8877,12 +8878,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8877
8878
  iteration: number;
8878
8879
  }[];
8879
8880
  };
8880
- kind: "some";
8881
8881
  };
8882
8882
  } | {
8883
- kind: "blocked";
8884
8883
  blocked: {
8885
- kind: "retryable_block";
8886
8884
  reason: {
8887
8885
  kind: "invalid_required_output";
8888
8886
  contractRef: string;
@@ -8895,6 +8893,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8895
8893
  } | {
8896
8894
  kind: "context_budget_exceeded";
8897
8895
  };
8896
+ kind: "retryable_block";
8898
8897
  blockers: Readonly<{
8899
8898
  blockers: readonly {
8900
8899
  message: string;
@@ -8920,7 +8919,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8920
8919
  retryAttemptId: string;
8921
8920
  validationRef: string;
8922
8921
  } | {
8923
- kind: "terminal_block";
8924
8922
  reason: {
8925
8923
  kind: "user_only_dependency";
8926
8924
  stepId: string;
@@ -8938,6 +8936,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8938
8936
  } | {
8939
8937
  kind: "evaluation_error";
8940
8938
  };
8939
+ kind: "terminal_block";
8941
8940
  blockers: Readonly<{
8942
8941
  blockers: readonly {
8943
8942
  message: string;
@@ -8962,6 +8961,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8962
8961
  }>;
8963
8962
  validationRef?: string | undefined;
8964
8963
  };
8964
+ kind: "blocked";
8965
8965
  completed: {
8966
8966
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
8967
8967
  kind: "set";
@@ -8976,6 +8976,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8976
8976
  pending: {
8977
8977
  kind: "none";
8978
8978
  } | {
8979
+ kind: "some";
8979
8980
  step: {
8980
8981
  stepId: string & {
8981
8982
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -8987,7 +8988,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
8987
8988
  iteration: number;
8988
8989
  }[];
8989
8990
  };
8990
- kind: "some";
8991
8991
  };
8992
8992
  } | {
8993
8993
  kind: "complete";
@@ -9014,6 +9014,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9014
9014
  pending: {
9015
9015
  kind: "none";
9016
9016
  } | {
9017
+ kind: "some";
9017
9018
  step: {
9018
9019
  stepId: string;
9019
9020
  loopPath: {
@@ -9021,12 +9022,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9021
9022
  iteration: number;
9022
9023
  }[];
9023
9024
  };
9024
- kind: "some";
9025
9025
  };
9026
9026
  } | {
9027
- kind: "blocked";
9028
9027
  blocked: {
9029
- kind: "retryable_block";
9030
9028
  reason: {
9031
9029
  kind: "invalid_required_output";
9032
9030
  contractRef: string;
@@ -9039,6 +9037,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9039
9037
  } | {
9040
9038
  kind: "context_budget_exceeded";
9041
9039
  };
9040
+ kind: "retryable_block";
9042
9041
  blockers: Readonly<{
9043
9042
  blockers: readonly {
9044
9043
  message: string;
@@ -9064,7 +9063,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9064
9063
  retryAttemptId: string;
9065
9064
  validationRef: string;
9066
9065
  } | {
9067
- kind: "terminal_block";
9068
9066
  reason: {
9069
9067
  kind: "user_only_dependency";
9070
9068
  stepId: string;
@@ -9082,6 +9080,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9082
9080
  } | {
9083
9081
  kind: "evaluation_error";
9084
9082
  };
9083
+ kind: "terminal_block";
9085
9084
  blockers: Readonly<{
9086
9085
  blockers: readonly {
9087
9086
  message: string;
@@ -9106,6 +9105,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9106
9105
  }>;
9107
9106
  validationRef?: string | undefined;
9108
9107
  };
9108
+ kind: "blocked";
9109
9109
  completed: {
9110
9110
  values: string[];
9111
9111
  kind: "set";
@@ -9118,6 +9118,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9118
9118
  pending: {
9119
9119
  kind: "none";
9120
9120
  } | {
9121
+ kind: "some";
9121
9122
  step: {
9122
9123
  stepId: string;
9123
9124
  loopPath: {
@@ -9125,7 +9126,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9125
9126
  iteration: number;
9126
9127
  }[];
9127
9128
  };
9128
- kind: "some";
9129
9129
  };
9130
9130
  } | {
9131
9131
  kind: "complete";
@@ -9158,6 +9158,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9158
9158
  pending: {
9159
9159
  kind: "none";
9160
9160
  } | {
9161
+ kind: "some";
9161
9162
  step: {
9162
9163
  stepId: string & {
9163
9164
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -9169,12 +9170,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9169
9170
  iteration: number;
9170
9171
  }[];
9171
9172
  };
9172
- kind: "some";
9173
9173
  };
9174
9174
  } | {
9175
- kind: "blocked";
9176
9175
  blocked: {
9177
- kind: "retryable_block";
9178
9176
  reason: {
9179
9177
  kind: "invalid_required_output";
9180
9178
  contractRef: string;
@@ -9187,6 +9185,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9187
9185
  } | {
9188
9186
  kind: "context_budget_exceeded";
9189
9187
  };
9188
+ kind: "retryable_block";
9190
9189
  blockers: Readonly<{
9191
9190
  blockers: readonly {
9192
9191
  message: string;
@@ -9212,7 +9211,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9212
9211
  retryAttemptId: string;
9213
9212
  validationRef: string;
9214
9213
  } | {
9215
- kind: "terminal_block";
9216
9214
  reason: {
9217
9215
  kind: "user_only_dependency";
9218
9216
  stepId: string;
@@ -9230,6 +9228,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9230
9228
  } | {
9231
9229
  kind: "evaluation_error";
9232
9230
  };
9231
+ kind: "terminal_block";
9233
9232
  blockers: Readonly<{
9234
9233
  blockers: readonly {
9235
9234
  message: string;
@@ -9254,6 +9253,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9254
9253
  }>;
9255
9254
  validationRef?: string | undefined;
9256
9255
  };
9256
+ kind: "blocked";
9257
9257
  completed: {
9258
9258
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
9259
9259
  kind: "set";
@@ -9268,6 +9268,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9268
9268
  pending: {
9269
9269
  kind: "none";
9270
9270
  } | {
9271
+ kind: "some";
9271
9272
  step: {
9272
9273
  stepId: string & {
9273
9274
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -9279,7 +9280,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9279
9280
  iteration: number;
9280
9281
  }[];
9281
9282
  };
9282
- kind: "some";
9283
9283
  };
9284
9284
  } | {
9285
9285
  kind: "complete";
@@ -9341,7 +9341,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9341
9341
  sessionId: string;
9342
9342
  data: {
9343
9343
  snapshotRef: never;
9344
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
9344
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
9345
9345
  parentNodeId: string | null;
9346
9346
  workflowHash: never;
9347
9347
  };
@@ -9469,14 +9469,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9469
9469
  source: "user" | "workflow_recommendation" | "system";
9470
9470
  changeId: string;
9471
9471
  delta: ({
9472
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
9472
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
9473
9473
  key: "autonomy";
9474
9474
  } | {
9475
9475
  value: "conservative" | "balanced" | "aggressive";
9476
9476
  key: "riskPolicy";
9477
9477
  })[];
9478
9478
  effective: {
9479
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
9479
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
9480
9480
  riskPolicy: "conservative" | "balanced" | "aggressive";
9481
9481
  };
9482
9482
  };
@@ -9677,6 +9677,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9677
9677
  pending: {
9678
9678
  kind: "none";
9679
9679
  } | {
9680
+ kind: "some";
9680
9681
  step: {
9681
9682
  stepId: string;
9682
9683
  loopPath: {
@@ -9684,12 +9685,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9684
9685
  iteration: number;
9685
9686
  }[];
9686
9687
  };
9687
- kind: "some";
9688
9688
  };
9689
9689
  } | {
9690
- kind: "blocked";
9691
9690
  blocked: {
9692
- kind: "retryable_block";
9693
9691
  reason: {
9694
9692
  kind: "invalid_required_output";
9695
9693
  contractRef: string;
@@ -9702,6 +9700,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9702
9700
  } | {
9703
9701
  kind: "context_budget_exceeded";
9704
9702
  };
9703
+ kind: "retryable_block";
9705
9704
  blockers: Readonly<{
9706
9705
  blockers: readonly {
9707
9706
  message: string;
@@ -9727,7 +9726,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9727
9726
  retryAttemptId: string;
9728
9727
  validationRef: string;
9729
9728
  } | {
9730
- kind: "terminal_block";
9731
9729
  reason: {
9732
9730
  kind: "user_only_dependency";
9733
9731
  stepId: string;
@@ -9745,6 +9743,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9745
9743
  } | {
9746
9744
  kind: "evaluation_error";
9747
9745
  };
9746
+ kind: "terminal_block";
9748
9747
  blockers: Readonly<{
9749
9748
  blockers: readonly {
9750
9749
  message: string;
@@ -9769,6 +9768,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9769
9768
  }>;
9770
9769
  validationRef?: string | undefined;
9771
9770
  };
9771
+ kind: "blocked";
9772
9772
  completed: {
9773
9773
  values: string[];
9774
9774
  kind: "set";
@@ -9781,6 +9781,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9781
9781
  pending: {
9782
9782
  kind: "none";
9783
9783
  } | {
9784
+ kind: "some";
9784
9785
  step: {
9785
9786
  stepId: string;
9786
9787
  loopPath: {
@@ -9788,7 +9789,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9788
9789
  iteration: number;
9789
9790
  }[];
9790
9791
  };
9791
- kind: "some";
9792
9792
  };
9793
9793
  } | {
9794
9794
  kind: "complete";
@@ -9850,7 +9850,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9850
9850
  sessionId: string;
9851
9851
  data: {
9852
9852
  snapshotRef: string;
9853
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
9853
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
9854
9854
  parentNodeId: string | null;
9855
9855
  workflowHash: string;
9856
9856
  };
@@ -9978,14 +9978,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
9978
9978
  source: "user" | "workflow_recommendation" | "system";
9979
9979
  changeId: string;
9980
9980
  delta: ({
9981
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
9981
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
9982
9982
  key: "autonomy";
9983
9983
  } | {
9984
9984
  value: "conservative" | "balanced" | "aggressive";
9985
9985
  key: "riskPolicy";
9986
9986
  })[];
9987
9987
  effective: {
9988
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
9988
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
9989
9989
  riskPolicy: "conservative" | "balanced" | "aggressive";
9990
9990
  };
9991
9991
  };
@@ -10205,6 +10205,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10205
10205
  pending: {
10206
10206
  kind: "none";
10207
10207
  } | {
10208
+ kind: "some";
10208
10209
  step: {
10209
10210
  stepId: string & {
10210
10211
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -10216,12 +10217,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10216
10217
  iteration: number;
10217
10218
  }[];
10218
10219
  };
10219
- kind: "some";
10220
10220
  };
10221
10221
  } | {
10222
- kind: "blocked";
10223
10222
  blocked: {
10224
- kind: "retryable_block";
10225
10223
  reason: {
10226
10224
  kind: "invalid_required_output";
10227
10225
  contractRef: string;
@@ -10234,6 +10232,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10234
10232
  } | {
10235
10233
  kind: "context_budget_exceeded";
10236
10234
  };
10235
+ kind: "retryable_block";
10237
10236
  blockers: Readonly<{
10238
10237
  blockers: readonly {
10239
10238
  message: string;
@@ -10259,7 +10258,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10259
10258
  retryAttemptId: string;
10260
10259
  validationRef: string;
10261
10260
  } | {
10262
- kind: "terminal_block";
10263
10261
  reason: {
10264
10262
  kind: "user_only_dependency";
10265
10263
  stepId: string;
@@ -10277,6 +10275,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10277
10275
  } | {
10278
10276
  kind: "evaluation_error";
10279
10277
  };
10278
+ kind: "terminal_block";
10280
10279
  blockers: Readonly<{
10281
10280
  blockers: readonly {
10282
10281
  message: string;
@@ -10301,6 +10300,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10301
10300
  }>;
10302
10301
  validationRef?: string | undefined;
10303
10302
  };
10303
+ kind: "blocked";
10304
10304
  completed: {
10305
10305
  values: import("../execution-snapshot/step-instance-key.js").StepInstanceKeyV1[];
10306
10306
  kind: "set";
@@ -10315,6 +10315,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10315
10315
  pending: {
10316
10316
  kind: "none";
10317
10317
  } | {
10318
+ kind: "some";
10318
10319
  step: {
10319
10320
  stepId: string & {
10320
10321
  readonly __brand: "v2.DelimiterSafeIdV1";
@@ -10326,7 +10327,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10326
10327
  iteration: number;
10327
10328
  }[];
10328
10329
  };
10329
- kind: "some";
10330
10330
  };
10331
10331
  } | {
10332
10332
  kind: "complete";
@@ -10388,7 +10388,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10388
10388
  sessionId: string;
10389
10389
  data: {
10390
10390
  snapshotRef: never;
10391
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
10391
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
10392
10392
  parentNodeId: string | null;
10393
10393
  workflowHash: never;
10394
10394
  };
@@ -10516,14 +10516,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10516
10516
  source: "user" | "workflow_recommendation" | "system";
10517
10517
  changeId: string;
10518
10518
  delta: ({
10519
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
10519
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
10520
10520
  key: "autonomy";
10521
10521
  } | {
10522
10522
  value: "conservative" | "balanced" | "aggressive";
10523
10523
  key: "riskPolicy";
10524
10524
  })[];
10525
10525
  effective: {
10526
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
10526
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
10527
10527
  riskPolicy: "conservative" | "balanced" | "aggressive";
10528
10528
  };
10529
10529
  };
@@ -10741,6 +10741,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10741
10741
  pending: {
10742
10742
  kind: "none";
10743
10743
  } | {
10744
+ kind: "some";
10744
10745
  step: {
10745
10746
  stepId: string;
10746
10747
  loopPath: {
@@ -10748,12 +10749,9 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10748
10749
  iteration: number;
10749
10750
  }[];
10750
10751
  };
10751
- kind: "some";
10752
10752
  };
10753
10753
  } | {
10754
- kind: "blocked";
10755
10754
  blocked: {
10756
- kind: "retryable_block";
10757
10755
  reason: {
10758
10756
  kind: "invalid_required_output";
10759
10757
  contractRef: string;
@@ -10766,6 +10764,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10766
10764
  } | {
10767
10765
  kind: "context_budget_exceeded";
10768
10766
  };
10767
+ kind: "retryable_block";
10769
10768
  blockers: Readonly<{
10770
10769
  blockers: readonly {
10771
10770
  message: string;
@@ -10791,7 +10790,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10791
10790
  retryAttemptId: string;
10792
10791
  validationRef: string;
10793
10792
  } | {
10794
- kind: "terminal_block";
10795
10793
  reason: {
10796
10794
  kind: "user_only_dependency";
10797
10795
  stepId: string;
@@ -10809,6 +10807,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10809
10807
  } | {
10810
10808
  kind: "evaluation_error";
10811
10809
  };
10810
+ kind: "terminal_block";
10812
10811
  blockers: Readonly<{
10813
10812
  blockers: readonly {
10814
10813
  message: string;
@@ -10833,6 +10832,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10833
10832
  }>;
10834
10833
  validationRef?: string | undefined;
10835
10834
  };
10835
+ kind: "blocked";
10836
10836
  completed: {
10837
10837
  values: string[];
10838
10838
  kind: "set";
@@ -10845,6 +10845,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10845
10845
  pending: {
10846
10846
  kind: "none";
10847
10847
  } | {
10848
+ kind: "some";
10848
10849
  step: {
10849
10850
  stepId: string;
10850
10851
  loopPath: {
@@ -10852,7 +10853,6 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10852
10853
  iteration: number;
10853
10854
  }[];
10854
10855
  };
10855
- kind: "some";
10856
10856
  };
10857
10857
  } | {
10858
10858
  kind: "complete";
@@ -10914,7 +10914,7 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
10914
10914
  sessionId: string;
10915
10915
  data: {
10916
10916
  snapshotRef: string;
10917
- nodeKind: "step" | "checkpoint" | "blocked_attempt";
10917
+ nodeKind: "checkpoint" | "step" | "blocked_attempt";
10918
10918
  parentNodeId: string | null;
10919
10919
  workflowHash: string;
10920
10920
  };
@@ -11042,14 +11042,14 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
11042
11042
  source: "user" | "workflow_recommendation" | "system";
11043
11043
  changeId: string;
11044
11044
  delta: ({
11045
- value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
11045
+ value: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
11046
11046
  key: "autonomy";
11047
11047
  } | {
11048
11048
  value: "conservative" | "balanced" | "aggressive";
11049
11049
  key: "riskPolicy";
11050
11050
  })[];
11051
11051
  effective: {
11052
- autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
11052
+ autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
11053
11053
  riskPolicy: "conservative" | "balanced" | "aggressive";
11054
11054
  };
11055
11055
  };