@xpert-ai/contracts 3.34.0 → 3.35.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.
@@ -174,15 +174,110 @@ export declare const projectTaskEvidenceReferenceSchema: z.ZodDiscriminatedUnion
174
174
  snapshotId: string;
175
175
  }>]>;
176
176
  export type ProjectTaskEvidenceReference = z.output<typeof projectTaskEvidenceReferenceSchema>;
177
- export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
+ export declare const projectTaskReviewerSchema: z.ZodObject<{
178
+ bindingId: z.ZodString;
179
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
180
+ }, "strict", z.ZodTypeAny, {
181
+ mode: "execution" | "evidence_only";
182
+ bindingId: string;
183
+ }, {
184
+ mode: "execution" | "evidence_only";
185
+ bindingId: string;
186
+ }>;
187
+ export type ProjectTaskReviewer = z.output<typeof projectTaskReviewerSchema>;
188
+ /** Host-owned identity of a review work item; retries cannot change its candidate. */
189
+ export declare const projectTaskReviewSubjectSchema: z.ZodObject<{
190
+ implementationTaskId: z.ZodString;
191
+ implementationExecutionId: z.ZodString;
192
+ specificationDigest: z.ZodString;
193
+ }, "strict", z.ZodTypeAny, {
194
+ implementationTaskId: string;
195
+ implementationExecutionId: string;
196
+ specificationDigest: string;
197
+ }, {
198
+ implementationTaskId: string;
199
+ implementationExecutionId: string;
200
+ specificationDigest: string;
201
+ }>;
202
+ export type ProjectTaskReviewSubject = z.output<typeof projectTaskReviewSubjectSchema>;
203
+ export declare const projectTaskReworkSchema: z.ZodObject<{
204
+ reviewExecutionId: z.ZodString;
205
+ findingIds: z.ZodArray<z.ZodString, "many">;
206
+ }, "strict", z.ZodTypeAny, {
207
+ reviewExecutionId: string;
208
+ findingIds: string[];
209
+ }, {
210
+ reviewExecutionId: string;
211
+ findingIds: string[];
212
+ }>;
213
+ export declare const projectTaskCandidatePathSchema: z.ZodEffects<z.ZodString, string, string>;
214
+ export declare const projectTaskEvidencePathSchema: z.ZodEffects<z.ZodString, string, string>;
215
+ export declare const projectTaskExecutionPurposeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
178
216
  type: z.ZodLiteral<"implementation">;
217
+ reviewer: z.ZodOptional<z.ZodObject<{
218
+ bindingId: z.ZodString;
219
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
220
+ }, "strict", z.ZodTypeAny, {
221
+ mode: "execution" | "evidence_only";
222
+ bindingId: string;
223
+ }, {
224
+ mode: "execution" | "evidence_only";
225
+ bindingId: string;
226
+ }>>;
227
+ coordination: z.ZodOptional<z.ZodObject<{
228
+ taskId: z.ZodString;
229
+ specificationDigest: z.ZodString;
230
+ }, "strict", z.ZodTypeAny, {
231
+ taskId: string;
232
+ specificationDigest: string;
233
+ }, {
234
+ taskId: string;
235
+ specificationDigest: string;
236
+ }>>;
237
+ rework: z.ZodOptional<z.ZodObject<{
238
+ reviewExecutionId: z.ZodString;
239
+ findingIds: z.ZodArray<z.ZodString, "many">;
240
+ }, "strict", z.ZodTypeAny, {
241
+ reviewExecutionId: string;
242
+ findingIds: string[];
243
+ }, {
244
+ reviewExecutionId: string;
245
+ findingIds: string[];
246
+ }>>;
179
247
  }, "strict", z.ZodTypeAny, {
180
248
  type: "implementation";
249
+ reviewer?: {
250
+ mode: "execution" | "evidence_only";
251
+ bindingId: string;
252
+ } | undefined;
253
+ coordination?: {
254
+ taskId: string;
255
+ specificationDigest: string;
256
+ } | undefined;
257
+ rework?: {
258
+ reviewExecutionId: string;
259
+ findingIds: string[];
260
+ } | undefined;
181
261
  }, {
182
262
  type: "implementation";
263
+ reviewer?: {
264
+ mode: "execution" | "evidence_only";
265
+ bindingId: string;
266
+ } | undefined;
267
+ coordination?: {
268
+ taskId: string;
269
+ specificationDigest: string;
270
+ } | undefined;
271
+ rework?: {
272
+ reviewExecutionId: string;
273
+ findingIds: string[];
274
+ } | undefined;
183
275
  }>, z.ZodObject<{
184
276
  type: z.ZodLiteral<"review">;
277
+ mode: z.ZodOptional<z.ZodEnum<["evidence_only", "execution"]>>;
278
+ candidatePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
185
279
  implementationExecutionId: z.ZodString;
280
+ implementationTaskId: z.ZodOptional<z.ZodString>;
186
281
  implementationInvocationId: z.ZodString;
187
282
  specificationDigest: z.ZodString;
188
283
  evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -238,8 +333,11 @@ export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<
238
333
  snapshotId: string;
239
334
  })[];
240
335
  implementationExecutionId: string;
241
- implementationInvocationId: string;
242
336
  specificationDigest: string;
337
+ implementationInvocationId: string;
338
+ mode?: "execution" | "evidence_only" | undefined;
339
+ implementationTaskId?: string | undefined;
340
+ candidatePaths?: string[] | undefined;
243
341
  }, {
244
342
  type: "review";
245
343
  evidence: ({
@@ -256,9 +354,82 @@ export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<
256
354
  snapshotId: string;
257
355
  })[];
258
356
  implementationExecutionId: string;
357
+ specificationDigest: string;
259
358
  implementationInvocationId: string;
359
+ mode?: "execution" | "evidence_only" | undefined;
360
+ implementationTaskId?: string | undefined;
361
+ candidatePaths?: string[] | undefined;
362
+ }>]>, {
363
+ type: "implementation";
364
+ reviewer?: {
365
+ mode: "execution" | "evidence_only";
366
+ bindingId: string;
367
+ } | undefined;
368
+ coordination?: {
369
+ taskId: string;
370
+ specificationDigest: string;
371
+ } | undefined;
372
+ rework?: {
373
+ reviewExecutionId: string;
374
+ findingIds: string[];
375
+ } | undefined;
376
+ } | {
377
+ type: "review";
378
+ evidence: ({
379
+ type: "artifact";
380
+ artifactId: string;
381
+ versionId: string;
382
+ } | {
383
+ type: "invocation_result";
384
+ revision: number;
385
+ invocationId: string;
386
+ } | {
387
+ type: "workspace_snapshot";
388
+ digest: string;
389
+ snapshotId: string;
390
+ })[];
391
+ implementationExecutionId: string;
260
392
  specificationDigest: string;
261
- }>]>;
393
+ implementationInvocationId: string;
394
+ mode?: "execution" | "evidence_only" | undefined;
395
+ implementationTaskId?: string | undefined;
396
+ candidatePaths?: string[] | undefined;
397
+ }, {
398
+ type: "implementation";
399
+ reviewer?: {
400
+ mode: "execution" | "evidence_only";
401
+ bindingId: string;
402
+ } | undefined;
403
+ coordination?: {
404
+ taskId: string;
405
+ specificationDigest: string;
406
+ } | undefined;
407
+ rework?: {
408
+ reviewExecutionId: string;
409
+ findingIds: string[];
410
+ } | undefined;
411
+ } | {
412
+ type: "review";
413
+ evidence: ({
414
+ type: "artifact";
415
+ artifactId: string;
416
+ versionId: string;
417
+ } | {
418
+ type: "invocation_result";
419
+ revision: number;
420
+ invocationId: string;
421
+ } | {
422
+ type: "workspace_snapshot";
423
+ digest: string;
424
+ snapshotId: string;
425
+ })[];
426
+ implementationExecutionId: string;
427
+ specificationDigest: string;
428
+ implementationInvocationId: string;
429
+ mode?: "execution" | "evidence_only" | undefined;
430
+ implementationTaskId?: string | undefined;
431
+ candidatePaths?: string[] | undefined;
432
+ }>;
262
433
  export type ProjectTaskExecutionPurpose = z.output<typeof projectTaskExecutionPurposeSchema>;
263
434
  export declare const projectTaskExecutionReferenceSchema: z.ZodObject<{
264
435
  projectId: z.ZodString;
@@ -359,15 +530,72 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
359
530
  description?: string | undefined;
360
531
  };
361
532
  }>;
362
- purpose: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
+ purpose: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
363
534
  type: z.ZodLiteral<"implementation">;
