@xpert-ai/contracts 3.27.0 → 3.29.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 (36) hide show
  1. package/index.cjs.js +862 -198
  2. package/index.esm.js +818 -199
  3. package/package.json +1 -1
  4. package/src/agent/graph.d.ts +5 -0
  5. package/src/ai/chat-recovery.model.d.ts +1 -0
  6. package/src/ai/chat.model.d.ts +12 -1
  7. package/src/ai/computer-codex-isolation.model.d.ts +12 -0
  8. package/src/ai/conversation-share.model.d.ts +65 -0
  9. package/src/ai/execution-control-evidence.schema.d.ts +294 -0
  10. package/src/ai/execution-control.model.d.ts +26 -0
  11. package/src/ai/execution-observability.model.d.ts +2163 -0
  12. package/src/ai/index.d.ts +6 -0
  13. package/src/ai/mcp-execution-control.schema.d.ts +107 -0
  14. package/src/ai/mcp-operation.model.d.ts +60 -0
  15. package/src/ai/mcp-task.schema.d.ts +85 -0
  16. package/src/ai/model-execution-parameters.model.d.ts +46 -0
  17. package/src/ai/model-execution.model.d.ts +4 -1
  18. package/src/ai/project-pipeline/operation.schema.d.ts +1987 -2
  19. package/src/ai/project-task-runtime.model.d.ts +44 -44
  20. package/src/ai/sandbox-execution-control.schema.d.ts +100 -0
  21. package/src/ai/thread-activity.model.d.ts +1 -0
  22. package/src/ai/thread-control-projection.model.d.ts +9 -0
  23. package/src/ai/thread-control-view.schema.d.ts +97 -0
  24. package/src/api-key.model.d.ts +3 -1
  25. package/src/artifact-presentation.model.d.ts +19 -0
  26. package/src/artifact.model.d.ts +14 -0
  27. package/src/content-document.model.d.ts +3 -1
  28. package/src/content-resource.model.d.ts +119 -0
  29. package/src/desktop-shell.model.d.ts +8 -0
  30. package/src/execution-control-admission.schema.d.ts +119 -0
  31. package/src/index.d.ts +9 -0
  32. package/src/plugin-application.d.ts +18 -0
  33. package/src/runtime-control.d.ts +9 -0
  34. package/src/secret-token.model.d.ts +33 -0
  35. package/src/task-control.model.d.ts +45 -0
  36. package/src/view-extension/model.d.ts +7 -0
@@ -207,6 +207,265 @@ export declare const projectPipelineRuntimeExecutionSchema: z.ZodObject<{
207
207
  }>;
208
208
  export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
209
209
  status: z.ZodLiteral<"pending">;
210
+ control: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
211
+ source: z.ZodLiteral<"unavailable">;
212
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
213
+ kind: z.ZodLiteral<"execution">;
214
+ id: z.ZodString;
215
+ }, "strict", z.ZodTypeAny, {
216
+ kind: "execution";
217
+ id: string;
218
+ }, {
219
+ kind: "execution";
220
+ id: string;
221
+ }>, z.ZodObject<{
222
+ kind: z.ZodLiteral<"invocation">;
223
+ id: z.ZodString;
224
+ }, "strict", z.ZodTypeAny, {
225
+ kind: "invocation";
226
+ id: string;
227
+ }, {
228
+ kind: "invocation";
229
+ id: string;
230
+ }>]>;
231
+ state: z.ZodLiteral<"unknown">;
232
+ reason: z.ZodEnum<["unregistered", "unconfirmed", "unsupported"]>;
233
+ version: z.ZodLiteral<1>;
234
+ observedAt: z.ZodString;
235
+ }, "strict", z.ZodTypeAny, {
236
+ subject: {
237
+ kind: "execution";
238
+ id: string;
239
+ } | {
240
+ kind: "invocation";
241
+ id: string;
242
+ };
243
+ source: "unavailable";
244
+ version: 1;
245
+ state: "unknown";
246
+ reason: "unregistered" | "unconfirmed" | "unsupported";
247
+ observedAt: string;
248
+ }, {
249
+ subject: {
250
+ kind: "execution";
251
+ id: string;
252
+ } | {
253
+ kind: "invocation";
254
+ id: string;
255
+ };
256
+ source: "unavailable";
257
+ version: 1;
258
+ state: "unknown";
259
+ reason: "unregistered" | "unconfirmed" | "unsupported";
260
+ observedAt: string;
261
+ }>, z.ZodObject<{
262
+ source: z.ZodLiteral<"platform">;
263
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
264
+ kind: z.ZodLiteral<"execution">;
265
+ id: z.ZodString;
266
+ }, "strict", z.ZodTypeAny, {
267
+ kind: "execution";
268
+ id: string;
269
+ }, {
270
+ kind: "execution";
271
+ id: string;
272
+ }>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"invocation">;
274
+ id: z.ZodString;
275
+ }, "strict", z.ZodTypeAny, {
276
+ kind: "invocation";
277
+ id: string;
278
+ }, {
279
+ kind: "invocation";
280
+ id: string;
281
+ }>]>;
282
+ scope: z.ZodLiteral<"owned_subtree">;
283
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
284
+ desired: z.ZodEnum<["running", "paused", "terminated"]>;
285
+ taskId: z.ZodString;
286
+ rootId: z.ZodString;
287
+ revision: z.ZodNumber;
288
+ executionId: z.ZodString;
289
+ threadId: z.ZodString;
290
+ version: z.ZodLiteral<1>;
291
+ observedAt: z.ZodString;
292
+ }, "strict", z.ZodTypeAny, {
293
+ subject: {
294
+ kind: "execution";
295
+ id: string;
296
+ } | {
297
+ kind: "invocation";
298
+ id: string;
299
+ };
300
+ source: "platform";
301
+ version: 1;
302
+ scope: "owned_subtree";
303
+ revision: number;
304
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
305
+ threadId: string;
306
+ observedAt: string;
307
+ desired: "running" | "paused" | "terminated";
308
+ taskId: string;
309
+ rootId: string;
310
+ executionId: string;
311
+ }, {
312
+ subject: {
313
+ kind: "execution";
314
+ id: string;
315
+ } | {
316
+ kind: "invocation";
317
+ id: string;
318
+ };
319
+ source: "platform";
320
+ version: 1;
321
+ scope: "owned_subtree";
322
+ revision: number;
323
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
324
+ threadId: string;
325
+ observedAt: string;
326
+ desired: "running" | "paused" | "terminated";
327
+ taskId: string;
328
+ rootId: string;
329
+ executionId: string;
330
+ }>, z.ZodObject<{
331
+ source: z.ZodLiteral<"provider">;
332
+ subject: z.ZodObject<{
333
+ kind: z.ZodLiteral<"invocation">;
334
+ id: z.ZodString;
335
+ }, "strict", z.ZodTypeAny, {
336
+ kind: "invocation";
337
+ id: string;
338
+ }, {
339
+ kind: "invocation";
340
+ id: string;
341
+ }>;
342
+ scope: z.ZodLiteral<"operation">;
343
+ state: z.ZodLiteral<"settled">;
344
+ outcome: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
345
+ sessionId: z.ZodString;
346
+ runId: z.ZodString;
347
+ receiptKey: z.ZodString;
348
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
349
+ version: z.ZodLiteral<1>;
350
+ kind: z.ZodLiteral<"host">;
351
+ generation: z.ZodString;
352
+ hostId: z.ZodString;
353
+ }, "strict", z.ZodTypeAny, {
354
+ kind: "host";
355
+ version: 1;
356
+ generation: string;
357
+ hostId: string;
358
+ }, {
359
+ kind: "host";
360
+ version: 1;
361
+ generation: string;
362
+ hostId: string;
363
+ }>, z.ZodObject<{
364
+ version: z.ZodLiteral<1>;
365
+ kind: z.ZodLiteral<"provider">;
366
+ generation: z.ZodString;
367
+ }, "strict", z.ZodTypeAny, {
368
+ kind: "provider";
369
+ version: 1;
370
+ generation: string;
371
+ }, {
372
+ kind: "provider";
373
+ version: 1;
374
+ generation: string;
375
+ }>]>>;
376
+ version: z.ZodLiteral<1>;
377
+ observedAt: z.ZodString;
378
+ }, "strict", z.ZodTypeAny, {
379
+ subject: {
380
+ kind: "invocation";
381
+ id: string;
382
+ };
383
+ outcome: "succeeded" | "failed" | "cancelled";
384
+ source: "provider";
385
+ version: 1;
386
+ scope: "operation";
387
+ state: "settled";
388
+ runId: string;
389
+ observedAt: string;
390
+ sessionId: string;
391
+ receiptKey: string;
392
+ target?: {
393
+ kind: "host";
394
+ version: 1;
395
+ generation: string;
396
+ hostId: string;
397
+ } | {
398
+ kind: "provider";
399
+ version: 1;
400
+ generation: string;
401
+ } | undefined;
402
+ }, {
403
+ subject: {
404
+ kind: "invocation";
405
+ id: string;
406
+ };
407
+ outcome: "succeeded" | "failed" | "cancelled";
408
+ source: "provider";
409
+ version: 1;
410
+ scope: "operation";
411
+ state: "settled";
412
+ runId: string;
413
+ observedAt: string;
414
+ sessionId: string;
415
+ receiptKey: string;
416
+ target?: {
417
+ kind: "host";
418
+ version: 1;
419
+ generation: string;
420
+ hostId: string;
421
+ } | {
422
+ kind: "provider";
423
+ version: 1;
424
+ generation: string;
425
+ } | undefined;
426
+ }>, z.ZodObject<{
427
+ source: z.ZodLiteral<"host_admission">;
428
+ subject: z.ZodObject<{
429
+ kind: z.ZodLiteral<"invocation">;
430
+ id: z.ZodString;
431
+ }, "strict", z.ZodTypeAny, {
432
+ kind: "invocation";
433
+ id: string;
434
+ }, {
435
+ kind: "invocation";
436
+ id: string;
437
+ }>;
438
+ scope: z.ZodLiteral<"operation">;
439
+ state: z.ZodLiteral<"settled">;
440
+ outcome: z.ZodEnum<["failed", "cancelled"]>;
441
+ reason: z.ZodLiteral<"not_started">;
442
+ version: z.ZodLiteral<1>;
443
+ observedAt: z.ZodString;
444
+ }, "strict", z.ZodTypeAny, {
445
+ subject: {
446
+ kind: "invocation";
447
+ id: string;
448
+ };
449
+ outcome: "failed" | "cancelled";
450
+ source: "host_admission";
451
+ version: 1;
452
+ scope: "operation";
453
+ state: "settled";
454
+ reason: "not_started";
455
+ observedAt: string;
456
+ }, {
457
+ subject: {
458
+ kind: "invocation";
459
+ id: string;
460
+ };
461
+ outcome: "failed" | "cancelled";
462
+ source: "host_admission";
463
+ version: 1;
464
+ scope: "operation";
465
+ state: "settled";
466
+ reason: "not_started";
467
+ observedAt: string;
468
+ }>]>>;
210
469
  receiptKey: z.ZodString;
