@claudexor/schema 4.1.1 → 4.2.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 (34) hide show
  1. package/dist/account-routing-evidence.d.ts +5823 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -0
  3. package/dist/account-routing-evidence.js +49 -0
  4. package/dist/account-routing-evidence.js.map +1 -0
  5. package/dist/control-operation-responses.d.ts +271 -0
  6. package/dist/control-operation-responses.d.ts.map +1 -1
  7. package/dist/control-run-detail.d.ts +755 -0
  8. package/dist/control-run-detail.d.ts.map +1 -1
  9. package/dist/control-run-failure.d.ts +258 -0
  10. package/dist/control-run-failure.d.ts.map +1 -1
  11. package/dist/control-run-failure.js +55 -0
  12. package/dist/control-run-failure.js.map +1 -1
  13. package/dist/control.d.ts +213 -0
  14. package/dist/control.d.ts.map +1 -1
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/mcp-run-result.d.ts +426 -0
  20. package/dist/mcp-run-result.d.ts.map +1 -1
  21. package/dist/run-continuation.d.ts +3 -0
  22. package/dist/run-continuation.d.ts.map +1 -1
  23. package/dist/run-continuation.js +4 -0
  24. package/dist/run-continuation.js.map +1 -1
  25. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
  26. package/generated/ControlRunDetail.schema.json +162 -0
  27. package/generated/ControlRunListResponse.schema.json +162 -0
  28. package/generated/ControlRunSummary.schema.json +162 -0
  29. package/generated/EnvelopeCustody.schema.json +4 -0
  30. package/generated/McpAccountsToolResult.schema.json +2527 -0
  31. package/generated/McpRunHandleResult.schema.json +162 -0
  32. package/generated/McpRunToolResult.schema.json +162 -0
  33. package/generated/RunFailure.schema.json +162 -0
  34. package/package.json +2 -2
@@ -505,6 +505,46 @@ export declare const ControlRunDetail: z.ZodObject<{
505
505
  binary_path: string | null;
506
506
  installed_version: string | null;
507
507
  }>]>>;
508
+ captureFailure: z.ZodOptional<z.ZodObject<{
509
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
510
+ message: z.ZodString;
511
+ causeCode: z.ZodOptional<z.ZodString>;
512
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
513
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
514
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
515
+ cleanup: z.ZodOptional<z.ZodObject<{
516
+ code: z.ZodNullable<z.ZodString>;
517
+ message: z.ZodString;
518
+ }, "strip", z.ZodTypeAny, {
519
+ code: string | null;
520
+ message: string;
521
+ }, {
522
+ code: string | null;
523
+ message: string;
524
+ }>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
527
+ message: string;
528
+ causeCode?: string | undefined;
529
+ bufferBudgetBytes?: number | undefined;
530
+ stream?: "stderr" | "stdout" | undefined;
531
+ drain?: "truncated" | undefined;
532
+ cleanup?: {
533
+ code: string | null;
534
+ message: string;
535
+ } | undefined;
536
+ }, {
537
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
538
+ message: string;
539
+ causeCode?: string | undefined;
540
+ bufferBudgetBytes?: number | undefined;
541
+ stream?: "stderr" | "stdout" | undefined;
542
+ drain?: "truncated" | undefined;
543
+ cleanup?: {
544
+ code: string | null;
545
+ message: string;
546
+ } | undefined;
547
+ }>>;
508
548
  phase: z.ZodDefault<z.ZodString>;
509
549
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
510
550
  code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
@@ -529,6 +569,63 @@ export declare const ControlRunDetail: z.ZodObject<{
529
569
  message: string | null;
530
570
  source: string;
531
571
  }>>>;