535
+ reviewer: z.ZodOptional<z.ZodObject<{
536
+ bindingId: z.ZodString;
537
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
538
+ }, "strict", z.ZodTypeAny, {
539
+ mode: "execution" | "evidence_only";
540
+ bindingId: string;
541
+ }, {
542
+ mode: "execution" | "evidence_only";
543
+ bindingId: string;
544
+ }>>;
545
+ coordination: z.ZodOptional<z.ZodObject<{
546
+ taskId: z.ZodString;
547
+ specificationDigest: z.ZodString;
548
+ }, "strict", z.ZodTypeAny, {
549
+ taskId: string;
550
+ specificationDigest: string;
551
+ }, {
552
+ taskId: string;
553
+ specificationDigest: string;
554
+ }>>;
555
+ rework: z.ZodOptional<z.ZodObject<{
556
+ reviewExecutionId: z.ZodString;
557
+ findingIds: z.ZodArray<z.ZodString, "many">;
558
+ }, "strict", z.ZodTypeAny, {
559
+ reviewExecutionId: string;
560
+ findingIds: string[];
561
+ }, {
562
+ reviewExecutionId: string;
563
+ findingIds: string[];
564
+ }>>;
364
565
  }, "strict", z.ZodTypeAny, {
365
566
  type: "implementation";
567
+ reviewer?: {
568
+ mode: "execution" | "evidence_only";
569
+ bindingId: string;
570
+ } | undefined;
571
+ coordination?: {
572
+ taskId: string;
573
+ specificationDigest: string;
574
+ } | undefined;
575
+ rework?: {
576
+ reviewExecutionId: string;
577
+ findingIds: string[];
578
+ } | undefined;
366
579
  }, {
367
580
  type: "implementation";
581
+ reviewer?: {
582
+ mode: "execution" | "evidence_only";
583
+ bindingId: string;
584
+ } | undefined;
585
+ coordination?: {
586
+ taskId: string;
587
+ specificationDigest: string;
588
+ } | undefined;
589
+ rework?: {
590
+ reviewExecutionId: string;
591
+ findingIds: string[];
592
+ } | undefined;
368
593
  }>, z.ZodObject<{
369
594
  type: z.ZodLiteral<"review">;
595
+ mode: z.ZodOptional<z.ZodEnum<["evidence_only", "execution"]>>;
596
+ candidatePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
370
597
  implementationExecutionId: z.ZodString;
598
+ implementationTaskId: z.ZodOptional<z.ZodString>;
371
599
  implementationInvocationId: z.ZodString;
372
600
  specificationDigest: z.ZodString;
373
601
  evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -423,8 +651,11 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
423
651
  snapshotId: string;
424
652
  })[];
425
653
  implementationExecutionId: string;
426
- implementationInvocationId: string;
427
654
  specificationDigest: string;
655
+ implementationInvocationId: string;
656
+ mode?: "execution" | "evidence_only" | undefined;
657
+ implementationTaskId?: string | undefined;
658
+ candidatePaths?: string[] | undefined;
428
659
  }, {
429
660
  type: "review";
430
661
  evidence: ({
@@ -441,9 +672,82 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
441
672
  snapshotId: string;
442
673
  })[];
443
674
  implementationExecutionId: string;
675
+ specificationDigest: string;
676
+ implementationInvocationId: string;
677
+ mode?: "execution" | "evidence_only" | undefined;
678
+ implementationTaskId?: string | undefined;
679
+ candidatePaths?: string[] | undefined;
680
+ }>]>, {
681
+ type: "implementation";
682
+ reviewer?: {
683
+ mode: "execution" | "evidence_only";
684
+ bindingId: string;
685
+ } | undefined;
686
+ coordination?: {
687
+ taskId: string;
688
+ specificationDigest: string;
689
+ } | undefined;
690
+ rework?: {
691
+ reviewExecutionId: string;
692
+ findingIds: string[];
693
+ } | undefined;
694
+ } | {
695
+ type: "review";
696
+ evidence: ({
697
+ type: "artifact";
698
+ artifactId: string;
699
+ versionId: string;
700
+ } | {
701
+ type: "invocation_result";
702
+ revision: number;
703
+ invocationId: string;
704
+ } | {
705
+ type: "workspace_snapshot";
706
+ digest: string;
707
+ snapshotId: string;
708
+ })[];
709
+ implementationExecutionId: string;
710
+ specificationDigest: string;
444
711
  implementationInvocationId: string;
712
+ mode?: "execution" | "evidence_only" | undefined;
713
+ implementationTaskId?: string | undefined;
714
+ candidatePaths?: string[] | undefined;
715
+ }, {
716
+ type: "implementation";
717
+ reviewer?: {
718
+ mode: "execution" | "evidence_only";
719
+ bindingId: string;
720
+ } | undefined;
721
+ coordination?: {
722
+ taskId: string;
723
+ specificationDigest: string;
724
+ } | undefined;
725
+ rework?: {
726
+ reviewExecutionId: string;
727
+ findingIds: string[];
728
+ } | undefined;
729
+ } | {
730
+ type: "review";
731
+ evidence: ({
732
+ type: "artifact";
733
+ artifactId: string;
734
+ versionId: string;
735
+ } | {
736
+ type: "invocation_result";
737
+ revision: number;
738
+ invocationId: string;
739
+ } | {
740
+ type: "workspace_snapshot";
741
+ digest: string;
742
+ snapshotId: string;
743
+ })[];
744
+ implementationExecutionId: string;
445
745
  specificationDigest: string;
446
- }>]>;
746
+ implementationInvocationId: string;
747
+ mode?: "execution" | "evidence_only" | undefined;
748
+ implementationTaskId?: string | undefined;
749
+ candidatePaths?: string[] | undefined;
750
+ }>;
447
751
  }, "strict", z.ZodTypeAny, {
448
752
  projectId: string;
449
753
  specification: {
@@ -463,6 +767,18 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
463
767
  taskExecutionId: string;
464
768
  purpose: {
465
769
  type: "implementation";
770
+ reviewer?: {
771
+ mode: "execution" | "evidence_only";
772
+ bindingId: string;
773
+ } | undefined;
774
+ coordination?: {
775
+ taskId: string;
776
+ specificationDigest: string;
777
+ } | undefined;
778
+ rework?: {
779
+ reviewExecutionId: string;
780
+ findingIds: string[];
781
+ } | undefined;
466
782
  } | {
467
783
  type: "review";
468
784
  evidence: ({
@@ -479,8 +795,11 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
479
795
  snapshotId: string;
480
796
  })[];
481
797
  implementationExecutionId: string;
482
- implementationInvocationId: string;
483
798
  specificationDigest: string;
799
+ implementationInvocationId: string;
800
+ mode?: "execution" | "evidence_only" | undefined;
801
+ implementationTaskId?: string | undefined;
802
+ candidatePaths?: string[] | undefined;
484
803
  };
485
804
  }, {
486
805
  projectId: string;
@@ -501,6 +820,18 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
501
820
  taskExecutionId: string;
502
821
  purpose: {
503
822
  type: "implementation";
823
+ reviewer?: {
824
+ mode: "execution" | "evidence_only";
825
+ bindingId: string;
826
+ } | undefined;
827
+ coordination?: {
828
+ taskId: string;
829
+ specificationDigest: string;
830
+ } | undefined;
831
+ rework?: {
832
+ reviewExecutionId: string;
833
+ findingIds: string[];
834
+ } | undefined;
504
835
  } | {
505
836
  type: "review";
506
837
  evidence: ({
@@ -517,8 +848,11 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
517
848
  snapshotId: string;
518
849
  })[];
519
850
  implementationExecutionId: string;
520
- implementationInvocationId: string;
521
851
  specificationDigest: string;
852
+ implementationInvocationId: string;
853
+ mode?: "execution" | "evidence_only" | undefined;
854
+ implementationTaskId?: string | undefined;
855
+ candidatePaths?: string[] | undefined;
522
856
  };
523
857
  }>, {
524
858
  projectId: string;
@@ -539,6 +873,18 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
539
873
  taskExecutionId: string;
540
874
  purpose: {
541
875
  type: "implementation";
876
+ reviewer?: {
877
+ mode: "execution" | "evidence_only";
878
+ bindingId: string;
879
+ } | undefined;
880
+ coordination?: {
881
+ taskId: string;
882
+ specificationDigest: string;
883
+ } | undefined;
884
+ rework?: {
885
+ reviewExecutionId: string;
886
+ findingIds: string[];
887
+ } | undefined;
542
888
  } | {
543
889
  type: "review";
544
890
  evidence: ({
@@ -555,8 +901,11 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
555
901
  snapshotId: string;
556
902
  })[];
557
903
  implementationExecutionId: string;
558
- implementationInvocationId: string;
559
904
  specificationDigest: string;
905
+ implementationInvocationId: string;
906
+ mode?: "execution" | "evidence_only" | undefined;
907
+ implementationTaskId?: string | undefined;
908
+ candidatePaths?: string[] | undefined;
560
909
  };
561
910
  }, {
562
911
  projectId: string;
@@ -577,6 +926,18 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
577
926
  taskExecutionId: string;
578
927
  purpose: {
579
928
  type: "implementation";
929
+ reviewer?: {
930
+ mode: "execution" | "evidence_only";
931
+ bindingId: string;
932
+ } | undefined;
933
+ coordination?: {
934
+ taskId: string;
935
+ specificationDigest: string;
936
+ } | undefined;
937
+ rework?: {
938
+ reviewExecutionId: string;
939
+ findingIds: string[];
940
+ } | undefined;
580
941
  } | {
581
942
  type: "review";
582
943
  evidence: ({
@@ -593,8 +954,11 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
593
954
  snapshotId: string;
594
955
  })[];
595
956
  implementationExecutionId: string;
596
- implementationInvocationId: string;
597
957
  specificationDigest: string;
958
+ implementationInvocationId: string;
959
+ mode?: "execution" | "evidence_only" | undefined;
960
+ implementationTaskId?: string | undefined;
961
+ candidatePaths?: string[] | undefined;
598
962
  };
599
963
  }>;
600
964
  export type ProjectTaskExecutionContext = z.output<typeof projectTaskExecutionContextSchema>;
@@ -635,15 +999,72 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
635
999
  type: "group_member";
636
1000
  participantId: string;
637
1001
  }>>;