211
470
  execution: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
212
471
  kind: z.ZodLiteral<"assistant_task">;
@@ -269,6 +528,75 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
269
528
  bindingId: string;
270
529
  invocationId: string;
271
530
  } | undefined;
531
+ control?: {
532
+ subject: {
533
+ kind: "execution";
534
+ id: string;
535
+ } | {
536
+ kind: "invocation";
537
+ id: string;
538
+ };
539
+ source: "unavailable";
540
+ version: 1;
541
+ state: "unknown";
542
+ reason: "unregistered" | "unconfirmed" | "unsupported";
543
+ observedAt: string;
544
+ } | {
545
+ subject: {
546
+ kind: "execution";
547
+ id: string;
548
+ } | {
549
+ kind: "invocation";
550
+ id: string;
551
+ };
552
+ source: "platform";
553
+ version: 1;
554
+ scope: "owned_subtree";
555
+ revision: number;
556
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
557
+ threadId: string;
558
+ observedAt: string;
559
+ desired: "running" | "paused" | "terminated";
560
+ taskId: string;
561
+ rootId: string;
562
+ executionId: string;
563
+ } | {
564
+ subject: {
565
+ kind: "invocation";
566
+ id: string;
567
+ };
568
+ outcome: "succeeded" | "failed" | "cancelled";
569
+ source: "provider";
570
+ version: 1;
571
+ scope: "operation";
572
+ state: "settled";
573
+ runId: string;
574
+ observedAt: string;
575
+ sessionId: string;
576
+ receiptKey: string;
577
+ target?: {
578
+ kind: "host";
579
+ version: 1;
580
+ generation: string;
581
+ hostId: string;
582
+ } | {
583
+ kind: "provider";
584
+ version: 1;
585
+ generation: string;
586
+ } | undefined;
587
+ } | {
588
+ subject: {
589
+ kind: "invocation";
590
+ id: string;
591
+ };
592
+ outcome: "failed" | "cancelled";
593
+ source: "host_admission";
594
+ version: 1;
595
+ scope: "operation";
596
+ state: "settled";
597
+ reason: "not_started";
598
+ observedAt: string;
599
+ } | undefined;
272
600
  }, {
273
601
  status: "pending";
274
602
  receiptKey: string;
@@ -287,6 +615,75 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
287
615
  bindingId: string;
288
616
  invocationId: string;
289
617
  } | undefined;
618
+ control?: {
619
+ subject: {
620
+ kind: "execution";
621
+ id: string;
622
+ } | {
623
+ kind: "invocation";
624
+ id: string;
625
+ };
626
+ source: "unavailable";
627
+ version: 1;
628
+ state: "unknown";
629
+ reason: "unregistered" | "unconfirmed" | "unsupported";
630
+ observedAt: string;
631
+ } | {
632
+ subject: {
633
+ kind: "execution";
634
+ id: string;
635
+ } | {
636
+ kind: "invocation";
637
+ id: string;
638
+ };
639
+ source: "platform";
640
+ version: 1;
641
+ scope: "owned_subtree";
642
+ revision: number;
643
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
644
+ threadId: string;
645
+ observedAt: string;
646
+ desired: "running" | "paused" | "terminated";
647
+ taskId: string;
648
+ rootId: string;
649
+ executionId: string;
650
+ } | {
651
+ subject: {
652
+ kind: "invocation";
653
+ id: string;
654
+ };
655
+ outcome: "succeeded" | "failed" | "cancelled";
656
+ source: "provider";
657
+ version: 1;
658
+ scope: "operation";
659
+ state: "settled";
660
+ runId: string;
661
+ observedAt: string;
662
+ sessionId: string;
663
+ receiptKey: string;
664
+ target?: {
665
+ kind: "host";
666
+ version: 1;
667
+ generation: string;
668
+ hostId: string;
669
+ } | {
670
+ kind: "provider";
671
+ version: 1;
672
+ generation: string;
673
+ } | undefined;
674
+ } | {
675
+ subject: {
676
+ kind: "invocation";
677
+ id: string;
678
+ };
679
+ outcome: "failed" | "cancelled";
680
+ source: "host_admission";
681
+ version: 1;
682
+ scope: "operation";
683
+ state: "settled";
684
+ reason: "not_started";
685
+ observedAt: string;
686
+ } | undefined;
290
687
  }>, z.ZodObject<{
291
688
  status: z.ZodLiteral<"succeeded">;
292
689
  outputs: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -326,6 +723,265 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
326
723
  schemaRef: string;
327
724
  producerOperationId?: string | undefined;
328
725
  }>>;
