@exaudeus/workrail 3.41.0 → 3.42.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.
Files changed (39) hide show
  1. package/dist/cli-worktrain.js +40 -11
  2. package/dist/console-ui/assets/{index-CQt4UhPB.js → index-DwfWMKvv.js} +1 -1
  3. package/dist/console-ui/index.html +1 -1
  4. package/dist/context-assembly/deps.d.ts +8 -0
  5. package/dist/context-assembly/deps.js +2 -0
  6. package/dist/context-assembly/index.d.ts +6 -0
  7. package/dist/context-assembly/index.js +50 -0
  8. package/dist/context-assembly/infra.d.ts +3 -0
  9. package/dist/context-assembly/infra.js +154 -0
  10. package/dist/context-assembly/types.d.ts +30 -0
  11. package/dist/context-assembly/types.js +2 -0
  12. package/dist/coordinators/pr-review.d.ts +3 -1
  13. package/dist/coordinators/pr-review.js +25 -4
  14. package/dist/daemon/workflow-runner.js +11 -0
  15. package/dist/domain/execution/state.d.ts +6 -6
  16. package/dist/manifest.json +64 -32
  17. package/dist/mcp/handlers/v2-workflow.d.ts +2 -2
  18. package/dist/mcp/output-schemas.d.ts +234 -234
  19. package/dist/mcp/tools.d.ts +2 -2
  20. package/dist/mcp/v2/tools.d.ts +24 -24
  21. package/dist/v2/durable-core/schemas/artifacts/assessment.d.ts +2 -2
  22. package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.d.ts +2 -2
  23. package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
  24. package/dist/v2/durable-core/schemas/artifacts/review-verdict.d.ts +6 -6
  25. package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +56 -56
  26. package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +83 -83
  27. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +1024 -1024
  28. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +2336 -2336
  29. package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +6 -6
  30. package/dist/v2/durable-core/schemas/session/events.d.ts +339 -339
  31. package/dist/v2/durable-core/schemas/session/gaps.d.ts +30 -30
  32. package/dist/v2/durable-core/schemas/session/manifest.d.ts +6 -6
  33. package/dist/v2/durable-core/schemas/session/outputs.d.ts +8 -8
  34. package/dist/v2/durable-core/schemas/session/validation-event.d.ts +3 -3
  35. package/docs/design/context-assembly-design-candidates.md +199 -0
  36. package/docs/design/context-assembly-implementation-plan.md +211 -0
  37. package/docs/design/context-assembly-review-findings.md +112 -0
  38. package/docs/ideas/backlog.md +64 -0
  39. package/package.json +1 -1
@@ -24,17 +24,17 @@ export declare const ContractViolationReasonV1Schema: z.ZodDiscriminatedUnion<"k
24
24
  level: z.ZodString;
25
25
  guidance: z.ZodString;