638
- purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1002
+ purpose: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
639
1003
  type: z.ZodLiteral<"implementation">;
1004
+ reviewer: z.ZodOptional<z.ZodObject<{
1005
+ bindingId: z.ZodString;
1006
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ mode: "execution" | "evidence_only";
1009
+ bindingId: string;
1010
+ }, {
1011
+ mode: "execution" | "evidence_only";
1012
+ bindingId: string;
1013
+ }>>;
1014
+ coordination: z.ZodOptional<z.ZodObject<{
1015
+ taskId: z.ZodString;
1016
+ specificationDigest: z.ZodString;
1017
+ }, "strict", z.ZodTypeAny, {
1018
+ taskId: string;
1019
+ specificationDigest: string;
1020
+ }, {
1021
+ taskId: string;
1022
+ specificationDigest: string;
1023
+ }>>;
1024
+ rework: z.ZodOptional<z.ZodObject<{
1025
+ reviewExecutionId: z.ZodString;
1026
+ findingIds: z.ZodArray<z.ZodString, "many">;
1027
+ }, "strict", z.ZodTypeAny, {
1028
+ reviewExecutionId: string;
1029
+ findingIds: string[];
1030
+ }, {
1031
+ reviewExecutionId: string;
1032
+ findingIds: string[];
1033
+ }>>;
640
1034
  }, "strict", z.ZodTypeAny, {
641
1035
  type: "implementation";
1036
+ reviewer?: {
1037
+ mode: "execution" | "evidence_only";
1038
+ bindingId: string;
1039
+ } | undefined;
1040
+ coordination?: {
1041
+ taskId: string;
1042
+ specificationDigest: string;
1043
+ } | undefined;
1044
+ rework?: {
1045
+ reviewExecutionId: string;
1046
+ findingIds: string[];
1047
+ } | undefined;
642
1048
  }, {
643
1049
  type: "implementation";
1050
+ reviewer?: {
1051
+ mode: "execution" | "evidence_only";
1052
+ bindingId: string;
1053
+ } | undefined;
1054
+ coordination?: {
1055
+ taskId: string;
1056
+ specificationDigest: string;
1057
+ } | undefined;
1058
+ rework?: {
1059
+ reviewExecutionId: string;
1060
+ findingIds: string[];
1061
+ } | undefined;
644
1062
  }>, z.ZodObject<{
645
1063
  type: z.ZodLiteral<"review">;
1064
+ mode: z.ZodOptional<z.ZodEnum<["evidence_only", "execution"]>>;
1065
+ candidatePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
646
1066
  implementationExecutionId: z.ZodString;
1067
+ implementationTaskId: z.ZodOptional<z.ZodString>;
647
1068
  implementationInvocationId: z.ZodString;
648
1069
  specificationDigest: z.ZodString;
649
1070
  evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -699,8 +1120,11 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
699
1120
  snapshotId: string;
700
1121
  })[];
701
1122
  implementationExecutionId: string;
702
- implementationInvocationId: string;
703
1123
  specificationDigest: string;
1124
+ implementationInvocationId: string;
1125
+ mode?: "execution" | "evidence_only" | undefined;
1126
+ implementationTaskId?: string | undefined;
1127
+ candidatePaths?: string[] | undefined;
704
1128
  }, {
705
1129
  type: "review";
706
1130
  evidence: ({
@@ -717,9 +1141,83 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
717
1141
  snapshotId: string;
718
1142
  })[];
719
1143
  implementationExecutionId: string;
1144
+ specificationDigest: string;
1145
+ implementationInvocationId: string;
1146
+ mode?: "execution" | "evidence_only" | undefined;
1147
+ implementationTaskId?: string | undefined;
1148
+ candidatePaths?: string[] | undefined;
1149
+ }>]>, {
1150
+ type: "implementation";
1151
+ reviewer?: {
1152
+ mode: "execution" | "evidence_only";
1153
+ bindingId: string;
1154
+ } | undefined;
1155
+ coordination?: {
1156
+ taskId: string;
1157
+ specificationDigest: string;
1158
+ } | undefined;
1159
+ rework?: {
1160
+ reviewExecutionId: string;
1161
+ findingIds: string[];
1162
+ } | undefined;
1163
+ } | {
1164
+ type: "review";
1165
+ evidence: ({
1166
+ type: "artifact";
1167
+ artifactId: string;
1168
+ versionId: string;
1169
+ } | {
1170
+ type: "invocation_result";
1171
+ revision: number;
1172
+ invocationId: string;
1173
+ } | {
1174
+ type: "workspace_snapshot";
1175
+ digest: string;
1176
+ snapshotId: string;
1177
+ })[];
1178
+ implementationExecutionId: string;
1179
+ specificationDigest: string;
720
1180
  implementationInvocationId: string;
1181
+ mode?: "execution" | "evidence_only" | undefined;
1182
+ implementationTaskId?: string | undefined;
1183
+ candidatePaths?: string[] | undefined;
1184
+ }, {
1185
+ type: "implementation";
1186
+ reviewer?: {
1187
+ mode: "execution" | "evidence_only";
1188
+ bindingId: string;
1189
+ } | undefined;
1190
+ coordination?: {
1191
+ taskId: string;
1192
+ specificationDigest: string;
1193
+ } | undefined;
1194
+ rework?: {
1195
+ reviewExecutionId: string;
1196
+ findingIds: string[];
1197
+ } | undefined;
1198
+ } | {
1199
+ type: "review";
1200
+ evidence: ({
1201
+ type: "artifact";
1202
+ artifactId: string;
1203
+ versionId: string;
1204
+ } | {
1205
+ type: "invocation_result";
1206
+ revision: number;
1207
+ invocationId: string;
1208
+ } | {
1209
+ type: "workspace_snapshot";
1210
+ digest: string;
1211
+ snapshotId: string;
1212
+ })[];
1213
+ implementationExecutionId: string;
721
1214
  specificationDigest: string;
722
- }>]>>;
1215
+ implementationInvocationId: string;
1216
+ mode?: "execution" | "evidence_only" | undefined;
1217
+ implementationTaskId?: string | undefined;
1218
+ candidatePaths?: string[] | undefined;
1219
+ }>>;
1220
+ reviewAsSubtask: z.ZodOptional<z.ZodBoolean>;
723
1221
  delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
724
1222
  mode: z.ZodLiteral<"none">;