572
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
573
+ harnessId: z.ZodString;
574
+ profileId: z.ZodNullable<z.ZodString>;
575
+ profileDisplayName: z.ZodNullable<z.ZodString>;
576
+ requestedModel: z.ZodNullable<z.ZodString>;
577
+ attemptId: z.ZodString;
578
+ tryIndex: z.ZodNumber;
579
+ observedAt: z.ZodString;
580
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
581
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
582
+ error: z.ZodString;
583
+ vendorFailure: z.ZodNullable<z.ZodObject<{
584
+ code: z.ZodNullable<z.ZodString>;
585
+ message: z.ZodNullable<z.ZodString>;
586
+ source: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ code: string | null;
589
+ message: string | null;
590
+ source: string;
591
+ }, {
592
+ code: string | null;
593
+ message: string | null;
594
+ source: string;
595
+ }>>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ harnessId: string;
598
+ profileId: string | null;
599
+ profileDisplayName: string | null;
600
+ requestedModel: string | null;
601
+ attemptId: string;
602
+ tryIndex: number;
603
+ observedAt: string;
604
+ phase: "after_progress" | "pre_progress" | "pre_start";
605
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
606
+ error: string;
607
+ vendorFailure: {
608
+ code: string | null;
609
+ message: string | null;
610
+ source: string;
611
+ } | null;
612
+ }, {
613
+ harnessId: string;
614
+ profileId: string | null;
615
+ profileDisplayName: string | null;
616
+ requestedModel: string | null;
617
+ attemptId: string;
618
+ tryIndex: number;
619
+ observedAt: string;
620
+ phase: "after_progress" | "pre_progress" | "pre_start";
621
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
622
+ error: string;
623
+ vendorFailure: {
624
+ code: string | null;
625
+ message: string | null;
626
+ source: string;
627
+ } | null;
628
+ }>, "many">>;
532
629
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
533
630
  }, "strip", z.ZodTypeAny, {
534
631
  requestRefusal?: {
@@ -546,6 +643,18 @@ export declare const ControlRunDetail: z.ZodObject<{
546
643
  binary_path: string | null;
547
644
  installed_version: string | null;
548
645
  } | undefined;
646
+ captureFailure?: {
647
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
648
+ message: string;
649
+ causeCode?: string | undefined;
650
+ bufferBudgetBytes?: number | undefined;
651
+ stream?: "stderr" | "stdout" | undefined;
652
+ drain?: "truncated" | undefined;
653
+ cleanup?: {
654
+ code: string | null;
655
+ message: string;
656
+ } | undefined;
657
+ } | undefined;
549
658
  phase: string;
550
659
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
551
660
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -562,6 +671,23 @@ export declare const ControlRunDetail: z.ZodObject<{
562
671
  message: string | null;
563
672
  source: string;
564
673
  } | null;
674
+ poolAttempts: {
675
+ harnessId: string;
676
+ profileId: string | null;
677
+ profileDisplayName: string | null;
678
+ requestedModel: string | null;
679
+ attemptId: string;
680
+ tryIndex: number;
681
+ observedAt: string;
682
+ phase: "after_progress" | "pre_progress" | "pre_start";
683
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
684
+ error: string;
685
+ vendorFailure: {
686
+ code: string | null;
687
+ message: string | null;
688
+ source: string;
689
+ } | null;
690
+ }[];
565
691
  nextActions: string[];
566
692
  }, {
567
693
  requestRefusal?: {
@@ -579,6 +705,18 @@ export declare const ControlRunDetail: z.ZodObject<{
579
705
  binary_path: string | null;
580
706
  installed_version: string | null;
581
707
  } | undefined;
708
+ captureFailure?: {
709
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
710
+ message: string;
711
+ causeCode?: string | undefined;
712
+ bufferBudgetBytes?: number | undefined;
713
+ stream?: "stderr" | "stdout" | undefined;
714
+ drain?: "truncated" | undefined;
715
+ cleanup?: {
716
+ code: string | null;
717
+ message: string;
718
+ } | undefined;
719
+ } | undefined;
582
720
  phase?: string | undefined;
583
721
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
584
722
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -595,6 +733,23 @@ export declare const ControlRunDetail: z.ZodObject<{
595
733
  message: string | null;
596
734
  source: string;
597
735
  } | null | undefined;
736
+ poolAttempts?: {
737
+ harnessId: string;
738
+ profileId: string | null;
739
+ profileDisplayName: string | null;
740
+ requestedModel: string | null;
741
+ attemptId: string;
742
+ tryIndex: number;
743
+ observedAt: string;
744
+ phase: "after_progress" | "pre_progress" | "pre_start";
745
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
746
+ error: string;
747
+ vendorFailure: {
748
+ code: string | null;
749
+ message: string | null;
750
+ source: string;
751
+ } | null;
752
+ }[] | undefined;
598
753
  nextActions?: string[] | undefined;
599
754
  }>>>;
600
755
  project: z.ZodDefault<z.ZodObject<{
@@ -1113,6 +1268,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1113
1268
  binary_path: string | null;
1114
1269
  installed_version: string | null;
1115
1270
  } | undefined;
1271
+ captureFailure?: {
1272
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
1273
+ message: string;
1274
+ causeCode?: string | undefined;
1275
+ bufferBudgetBytes?: number | undefined;
1276
+ stream?: "stderr" | "stdout" | undefined;
1277
+ drain?: "truncated" | undefined;
1278
+ cleanup?: {
1279
+ code: string | null;
1280
+ message: string;
1281
+ } | undefined;
1282
+ } | undefined;
1116
1283
  phase: string;
1117
1284
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1118
1285
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -1129,6 +1296,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1129
1296
  message: string | null;
1130
1297
  source: string;
1131
1298
  } | null;
1299
+ poolAttempts: {
1300
+ harnessId: string;
1301
+ profileId: string | null;
1302
+ profileDisplayName: string | null;
1303
+ requestedModel: string | null;
1304
+ attemptId: string;
1305
+ tryIndex: number;
1306
+ observedAt: string;
1307
+ phase: "after_progress" | "pre_progress" | "pre_start";
1308
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1309
+ error: string;
1310
+ vendorFailure: {
1311
+ code: string | null;
1312
+ message: string | null;
1313
+ source: string;
1314
+ } | null;
1315
+ }[];
1132
1316
  nextActions: string[];
1133
1317
  } | null;