726
+ control: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
727
+ source: z.ZodLiteral<"unavailable">;
728
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
729
+ kind: z.ZodLiteral<"execution">;
730
+ id: z.ZodString;
731
+ }, "strict", z.ZodTypeAny, {
732
+ kind: "execution";
733
+ id: string;
734
+ }, {
735
+ kind: "execution";
736
+ id: string;
737
+ }>, z.ZodObject<{
738
+ kind: z.ZodLiteral<"invocation">;
739
+ id: z.ZodString;
740
+ }, "strict", z.ZodTypeAny, {
741
+ kind: "invocation";
742
+ id: string;
743
+ }, {
744
+ kind: "invocation";
745
+ id: string;
746
+ }>]>;
747
+ state: z.ZodLiteral<"unknown">;
748
+ reason: z.ZodEnum<["unregistered", "unconfirmed", "unsupported"]>;
749
+ version: z.ZodLiteral<1>;
750
+ observedAt: z.ZodString;
751
+ }, "strict", z.ZodTypeAny, {
752
+ subject: {
753
+ kind: "execution";
754
+ id: string;
755
+ } | {
756
+ kind: "invocation";
757
+ id: string;
758
+ };
759
+ source: "unavailable";
760
+ version: 1;
761
+ state: "unknown";
762
+ reason: "unregistered" | "unconfirmed" | "unsupported";
763
+ observedAt: string;
764
+ }, {
765
+ subject: {
766
+ kind: "execution";
767
+ id: string;
768
+ } | {
769
+ kind: "invocation";
770
+ id: string;
771
+ };
772
+ source: "unavailable";
773
+ version: 1;
774
+ state: "unknown";
775
+ reason: "unregistered" | "unconfirmed" | "unsupported";
776
+ observedAt: string;
777
+ }>, z.ZodObject<{
778
+ source: z.ZodLiteral<"platform">;
779
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
780
+ kind: z.ZodLiteral<"execution">;
781
+ id: z.ZodString;
782
+ }, "strict", z.ZodTypeAny, {
783
+ kind: "execution";
784
+ id: string;
785
+ }, {
786
+ kind: "execution";
787
+ id: string;
788
+ }>, z.ZodObject<{
789
+ kind: z.ZodLiteral<"invocation">;
790
+ id: z.ZodString;
791
+ }, "strict", z.ZodTypeAny, {
792
+ kind: "invocation";
793
+ id: string;
794
+ }, {
795
+ kind: "invocation";
796
+ id: string;
797
+ }>]>;
798
+ scope: z.ZodLiteral<"owned_subtree">;
799
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
800
+ desired: z.ZodEnum<["running", "paused", "terminated"]>;
801
+ taskId: z.ZodString;
802
+ rootId: z.ZodString;
803
+ revision: z.ZodNumber;
804
+ executionId: z.ZodString;
805
+ threadId: z.ZodString;
806
+ version: z.ZodLiteral<1>;
807
+ observedAt: z.ZodString;
808
+ }, "strict", z.ZodTypeAny, {
809
+ subject: {
810
+ kind: "execution";
811
+ id: string;
812
+ } | {
813
+ kind: "invocation";
814
+ id: string;
815
+ };
816
+ source: "platform";
817
+ version: 1;
818
+ scope: "owned_subtree";
819
+ revision: number;
820
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
821
+ threadId: string;
822
+ observedAt: string;
823
+ desired: "running" | "paused" | "terminated";
824
+ taskId: string;
825
+ rootId: string;
826
+ executionId: string;
827
+ }, {
828
+ subject: {
829
+ kind: "execution";
830
+ id: string;
831
+ } | {
832
+ kind: "invocation";
833
+ id: string;
834
+ };
835
+ source: "platform";
836
+ version: 1;
837
+ scope: "owned_subtree";
838
+ revision: number;
839
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
840
+ threadId: string;
841
+ observedAt: string;
842
+ desired: "running" | "paused" | "terminated";
843
+ taskId: string;
844
+ rootId: string;
845
+ executionId: string;
846
+ }>, z.ZodObject<{
847
+ source: z.ZodLiteral<"provider">;
848
+ subject: z.ZodObject<{
849
+ kind: z.ZodLiteral<"invocation">;
850
+ id: z.ZodString;
851
+ }, "strict", z.ZodTypeAny, {
852
+ kind: "invocation";
853
+ id: string;
854
+ }, {
855
+ kind: "invocation";
856
+ id: string;
857
+ }>;
858
+ scope: z.ZodLiteral<"operation">;
859
+ state: z.ZodLiteral<"settled">;
860
+ outcome: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
861
+ sessionId: z.ZodString;
862
+ runId: z.ZodString;
863
+ receiptKey: z.ZodString;
864
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
865
+ version: z.ZodLiteral<1>;
866
+ kind: z.ZodLiteral<"host">;
867
+ generation: z.ZodString;
868
+ hostId: z.ZodString;
869
+ }, "strict", z.ZodTypeAny, {
870
+ kind: "host";
871
+ version: 1;
872
+ generation: string;
873
+ hostId: string;
874
+ }, {
875
+ kind: "host";
876
+ version: 1;
877
+ generation: string;
878
+ hostId: string;
879
+ }>, z.ZodObject<{
880
+ version: z.ZodLiteral<1>;
881
+ kind: z.ZodLiteral<"provider">;
882
+ generation: z.ZodString;
883
+ }, "strict", z.ZodTypeAny, {
884
+ kind: "provider";
885
+ version: 1;
886
+ generation: string;
887
+ }, {
888
+ kind: "provider";
889
+ version: 1;
890
+ generation: string;
891
+ }>]>>;
892
+ version: z.ZodLiteral<1>;
893
+ observedAt: z.ZodString;
894
+ }, "strict", z.ZodTypeAny, {
895
+ subject: {
896
+ kind: "invocation";
897
+ id: string;
898
+ };
899
+ outcome: "succeeded" | "failed" | "cancelled";
900
+ source: "provider";
901
+ version: 1;
902
+ scope: "operation";
903
+ state: "settled";
904
+ runId: string;
905
+ observedAt: string;
906
+ sessionId: string;
907
+ receiptKey: string;
908
+ target?: {
909
+ kind: "host";
910
+ version: 1;
911
+ generation: string;
912
+ hostId: string;
913
+ } | {
914
+ kind: "provider";
915
+ version: 1;
916
+ generation: string;
917
+ } | undefined;
918
+ }, {
919
+ subject: {
920
+ kind: "invocation";
921
+ id: string;
922
+ };
923
+ outcome: "succeeded" | "failed" | "cancelled";
924
+ source: "provider";
925
+ version: 1;
926
+ scope: "operation";
927
+ state: "settled";
928
+ runId: string;
929
+ observedAt: string;
930
+ sessionId: string;
931
+ receiptKey: string;
932
+ target?: {
933
+ kind: "host";
934
+ version: 1;
935
+ generation: string;
936
+ hostId: string;
937
+ } | {
938
+ kind: "provider";
939
+ version: 1;
940
+ generation: string;
941
+ } | undefined;
942
+ }>, z.ZodObject<{
943
+ source: z.ZodLiteral<"host_admission">;
944
+ subject: z.ZodObject<{
945
+ kind: z.ZodLiteral<"invocation">;
946
+ id: z.ZodString;
947
+ }, "strict", z.ZodTypeAny, {
948
+ kind: "invocation";
949
+ id: string;
950
+ }, {
951
+ kind: "invocation";
952
+ id: string;
953
+ }>;
954
+ scope: z.ZodLiteral<"operation">;
955
+ state: z.ZodLiteral<"settled">;
956
+ outcome: z.ZodEnum<["failed", "cancelled"]>;
957
+ reason: z.ZodLiteral<"not_started">;
958
+ version: z.ZodLiteral<1>;
959
+ observedAt: z.ZodString;
960
+ }, "strict", z.ZodTypeAny, {
961
+ subject: {
962
+ kind: "invocation";
963
+ id: string;
964
+ };
965
+ outcome: "failed" | "cancelled";
966
+ source: "host_admission";
967
+ version: 1;
968
+ scope: "operation";
969
+ state: "settled";
970
+ reason: "not_started";
971
+ observedAt: string;
972
+ }, {
973
+ subject: {
974
+ kind: "invocation";
975
+ id: string;
976
+ };
977
+ outcome: "failed" | "cancelled";
978
+ source: "host_admission";
979
+ version: 1;
980
+ scope: "operation";
981
+ state: "settled";
982
+ reason: "not_started";
983
+ observedAt: string;
984
+ }>]>>;
329
985
  receiptKey: z.ZodString;
330
986
  execution: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
331
987
  kind: z.ZodLiteral<"assistant_task">;
@@ -396,6 +1052,75 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
396
1052
  bindingId: string;
397
1053
  invocationId: string;
398
1054
  } | undefined;