725
1223
  }, "strict", z.ZodTypeAny, {
@@ -748,8 +1246,8 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
748
1246
  instructions: z.ZodDefault<z.ZodString>;
749
1247
  }, "strict", z.ZodTypeAny, {
750
1248
  requestId: string;
751
- taskId: string;
752
1249
  expectedRevision: number;
1250
+ taskId: string;
753
1251
  instructions: string;
754
1252
  bindingId?: string | undefined;
755
1253
  target?: {
@@ -758,6 +1256,18 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
758
1256
  } | undefined;
759
1257
  purpose?: {
760
1258
  type: "implementation";
1259
+ reviewer?: {
1260
+ mode: "execution" | "evidence_only";
1261
+ bindingId: string;
1262
+ } | undefined;
1263
+ coordination?: {
1264
+ taskId: string;
1265
+ specificationDigest: string;
1266
+ } | undefined;
1267
+ rework?: {
1268
+ reviewExecutionId: string;
1269
+ findingIds: string[];
1270
+ } | undefined;
761
1271
  } | {
762
1272
  type: "review";
763
1273
  evidence: ({
@@ -774,9 +1284,13 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
774
1284
  snapshotId: string;
775
1285
  })[];
776
1286
  implementationExecutionId: string;
777
- implementationInvocationId: string;
778
1287
  specificationDigest: string;
1288
+ implementationInvocationId: string;
1289
+ mode?: "execution" | "evidence_only" | undefined;
1290
+ implementationTaskId?: string | undefined;
1291
+ candidatePaths?: string[] | undefined;
779
1292
  } | undefined;
1293
+ reviewAsSubtask?: boolean | undefined;
780
1294
  delivery?: {
781
1295
  mode: "none";
782
1296
  } | {
@@ -788,8 +1302,8 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
788
1302
  } | undefined;
789
1303
  }, {
790
1304
  requestId: string;
791
- taskId: string;
792
1305
  expectedRevision: number;
1306
+ taskId: string;
793
1307
  bindingId?: string | undefined;
794
1308
  target?: {
795
1309
  type: "group_member";
@@ -797,6 +1311,18 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
797
1311
  } | undefined;
798
1312
  purpose?: {
799
1313
  type: "implementation";
1314
+ reviewer?: {
1315
+ mode: "execution" | "evidence_only";
1316
+ bindingId: string;
1317
+ } | undefined;
1318
+ coordination?: {
1319
+ taskId: string;
1320
+ specificationDigest: string;
1321
+ } | undefined;
1322
+ rework?: {
1323
+ reviewExecutionId: string;
1324
+ findingIds: string[];
1325
+ } | undefined;
800
1326
  } | {
801
1327
  type: "review";
802
1328
  evidence: ({
@@ -813,9 +1339,13 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
813
1339
  snapshotId: string;
814
1340
  })[];
815
1341
  implementationExecutionId: string;
816
- implementationInvocationId: string;
817
1342
  specificationDigest: string;
1343
+ implementationInvocationId: string;
1344
+ mode?: "execution" | "evidence_only" | undefined;
1345
+ implementationTaskId?: string | undefined;
1346
+ candidatePaths?: string[] | undefined;
818
1347
  } | undefined;
1348
+ reviewAsSubtask?: boolean | undefined;
819
1349
  delivery?: {
820
1350
  mode: "none";
821
1351
  } | {
@@ -828,8 +1358,8 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
828
1358
  instructions?: string | undefined;
829
1359
  }>, {
830
1360
  requestId: string;
831
- taskId: string;
832
1361
  expectedRevision: number;
1362
+ taskId: string;
833
1363
  instructions: string;
834
1364
  bindingId?: string | undefined;
835
1365
  target?: {
@@ -838,6 +1368,18 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
838
1368
  } | undefined;
839
1369
  purpose?: {
840
1370
  type: "implementation";
1371
+ reviewer?: {
1372
+ mode: "execution" | "evidence_only";
1373
+ bindingId: string;
1374
+ } | undefined;
1375
+ coordination?: {
1376
+ taskId: string;
1377
+ specificationDigest: string;
1378
+ } | undefined;
1379
+ rework?: {
1380
+ reviewExecutionId: string;
1381
+ findingIds: string[];
1382
+ } | undefined;
841
1383
  } | {
842
1384
  type: "review";
843
1385
  evidence: ({
@@ -854,9 +1396,13 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
854
1396
  snapshotId: string;
855
1397
  })[];
856
1398
  implementationExecutionId: string;
857
- implementationInvocationId: string;
858
1399
  specificationDigest: string;
1400
+ implementationInvocationId: string;
1401
+ mode?: "execution" | "evidence_only" | undefined;
1402
+ implementationTaskId?: string | undefined;
1403
+ candidatePaths?: string[] | undefined;
859
1404
  } | undefined;
1405
+ reviewAsSubtask?: boolean | undefined;
860
1406
  delivery?: {
861
1407
  mode: "none";
862
1408
  } | {
@@ -868,8 +1414,8 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
868
1414
  } | undefined;
869
1415
  }, {
870
1416
  requestId: string;
871
- taskId: string;
872
1417
  expectedRevision: number;
1418
+ taskId: string;
873
1419
  bindingId?: string | undefined;
874
1420
  target?: {
875
1421
  type: "group_member";
@@ -877,6 +1423,18 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
877
1423
  } | undefined;
878
1424
  purpose?: {
879
1425
  type: "implementation";
1426
+ reviewer?: {
1427
+ mode: "execution" | "evidence_only";
1428
+ bindingId: string;
1429
+ } | undefined;
1430
+ coordination?: {
1431
+ taskId: string;
1432
+ specificationDigest: string;
1433
+ } | undefined;
1434
+ rework?: {
1435
+ reviewExecutionId: string;
1436
+ findingIds: string[];
1437
+ } | undefined;
880
1438
  } | {
881
1439
  type: "review";
882
1440
  evidence: ({
@@ -893,9 +1451,13 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
893
1451
  snapshotId: string;
894
1452
  })[];
895
1453
  implementationExecutionId: string;
896
- implementationInvocationId: string;
897
1454
  specificationDigest: string;
1455
+ implementationInvocationId: string;
1456
+ mode?: "execution" | "evidence_only" | undefined;
1457
+ implementationTaskId?: string | undefined;
1458
+ candidatePaths?: string[] | undefined;
898
1459
  } | undefined;
1460
+ reviewAsSubtask?: boolean | undefined;
899
1461
  delivery?: {
900
1462
  mode: "none";
901
1463
  } | {
@@ -907,11 +1469,10 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
907
1469
  } | undefined;
908
1470
  instructions?: string | undefined;
909
1471
  }>;
910
- export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<Omit<{
911
- requestId: z.ZodString;
912
- taskId: z.ZodString;
1472
+ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<{
913
1473
  expectedRevision: z.ZodNumber;
914
1474
  bindingId: z.ZodOptional<z.ZodString>;
1475
+ taskId: z.ZodString;
915
1476
  target: z.ZodOptional<z.ZodObject<{
916
1477
  type: z.ZodLiteral<"group_member">;
917
1478
  participantId: z.ZodString;
@@ -922,15 +1483,92 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
922
1483
  type: "group_member";
923
1484
  participantId: string;
924
1485
  }>>;
925
- purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
926
- type: z.ZodLiteral<"implementation">;
1486
+ reviewAsSubtask: z.ZodOptional<z.ZodBoolean>;
1487
+ delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1488
+ mode: z.ZodLiteral<"none">;
1489
+ }, "strict", z.ZodTypeAny, {
1490
+ mode: "none";
1491
+ }, {
1492
+ mode: "none";
1493
+ }>, z.ZodObject<{
1494
+ mode: z.ZodLiteral<"files">;
1495
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1496
+ }, "strict", z.ZodTypeAny, {
1497
+ mode: "files";
1498
+ paths?: string[] | undefined;
1499
+ }, {
1500
+ mode: "files";
1501
+ paths?: string[] | undefined;
1502
+ }>, z.ZodObject<{
1503
+ mode: z.ZodLiteral<"archive">;
1504
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
927
1505
  }, "strict", z.ZodTypeAny, {
1506
+ mode: "archive";
1507
+ paths?: string[] | undefined;
1508
+ }, {
1509
+ mode: "archive";
1510
+ paths?: string[] | undefined;
1511
+ }>]>>;
1512
+ instructions: z.ZodDefault<z.ZodString>;
1513
+ } & {
1514
+ purpose: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
1515
+ type: z.ZodLiteral<"implementation">;
1516
+ reviewer: z.ZodOptional<z.ZodObject<{
1517
+ bindingId: z.ZodString;
1518
+ mode: z.ZodEnum<["evidence_only", "execution"]>;
1519
+ }, "strict", z.ZodTypeAny, {
1520
+ mode: "execution" | "evidence_only";
1521
+ bindingId: string;
1522
+ }, {
1523
+ mode: "execution" | "evidence_only";
1524
+ bindingId: string;
1525
+ }>>;
1526
+ coordination: z.ZodOptional<z.ZodObject<{
1527
+ taskId: z.ZodString;
1528
+ specificationDigest: z.ZodString;
1529
+ }, "strict", z.ZodTypeAny, {
1530
+ taskId: string;
1531
+ specificationDigest: string;
1532
+ }, {
1533
+ taskId: string;
1534
+ specificationDigest: string;
1535
+ }>>;
1536
+ rework: z.ZodOptional<z.ZodObject<{
1537
+ reviewExecutionId: z.ZodString;
1538
+ findingIds: z.ZodArray<z.ZodString, "many">;
1539
+ }, "strict", z.ZodTypeAny, {
1540
+ reviewExecutionId: string;
1541
+ findingIds: string[];
1542
+ }, {
1543
+ reviewExecutionId: string;
1544
+ findingIds: string[];
1545
+ }>>;
1546
+ }, "coordination">, "strict", z.ZodTypeAny, {
928
1547
  type: "implementation";
1548
+ reviewer?: {
1549
+ mode: "execution" | "evidence_only";
1550
+ bindingId: string;
1551
+ } | undefined;
1552
+ rework?: {
1553
+ reviewExecutionId: string;
1554
+ findingIds: string[];
1555
+ } | undefined;
929
1556
  }, {
930
1557
  type: "implementation";
931
- }>, z.ZodObject<{
1558
+ reviewer?: {
1559
+ mode: "execution" | "evidence_only";
1560
+ bindingId: string;
1561
+ } | undefined;
1562
+ rework?: {
1563
+ reviewExecutionId: string;
1564
+ findingIds: string[];
1565
+ } | undefined;
1566
+ }>, z.ZodObject<Omit<{
932
1567
  type: z.ZodLiteral<"review">;
1568
+ mode: z.ZodOptional<z.ZodEnum<["evidence_only", "execution"]>>;
1569
+ candidatePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
933
1570
  implementationExecutionId: z.ZodString;
1571
+ implementationTaskId: z.ZodOptional<z.ZodString>;
934
1572
  implementationInvocationId: z.ZodString;
935
1573
  specificationDigest: z.ZodString;
936
1574
  evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -970,7 +1608,7 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
970
1608
  digest: string;
971
1609
  snapshotId: string;
972
1610
  }>]>, "many">;