1134
1318
  project: {
@@ -1367,6 +1551,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1367
1551
  binary_path: string | null;
1368
1552
  installed_version: string | null;
1369
1553
  } | undefined;
1554
+ captureFailure?: {
1555
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
1556
+ message: string;
1557
+ causeCode?: string | undefined;
1558
+ bufferBudgetBytes?: number | undefined;
1559
+ stream?: "stderr" | "stdout" | undefined;
1560
+ drain?: "truncated" | undefined;
1561
+ cleanup?: {
1562
+ code: string | null;
1563
+ message: string;
1564
+ } | undefined;
1565
+ } | undefined;
1370
1566
  phase?: string | undefined;
1371
1567
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1372
1568
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -1383,6 +1579,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1383
1579
  message: string | null;
1384
1580
  source: string;
1385
1581
  } | null | undefined;
1582
+ poolAttempts?: {
1583
+ harnessId: string;
1584
+ profileId: string | null;
1585
+ profileDisplayName: string | null;
1586
+ requestedModel: string | null;
1587
+ attemptId: string;
1588
+ tryIndex: number;
1589
+ observedAt: string;
1590
+ phase: "after_progress" | "pre_progress" | "pre_start";
1591
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1592
+ error: string;
1593
+ vendorFailure: {
1594
+ code: string | null;
1595
+ message: string | null;
1596
+ source: string;
1597
+ } | null;
1598
+ }[] | undefined;
1386
1599
  nextActions?: string[] | undefined;
1387
1600
  } | null | undefined;
1388
1601
  project?: {
@@ -1785,6 +1998,46 @@ export declare const ControlRunDetail: z.ZodObject<{
1785
1998
  binary_path: string | null;
1786
1999
  installed_version: string | null;
1787
2000
  }>]>>;
2001
+ captureFailure: z.ZodOptional<z.ZodObject<{
2002
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
2003
+ message: z.ZodString;
2004
+ causeCode: z.ZodOptional<z.ZodString>;
2005
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
2006
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
2007
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
2008
+ cleanup: z.ZodOptional<z.ZodObject<{
2009
+ code: z.ZodNullable<z.ZodString>;
2010
+ message: z.ZodString;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ code: string | null;
2013
+ message: string;
2014
+ }, {
2015
+ code: string | null;
2016
+ message: string;
2017
+ }>>;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2020
+ message: string;
2021
+ causeCode?: string | undefined;
2022
+ bufferBudgetBytes?: number | undefined;
2023
+ stream?: "stderr" | "stdout" | undefined;
2024
+ drain?: "truncated" | undefined;
2025
+ cleanup?: {
2026
+ code: string | null;
2027
+ message: string;
2028
+ } | undefined;
2029
+ }, {
2030
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2031
+ message: string;
2032
+ causeCode?: string | undefined;
2033
+ bufferBudgetBytes?: number | undefined;
2034
+ stream?: "stderr" | "stdout" | undefined;
2035
+ drain?: "truncated" | undefined;
2036
+ cleanup?: {
2037
+ code: string | null;
2038
+ message: string;
2039
+ } | undefined;
2040
+ }>>;
1788
2041
  phase: z.ZodDefault<z.ZodString>;
1789
2042
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1790
2043
  code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
@@ -1809,6 +2062,63 @@ export declare const ControlRunDetail: z.ZodObject<{
1809
2062
  message: string | null;
1810
2063
  source: string;
1811
2064
  }>>>;