1055
+ control?: {
1056
+ subject: {
1057
+ kind: "execution";
1058
+ id: string;
1059
+ } | {
1060
+ kind: "invocation";
1061
+ id: string;
1062
+ };
1063
+ source: "unavailable";
1064
+ version: 1;
1065
+ state: "unknown";
1066
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1067
+ observedAt: string;
1068
+ } | {
1069
+ subject: {
1070
+ kind: "execution";
1071
+ id: string;
1072
+ } | {
1073
+ kind: "invocation";
1074
+ id: string;
1075
+ };
1076
+ source: "platform";
1077
+ version: 1;
1078
+ scope: "owned_subtree";
1079
+ revision: number;
1080
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1081
+ threadId: string;
1082
+ observedAt: string;
1083
+ desired: "running" | "paused" | "terminated";
1084
+ taskId: string;
1085
+ rootId: string;
1086
+ executionId: string;
1087
+ } | {
1088
+ subject: {
1089
+ kind: "invocation";
1090
+ id: string;
1091
+ };
1092
+ outcome: "succeeded" | "failed" | "cancelled";
1093
+ source: "provider";
1094
+ version: 1;
1095
+ scope: "operation";
1096
+ state: "settled";
1097
+ runId: string;
1098
+ observedAt: string;
1099
+ sessionId: string;
1100
+ receiptKey: string;
1101
+ target?: {
1102
+ kind: "host";
1103
+ version: 1;
1104
+ generation: string;
1105
+ hostId: string;
1106
+ } | {
1107
+ kind: "provider";
1108
+ version: 1;
1109
+ generation: string;
1110
+ } | undefined;
1111
+ } | {
1112
+ subject: {
1113
+ kind: "invocation";
1114
+ id: string;
1115
+ };
1116
+ outcome: "failed" | "cancelled";
1117
+ source: "host_admission";
1118
+ version: 1;
1119
+ scope: "operation";
1120
+ state: "settled";
1121
+ reason: "not_started";
1122
+ observedAt: string;
1123
+ } | undefined;
399
1124
  }, {
400
1125
  status: "succeeded";
401
1126
  outputs: Record<string, {
@@ -422,9 +1147,337 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
422
1147
  bindingId: string;
423
1148
  invocationId: string;
424
1149
  } | undefined;
1150
+ control?: {
1151
+ subject: {
1152
+ kind: "execution";
1153
+ id: string;
1154
+ } | {
1155
+ kind: "invocation";
1156
+ id: string;
1157
+ };
1158
+ source: "unavailable";
1159
+ version: 1;
1160
+ state: "unknown";
1161
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1162
+ observedAt: string;
1163
+ } | {
1164
+ subject: {
1165
+ kind: "execution";
1166
+ id: string;
1167
+ } | {
1168
+ kind: "invocation";
1169
+ id: string;
1170
+ };
1171
+ source: "platform";
1172
+ version: 1;
1173
+ scope: "owned_subtree";
1174
+ revision: number;
1175
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1176
+ threadId: string;
1177
+ observedAt: string;
1178
+ desired: "running" | "paused" | "terminated";
1179
+ taskId: string;
1180
+ rootId: string;
1181
+ executionId: string;
1182
+ } | {
1183
+ subject: {
1184
+ kind: "invocation";
1185
+ id: string;
1186
+ };
1187
+ outcome: "succeeded" | "failed" | "cancelled";
1188
+ source: "provider";
1189
+ version: 1;
1190
+ scope: "operation";
1191
+ state: "settled";
1192
+ runId: string;
1193
+ observedAt: string;
1194
+ sessionId: string;
1195
+ receiptKey: string;
1196
+ target?: {
1197
+ kind: "host";
1198
+ version: 1;
1199
+ generation: string;
1200
+ hostId: string;
1201
+ } | {
1202
+ kind: "provider";
1203
+ version: 1;
1204
+ generation: string;
1205
+ } | undefined;
1206
+ } | {
1207
+ subject: {
1208
+ kind: "invocation";
1209
+ id: string;
1210
+ };
1211
+ outcome: "failed" | "cancelled";
1212
+ source: "host_admission";
1213
+ version: 1;
1214
+ scope: "operation";
1215
+ state: "settled";
1216
+ reason: "not_started";
1217
+ observedAt: string;
1218
+ } | undefined;
425
1219
  }>, z.ZodObject<{
426
1220
  status: z.ZodLiteral<"failed">;
427
1221
  code: z.ZodEffects<z.ZodString, string, string>;
1222
+ control: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
1223
+ source: z.ZodLiteral<"unavailable">;
1224
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1225
+ kind: z.ZodLiteral<"execution">;
1226
+ id: z.ZodString;
1227
+ }, "strict", z.ZodTypeAny, {
1228
+ kind: "execution";
1229
+ id: string;
1230
+ }, {
1231
+ kind: "execution";
1232
+ id: string;
1233
+ }>, z.ZodObject<{
1234
+ kind: z.ZodLiteral<"invocation">;
1235
+ id: z.ZodString;
1236
+ }, "strict", z.ZodTypeAny, {
1237
+ kind: "invocation";
1238
+ id: string;
1239
+ }, {
1240
+ kind: "invocation";
1241
+ id: string;
1242
+ }>]>;
1243
+ state: z.ZodLiteral<"unknown">;
1244
+ reason: z.ZodEnum<["unregistered", "unconfirmed", "unsupported"]>;
1245
+ version: z.ZodLiteral<1>;
1246
+ observedAt: z.ZodString;
1247
+ }, "strict", z.ZodTypeAny, {
1248
+ subject: {
1249
+ kind: "execution";
1250
+ id: string;
1251
+ } | {
1252
+ kind: "invocation";
1253
+ id: string;
1254
+ };
1255
+ source: "unavailable";
1256
+ version: 1;
1257
+ state: "unknown";
1258
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1259
+ observedAt: string;
1260
+ }, {
1261
+ subject: {
1262
+ kind: "execution";
1263
+ id: string;
1264
+ } | {
1265
+ kind: "invocation";
1266
+ id: string;
1267
+ };
1268
+ source: "unavailable";
1269
+ version: 1;
1270
+ state: "unknown";
1271
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1272
+ observedAt: string;
1273
+ }>, z.ZodObject<{
1274
+ source: z.ZodLiteral<"platform">;
1275
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1276
+ kind: z.ZodLiteral<"execution">;
1277
+ id: z.ZodString;
1278
+ }, "strict", z.ZodTypeAny, {
1279
+ kind: "execution";
1280
+ id: string;
1281
+ }, {
1282
+ kind: "execution";
1283
+ id: string;
1284
+ }>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"invocation">;
1286
+ id: z.ZodString;
1287
+ }, "strict", z.ZodTypeAny, {
1288
+ kind: "invocation";
1289
+ id: string;
1290
+ }, {
1291
+ kind: "invocation";
1292
+ id: string;
1293
+ }>]>;
1294
+ scope: z.ZodLiteral<"owned_subtree">;
1295
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
1296
+ desired: z.ZodEnum<["running", "paused", "terminated"]>;
1297
+ taskId: z.ZodString;
1298
+ rootId: z.ZodString;
1299
+ revision: z.ZodNumber;
1300
+ executionId: z.ZodString;
1301
+ threadId: z.ZodString;
1302
+ version: z.ZodLiteral<1>;
1303
+ observedAt: z.ZodString;
1304
+ }, "strict", z.ZodTypeAny, {
1305
+ subject: {
1306
+ kind: "execution";
1307
+ id: string;
1308
+ } | {
1309
+ kind: "invocation";
1310
+ id: string;
1311
+ };
1312
+ source: "platform";
1313
+ version: 1;
1314
+ scope: "owned_subtree";
1315
+ revision: number;
1316
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1317
+ threadId: string;
1318
+ observedAt: string;
1319
+ desired: "running" | "paused" | "terminated";
1320
+ taskId: string;
1321
+ rootId: string;
1322
+ executionId: string;
1323
+ }, {
1324
+ subject: {
1325
+ kind: "execution";
1326
+ id: string;
1327
+ } | {
1328
+ kind: "invocation";
1329
+ id: string;
1330
+ };
1331
+ source: "platform";
1332
+ version: 1;
1333
+ scope: "owned_subtree";
1334
+ revision: number;
1335
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1336
+ threadId: string;
1337
+ observedAt: string;
1338
+ desired: "running" | "paused" | "terminated";
1339
+ taskId: string;
1340
+ rootId: string;
1341
+ executionId: string;
1342
+ }>, z.ZodObject<{
1343
+ source: z.ZodLiteral<"provider">;
1344
+ subject: z.ZodObject<{
1345
+ kind: z.ZodLiteral<"invocation">;
1346
+ id: z.ZodString;
1347
+ }, "strict", z.ZodTypeAny, {
1348
+ kind: "invocation";
1349
+ id: string;
1350
+ }, {
1351
+ kind: "invocation";
1352
+ id: string;
1353
+ }>;
1354
+ scope: z.ZodLiteral<"operation">;
1355
+ state: z.ZodLiteral<"settled">;
1356
+ outcome: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
1357
+ sessionId: z.ZodString;
1358
+ runId: z.ZodString;
1359
+ receiptKey: z.ZodString;
1360
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1361
+ version: z.ZodLiteral<1>;
1362
+ kind: z.ZodLiteral<"host">;
1363
+ generation: z.ZodString;
1364
+ hostId: z.ZodString;
1365
+ }, "strict", z.ZodTypeAny, {
1366
+ kind: "host";
1367
+ version: 1;
1368
+ generation: string;
1369
+ hostId: string;
1370
+ }, {
1371
+ kind: "host";
1372
+ version: 1;
1373
+ generation: string;
1374
+ hostId: string;
1375
+ }>, z.ZodObject<{
1376
+ version: z.ZodLiteral<1>;
1377
+ kind: z.ZodLiteral<"provider">;
1378
+ generation: z.ZodString;
1379
+ }, "strict", z.ZodTypeAny, {
1380
+ kind: "provider";
1381
+ version: 1;
1382
+ generation: string;
1383
+ }, {
1384
+ kind: "provider";
1385
+ version: 1;
1386
+ generation: string;
1387
+ }>]>>;
1388
+ version: z.ZodLiteral<1>;
1389
+ observedAt: z.ZodString;
1390
+ }, "strict", z.ZodTypeAny, {
1391
+ subject: {
1392
+ kind: "invocation";
1393
+ id: string;
1394
+ };
1395
+ outcome: "succeeded" | "failed" | "cancelled";
1396
+ source: "provider";
1397
+ version: 1;
1398
+ scope: "operation";
1399
+ state: "settled";
1400
+ runId: string;
1401
+ observedAt: string;
1402
+ sessionId: string;
1403
+ receiptKey: string;
1404
+ target?: {
1405
+ kind: "host";
1406
+ version: 1;
1407
+ generation: string;
1408
+ hostId: string;
1409
+ } | {
1410
+ kind: "provider";
1411
+ version: 1;
1412
+ generation: string;
1413
+ } | undefined;
1414
+ }, {
1415
+ subject: {
1416
+ kind: "invocation";
1417
+ id: string;
1418
+ };
1419
+ outcome: "succeeded" | "failed" | "cancelled";
1420
+ source: "provider";
1421
+ version: 1;
1422
+ scope: "operation";
1423
+ state: "settled";
1424
+ runId: string;
1425
+ observedAt: string;
1426
+ sessionId: string;
1427
+ receiptKey: string;
1428
+ target?: {
1429
+ kind: "host";
1430
+ version: 1;
1431
+ generation: string;
1432
+ hostId: string;
1433
+ } | {
1434
+ kind: "provider";
1435
+ version: 1;
1436
+ generation: string;
1437
+ } | undefined;
1438
+ }>, z.ZodObject<{
1439
+ source: z.ZodLiteral<"host_admission">;
1440
+ subject: z.ZodObject<{
1441
+ kind: z.ZodLiteral<"invocation">;
1442
+ id: z.ZodString;
1443
+ }, "strict", z.ZodTypeAny, {
1444
+ kind: "invocation";
1445
+ id: string;
1446
+ }, {
1447
+ kind: "invocation";
1448
+ id: string;
1449
+ }>;
1450
+ scope: z.ZodLiteral<"operation">;
1451
+ state: z.ZodLiteral<"settled">;
1452
+ outcome: z.ZodEnum<["failed", "cancelled"]>;
1453
+ reason: z.ZodLiteral<"not_started">;
1454
+ version: z.ZodLiteral<1>;
1455
+ observedAt: z.ZodString;
1456
+ }, "strict", z.ZodTypeAny, {
1457
+ subject: {
1458
+ kind: "invocation";
1459
+ id: string;
1460
+ };
1461
+ outcome: "failed" | "cancelled";
1462
+ source: "host_admission";
1463
+ version: 1;
1464
+ scope: "operation";
1465
+ state: "settled";
1466
+ reason: "not_started";
1467
+ observedAt: string;
1468
+ }, {
1469
+ subject: {
1470
+ kind: "invocation";
1471
+ id: string;
1472
+ };
1473
+ outcome: "failed" | "cancelled";
1474
+ source: "host_admission";
1475
+ version: 1;
1476
+ scope: "operation";
1477
+ state: "settled";
1478
+ reason: "not_started";
1479
+ observedAt: string;
1480
+ }>]>>;
428
1481
  receiptKey: z.ZodString;