973
- }, "strict", z.ZodTypeAny, {
1611
+ }, "implementationTaskId">, "strict", z.ZodTypeAny, {
974
1612
  type: "review";
975
1613
  evidence: ({
976
1614
  type: "artifact";
@@ -986,8 +1624,10 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
986
1624
  snapshotId: string;
987
1625
  })[];
988
1626
  implementationExecutionId: string;
989
- implementationInvocationId: string;
990
1627
  specificationDigest: string;
1628
+ implementationInvocationId: string;
1629
+ mode?: "execution" | "evidence_only" | undefined;
1630
+ candidatePaths?: string[] | undefined;
991
1631
  }, {
992
1632
  type: "review";
993
1633
  evidence: ({
@@ -1004,38 +1644,74 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1004
1644
  snapshotId: string;
1005
1645
  })[];
1006
1646
  implementationExecutionId: string;
1007
- implementationInvocationId: string;
1008
1647
  specificationDigest: string;
1009
- }>]>>;
1010
- delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1011
- mode: z.ZodLiteral<"none">;
1012
- }, "strict", z.ZodTypeAny, {
1013
- mode: "none";
1014
- }, {
1015
- mode: "none";
1016
- }>, z.ZodObject<{
1017
- mode: z.ZodLiteral<"files">;
1018
- paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1019
- }, "strict", z.ZodTypeAny, {
1020
- mode: "files";
1021
- paths?: string[] | undefined;
1022
- }, {
1023
- mode: "files";
1024
- paths?: string[] | undefined;
1025
- }>, z.ZodObject<{
1026
- mode: z.ZodLiteral<"archive">;
1027
- paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1028
- }, "strict", z.ZodTypeAny, {
1029
- mode: "archive";
1030
- paths?: string[] | undefined;
1648
+ implementationInvocationId: string;
1649
+ mode?: "execution" | "evidence_only" | undefined;
1650
+ candidatePaths?: string[] | undefined;
1651
+ }>]>, {
1652
+ type: "implementation";
1653
+ reviewer?: {
1654
+ mode: "execution" | "evidence_only";
1655
+ bindingId: string;
1656
+ } | undefined;
1657
+ rework?: {
1658
+ reviewExecutionId: string;
1659
+ findingIds: string[];
1660
+ } | undefined;
1661
+ } | {
1662
+ type: "review";
1663
+ evidence: ({
1664
+ type: "artifact";
1665
+ artifactId: string;
1666
+ versionId: string;
1667
+ } | {
1668
+ type: "invocation_result";
1669
+ revision: number;
1670
+ invocationId: string;
1671
+ } | {
1672
+ type: "workspace_snapshot";
1673
+ digest: string;
1674
+ snapshotId: string;
1675
+ })[];
1676
+ implementationExecutionId: string;
1677
+ specificationDigest: string;
1678
+ implementationInvocationId: string;
1679
+ mode?: "execution" | "evidence_only" | undefined;
1680
+ candidatePaths?: string[] | undefined;
1031
1681
  }, {
1032
- mode: "archive";
1033
- paths?: string[] | undefined;
1034
- }>]>>;
1035
- instructions: z.ZodDefault<z.ZodString>;
1036
- }, "requestId">, "strict", z.ZodTypeAny, {
1037
- taskId: string;
1682
+ type: "implementation";
1683
+ reviewer?: {
1684
+ mode: "execution" | "evidence_only";
1685
+ bindingId: string;
1686
+ } | undefined;
1687
+ rework?: {
1688
+ reviewExecutionId: string;
1689
+ findingIds: string[];
1690
+ } | undefined;
1691
+ } | {
1692
+ type: "review";
1693
+ evidence: ({
1694
+ type: "artifact";
1695
+ artifactId: string;
1696
+ versionId: string;
1697
+ } | {
1698
+ type: "invocation_result";
1699
+ revision: number;
1700
+ invocationId: string;
1701
+ } | {
1702
+ type: "workspace_snapshot";
1703
+ digest: string;
1704
+ snapshotId: string;
1705
+ })[];
1706
+ implementationExecutionId: string;
1707
+ specificationDigest: string;
1708
+ implementationInvocationId: string;
1709
+ mode?: "execution" | "evidence_only" | undefined;
1710
+ candidatePaths?: string[] | undefined;
1711
+ }>>;
1712
+ }, "strict", z.ZodTypeAny, {
1038
1713
  expectedRevision: number;
1714
+ taskId: string;
1039
1715
  instructions: string;
1040
1716
  bindingId?: string | undefined;
1041
1717
  target?: {
@@ -1044,6 +1720,14 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1044
1720
  } | undefined;
1045
1721
  purpose?: {
1046
1722
  type: "implementation";
1723
+ reviewer?: {
1724
+ mode: "execution" | "evidence_only";
1725
+ bindingId: string;
1726
+ } | undefined;
1727
+ rework?: {
1728
+ reviewExecutionId: string;
1729
+ findingIds: string[];
1730
+ } | undefined;
1047
1731
  } | {
1048
1732
  type: "review";
1049
1733
  evidence: ({
@@ -1060,9 +1744,12 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1060
1744
  snapshotId: string;
1061
1745
  })[];
1062
1746
  implementationExecutionId: string;
1063
- implementationInvocationId: string;
1064
1747
  specificationDigest: string;
1748
+ implementationInvocationId: string;
1749
+ mode?: "execution" | "evidence_only" | undefined;
1750
+ candidatePaths?: string[] | undefined;
1065
1751
  } | undefined;
1752
+ reviewAsSubtask?: boolean | undefined;
1066
1753
  delivery?: {
1067
1754
  mode: "none";
1068
1755
  } | {
@@ -1073,8 +1760,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1073
1760
  paths?: string[] | undefined;
1074
1761
  } | undefined;
1075
1762
  }, {
1076
- taskId: string;
1077
1763
  expectedRevision: number;
1764
+ taskId: string;
1078
1765
  bindingId?: string | undefined;
1079
1766
  target?: {
1080
1767
  type: "group_member";
@@ -1082,6 +1769,14 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1082
1769
  } | undefined;
1083
1770
  purpose?: {
1084
1771
  type: "implementation";
1772
+ reviewer?: {
1773
+ mode: "execution" | "evidence_only";
1774
+ bindingId: string;
1775
+ } | undefined;
1776
+ rework?: {
1777
+ reviewExecutionId: string;
1778
+ findingIds: string[];
1779
+ } | undefined;
1085
1780
  } | {
1086
1781
  type: "review";
1087
1782
  evidence: ({
@@ -1098,9 +1793,12 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1098
1793
  snapshotId: string;
1099
1794
  })[];
1100
1795
  implementationExecutionId: string;
1101
- implementationInvocationId: string;
1102
1796
  specificationDigest: string;
1797
+ implementationInvocationId: string;
1798
+ mode?: "execution" | "evidence_only" | undefined;
1799
+ candidatePaths?: string[] | undefined;
1103
1800
  } | undefined;
1801
+ reviewAsSubtask?: boolean | undefined;
1104
1802
  delivery?: {
1105
1803
  mode: "none";
1106
1804
  } | {
@@ -1112,8 +1810,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1112
1810
  } | undefined;
1113
1811
  instructions?: string | undefined;
1114
1812
  }>, {
1115
- taskId: string;
1116
1813
  expectedRevision: number;
1814
+ taskId: string;
1117
1815
  instructions: string;
1118
1816
  bindingId?: string | undefined;
1119
1817
  target?: {
@@ -1122,6 +1820,14 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1122
1820
  } | undefined;
1123
1821
  purpose?: {
1124
1822
  type: "implementation";
1823
+ reviewer?: {
1824
+ mode: "execution" | "evidence_only";
1825
+ bindingId: string;
1826
+ } | undefined;
1827
+ rework?: {
1828
+ reviewExecutionId: string;
1829
+ findingIds: string[];
1830
+ } | undefined;
1125
1831
  } | {
1126
1832
  type: "review";
1127
1833
  evidence: ({
@@ -1138,9 +1844,12 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1138
1844
  snapshotId: string;
1139
1845
  })[];
1140
1846
  implementationExecutionId: string;
1141
- implementationInvocationId: string;
1142
1847
  specificationDigest: string;
1848
+ implementationInvocationId: string;
1849
+ mode?: "execution" | "evidence_only" | undefined;
1850
+ candidatePaths?: string[] | undefined;
1143
1851
  } | undefined;
1852
+ reviewAsSubtask?: boolean | undefined;
1144
1853
  delivery?: {
1145
1854
  mode: "none";
1146
1855
  } | {
@@ -1151,8 +1860,8 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1151
1860
  paths?: string[] | undefined;
1152
1861
  } | undefined;
1153
1862
  }, {
1154
- taskId: string;
1155
1863
  expectedRevision: number;
1864
+ taskId: string;
1156
1865
  bindingId?: string | undefined;
1157
1866
  target?: {
1158
1867
  type: "group_member";
@@ -1160,6 +1869,14 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1160
1869
  } | undefined;
1161
1870
  purpose?: {
1162
1871
  type: "implementation";
1872
+ reviewer?: {
1873
+ mode: "execution" | "evidence_only";
1874
+ bindingId: string;
1875
+ } | undefined;
1876
+ rework?: {
1877
+ reviewExecutionId: string;
1878
+ findingIds: string[];
1879
+ } | undefined;
1163
1880
  } | {
1164
1881
  type: "review";
1165
1882
  evidence: ({
@@ -1176,9 +1893,12 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1176
1893
  snapshotId: string;
1177
1894
  })[];
1178
1895
  implementationExecutionId: string;
1179
- implementationInvocationId: string;
1180
1896
  specificationDigest: string;
1897
+ implementationInvocationId: string;
1898
+ mode?: "execution" | "evidence_only" | undefined;
1899
+ candidatePaths?: string[] | undefined;
1181
1900
  } | undefined;
1901
+ reviewAsSubtask?: boolean | undefined;
1182
1902
  delivery?: {
1183
1903
  mode: "none";
1184
1904
  } | {
@@ -1191,8 +1911,288 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
1191
1911
  instructions?: string | undefined;
1192
1912
  }>;
1193
1913
  export type ProjectTaskDispatchInput = z.output<typeof projectTaskDispatchInputSchema>;
1194
- /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */
1195
- export declare const projectTaskReviewReportSchema: z.ZodObject<{
1914
+ export declare const projectTaskReviewFindingSchema: z.ZodObject<{
1915
+ id: z.ZodString;
1916
+ kind: z.ZodEnum<["defect", "environment", "requirement", "coverage", "suggestion"]>;
1917
+ blocking: z.ZodBoolean;
1918
+ description: z.ZodString;
1919
+ requirement: z.ZodOptional<z.ZodString>;
1920
+ reproduction: z.ZodOptional<z.ZodString>;
1921
+ expected: z.ZodOptional<z.ZodString>;
1922
+ actual: z.ZodOptional<z.ZodString>;
1923
+ }, "strict", z.ZodTypeAny, {
1924
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
1925
+ id: string;
1926
+ description: string;
1927
+ blocking: boolean;
1928
+ expected?: string | undefined;
1929
+ requirement?: string | undefined;
1930
+ reproduction?: string | undefined;
1931
+ actual?: string | undefined;
1932
+ }, {
1933
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
1934
+ id: string;
1935
+ description: string;
1936
+ blocking: boolean;
1937
+ expected?: string | undefined;
1938
+ requirement?: string | undefined;
1939
+ reproduction?: string | undefined;
1940
+ actual?: string | undefined;
1941
+ }>;
1942
+ export declare const projectTaskExecutionReviewReportSchema: z.ZodEffects<z.ZodObject<{
1943
+ version: z.ZodLiteral<2>;
1944
+ mode: z.ZodLiteral<"execution">;
1945
+ verdict: z.ZodEnum<["pass", "changes_required", "indeterminate"]>;
1946
+ specificationDigest: z.ZodString;
1947
+ implementationInvocationId: z.ZodString;
1948
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1949
+ type: z.ZodLiteral<"artifact">;
1950
+ artifactId: z.ZodString;
1951
+ versionId: z.ZodString;
1952
+ }, "strict", z.ZodTypeAny, {
1953
+ type: "artifact";
1954
+ artifactId: string;
1955
+ versionId: string;
1956
+ }, {
1957
+ type: "artifact";
1958
+ artifactId: string;
1959
+ versionId: string;
1960
+ }>, z.ZodObject<{
1961
+ type: z.ZodLiteral<"invocation_result">;
1962
+ invocationId: z.ZodString;
1963
+ revision: z.ZodNumber;
1964
+ }, "strict", z.ZodTypeAny, {
1965
+ type: "invocation_result";
1966
+ revision: number;
1967
+ invocationId: string;
1968
+ }, {
1969
+ type: "invocation_result";
1970
+ revision: number;
1971
+ invocationId: string;
1972
+ }>, z.ZodObject<{
1973
+ type: z.ZodLiteral<"workspace_snapshot">;
1974
+ snapshotId: z.ZodString;
1975
+ digest: z.ZodString;
1976
+ }, "strict", z.ZodTypeAny, {
1977
+ type: "workspace_snapshot";
1978
+ digest: string;
1979
+ snapshotId: string;
1980
+ }, {
1981
+ type: "workspace_snapshot";
1982
+ digest: string;
1983
+ snapshotId: string;
1984
+ }>]>, "many">;
1985
+ summary: z.ZodString;
1986
+ checks: z.ZodArray<z.ZodObject<{
1987
+ description: z.ZodString;
1988
+ outcome: z.ZodEnum<["passed", "failed", "blocked"]>;
1989
+ command: z.ZodOptional<z.ZodString>;
1990
+ expected: z.ZodOptional<z.ZodString>;
1991
+ actual: z.ZodString;
1992
+ evidencePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1993
+ }, "strict", z.ZodTypeAny, {
1994
+ outcome: "failed" | "blocked" | "passed";
1995
+ description: string;
1996
+ actual: string;
1997
+ expected?: string | undefined;
1998
+ command?: string | undefined;
1999
+ evidencePaths?: string[] | undefined;
2000
+ }, {
2001
+ outcome: "failed" | "blocked" | "passed";
2002
+ description: string;
2003
+ actual: string;
2004
+ expected?: string | undefined;
2005
+ command?: string | undefined;
2006
+ evidencePaths?: string[] | undefined;
2007
+ }>, "many">;
2008
+ findings: z.ZodArray<z.ZodObject<{
2009
+ id: z.ZodString;
2010
+ kind: z.ZodEnum<["defect", "environment", "requirement", "coverage", "suggestion"]>;
2011
+ blocking: z.ZodBoolean;
2012
+ description: z.ZodString;
2013
+ requirement: z.ZodOptional<z.ZodString>;
2014
+ reproduction: z.ZodOptional<z.ZodString>;
2015
+ expected: z.ZodOptional<z.ZodString>;
2016
+ actual: z.ZodOptional<z.ZodString>;
2017
+ }, "strict", z.ZodTypeAny, {
2018
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2019
+ id: string;
2020
+ description: string;
2021
+ blocking: boolean;
2022
+ expected?: string | undefined;
2023
+ requirement?: string | undefined;
2024
+ reproduction?: string | undefined;
2025
+ actual?: string | undefined;
2026
+ }, {
2027
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2028
+ id: string;
2029
+ description: string;
2030
+ blocking: boolean;
2031
+ expected?: string | undefined;
2032
+ requirement?: string | undefined;
2033
+ reproduction?: string | undefined;
2034
+ actual?: string | undefined;
2035
+ }>, "many">;
2036
+ limitations: z.ZodArray<z.ZodString, "many">;
2037
+ }, "strict", z.ZodTypeAny, {
2038
+ mode: "execution";
2039
+ version: 2;
2040
+ evidence: ({
2041
+ type: "artifact";
2042
+ artifactId: string;
2043
+ versionId: string;
2044
+ } | {
2045
+ type: "invocation_result";
2046
+ revision: number;
2047
+ invocationId: string;
2048
+ } | {
2049
+ type: "workspace_snapshot";
2050
+ digest: string;
2051
+ snapshotId: string;
2052
+ })[];
2053
+ summary: string;
2054
+ specificationDigest: string;
2055
+ implementationInvocationId: string;
2056
+ verdict: "pass" | "changes_required" | "indeterminate";
2057
+ findings: {
2058
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2059
+ id: string;
2060
+ description: string;
2061
+ blocking: boolean;
2062
+ expected?: string | undefined;
2063
+ requirement?: string | undefined;
2064
+ reproduction?: string | undefined;
2065
+ actual?: string | undefined;
2066
+ }[];
2067
+ limitations: string[];
2068
+ checks: {
2069
+ outcome: "failed" | "blocked" | "passed";
2070
+ description: string;
2071
+ actual: string;
2072
+ expected?: string | undefined;
2073
+ command?: string | undefined;
2074
+ evidencePaths?: string[] | undefined;
2075
+ }[];
2076
+ }, {
2077
+ mode: "execution";
2078
+ version: 2;
2079
+ evidence: ({
2080
+ type: "artifact";
2081
+ artifactId: string;
2082
+ versionId: string;
2083
+ } | {
2084
+ type: "invocation_result";
2085
+ revision: number;
2086
+ invocationId: string;
2087
+ } | {
2088
+ type: "workspace_snapshot";
2089
+ digest: string;
2090
+ snapshotId: string;
2091
+ })[];
2092
+ summary: string;
2093
+ specificationDigest: string;
2094
+ implementationInvocationId: string;
2095
+ verdict: "pass" | "changes_required" | "indeterminate";
2096
+ findings: {
2097
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2098
+ id: string;
2099
+ description: string;
2100
+ blocking: boolean;
2101
+ expected?: string | undefined;
2102
+ requirement?: string | undefined;
2103
+ reproduction?: string | undefined;
2104
+ actual?: string | undefined;
2105
+ }[];
2106
+ limitations: string[];
2107
+ checks: {
2108
+ outcome: "failed" | "blocked" | "passed";
2109
+ description: string;
2110
+ actual: string;
2111
+ expected?: string | undefined;
2112
+ command?: string | undefined;
2113
+ evidencePaths?: string[] | undefined;
2114
+ }[];
2115
+ }>, {
2116
+ mode: "execution";
2117
+ version: 2;
2118
+ evidence: ({
2119
+ type: "artifact";
2120
+ artifactId: string;
2121
+ versionId: string;
2122
+ } | {
2123
+ type: "invocation_result";
2124
+ revision: number;
2125
+ invocationId: string;
2126
+ } | {
2127
+ type: "workspace_snapshot";
2128
+ digest: string;
2129
+ snapshotId: string;
2130
+ })[];
2131
+ summary: string;
2132
+ specificationDigest: string;
2133
+ implementationInvocationId: string;
2134
+ verdict: "pass" | "changes_required" | "indeterminate";
2135
+ findings: {
2136
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2137
+ id: string;
2138
+ description: string;
2139
+ blocking: boolean;
2140
+ expected?: string | undefined;
2141
+ requirement?: string | undefined;
2142
+ reproduction?: string | undefined;
2143
+ actual?: string | undefined;
2144
+ }[];
2145
+ limitations: string[];
2146
+ checks: {
2147
+ outcome: "failed" | "blocked" | "passed";
2148
+ description: string;
2149
+ actual: string;
2150
+ expected?: string | undefined;
2151
+ command?: string | undefined;
2152
+ evidencePaths?: string[] | undefined;
2153
+ }[];
2154
+ }, {
2155
+ mode: "execution";
2156
+ version: 2;
2157
+ evidence: ({
2158
+ type: "artifact";
2159
+ artifactId: string;
2160
+ versionId: string;
2161
+ } | {
2162
+ type: "invocation_result";
2163
+ revision: number;
2164
+ invocationId: string;
2165
+ } | {
2166
+ type: "workspace_snapshot";
2167
+ digest: string;
2168
+ snapshotId: string;
2169
+ })[];
2170
+ summary: string;
2171
+ specificationDigest: string;
2172
+ implementationInvocationId: string;
2173
+ verdict: "pass" | "changes_required" | "indeterminate";
2174
+ findings: {
2175
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2176
+ id: string;
2177
+ description: string;
2178
+ blocking: boolean;
2179
+ expected?: string | undefined;
2180
+ requirement?: string | undefined;
2181
+ reproduction?: string | undefined;
2182
+ actual?: string | undefined;
2183
+ }[];
2184
+ limitations: string[];
2185
+ checks: {
2186
+ outcome: "failed" | "blocked" | "passed";
2187
+ description: string;
2188
+ actual: string;
2189
+ expected?: string | undefined;
2190
+ command?: string | undefined;
2191
+ evidencePaths?: string[] | undefined;
2192
+ }[];
2193
+ }>;
2194
+ export type ProjectTaskExecutionReviewReport = z.output<typeof projectTaskExecutionReviewReportSchema>;
2195
+ export declare const projectTaskReviewReportSchema: z.ZodUnion<[z.ZodObject<{
1196
2196
  version: z.ZodLiteral<1>;
1197
2197
  verdict: z.ZodEnum<["pass", "changes_required", "indeterminate"]>;
1198
2198
  specificationDigest: z.ZodString;
@@ -1251,8 +2251,8 @@ export declare const projectTaskReviewReportSchema: z.ZodObject<{
1251
2251
  digest: string;
1252
2252
  snapshotId: string;
1253
2253
  })[];
1254
- implementationInvocationId: string;
1255
2254
  specificationDigest: string;
2255
+ implementationInvocationId: string;
1256
2256
  verdict: "pass" | "changes_required" | "indeterminate";
1257
2257
  findings: string[];
1258
2258
  limitations: string[];
@@ -1271,12 +2271,263 @@ export declare const projectTaskReviewReportSchema: z.ZodObject<{
1271
2271
  digest: string;
1272
2272
  snapshotId: string;
1273
2273
  })[];