2065
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2066
+ harnessId: z.ZodString;
2067
+ profileId: z.ZodNullable<z.ZodString>;
2068
+ profileDisplayName: z.ZodNullable<z.ZodString>;
2069
+ requestedModel: z.ZodNullable<z.ZodString>;
2070
+ attemptId: z.ZodString;
2071
+ tryIndex: z.ZodNumber;
2072
+ observedAt: z.ZodString;
2073
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
2074
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
2075
+ error: z.ZodString;
2076
+ vendorFailure: z.ZodNullable<z.ZodObject<{
2077
+ code: z.ZodNullable<z.ZodString>;
2078
+ message: z.ZodNullable<z.ZodString>;
2079
+ source: z.ZodString;
2080
+ }, "strip", z.ZodTypeAny, {
2081
+ code: string | null;
2082
+ message: string | null;
2083
+ source: string;
2084
+ }, {
2085
+ code: string | null;
2086
+ message: string | null;
2087
+ source: string;
2088
+ }>>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ harnessId: string;
2091
+ profileId: string | null;
2092
+ profileDisplayName: string | null;
2093
+ requestedModel: string | null;
2094
+ attemptId: string;
2095
+ tryIndex: number;
2096
+ observedAt: string;
2097
+ phase: "after_progress" | "pre_progress" | "pre_start";
2098
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2099
+ error: string;
2100
+ vendorFailure: {
2101
+ code: string | null;
2102
+ message: string | null;
2103
+ source: string;
2104
+ } | null;
2105
+ }, {
2106
+ harnessId: string;
2107
+ profileId: string | null;
2108
+ profileDisplayName: string | null;
2109
+ requestedModel: string | null;
2110
+ attemptId: string;
2111
+ tryIndex: number;
2112
+ observedAt: string;
2113
+ phase: "after_progress" | "pre_progress" | "pre_start";
2114
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2115
+ error: string;
2116
+ vendorFailure: {
2117
+ code: string | null;
2118
+ message: string | null;
2119
+ source: string;
2120
+ } | null;
2121
+ }>, "many">>;
1812
2122
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1813
2123
  }, "strip", z.ZodTypeAny, {
1814
2124
  requestRefusal?: {
@@ -1826,6 +2136,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1826
2136
  binary_path: string | null;
1827
2137
  installed_version: string | null;
1828
2138
  } | undefined;
2139
+ captureFailure?: {
2140
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2141
+ message: string;
2142
+ causeCode?: string | undefined;
2143
+ bufferBudgetBytes?: number | undefined;
2144
+ stream?: "stderr" | "stdout" | undefined;
2145
+ drain?: "truncated" | undefined;
2146
+ cleanup?: {
2147
+ code: string | null;
2148
+ message: string;
2149
+ } | undefined;
2150
+ } | undefined;
1829
2151
  phase: string;
1830
2152
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1831
2153
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -1842,6 +2164,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1842
2164
  message: string | null;
1843
2165
  source: string;
1844
2166
  } | null;
2167
+ poolAttempts: {
2168
+ harnessId: string;
2169
+ profileId: string | null;
2170
+ profileDisplayName: string | null;
2171
+ requestedModel: string | null;
2172
+ attemptId: string;
2173
+ tryIndex: number;
2174
+ observedAt: string;
2175
+ phase: "after_progress" | "pre_progress" | "pre_start";
2176
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2177
+ error: string;
2178
+ vendorFailure: {
2179
+ code: string | null;
2180
+ message: string | null;
2181
+ source: string;
2182
+ } | null;
2183
+ }[];
1845
2184
  nextActions: string[];
1846
2185
  }, {
1847
2186
  requestRefusal?: {
@@ -1859,6 +2198,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1859
2198
  binary_path: string | null;
1860
2199
  installed_version: string | null;
1861
2200
  } | undefined;
2201
+ captureFailure?: {
2202
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2203
+ message: string;
2204
+ causeCode?: string | undefined;
2205
+ bufferBudgetBytes?: number | undefined;
2206
+ stream?: "stderr" | "stdout" | undefined;
2207
+ drain?: "truncated" | undefined;
2208
+ cleanup?: {
2209
+ code: string | null;
2210
+ message: string;
2211
+ } | undefined;
2212
+ } | undefined;
1862
2213
  phase?: string | undefined;
1863
2214
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1864
2215
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -1875,6 +2226,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1875
2226
  message: string | null;
1876
2227
  source: string;
1877
2228
  } | null | undefined;
2229
+ poolAttempts?: {
2230
+ harnessId: string;
2231
+ profileId: string | null;
2232
+ profileDisplayName: string | null;
2233
+ requestedModel: string | null;
2234
+ attemptId: string;
2235
+ tryIndex: number;
2236
+ observedAt: string;
2237
+ phase: "after_progress" | "pre_progress" | "pre_start";
2238
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2239
+ error: string;
2240
+ vendorFailure: {
2241
+ code: string | null;
2242
+ message: string | null;
2243
+ source: string;
2244
+ } | null;
2245
+ }[] | undefined;
1878
2246
  nextActions?: string[] | undefined;
1879
2247
  }>>>;
1880
2248
  project: z.ZodDefault<z.ZodObject<{
@@ -2393,6 +2761,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2393
2761
  binary_path: string | null;
2394
2762
  installed_version: string | null;
2395
2763
  } | undefined;
2764
+ captureFailure?: {
2765
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2766
+ message: string;
2767
+ causeCode?: string | undefined;
2768
+ bufferBudgetBytes?: number | undefined;
2769
+ stream?: "stderr" | "stdout" | undefined;
2770
+ drain?: "truncated" | undefined;
2771
+ cleanup?: {
2772
+ code: string | null;
2773
+ message: string;
2774
+ } | undefined;
2775
+ } | undefined;
2396
2776
  phase: string;