429
1482
  execution: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
430
1483
  kind: z.ZodLiteral<"assistant_task">;
@@ -488,6 +1541,75 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
488
1541
  bindingId: string;
489
1542
  invocationId: string;
490
1543
  } | undefined;
1544
+ control?: {
1545
+ subject: {
1546
+ kind: "execution";
1547
+ id: string;
1548
+ } | {
1549
+ kind: "invocation";
1550
+ id: string;
1551
+ };
1552
+ source: "unavailable";
1553
+ version: 1;
1554
+ state: "unknown";
1555
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1556
+ observedAt: string;
1557
+ } | {
1558
+ subject: {
1559
+ kind: "execution";
1560
+ id: string;
1561
+ } | {
1562
+ kind: "invocation";
1563
+ id: string;
1564
+ };
1565
+ source: "platform";
1566
+ version: 1;
1567
+ scope: "owned_subtree";
1568
+ revision: number;
1569
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1570
+ threadId: string;
1571
+ observedAt: string;
1572
+ desired: "running" | "paused" | "terminated";
1573
+ taskId: string;
1574
+ rootId: string;
1575
+ executionId: string;
1576
+ } | {
1577
+ subject: {
1578
+ kind: "invocation";
1579
+ id: string;
1580
+ };
1581
+ outcome: "succeeded" | "failed" | "cancelled";
1582
+ source: "provider";
1583
+ version: 1;
1584
+ scope: "operation";
1585
+ state: "settled";
1586
+ runId: string;
1587
+ observedAt: string;
1588
+ sessionId: string;
1589
+ receiptKey: string;
1590
+ target?: {
1591
+ kind: "host";
1592
+ version: 1;
1593
+ generation: string;
1594
+ hostId: string;
1595
+ } | {
1596
+ kind: "provider";
1597
+ version: 1;
1598
+ generation: string;
1599
+ } | undefined;
1600
+ } | {
1601
+ subject: {
1602
+ kind: "invocation";
1603
+ id: string;
1604
+ };
1605
+ outcome: "failed" | "cancelled";
1606
+ source: "host_admission";
1607
+ version: 1;
1608
+ scope: "operation";
1609
+ state: "settled";
1610
+ reason: "not_started";
1611
+ observedAt: string;
1612
+ } | undefined;
491
1613
  }, {
492
1614
  code: string;
493
1615
  status: "failed";
@@ -507,8 +1629,336 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
507
1629
  bindingId: string;
508
1630
  invocationId: string;
509
1631
  } | undefined;