1274
- implementationInvocationId: string;
1275
2274
  specificationDigest: string;
2275
+ implementationInvocationId: string;
1276
2276
  verdict: "pass" | "changes_required" | "indeterminate";
1277
2277
  findings: string[];
1278
2278
  limitations: string[];
1279
- }>;
2279
+ }>, z.ZodEffects<z.ZodObject<{
2280
+ version: z.ZodLiteral<2>;
2281
+ mode: z.ZodLiteral<"execution">;
2282
+ verdict: z.ZodEnum<["pass", "changes_required", "indeterminate"]>;
2283
+ specificationDigest: z.ZodString;
2284
+ implementationInvocationId: z.ZodString;
2285
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2286
+ type: z.ZodLiteral<"artifact">;
2287
+ artifactId: z.ZodString;
2288
+ versionId: z.ZodString;
2289
+ }, "strict", z.ZodTypeAny, {
2290
+ type: "artifact";
2291
+ artifactId: string;
2292
+ versionId: string;
2293
+ }, {
2294
+ type: "artifact";
2295
+ artifactId: string;
2296
+ versionId: string;
2297
+ }>, z.ZodObject<{
2298
+ type: z.ZodLiteral<"invocation_result">;
2299
+ invocationId: z.ZodString;
2300
+ revision: z.ZodNumber;
2301
+ }, "strict", z.ZodTypeAny, {
2302
+ type: "invocation_result";
2303
+ revision: number;
2304
+ invocationId: string;
2305
+ }, {
2306
+ type: "invocation_result";
2307
+ revision: number;
2308
+ invocationId: string;
2309
+ }>, z.ZodObject<{
2310
+ type: z.ZodLiteral<"workspace_snapshot">;
2311
+ snapshotId: z.ZodString;
2312
+ digest: z.ZodString;
2313
+ }, "strict", z.ZodTypeAny, {
2314
+ type: "workspace_snapshot";
2315
+ digest: string;
2316
+ snapshotId: string;
2317
+ }, {
2318
+ type: "workspace_snapshot";
2319
+ digest: string;
2320
+ snapshotId: string;
2321
+ }>]>, "many">;
2322
+ summary: z.ZodString;
2323
+ checks: z.ZodArray<z.ZodObject<{
2324
+ description: z.ZodString;
2325
+ outcome: z.ZodEnum<["passed", "failed", "blocked"]>;
2326
+ command: z.ZodOptional<z.ZodString>;
2327
+ expected: z.ZodOptional<z.ZodString>;
2328
+ actual: z.ZodString;
2329
+ evidencePaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2330
+ }, "strict", z.ZodTypeAny, {
2331
+ outcome: "failed" | "blocked" | "passed";
2332
+ description: string;
2333
+ actual: string;
2334
+ expected?: string | undefined;
2335
+ command?: string | undefined;
2336
+ evidencePaths?: string[] | undefined;
2337
+ }, {
2338
+ outcome: "failed" | "blocked" | "passed";
2339
+ description: string;
2340
+ actual: string;
2341
+ expected?: string | undefined;
2342
+ command?: string | undefined;
2343
+ evidencePaths?: string[] | undefined;
2344
+ }>, "many">;
2345
+ findings: z.ZodArray<z.ZodObject<{
2346
+ id: z.ZodString;
2347
+ kind: z.ZodEnum<["defect", "environment", "requirement", "coverage", "suggestion"]>;
2348
+ blocking: z.ZodBoolean;
2349
+ description: z.ZodString;
2350
+ requirement: z.ZodOptional<z.ZodString>;
2351
+ reproduction: z.ZodOptional<z.ZodString>;
2352
+ expected: z.ZodOptional<z.ZodString>;
2353
+ actual: z.ZodOptional<z.ZodString>;
2354
+ }, "strict", z.ZodTypeAny, {
2355
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2356
+ id: string;
2357
+ description: string;
2358
+ blocking: boolean;
2359
+ expected?: string | undefined;
2360
+ requirement?: string | undefined;
2361
+ reproduction?: string | undefined;
2362
+ actual?: string | undefined;
2363
+ }, {
2364
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2365
+ id: string;
2366
+ description: string;
2367
+ blocking: boolean;
2368
+ expected?: string | undefined;
2369
+ requirement?: string | undefined;
2370
+ reproduction?: string | undefined;
2371
+ actual?: string | undefined;
2372
+ }>, "many">;
2373
+ limitations: z.ZodArray<z.ZodString, "many">;
2374
+ }, "strict", z.ZodTypeAny, {
2375
+ mode: "execution";
2376
+ version: 2;
2377
+ evidence: ({
2378
+ type: "artifact";
2379
+ artifactId: string;
2380
+ versionId: string;
2381
+ } | {
2382
+ type: "invocation_result";
2383
+ revision: number;
2384
+ invocationId: string;
2385
+ } | {
2386
+ type: "workspace_snapshot";
2387
+ digest: string;
2388
+ snapshotId: string;
2389
+ })[];
2390
+ summary: string;
2391
+ specificationDigest: string;
2392
+ implementationInvocationId: string;
2393
+ verdict: "pass" | "changes_required" | "indeterminate";
2394
+ findings: {
2395
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2396
+ id: string;
2397
+ description: string;
2398
+ blocking: boolean;
2399
+ expected?: string | undefined;
2400
+ requirement?: string | undefined;
2401
+ reproduction?: string | undefined;
2402
+ actual?: string | undefined;
2403
+ }[];
2404
+ limitations: string[];
2405
+ checks: {
2406
+ outcome: "failed" | "blocked" | "passed";
2407
+ description: string;
2408
+ actual: string;
2409
+ expected?: string | undefined;
2410
+ command?: string | undefined;
2411
+ evidencePaths?: string[] | undefined;
2412
+ }[];
2413
+ }, {
2414
+ mode: "execution";
2415
+ version: 2;
2416
+ evidence: ({
2417
+ type: "artifact";
2418
+ artifactId: string;
2419
+ versionId: string;
2420
+ } | {
2421
+ type: "invocation_result";
2422
+ revision: number;
2423
+ invocationId: string;
2424
+ } | {
2425
+ type: "workspace_snapshot";
2426
+ digest: string;
2427
+ snapshotId: string;
2428
+ })[];
2429
+ summary: string;
2430
+ specificationDigest: string;
2431
+ implementationInvocationId: string;
2432
+ verdict: "pass" | "changes_required" | "indeterminate";
2433
+ findings: {
2434
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2435
+ id: string;
2436
+ description: string;
2437
+ blocking: boolean;
2438
+ expected?: string | undefined;
2439
+ requirement?: string | undefined;
2440
+ reproduction?: string | undefined;
2441
+ actual?: string | undefined;
2442
+ }[];
2443
+ limitations: string[];
2444
+ checks: {
2445
+ outcome: "failed" | "blocked" | "passed";
2446
+ description: string;
2447
+ actual: string;
2448
+ expected?: string | undefined;
2449
+ command?: string | undefined;
2450
+ evidencePaths?: string[] | undefined;
2451
+ }[];
2452
+ }>, {
2453
+ mode: "execution";
2454
+ version: 2;
2455
+ evidence: ({
2456
+ type: "artifact";
2457
+ artifactId: string;
2458
+ versionId: string;
2459
+ } | {
2460
+ type: "invocation_result";
2461
+ revision: number;
2462
+ invocationId: string;
2463
+ } | {
2464
+ type: "workspace_snapshot";
2465
+ digest: string;
2466
+ snapshotId: string;
2467
+ })[];
2468
+ summary: string;
2469
+ specificationDigest: string;
2470
+ implementationInvocationId: string;
2471
+ verdict: "pass" | "changes_required" | "indeterminate";
2472
+ findings: {
2473
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2474
+ id: string;
2475
+ description: string;
2476
+ blocking: boolean;
2477
+ expected?: string | undefined;
2478
+ requirement?: string | undefined;
2479
+ reproduction?: string | undefined;
2480
+ actual?: string | undefined;
2481
+ }[];
2482
+ limitations: string[];
2483
+ checks: {
2484
+ outcome: "failed" | "blocked" | "passed";
2485
+ description: string;
2486
+ actual: string;
2487
+ expected?: string | undefined;
2488
+ command?: string | undefined;
2489
+ evidencePaths?: string[] | undefined;
2490
+ }[];
2491
+ }, {
2492
+ mode: "execution";
2493
+ version: 2;
2494
+ evidence: ({
2495
+ type: "artifact";
2496
+ artifactId: string;
2497
+ versionId: string;
2498
+ } | {
2499
+ type: "invocation_result";
2500
+ revision: number;
2501
+ invocationId: string;
2502
+ } | {
2503
+ type: "workspace_snapshot";
2504
+ digest: string;
2505
+ snapshotId: string;
2506
+ })[];
2507
+ summary: string;
2508
+ specificationDigest: string;
2509
+ implementationInvocationId: string;
2510
+ verdict: "pass" | "changes_required" | "indeterminate";
2511
+ findings: {
2512
+ kind: "coverage" | "defect" | "environment" | "requirement" | "suggestion";
2513
+ id: string;
2514
+ description: string;
2515
+ blocking: boolean;
2516
+ expected?: string | undefined;
2517
+ requirement?: string | undefined;
2518
+ reproduction?: string | undefined;
2519
+ actual?: string | undefined;
2520
+ }[];
2521
+ limitations: string[];
2522
+ checks: {
2523
+ outcome: "failed" | "blocked" | "passed";
2524
+ description: string;
2525
+ actual: string;
2526
+ expected?: string | undefined;
2527
+ command?: string | undefined;
2528
+ evidencePaths?: string[] | undefined;
2529
+ }[];
2530
+ }>]>;
1280
2531
  export type ProjectTaskReviewReport = z.output<typeof projectTaskReviewReportSchema>;