2397
2777
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2398
2778
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -2409,6 +2789,23 @@ export declare const ControlRunDetail: z.ZodObject<{
2409
2789
  message: string | null;
2410
2790
  source: string;
2411
2791
  } | null;
2792
+ poolAttempts: {
2793
+ harnessId: string;
2794
+ profileId: string | null;
2795
+ profileDisplayName: string | null;
2796
+ requestedModel: string | null;
2797
+ attemptId: string;
2798
+ tryIndex: number;
2799
+ observedAt: string;
2800
+ phase: "after_progress" | "pre_progress" | "pre_start";
2801
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2802
+ error: string;
2803
+ vendorFailure: {
2804
+ code: string | null;
2805
+ message: string | null;
2806
+ source: string;
2807
+ } | null;
2808
+ }[];
2412
2809
  nextActions: string[];
2413
2810
  } | null;
2414
2811
  project: {
@@ -2647,6 +3044,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2647
3044
  binary_path: string | null;
2648
3045
  installed_version: string | null;
2649
3046
  } | undefined;
3047
+ captureFailure?: {
3048
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
3049
+ message: string;
3050
+ causeCode?: string | undefined;
3051
+ bufferBudgetBytes?: number | undefined;
3052
+ stream?: "stderr" | "stdout" | undefined;
3053
+ drain?: "truncated" | undefined;
3054
+ cleanup?: {
3055
+ code: string | null;
3056
+ message: string;
3057
+ } | undefined;
3058
+ } | undefined;
2650
3059
  phase?: string | undefined;
2651
3060
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2652
3061
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -2663,6 +3072,23 @@ export declare const ControlRunDetail: z.ZodObject<{
2663
3072
  message: string | null;
2664
3073
  source: string;
2665
3074
  } | null | undefined;
3075
+ poolAttempts?: {
3076
+ harnessId: string;
3077
+ profileId: string | null;
3078
+ profileDisplayName: string | null;
3079
+ requestedModel: string | null;
3080
+ attemptId: string;
3081
+ tryIndex: number;
3082
+ observedAt: string;
3083
+ phase: "after_progress" | "pre_progress" | "pre_start";
3084
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
3085
+ error: string;
3086
+ vendorFailure: {
3087
+ code: string | null;
3088
+ message: string | null;
3089
+ source: string;
3090
+ } | null;
3091
+ }[] | undefined;
2666
3092
  nextActions?: string[] | undefined;
2667
3093
  } | null | undefined;
2668
3094
  project?: {
@@ -4238,6 +4664,46 @@ export declare const ControlRunDetail: z.ZodObject<{
4238
4664
  binary_path: string | null;
4239
4665
  installed_version: string | null;
4240
4666
  }>]>>;
4667
+ captureFailure: z.ZodOptional<z.ZodObject<{
4668
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
4669
+ message: z.ZodString;
4670
+ causeCode: z.ZodOptional<z.ZodString>;
4671
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
4672
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
4673
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
4674
+ cleanup: z.ZodOptional<z.ZodObject<{
4675
+ code: z.ZodNullable<z.ZodString>;
4676
+ message: z.ZodString;
4677
+ }, "strip", z.ZodTypeAny, {
4678
+ code: string | null;
4679
+ message: string;
4680
+ }, {
4681
+ code: string | null;
4682
+ message: string;
4683
+ }>>;
4684
+ }, "strip", z.ZodTypeAny, {
4685
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4686
+ message: string;
4687
+ causeCode?: string | undefined;
4688
+ bufferBudgetBytes?: number | undefined;
4689
+ stream?: "stderr" | "stdout" | undefined;
4690
+ drain?: "truncated" | undefined;
4691
+ cleanup?: {
4692
+ code: string | null;
4693
+ message: string;
4694
+ } | undefined;
4695
+ }, {
4696
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4697
+ message: string;
4698
+ causeCode?: string | undefined;
4699
+ bufferBudgetBytes?: number | undefined;
4700
+ stream?: "stderr" | "stdout" | undefined;
4701
+ drain?: "truncated" | undefined;
4702
+ cleanup?: {
4703
+ code: string | null;
4704
+ message: string;
4705
+ } | undefined;
4706
+ }>>;
4241
4707
  phase: z.ZodDefault<z.ZodString>;
4242
4708
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
4243
4709
  code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
@@ -4262,6 +4728,63 @@ export declare const ControlRunDetail: z.ZodObject<{
4262
4728
  message: string | null;
4263
4729
  source: string;
4264
4730
  }>>>;