1632
+ control?: {
1633
+ subject: {
1634
+ kind: "execution";
1635
+ id: string;
1636
+ } | {
1637
+ kind: "invocation";
1638
+ id: string;
1639
+ };
1640
+ source: "unavailable";
1641
+ version: 1;
1642
+ state: "unknown";
1643
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1644
+ observedAt: string;
1645
+ } | {
1646
+ subject: {
1647
+ kind: "execution";
1648
+ id: string;
1649
+ } | {
1650
+ kind: "invocation";
1651
+ id: string;
1652
+ };
1653
+ source: "platform";
1654
+ version: 1;
1655
+ scope: "owned_subtree";
1656
+ revision: number;
1657
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1658
+ threadId: string;
1659
+ observedAt: string;
1660
+ desired: "running" | "paused" | "terminated";
1661
+ taskId: string;
1662
+ rootId: string;
1663
+ executionId: string;
1664
+ } | {
1665
+ subject: {
1666
+ kind: "invocation";
1667
+ id: string;
1668
+ };
1669
+ outcome: "succeeded" | "failed" | "cancelled";
1670
+ source: "provider";
1671
+ version: 1;
1672
+ scope: "operation";
1673
+ state: "settled";
1674
+ runId: string;
1675
+ observedAt: string;
1676
+ sessionId: string;
1677
+ receiptKey: string;
1678
+ target?: {
1679
+ kind: "host";
1680
+ version: 1;
1681
+ generation: string;
1682
+ hostId: string;
1683
+ } | {
1684
+ kind: "provider";
1685
+ version: 1;
1686
+ generation: string;
1687
+ } | undefined;
1688
+ } | {
1689
+ subject: {
1690
+ kind: "invocation";
1691
+ id: string;
1692
+ };
1693
+ outcome: "failed" | "cancelled";
1694
+ source: "host_admission";
1695
+ version: 1;
1696
+ scope: "operation";
1697
+ state: "settled";
1698
+ reason: "not_started";
1699
+ observedAt: string;
1700
+ } | undefined;
510
1701
  }>, z.ZodObject<{
511
1702
  status: z.ZodLiteral<"cancelled">;
1703
+ control: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
1704
+ source: z.ZodLiteral<"unavailable">;
1705
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1706
+ kind: z.ZodLiteral<"execution">;
1707
+ id: z.ZodString;
1708
+ }, "strict", z.ZodTypeAny, {
1709
+ kind: "execution";
1710
+ id: string;
1711
+ }, {
1712
+ kind: "execution";
1713
+ id: string;
1714
+ }>, z.ZodObject<{
1715
+ kind: z.ZodLiteral<"invocation">;
1716
+ id: z.ZodString;
1717
+ }, "strict", z.ZodTypeAny, {
1718
+ kind: "invocation";
1719
+ id: string;
1720
+ }, {
1721
+ kind: "invocation";
1722
+ id: string;
1723
+ }>]>;
1724
+ state: z.ZodLiteral<"unknown">;
1725
+ reason: z.ZodEnum<["unregistered", "unconfirmed", "unsupported"]>;
1726
+ version: z.ZodLiteral<1>;
1727
+ observedAt: z.ZodString;
1728
+ }, "strict", z.ZodTypeAny, {
1729
+ subject: {
1730
+ kind: "execution";
1731
+ id: string;
1732
+ } | {
1733
+ kind: "invocation";
1734
+ id: string;
1735
+ };
1736
+ source: "unavailable";
1737
+ version: 1;
1738
+ state: "unknown";
1739
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1740
+ observedAt: string;
1741
+ }, {
1742
+ subject: {
1743
+ kind: "execution";
1744
+ id: string;
1745
+ } | {
1746
+ kind: "invocation";
1747
+ id: string;
1748
+ };
1749
+ source: "unavailable";
1750
+ version: 1;
1751
+ state: "unknown";
1752
+ reason: "unregistered" | "unconfirmed" | "unsupported";
1753
+ observedAt: string;
1754
+ }>, z.ZodObject<{
1755
+ source: z.ZodLiteral<"platform">;
1756
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1757
+ kind: z.ZodLiteral<"execution">;
1758
+ id: z.ZodString;
1759
+ }, "strict", z.ZodTypeAny, {
1760
+ kind: "execution";
1761
+ id: string;
1762
+ }, {
1763
+ kind: "execution";
1764
+ id: string;
1765
+ }>, z.ZodObject<{
1766
+ kind: z.ZodLiteral<"invocation">;
1767
+ id: z.ZodString;
1768
+ }, "strict", z.ZodTypeAny, {
1769
+ kind: "invocation";
1770
+ id: string;
1771
+ }, {
1772
+ kind: "invocation";
1773
+ id: string;
1774
+ }>]>;
1775
+ scope: z.ZodLiteral<"owned_subtree">;
1776
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
1777
+ desired: z.ZodEnum<["running", "paused", "terminated"]>;
1778
+ taskId: z.ZodString;
1779
+ rootId: z.ZodString;
1780
+ revision: z.ZodNumber;
1781
+ executionId: z.ZodString;
1782
+ threadId: z.ZodString;
1783
+ version: z.ZodLiteral<1>;
1784
+ observedAt: z.ZodString;
1785
+ }, "strict", z.ZodTypeAny, {
1786
+ subject: {
1787
+ kind: "execution";
1788
+ id: string;
1789
+ } | {
1790
+ kind: "invocation";
1791
+ id: string;
1792
+ };
1793
+ source: "platform";
1794
+ version: 1;
1795
+ scope: "owned_subtree";
1796
+ revision: number;
1797
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1798
+ threadId: string;
1799
+ observedAt: string;
1800
+ desired: "running" | "paused" | "terminated";
1801
+ taskId: string;
1802
+ rootId: string;
1803
+ executionId: string;
1804
+ }, {
1805
+ subject: {
1806
+ kind: "execution";
1807
+ id: string;
1808
+ } | {
1809
+ kind: "invocation";
1810
+ id: string;
1811
+ };
1812
+ source: "platform";
1813
+ version: 1;
1814
+ scope: "owned_subtree";
1815
+ revision: number;
1816
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
1817
+ threadId: string;
1818
+ observedAt: string;
1819
+ desired: "running" | "paused" | "terminated";
1820
+ taskId: string;
1821
+ rootId: string;
1822
+ executionId: string;
1823
+ }>, z.ZodObject<{
1824
+ source: z.ZodLiteral<"provider">;
1825
+ subject: z.ZodObject<{
1826
+ kind: z.ZodLiteral<"invocation">;
1827
+ id: z.ZodString;
1828
+ }, "strict", z.ZodTypeAny, {
1829
+ kind: "invocation";
1830
+ id: string;
1831
+ }, {
1832
+ kind: "invocation";
1833
+ id: string;
1834
+ }>;
1835
+ scope: z.ZodLiteral<"operation">;
1836
+ state: z.ZodLiteral<"settled">;
1837
+ outcome: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
1838
+ sessionId: z.ZodString;
1839
+ runId: z.ZodString;
1840
+ receiptKey: z.ZodString;
1841
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1842
+ version: z.ZodLiteral<1>;
1843
+ kind: z.ZodLiteral<"host">;
1844
+ generation: z.ZodString;
1845
+ hostId: z.ZodString;
1846
+ }, "strict", z.ZodTypeAny, {
1847
+ kind: "host";
1848
+ version: 1;
1849
+ generation: string;
1850
+ hostId: string;
1851
+ }, {
1852
+ kind: "host";
1853
+ version: 1;
1854
+ generation: string;
1855
+ hostId: string;
1856
+ }>, z.ZodObject<{
1857
+ version: z.ZodLiteral<1>;
1858
+ kind: z.ZodLiteral<"provider">;
1859
+ generation: z.ZodString;
1860
+ }, "strict", z.ZodTypeAny, {
1861
+ kind: "provider";
1862
+ version: 1;
1863
+ generation: string;
1864
+ }, {
1865
+ kind: "provider";
1866
+ version: 1;
1867
+ generation: string;
1868
+ }>]>>;
1869
+ version: z.ZodLiteral<1>;
1870
+ observedAt: z.ZodString;
1871
+ }, "strict", z.ZodTypeAny, {
1872
+ subject: {
1873
+ kind: "invocation";
1874
+ id: string;
1875
+ };
1876
+ outcome: "succeeded" | "failed" | "cancelled";
1877
+ source: "provider";
1878
+ version: 1;
1879
+ scope: "operation";
1880
+ state: "settled";
1881
+ runId: string;
1882
+ observedAt: string;
1883
+ sessionId: string;
1884
+ receiptKey: string;
1885
+ target?: {
1886
+ kind: "host";
1887
+ version: 1;
1888
+ generation: string;
1889
+ hostId: string;
1890
+ } | {
1891
+ kind: "provider";
1892
+ version: 1;
1893
+ generation: string;
1894
+ } | undefined;
1895
+ }, {
1896
+ subject: {
1897
+ kind: "invocation";
1898
+ id: string;
1899
+ };
1900
+ outcome: "succeeded" | "failed" | "cancelled";
1901
+ source: "provider";
1902
+ version: 1;
1903
+ scope: "operation";
1904
+ state: "settled";
1905
+ runId: string;
1906
+ observedAt: string;
1907
+ sessionId: string;
1908
+ receiptKey: string;
1909
+ target?: {
1910
+ kind: "host";
1911
+ version: 1;
1912
+ generation: string;
1913
+ hostId: string;
1914
+ } | {
1915
+ kind: "provider";
1916
+ version: 1;
1917
+ generation: string;
1918
+ } | undefined;
1919
+ }>, z.ZodObject<{
1920
+ source: z.ZodLiteral<"host_admission">;
1921
+ subject: z.ZodObject<{
1922
+ kind: z.ZodLiteral<"invocation">;
1923
+ id: z.ZodString;
1924
+ }, "strict", z.ZodTypeAny, {
1925
+ kind: "invocation";
1926
+ id: string;
1927
+ }, {
1928
+ kind: "invocation";
1929
+ id: string;
1930
+ }>;
1931
+ scope: z.ZodLiteral<"operation">;
1932
+ state: z.ZodLiteral<"settled">;
1933
+ outcome: z.ZodEnum<["failed", "cancelled"]>;
1934
+ reason: z.ZodLiteral<"not_started">;
1935
+ version: z.ZodLiteral<1>;
1936
+ observedAt: z.ZodString;
1937
+ }, "strict", z.ZodTypeAny, {
1938
+ subject: {
1939
+ kind: "invocation";
1940
+ id: string;
1941
+ };
1942
+ outcome: "failed" | "cancelled";
1943
+ source: "host_admission";
1944
+ version: 1;
1945
+ scope: "operation";
1946
+ state: "settled";
1947
+ reason: "not_started";
1948
+ observedAt: string;
1949
+ }, {
1950
+ subject: {
1951
+ kind: "invocation";
1952
+ id: string;
1953
+ };
1954
+ outcome: "failed" | "cancelled";
1955
+ source: "host_admission";
1956
+ version: 1;
1957
+ scope: "operation";
1958
+ state: "settled";
1959
+ reason: "not_started";
1960
+ observedAt: string;
1961
+ }>]>>;
512
1962
  receiptKey: z.ZodString;
513
1963
  execution: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
514
1964
  kind: z.ZodLiteral<"assistant_task">;
@@ -571,6 +2021,75 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
571
2021
  bindingId: string;
572
2022
  invocationId: string;
573
2023
  } | undefined;