1281
2532
  export declare const projectTaskDecisionInputSchema: z.ZodObject<{
1282
2533
  requestId: z.ZodString;
@@ -1328,6 +2579,7 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
1328
2579
  }, "strict", z.ZodTypeAny, {
1329
2580
  outcome: "accept" | "rework";
1330
2581
  requestId: string;
2582
+ expectedRevision: number;
1331
2583
  evidence: ({
1332
2584
  type: "artifact";
1333
2585
  artifactId: string;
@@ -1342,15 +2594,15 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
1342
2594
  snapshotId: string;
1343
2595
  })[];
1344
2596
  taskId: string;
1345
- expectedRevision: number;
1346
2597
  implementationExecutionId: string;
1347
2598
  specificationDigest: string;
1348
- rationale: string;
1349
2599
  checks: string[];
2600
+ rationale: string;
1350
2601
  reviewExecutionId?: string | undefined;
1351
2602
  }, {
1352
2603
  outcome: "accept" | "rework";
1353
2604
  requestId: string;
2605
+ expectedRevision: number;
1354
2606
  evidence: ({
1355
2607
  type: "artifact";
1356
2608
  artifactId: string;
@@ -1365,11 +2617,10 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
1365
2617
  snapshotId: string;
1366
2618
  })[];
1367
2619
  taskId: string;
1368
- expectedRevision: number;
1369
2620
  implementationExecutionId: string;
1370
2621
  specificationDigest: string;
1371
- rationale: string;
1372
2622
  checks: string[];
2623
+ rationale: string;
1373
2624
  reviewExecutionId?: string | undefined;
1374
2625
  }>;