4731
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
4732
+ harnessId: z.ZodString;
4733
+ profileId: z.ZodNullable<z.ZodString>;
4734
+ profileDisplayName: z.ZodNullable<z.ZodString>;
4735
+ requestedModel: z.ZodNullable<z.ZodString>;
4736
+ attemptId: z.ZodString;
4737
+ tryIndex: z.ZodNumber;
4738
+ observedAt: z.ZodString;
4739
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
4740
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
4741
+ error: z.ZodString;
4742
+ vendorFailure: z.ZodNullable<z.ZodObject<{
4743
+ code: z.ZodNullable<z.ZodString>;
4744
+ message: z.ZodNullable<z.ZodString>;
4745
+ source: z.ZodString;
4746
+ }, "strip", z.ZodTypeAny, {
4747
+ code: string | null;
4748
+ message: string | null;
4749
+ source: string;
4750
+ }, {
4751
+ code: string | null;
4752
+ message: string | null;
4753
+ source: string;
4754
+ }>>;
4755
+ }, "strip", z.ZodTypeAny, {
4756
+ harnessId: string;
4757
+ profileId: string | null;
4758
+ profileDisplayName: string | null;
4759
+ requestedModel: string | null;
4760
+ attemptId: string;
4761
+ tryIndex: number;
4762
+ observedAt: string;
4763
+ phase: "after_progress" | "pre_progress" | "pre_start";
4764
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4765
+ error: string;
4766
+ vendorFailure: {
4767
+ code: string | null;
4768
+ message: string | null;
4769
+ source: string;
4770
+ } | null;
4771
+ }, {
4772
+ harnessId: string;
4773
+ profileId: string | null;
4774
+ profileDisplayName: string | null;
4775
+ requestedModel: string | null;
4776
+ attemptId: string;
4777
+ tryIndex: number;
4778
+ observedAt: string;
4779
+ phase: "after_progress" | "pre_progress" | "pre_start";
4780
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4781
+ error: string;
4782
+ vendorFailure: {
4783
+ code: string | null;
4784
+ message: string | null;
4785
+ source: string;
4786
+ } | null;
4787
+ }>, "many">>;
4265
4788
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4266
4789
  }, "strip", z.ZodTypeAny, {
4267
4790
  requestRefusal?: {
@@ -4279,6 +4802,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4279
4802
  binary_path: string | null;
4280
4803
  installed_version: string | null;
4281
4804
  } | undefined;
4805
+ captureFailure?: {
4806
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4807
+ message: string;
4808
+ causeCode?: string | undefined;
4809
+ bufferBudgetBytes?: number | undefined;
4810
+ stream?: "stderr" | "stdout" | undefined;
4811
+ drain?: "truncated" | undefined;
4812
+ cleanup?: {
4813
+ code: string | null;
4814
+ message: string;
4815
+ } | undefined;
4816
+ } | undefined;
4282
4817
  phase: string;
4283
4818
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4284
4819
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -4295,6 +4830,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4295
4830
  message: string | null;
4296
4831
  source: string;
4297
4832
  } | null;
4833
+ poolAttempts: {
4834
+ harnessId: string;
4835
+ profileId: string | null;
4836
+ profileDisplayName: string | null;
4837
+ requestedModel: string | null;
4838
+ attemptId: string;
4839
+ tryIndex: number;
4840
+ observedAt: string;
4841
+ phase: "after_progress" | "pre_progress" | "pre_start";
4842
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4843
+ error: string;
4844
+ vendorFailure: {
4845
+ code: string | null;
4846
+ message: string | null;
4847
+ source: string;
4848
+ } | null;
4849
+ }[];
4298
4850
  nextActions: string[];
4299
4851
  }, {
4300
4852
  requestRefusal?: {
@@ -4312,6 +4864,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4312
4864
  binary_path: string | null;
4313
4865
  installed_version: string | null;
4314
4866
  } | undefined;
4867
+ captureFailure?: {
4868
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4869
+ message: string;
4870
+ causeCode?: string | undefined;
4871
+ bufferBudgetBytes?: number | undefined;
4872
+ stream?: "stderr" | "stdout" | undefined;
4873
+ drain?: "truncated" | undefined;
4874
+ cleanup?: {
4875
+ code: string | null;
4876
+ message: string;
4877
+ } | undefined;
4878
+ } | undefined;
4315
4879
  phase?: string | undefined;
4316
4880
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4317
4881
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -4328,6 +4892,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4328
4892
  message: string | null;
4329
4893
  source: string;
4330
4894
  } | null | undefined;