26
26
  }, "strict", z.ZodTypeAny, {
27
- level: string;
28
27
  kind: "assessment_followup_required";
28
+ dimensionId: string;
29
+ level: string;
29
30
  assessmentId: string;
30
31
  guidance: string;
31
- dimensionId: string;
32
32
  }, {
33
- level: string;
34
33
  kind: "assessment_followup_required";
34
+ dimensionId: string;
35
+ level: string;
35
36
  assessmentId: string;
36
37
  guidance: string;
37
- dimensionId: string;
38
38
  }>, z.ZodObject<{
39
39
  kind: z.ZodLiteral<"missing_context_key">;
40
40
  key: z.ZodString;
@@ -136,17 +136,17 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
136
136
  level: z.ZodString;
137
137
  guidance: z.ZodString;
138
138
  }, "strict", z.ZodTypeAny, {
139
- level: string;
140
139
  kind: "assessment_followup_required";
140
+ dimensionId: string;
141
+ level: string;
141
142
  assessmentId: string;
142
143
  guidance: string;
143
- dimensionId: string;
144
144
  }, {
145
- level: string;
146
145
  kind: "assessment_followup_required";
146
+ dimensionId: string;
147
+ level: string;
147
148
  assessmentId: string;
148
149
  guidance: string;
149
- dimensionId: string;
150
150
  }>, z.ZodObject<{
151
151
  kind: z.ZodLiteral<"missing_context_key">;
152
152
  key: z.ZodString;
@@ -216,12 +216,12 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
216
216
  dimensionId: z.ZodString;
217
217
  }, "strict", z.ZodTypeAny, {
218
218
  kind: "assessment_dimension";
219
- assessmentId: string;
220
219
  dimensionId: string;
220
+ assessmentId: string;
221
221
  }, {
222
222
  kind: "assessment_dimension";
223
- assessmentId: string;
224
223
  dimensionId: string;
224
+ assessmentId: string;
225
225
  }>, z.ZodObject<{
226
226
  kind: z.ZodLiteral<"workflow_step">;
227
227
  stepId: z.ZodString;
@@ -236,7 +236,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
236
236
  suggestedFix: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  message: string;
239
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
239
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
240
240
  pointer: {
241
241
  kind: "context_key";
242
242
  key: string;
@@ -250,8 +250,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
250
250
  capability: "delegation" | "web_browsing";
251
251
  } | {
252
252
  kind: "assessment_dimension";
253
- assessmentId: string;
254
253
  dimensionId: string;
254
+ assessmentId: string;
255
255
  } | {
256
256
  kind: "workflow_step";
257
257
  stepId: string;
@@ -259,7 +259,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
259
259
  suggestedFix?: string | undefined;
260
260
  }, {
261
261
  message: string;
262
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
262
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
263
263
  pointer: {
264
264
  kind: "context_key";
265
265
  key: string;
@@ -273,8 +273,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
273
273
  capability: "delegation" | "web_browsing";
274
274
  } | {
275
275
  kind: "assessment_dimension";
276
- assessmentId: string;
277
276
  dimensionId: string;
277
+ assessmentId: string;
278
278
  } | {
279
279
  kind: "workflow_step";
280
280
  stepId: string;
@@ -284,7 +284,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
284
284
  }, "strip", z.ZodTypeAny, {
285
285
  blockers: readonly {
286
286
  message: string;
287
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
287
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
288
288
  pointer: {
289
289
  kind: "context_key";
290
290
  key: string;
@@ -298,8 +298,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
298
298
  capability: "delegation" | "web_browsing";
299
299
  } | {
300
300
  kind: "assessment_dimension";
301
- assessmentId: string;
302
301
  dimensionId: string;
302
+ assessmentId: string;
303
303
  } | {
304
304
  kind: "workflow_step";
305
305
  stepId: string;
@@ -309,7 +309,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
309
309
  }, {
310
310
  blockers: readonly {
311
311
  message: string;
312
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
312
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
313
313
  pointer: {
314
314
  kind: "context_key";
315
315
  key: string;
@@ -323,8 +323,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
323
323
  capability: "delegation" | "web_browsing";
324
324
  } | {
325
325
  kind: "assessment_dimension";
326
- assessmentId: string;
327
326
  dimensionId: string;
327
+ assessmentId: string;
328
328
  } | {
329
329
  kind: "workflow_step";
330
330
  stepId: string;
@@ -334,31 +334,10 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
334
334
  }>>;
335
335
  }, "strict", z.ZodTypeAny, {
336
336
  kind: "retryable_block";
337
- reason: {
338
- kind: "invalid_required_output";
339
- contractRef: string;
340
- } | {
341
- kind: "missing_required_output";
342
- contractRef: string;
343
- } | {
344
- level: string;
345
- kind: "assessment_followup_required";
346
- assessmentId: string;
347
- guidance: string;
348
- dimensionId: string;
349
- } | {
350
- kind: "missing_context_key";
351
- key: string;
352
- } | {
353
- kind: "context_budget_exceeded";
354
- } | {
355
- kind: "missing_notes";
356
- stepId: string;
357
- };
358
337
  blockers: Readonly<{
359
338
  blockers: readonly {
360
339
  message: string;
361
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
340
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
362
341
  pointer: {
363
342
  kind: "context_key";
364
343
  key: string;
@@ -372,8 +351,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
372
351
  capability: "delegation" | "web_browsing";
373
352
  } | {
374
353
  kind: "assessment_dimension";
375
- assessmentId: string;
376
354
  dimensionId: string;
355
+ assessmentId: string;
377
356
  } | {
378
357
  kind: "workflow_step";
379
358
  stepId: string;
@@ -381,10 +360,6 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
381
360
  suggestedFix?: string | undefined;
382
361
  }[];
383
362
  }>;
384
- retryAttemptId: string;
385
- validationRef?: string | undefined;
386
- }, {
387
- kind: "retryable_block";
388
363
  reason: {
389
364
  kind: "invalid_required_output";
390
365
  contractRef: string;
@@ -392,11 +367,11 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
392
367
  kind: "missing_required_output";
393
368
  contractRef: string;
394
369
  } | {
395
- level: string;
396
370
  kind: "assessment_followup_required";
371
+ dimensionId: string;
372
+ level: string;
397
373
  assessmentId: string;
398
374
  guidance: string;
399
- dimensionId: string;
400
375
  } | {
401
376
  kind: "missing_context_key";
402
377
  key: string;
@@ -406,10 +381,14 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
406
381
  kind: "missing_notes";
407
382
  stepId: string;
408
383
  };
384
+ retryAttemptId: string;
385
+ validationRef?: string | undefined;
386
+ }, {
387
+ kind: "retryable_block";
409
388
  blockers: Readonly<{
410
389
  blockers: readonly {
411
390
  message: string;
412
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
391
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
413
392
  pointer: {
414
393
  kind: "context_key";
415
394
  key: string;
@@ -423,8 +402,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
423
402
  capability: "delegation" | "web_browsing";
424
403
  } | {
425
404
  kind: "assessment_dimension";
426
- assessmentId: string;
427
405
  dimensionId: string;
406
+ assessmentId: string;
428
407
  } | {
429
408
  kind: "workflow_step";
430
409
  stepId: string;
@@ -432,6 +411,27 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
432
411
  suggestedFix?: string | undefined;
433
412
  }[];
434
413
  }>;
414
+ reason: {
415
+ kind: "invalid_required_output";
416
+ contractRef: string;
417
+ } | {
418
+ kind: "missing_required_output";
419
+ contractRef: string;
420
+ } | {
421
+ kind: "assessment_followup_required";
422
+ dimensionId: string;
423
+ level: string;
424
+ assessmentId: string;
425
+ guidance: string;
426
+ } | {
427
+ kind: "missing_context_key";
428
+ key: string;
429
+ } | {
430
+ kind: "context_budget_exceeded";
431
+ } | {
432
+ kind: "missing_notes";
433
+ stepId: string;
434
+ };
435
435
  retryAttemptId: string;
436
436
  validationRef?: string | undefined;
437
437
  }>, z.ZodObject<{
@@ -528,12 +528,12 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
528
528
  dimensionId: z.ZodString;
529
529
  }, "strict", z.ZodTypeAny, {
530
530
  kind: "assessment_dimension";
531
- assessmentId: string;
532
531
  dimensionId: string;
532
+ assessmentId: string;
533
533
  }, {
534
534
  kind: "assessment_dimension";
535
- assessmentId: string;
536
535
  dimensionId: string;
536
+ assessmentId: string;
537
537
  }>, z.ZodObject<{
538
538
  kind: z.ZodLiteral<"workflow_step">;
539
539
  stepId: z.ZodString;
@@ -548,7 +548,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
548
548
  suggestedFix: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
549
549
  }, "strip", z.ZodTypeAny, {
550
550
  message: string;
551
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
551
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
552
552
  pointer: {
553
553
  kind: "context_key";
554
554
  key: string;
@@ -562,8 +562,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
562
562
  capability: "delegation" | "web_browsing";
563
563
  } | {
564
564
  kind: "assessment_dimension";
565
- assessmentId: string;
566
565
  dimensionId: string;
566
+ assessmentId: string;
567
567
  } | {
568
568
  kind: "workflow_step";
569
569
  stepId: string;
@@ -571,7 +571,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
571
571
  suggestedFix?: string | undefined;
572
572
  }, {
573
573
  message: string;
574
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
574
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
575
575
  pointer: {
576
576
  kind: "context_key";
577
577
  key: string;
@@ -585,8 +585,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
585
585
  capability: "delegation" | "web_browsing";
586
586
  } | {
587
587
  kind: "assessment_dimension";
588
- assessmentId: string;
589
588
  dimensionId: string;
589
+ assessmentId: string;
590
590
  } | {
591
591
  kind: "workflow_step";
592
592
  stepId: string;
@@ -596,7 +596,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
596
596
  }, "strip", z.ZodTypeAny, {
597
597
  blockers: readonly {
598
598
  message: string;
599
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
599
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
600
600
  pointer: {
601
601
  kind: "context_key";
602
602
  key: string;
@@ -610,8 +610,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
610
610
  capability: "delegation" | "web_browsing";
611
611
  } | {
612
612
  kind: "assessment_dimension";
613
- assessmentId: string;
614
613
  dimensionId: string;
614
+ assessmentId: string;
615
615
  } | {
616
616
  kind: "workflow_step";
617
617
  stepId: string;
@@ -621,7 +621,7 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
621
621
  }, {
622
622
  blockers: readonly {
623
623
  message: string;
624
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
624
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
625
625
  pointer: {
626
626
  kind: "context_key";
627
627
  key: string;
@@ -635,8 +635,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
635
635
  capability: "delegation" | "web_browsing";
636
636
  } | {
637
637
  kind: "assessment_dimension";
638
- assessmentId: string;
639
638
  dimensionId: string;
639
+ assessmentId: string;
640
640
  } | {
641
641
  kind: "workflow_step";
642
642
  stepId: string;
@@ -646,27 +646,10 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
646
646
  }>>;
647
647
  }, "strict", z.ZodTypeAny, {
648
648
  kind: "terminal_block";
649
- reason: {
650
- kind: "user_only_dependency";
651
- stepId: string;
652
- detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
653
- } | {
654
- kind: "required_capability_unknown";
655
- capability: "delegation" | "web_browsing";
656
- } | {
657
- kind: "required_capability_unavailable";
658
- capability: "delegation" | "web_browsing";
659
- } | {
660
- kind: "invariant_violation";
661
- } | {
662
- kind: "storage_corruption_detected";
663
- } | {
664
- kind: "evaluation_error";
665
- };
666
649
  blockers: Readonly<{
667
650
  blockers: readonly {
668
651
  message: string;
669
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
652
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
670
653
  pointer: {
671
654
  kind: "context_key";
672
655
  key: string;
@@ -680,8 +663,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
680
663
  capability: "delegation" | "web_browsing";
681
664
  } | {
682
665
  kind: "assessment_dimension";
683
- assessmentId: string;
684
666
  dimensionId: string;
667
+ assessmentId: string;
685
668
  } | {
686
669
  kind: "workflow_step";
687
670
  stepId: string;
@@ -689,9 +672,6 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
689
672
  suggestedFix?: string | undefined;
690
673
  }[];
691
674
  }>;
692
- validationRef?: string | undefined;
693
- }, {
694
- kind: "terminal_block";
695
675
  reason: {
696
676
  kind: "user_only_dependency";
697
677
  stepId: string;
@@ -709,10 +689,13 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
709
689
  } | {
710
690
  kind: "evaluation_error";
711
691
  };
692
+ validationRef?: string | undefined;
693
+ }, {
694
+ kind: "terminal_block";
712
695
  blockers: Readonly<{
713
696
  blockers: readonly {
714
697
  message: string;
715
- code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "ASSESSMENT_FOLLOWUP_REQUIRED" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
698
+ code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED" | "ASSESSMENT_FOLLOWUP_REQUIRED";
716
699
  pointer: {
717
700
  kind: "context_key";
718
701
  key: string;
@@ -726,8 +709,8 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
726
709
  capability: "delegation" | "web_browsing";
727
710
  } | {
728
711
  kind: "assessment_dimension";
729
- assessmentId: string;
730
712
  dimensionId: string;
713
+ assessmentId: string;
731
714
  } | {
732
715
  kind: "workflow_step";
733
716
  stepId: string;
@@ -735,6 +718,23 @@ export declare const BlockedSnapshotV1Schema: z.ZodDiscriminatedUnion<"kind", [z
735
718
  suggestedFix?: string | undefined;
736
719
  }[];
737
720
  }>;
721
+ reason: {
722
+ kind: "user_only_dependency";
723
+ stepId: string;
724
+ detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
725
+ } | {
726
+ kind: "required_capability_unknown";
727
+ capability: "delegation" | "web_browsing";
728
+ } | {
729
+ kind: "required_capability_unavailable";
730
+ capability: "delegation" | "web_browsing";
731
+ } | {
732
+ kind: "invariant_violation";
733
+ } | {
734
+ kind: "storage_corruption_detected";
735
+ } | {
736
+ kind: "evaluation_error";
737
+ };
738
738
  validationRef?: string | undefined;
739
739
  }>]>;
740
740
  export type BlockedSnapshotV1 = z.infer<typeof BlockedSnapshotV1Schema>;