1375
2626
  export type ProjectTaskDecisionInput = z.output<typeof projectTaskDecisionInputSchema>;
@@ -1429,6 +2680,7 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1429
2680
  }, "strict", z.ZodTypeAny, {
1430
2681
  outcome: "accept" | "rework";
1431
2682
  requestId: string;
2683
+ expectedRevision: number;
1432
2684
  evidence: ({
1433
2685
  type: "artifact";
1434
2686
  artifactId: string;
@@ -1444,11 +2696,10 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1444
2696
  })[];
1445
2697
  decidedAt: string;
1446
2698
  taskId: string;
1447
- expectedRevision: number;
1448
2699
  implementationExecutionId: string;
1449
2700
  specificationDigest: string;
1450
- rationale: string;
1451
2701
  checks: string[];
2702
+ rationale: string;
1452
2703
  actorId: string;
1453
2704
  actorType: "user" | "xpert" | "project_agent";
1454
2705
  taskRevision: number;
@@ -1457,6 +2708,7 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1457
2708
  }, {
1458
2709
  outcome: "accept" | "rework";
1459
2710
  requestId: string;
2711
+ expectedRevision: number;
1460
2712
  evidence: ({
1461
2713
  type: "artifact";
1462
2714
  artifactId: string;
@@ -1472,11 +2724,10 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1472
2724
  })[];
1473
2725
  decidedAt: string;
1474
2726
  taskId: string;
1475
- expectedRevision: number;
1476
2727
  implementationExecutionId: string;
1477
2728
  specificationDigest: string;
1478
- rationale: string;
1479
2729
  checks: string[];
2730
+ rationale: string;
1480
2731
  actorId: string;
1481
2732
  actorType: "user" | "xpert" | "project_agent";
1482
2733
  taskRevision: number;