2024
+ control?: {
2025
+ subject: {
2026
+ kind: "execution";
2027
+ id: string;
2028
+ } | {
2029
+ kind: "invocation";
2030
+ id: string;
2031
+ };
2032
+ source: "unavailable";
2033
+ version: 1;
2034
+ state: "unknown";
2035
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2036
+ observedAt: string;
2037
+ } | {
2038
+ subject: {
2039
+ kind: "execution";
2040
+ id: string;
2041
+ } | {
2042
+ kind: "invocation";
2043
+ id: string;
2044
+ };
2045
+ source: "platform";
2046
+ version: 1;
2047
+ scope: "owned_subtree";
2048
+ revision: number;
2049
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2050
+ threadId: string;
2051
+ observedAt: string;
2052
+ desired: "running" | "paused" | "terminated";
2053
+ taskId: string;
2054
+ rootId: string;
2055
+ executionId: string;
2056
+ } | {
2057
+ subject: {
2058
+ kind: "invocation";
2059
+ id: string;
2060
+ };
2061
+ outcome: "succeeded" | "failed" | "cancelled";
2062
+ source: "provider";
2063
+ version: 1;
2064
+ scope: "operation";
2065
+ state: "settled";
2066
+ runId: string;
2067
+ observedAt: string;
2068
+ sessionId: string;
2069
+ receiptKey: string;
2070
+ target?: {
2071
+ kind: "host";
2072
+ version: 1;
2073
+ generation: string;
2074
+ hostId: string;
2075
+ } | {
2076
+ kind: "provider";
2077
+ version: 1;
2078
+ generation: string;
2079
+ } | undefined;
2080
+ } | {
2081
+ subject: {
2082
+ kind: "invocation";
2083
+ id: string;
2084
+ };
2085
+ outcome: "failed" | "cancelled";
2086
+ source: "host_admission";
2087
+ version: 1;
2088
+ scope: "operation";
2089
+ state: "settled";
2090
+ reason: "not_started";
2091
+ observedAt: string;
2092
+ } | undefined;
574
2093
  }, {
575
2094
  status: "cancelled";
576
2095
  receiptKey: string;
@@ -589,7 +2108,335 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
589
2108
  bindingId: string;
590
2109
  invocationId: string;
591
2110
  } | undefined;
2111
+ control?: {
2112
+ subject: {
2113
+ kind: "execution";
2114
+ id: string;
2115
+ } | {
2116
+ kind: "invocation";
2117
+ id: string;
2118
+ };
2119
+ source: "unavailable";
2120
+ version: 1;
2121
+ state: "unknown";
2122
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2123
+ observedAt: string;
2124
+ } | {
2125
+ subject: {
2126
+ kind: "execution";
2127
+ id: string;
2128
+ } | {
2129
+ kind: "invocation";
2130
+ id: string;
2131
+ };
2132
+ source: "platform";
2133
+ version: 1;
2134
+ scope: "owned_subtree";
2135
+ revision: number;
2136
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2137
+ threadId: string;
2138
+ observedAt: string;
2139
+ desired: "running" | "paused" | "terminated";
2140
+ taskId: string;
2141
+ rootId: string;
2142
+ executionId: string;
2143
+ } | {
2144
+ subject: {
2145
+ kind: "invocation";
2146
+ id: string;
2147
+ };
2148
+ outcome: "succeeded" | "failed" | "cancelled";
2149
+ source: "provider";
2150
+ version: 1;
2151
+ scope: "operation";
2152
+ state: "settled";
2153
+ runId: string;
2154
+ observedAt: string;
2155
+ sessionId: string;
2156
+ receiptKey: string;
2157
+ target?: {
2158
+ kind: "host";
2159
+ version: 1;
2160
+ generation: string;
2161
+ hostId: string;
2162
+ } | {
2163
+ kind: "provider";
2164
+ version: 1;
2165
+ generation: string;
2166
+ } | undefined;
2167
+ } | {
2168
+ subject: {
2169
+ kind: "invocation";
2170
+ id: string;
2171
+ };
2172
+ outcome: "failed" | "cancelled";
2173
+ source: "host_admission";
2174
+ version: 1;
2175
+ scope: "operation";
2176
+ state: "settled";
2177
+ reason: "not_started";
2178
+ observedAt: string;
2179
+ } | undefined;
592
2180
  }>, z.ZodObject<{
2181
+ control: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
2182
+ source: z.ZodLiteral<"unavailable">;
2183
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2184
+ kind: z.ZodLiteral<"execution">;
2185
+ id: z.ZodString;
2186
+ }, "strict", z.ZodTypeAny, {
2187
+ kind: "execution";
2188
+ id: string;
2189
+ }, {
2190
+ kind: "execution";
2191
+ id: string;
2192
+ }>, z.ZodObject<{
2193
+ kind: z.ZodLiteral<"invocation">;
2194
+ id: z.ZodString;
2195
+ }, "strict", z.ZodTypeAny, {
2196
+ kind: "invocation";
2197
+ id: string;
2198
+ }, {
2199
+ kind: "invocation";
2200
+ id: string;
2201
+ }>]>;
2202
+ state: z.ZodLiteral<"unknown">;
2203
+ reason: z.ZodEnum<["unregistered", "unconfirmed", "unsupported"]>;
2204
+ version: z.ZodLiteral<1>;
2205
+ observedAt: z.ZodString;
2206
+ }, "strict", z.ZodTypeAny, {
2207
+ subject: {
2208
+ kind: "execution";
2209
+ id: string;
2210
+ } | {
2211
+ kind: "invocation";
2212
+ id: string;
2213
+ };
2214
+ source: "unavailable";
2215
+ version: 1;
2216
+ state: "unknown";
2217
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2218
+ observedAt: string;
2219
+ }, {
2220
+ subject: {
2221
+ kind: "execution";
2222
+ id: string;
2223
+ } | {
2224
+ kind: "invocation";
2225
+ id: string;
2226
+ };
2227
+ source: "unavailable";
2228
+ version: 1;
2229
+ state: "unknown";
2230
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2231
+ observedAt: string;
2232
+ }>, z.ZodObject<{
2233
+ source: z.ZodLiteral<"platform">;
2234
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2235
+ kind: z.ZodLiteral<"execution">;
2236
+ id: z.ZodString;
2237
+ }, "strict", z.ZodTypeAny, {
2238
+ kind: "execution";
2239
+ id: string;
2240
+ }, {
2241
+ kind: "execution";
2242
+ id: string;
2243
+ }>, z.ZodObject<{
2244
+ kind: z.ZodLiteral<"invocation">;
2245
+ id: z.ZodString;
2246
+ }, "strict", z.ZodTypeAny, {
2247
+ kind: "invocation";
2248
+ id: string;
2249
+ }, {
2250
+ kind: "invocation";
2251
+ id: string;
2252
+ }>]>;
2253
+ scope: z.ZodLiteral<"owned_subtree">;
2254
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
2255
+ desired: z.ZodEnum<["running", "paused", "terminated"]>;
2256
+ taskId: z.ZodString;
2257
+ rootId: z.ZodString;
2258
+ revision: z.ZodNumber;
2259
+ executionId: z.ZodString;
2260
+ threadId: z.ZodString;
2261
+ version: z.ZodLiteral<1>;
2262
+ observedAt: z.ZodString;
2263
+ }, "strict", z.ZodTypeAny, {
2264
+ subject: {
2265
+ kind: "execution";
2266
+ id: string;
2267
+ } | {
2268
+ kind: "invocation";
2269
+ id: string;
2270
+ };
2271
+ source: "platform";
2272
+ version: 1;
2273
+ scope: "owned_subtree";
2274
+ revision: number;
2275
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2276
+ threadId: string;
2277
+ observedAt: string;
2278
+ desired: "running" | "paused" | "terminated";
2279
+ taskId: string;
2280
+ rootId: string;
2281
+ executionId: string;
2282
+ }, {
2283
+ subject: {
2284
+ kind: "execution";
2285
+ id: string;
2286
+ } | {
2287
+ kind: "invocation";
2288
+ id: string;
2289
+ };
2290
+ source: "platform";
2291
+ version: 1;
2292
+ scope: "owned_subtree";
2293
+ revision: number;
2294
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2295
+ threadId: string;
2296
+ observedAt: string;
2297
+ desired: "running" | "paused" | "terminated";
2298
+ taskId: string;
2299
+ rootId: string;
2300
+ executionId: string;
2301
+ }>, z.ZodObject<{
2302
+ source: z.ZodLiteral<"provider">;
2303
+ subject: z.ZodObject<{
2304
+ kind: z.ZodLiteral<"invocation">;
2305
+ id: z.ZodString;
2306
+ }, "strict", z.ZodTypeAny, {
2307
+ kind: "invocation";
2308
+ id: string;
2309
+ }, {
2310
+ kind: "invocation";
2311
+ id: string;
2312
+ }>;
2313
+ scope: z.ZodLiteral<"operation">;
2314
+ state: z.ZodLiteral<"settled">;
2315
+ outcome: z.ZodEnum<["succeeded", "failed", "cancelled"]>;
2316
+ sessionId: z.ZodString;
2317
+ runId: z.ZodString;
2318
+ receiptKey: z.ZodString;
2319
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2320
+ version: z.ZodLiteral<1>;
2321
+ kind: z.ZodLiteral<"host">;
2322
+ generation: z.ZodString;
2323
+ hostId: z.ZodString;
2324
+ }, "strict", z.ZodTypeAny, {
2325
+ kind: "host";
2326
+ version: 1;
2327
+ generation: string;
2328
+ hostId: string;
2329
+ }, {
2330
+ kind: "host";
2331
+ version: 1;
2332
+ generation: string;
2333
+ hostId: string;
2334
+ }>, z.ZodObject<{
2335
+ version: z.ZodLiteral<1>;
2336
+ kind: z.ZodLiteral<"provider">;
2337
+ generation: z.ZodString;
2338
+ }, "strict", z.ZodTypeAny, {
2339
+ kind: "provider";
2340
+ version: 1;
2341
+ generation: string;
2342
+ }, {
2343
+ kind: "provider";
2344
+ version: 1;
2345
+ generation: string;
2346
+ }>]>>;
2347
+ version: z.ZodLiteral<1>;
2348
+ observedAt: z.ZodString;
2349
+ }, "strict", z.ZodTypeAny, {
2350
+ subject: {
2351
+ kind: "invocation";
2352
+ id: string;
2353
+ };
2354
+ outcome: "succeeded" | "failed" | "cancelled";
2355
+ source: "provider";
2356
+ version: 1;
2357
+ scope: "operation";
2358
+ state: "settled";
2359
+ runId: string;
2360
+ observedAt: string;
2361
+ sessionId: string;
2362
+ receiptKey: string;
2363
+ target?: {
2364
+ kind: "host";
2365
+ version: 1;
2366
+ generation: string;
2367
+ hostId: string;
2368
+ } | {
2369
+ kind: "provider";
2370
+ version: 1;
2371
+ generation: string;
2372
+ } | undefined;
2373
+ }, {
2374
+ subject: {
2375
+ kind: "invocation";
2376
+ id: string;
2377
+ };
2378
+ outcome: "succeeded" | "failed" | "cancelled";
2379
+ source: "provider";
2380
+ version: 1;
2381
+ scope: "operation";
2382
+ state: "settled";
2383
+ runId: string;
2384
+ observedAt: string;
2385
+ sessionId: string;
2386
+ receiptKey: string;
2387
+ target?: {
2388
+ kind: "host";
2389
+ version: 1;
2390
+ generation: string;
2391
+ hostId: string;
2392
+ } | {
2393
+ kind: "provider";
2394
+ version: 1;
2395
+ generation: string;
2396
+ } | undefined;
2397
+ }>, z.ZodObject<{
2398
+ source: z.ZodLiteral<"host_admission">;
2399
+ subject: z.ZodObject<{
2400
+ kind: z.ZodLiteral<"invocation">;
2401
+ id: z.ZodString;
2402
+ }, "strict", z.ZodTypeAny, {
2403
+ kind: "invocation";
2404
+ id: string;
2405
+ }, {
2406
+ kind: "invocation";
2407
+ id: string;
2408
+ }>;
2409
+ scope: z.ZodLiteral<"operation">;
2410
+ state: z.ZodLiteral<"settled">;
2411
+ outcome: z.ZodEnum<["failed", "cancelled"]>;
2412
+ reason: z.ZodLiteral<"not_started">;
2413
+ version: z.ZodLiteral<1>;
2414
+ observedAt: z.ZodString;
2415
+ }, "strict", z.ZodTypeAny, {
2416
+ subject: {
2417
+ kind: "invocation";
2418
+ id: string;
2419
+ };
2420
+ outcome: "failed" | "cancelled";
2421
+ source: "host_admission";
2422
+ version: 1;
2423
+ scope: "operation";
2424
+ state: "settled";
2425
+ reason: "not_started";
2426
+ observedAt: string;
2427
+ }, {
2428
+ subject: {
2429
+ kind: "invocation";
2430
+ id: string;
2431
+ };
2432
+ outcome: "failed" | "cancelled";
2433
+ source: "host_admission";
2434
+ version: 1;
2435
+ scope: "operation";
2436
+ state: "settled";
2437
+ reason: "not_started";
2438
+ observedAt: string;
2439
+ }>]>>;
593
2440
  receiptKey: z.ZodOptional<z.ZodString>;