4895
+ poolAttempts?: {
4896
+ harnessId: string;
4897
+ profileId: string | null;
4898
+ profileDisplayName: string | null;
4899
+ requestedModel: string | null;
4900
+ attemptId: string;
4901
+ tryIndex: number;
4902
+ observedAt: string;
4903
+ phase: "after_progress" | "pre_progress" | "pre_start";
4904
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4905
+ error: string;
4906
+ vendorFailure: {
4907
+ code: string | null;
4908
+ message: string | null;
4909
+ source: string;
4910
+ } | null;
4911
+ }[] | undefined;
4331
4912
  nextActions?: string[] | undefined;
4332
4913
  }>>>;
4333
4914
  /** Minimal typed required-operator-actions for a succeeded-but-BLOCKED run
@@ -4450,6 +5031,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4450
5031
  binary_path: string | null;
4451
5032
  installed_version: string | null;
4452
5033
  } | undefined;
5034
+ captureFailure?: {
5035
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5036
+ message: string;
5037
+ causeCode?: string | undefined;
5038
+ bufferBudgetBytes?: number | undefined;
5039
+ stream?: "stderr" | "stdout" | undefined;
5040
+ drain?: "truncated" | undefined;
5041
+ cleanup?: {
5042
+ code: string | null;
5043
+ message: string;
5044
+ } | undefined;
5045
+ } | undefined;
4453
5046
  phase: string;
4454
5047
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4455
5048
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -4466,6 +5059,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4466
5059
  message: string | null;
4467
5060
  source: string;
4468
5061
  } | null;
5062
+ poolAttempts: {
5063
+ harnessId: string;
5064
+ profileId: string | null;
5065
+ profileDisplayName: string | null;
5066
+ requestedModel: string | null;
5067
+ attemptId: string;
5068
+ tryIndex: number;
5069
+ observedAt: string;
5070
+ phase: "after_progress" | "pre_progress" | "pre_start";
5071
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5072
+ error: string;
5073
+ vendorFailure: {
5074
+ code: string | null;
5075
+ message: string | null;
5076
+ source: string;
5077
+ } | null;
5078
+ }[];
4469
5079
  nextActions: string[];
4470
5080
  } | null;
4471
5081
  project: {
@@ -4705,6 +5315,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4705
5315
  binary_path: string | null;
4706
5316
  installed_version: string | null;
4707
5317
  } | undefined;
5318
+ captureFailure?: {
5319
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5320
+ message: string;
5321
+ causeCode?: string | undefined;
5322
+ bufferBudgetBytes?: number | undefined;
5323
+ stream?: "stderr" | "stdout" | undefined;
5324
+ drain?: "truncated" | undefined;
5325
+ cleanup?: {
5326
+ code: string | null;
5327
+ message: string;
5328
+ } | undefined;
5329
+ } | undefined;
4708
5330
  phase: string;
4709
5331
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4710
5332
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -4721,6 +5343,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4721
5343
  message: string | null;
4722
5344
  source: string;
4723
5345
  } | null;
5346
+ poolAttempts: {
5347
+ harnessId: string;
5348
+ profileId: string | null;
5349
+ profileDisplayName: string | null;
5350
+ requestedModel: string | null;
5351
+ attemptId: string;
5352
+ tryIndex: number;
5353
+ observedAt: string;
5354
+ phase: "after_progress" | "pre_progress" | "pre_start";
5355
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5356
+ error: string;
5357
+ vendorFailure: {
5358
+ code: string | null;
5359
+ message: string | null;
5360
+ source: string;
5361
+ } | null;
5362
+ }[];
4724
5363
  nextActions: string[];
4725
5364
  } | null;
4726
5365
  project: {
@@ -5212,6 +5851,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5212
5851
  binary_path: string | null;
5213
5852
  installed_version: string | null;
5214
5853
  } | undefined;
5854
+ captureFailure?: {
5855
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5856
+ message: string;
5857
+ causeCode?: string | undefined;
5858
+ bufferBudgetBytes?: number | undefined;
5859
+ stream?: "stderr" | "stdout" | undefined;
5860
+ drain?: "truncated" | undefined;
5861
+ cleanup?: {
5862
+ code: string | null;
5863
+ message: string;
5864
+ } | undefined;
5865
+ } | undefined;
5215
5866
  phase: string;
5216
5867
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5217
5868
  code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
@@ -5228,6 +5879,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5228
5879
  message: string | null;
5229
5880
  source: string;
5230
5881
  } | null;
5882
+ poolAttempts: {
5883
+ harnessId: string;
5884
+ profileId: string | null;
5885
+ profileDisplayName: string | null;
5886
+ requestedModel: string | null;
5887
+ attemptId: string;
5888
+ tryIndex: number;
5889
+ observedAt: string;
5890
+ phase: "after_progress" | "pre_progress" | "pre_start";
5891
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5892
+ error: string;
5893
+ vendorFailure: {
5894
+ code: string | null;
5895
+ message: string | null;
5896
+ source: string;
5897
+ } | null;
5898
+ }[];
5231
5899
  nextActions: string[];
5232
5900
  } | null;
5233
5901
  requiredActions: {
@@ -5338,6 +6006,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5338
6006
  binary_path: string | null;
5339
6007
  installed_version: string | null;
5340
6008
  } | undefined;
6009
+ captureFailure?: {
6010
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6011
+ message: string;
6012
+ causeCode?: string | undefined;
6013
+ bufferBudgetBytes?: number | undefined;
6014
+ stream?: "stderr" | "stdout" | undefined;
6015
+ drain?: "truncated" | undefined;
6016
+ cleanup?: {
6017
+ code: string | null;
6018
+ message: string;
6019
+ } | undefined;
6020
+ } | undefined;
5341
6021
  phase?: string | undefined;
5342
6022
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5343
6023
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -5354,6 +6034,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5354
6034
  message: string | null;
5355
6035
  source: string;
5356
6036
  } | null | undefined;
6037
+ poolAttempts?: {
6038
+ harnessId: string;
6039
+ profileId: string | null;
6040
+ profileDisplayName: string | null;
6041
+ requestedModel: string | null;
6042
+ attemptId: string;
6043
+ tryIndex: number;
6044
+ observedAt: string;
6045
+ phase: "after_progress" | "pre_progress" | "pre_start";
6046
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6047
+ error: string;
6048
+ vendorFailure: {
6049
+ code: string | null;
6050
+ message: string | null;
6051
+ source: string;
6052
+ } | null;
6053
+ }[] | undefined;
5357
6054
  nextActions?: string[] | undefined;
5358
6055
  } | null | undefined;
5359
6056
  project?: {
@@ -5593,6 +6290,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5593
6290
  binary_path: string | null;
5594
6291
  installed_version: string | null;
5595
6292
  } | undefined;
6293
+ captureFailure?: {
6294
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6295
+ message: string;
6296
+ causeCode?: string | undefined;
6297
+ bufferBudgetBytes?: number | undefined;
6298
+ stream?: "stderr" | "stdout" | undefined;
6299
+ drain?: "truncated" | undefined;
6300
+ cleanup?: {
6301
+ code: string | null;
6302
+ message: string;
6303
+ } | undefined;
6304
+ } | undefined;
5596
6305
  phase?: string | undefined;
5597
6306
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5598
6307
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -5609,6 +6318,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5609
6318
  message: string | null;
5610
6319
  source: string;
5611
6320
  } | null | undefined;
6321
+ poolAttempts?: {
6322
+ harnessId: string;
6323
+ profileId: string | null;
6324
+ profileDisplayName: string | null;
6325
+ requestedModel: string | null;
6326
+ attemptId: string;
6327
+ tryIndex: number;
6328
+ observedAt: string;
6329
+ phase: "after_progress" | "pre_progress" | "pre_start";
6330
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6331
+ error: string;
6332
+ vendorFailure: {
6333
+ code: string | null;
6334
+ message: string | null;
6335
+ source: string;
6336
+ } | null;
6337
+ }[] | undefined;
5612
6338
  nextActions?: string[] | undefined;
5613
6339
  } | null | undefined;
5614
6340
  project?: {
@@ -6100,6 +6826,18 @@ export declare const ControlRunDetail: z.ZodObject<{
6100
6826
  binary_path: string | null;
6101
6827
  installed_version: string | null;
6102
6828
  } | undefined;
6829
+ captureFailure?: {
6830
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6831
+ message: string;
6832
+ causeCode?: string | undefined;
6833
+ bufferBudgetBytes?: number | undefined;
6834
+ stream?: "stderr" | "stdout" | undefined;
6835
+ drain?: "truncated" | undefined;
6836
+ cleanup?: {
6837
+ code: string | null;
6838
+ message: string;
6839
+ } | undefined;
6840
+ } | undefined;
6103
6841
  phase?: string | undefined;
6104
6842
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
6105
6843
  code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
@@ -6116,6 +6854,23 @@ export declare const ControlRunDetail: z.ZodObject<{
6116
6854
  message: string | null;
6117
6855
  source: string;
6118
6856
  } | null | undefined;
6857
+ poolAttempts?: {
6858
+ harnessId: string;
6859
+ profileId: string | null;
6860
+ profileDisplayName: string | null;
6861
+ requestedModel: string | null;
6862
+ attemptId: string;
6863
+ tryIndex: number;
6864
+ observedAt: string;
6865
+ phase: "after_progress" | "pre_progress" | "pre_start";
6866
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6867
+ error: string;
6868
+ vendorFailure: {
6869
+ code: string | null;
6870
+ message: string | null;
6871
+ source: string;
6872
+ } | null;
6873
+ }[] | undefined;
6119
6874
  nextActions?: string[] | undefined;
6120
6875
  } | null | undefined;
6121
6876
  requiredActions?: {