594
2441
  execution: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
595
2442
  kind: z.ZodLiteral<"assistant_task">;
@@ -637,7 +2484,6 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
637
2484
  status: z.ZodLiteral<"unknown">;
638
2485
  }, "strict", z.ZodTypeAny, {
639
2486
  status: "unknown";
640
- receiptKey?: string | undefined;
641
2487
  execution?: {
642
2488
  status: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
643
2489
  kind: "assistant_task";
@@ -653,9 +2499,78 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
653
2499
  bindingId: string;
654
2500
  invocationId: string;
655
2501
  } | undefined;
2502
+ receiptKey?: string | undefined;
2503
+ control?: {
2504
+ subject: {
2505
+ kind: "execution";
2506
+ id: string;
2507
+ } | {
2508
+ kind: "invocation";
2509
+ id: string;
2510
+ };
2511
+ source: "unavailable";
2512
+ version: 1;
2513
+ state: "unknown";
2514
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2515
+ observedAt: string;
2516
+ } | {
2517
+ subject: {
2518
+ kind: "execution";
2519
+ id: string;
2520
+ } | {
2521
+ kind: "invocation";
2522
+ id: string;
2523
+ };
2524
+ source: "platform";
2525
+ version: 1;
2526
+ scope: "owned_subtree";
2527
+ revision: number;
2528
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2529
+ threadId: string;
2530
+ observedAt: string;
2531
+ desired: "running" | "paused" | "terminated";
2532
+ taskId: string;
2533
+ rootId: string;
2534
+ executionId: string;
2535
+ } | {
2536
+ subject: {
2537
+ kind: "invocation";
2538
+ id: string;
2539
+ };
2540
+ outcome: "succeeded" | "failed" | "cancelled";
2541
+ source: "provider";
2542
+ version: 1;
2543
+ scope: "operation";
2544
+ state: "settled";
2545
+ runId: string;
2546
+ observedAt: string;
2547
+ sessionId: string;
2548
+ receiptKey: string;
2549
+ target?: {
2550
+ kind: "host";
2551
+ version: 1;
2552
+ generation: string;
2553
+ hostId: string;
2554
+ } | {
2555
+ kind: "provider";
2556
+ version: 1;
2557
+ generation: string;
2558
+ } | undefined;
2559
+ } | {
2560
+ subject: {
2561
+ kind: "invocation";
2562
+ id: string;
2563
+ };
2564
+ outcome: "failed" | "cancelled";
2565
+ source: "host_admission";
2566
+ version: 1;
2567
+ scope: "operation";
2568
+ state: "settled";
2569
+ reason: "not_started";
2570
+ observedAt: string;
2571
+ } | undefined;
656
2572
  }, {
657
2573
  status: "unknown";
658
- receiptKey?: string | undefined;
659
2574
  execution?: {
660
2575
  status: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
661
2576
  kind: "assistant_task";
@@ -671,6 +2586,76 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
671
2586
  bindingId: string;
672
2587
  invocationId: string;
673
2588
  } | undefined;
2589
+ receiptKey?: string | undefined;
2590
+ control?: {
2591
+ subject: {
2592
+ kind: "execution";
2593
+ id: string;
2594
+ } | {
2595
+ kind: "invocation";
2596
+ id: string;
2597
+ };
2598
+ source: "unavailable";
2599
+ version: 1;
2600
+ state: "unknown";
2601
+ reason: "unregistered" | "unconfirmed" | "unsupported";
2602
+ observedAt: string;
2603
+ } | {
2604
+ subject: {
2605
+ kind: "execution";
2606
+ id: string;
2607
+ } | {
2608
+ kind: "invocation";
2609
+ id: string;
2610
+ };
2611
+ source: "platform";
2612
+ version: 1;
2613
+ scope: "owned_subtree";
2614
+ revision: number;
2615
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
2616
+ threadId: string;
2617
+ observedAt: string;
2618
+ desired: "running" | "paused" | "terminated";
2619
+ taskId: string;
2620
+ rootId: string;
2621
+ executionId: string;
2622
+ } | {
2623
+ subject: {
2624
+ kind: "invocation";
2625
+ id: string;
2626
+ };
2627
+ outcome: "succeeded" | "failed" | "cancelled";
2628
+ source: "provider";
2629
+ version: 1;
2630
+ scope: "operation";
2631
+ state: "settled";
2632
+ runId: string;
2633
+ observedAt: string;
2634
+ sessionId: string;
2635
+ receiptKey: string;
2636
+ target?: {
2637
+ kind: "host";
2638
+ version: 1;
2639
+ generation: string;
2640
+ hostId: string;
2641
+ } | {
2642
+ kind: "provider";
2643
+ version: 1;
2644
+ generation: string;
2645
+ } | undefined;
2646
+ } | {
2647
+ subject: {
2648
+ kind: "invocation";
2649
+ id: string;
2650
+ };
2651
+ outcome: "failed" | "cancelled";
2652
+ source: "host_admission";
2653
+ version: 1;
2654
+ scope: "operation";
2655
+ state: "settled";
2656
+ reason: "not_started";
2657
+ observedAt: string;
2658
+ } | undefined;
674
2659
  }>]>;
675
2660
  export declare const projectPipelineCompletionReceiptSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
676
2661
  status: z.ZodLiteral<"accepted">;