@claudexor/schema 4.1.1 → 4.3.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 (133) hide show
  1. package/dist/account-resources.d.ts +3957 -662
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-resources.js +32 -0
  4. package/dist/account-resources.js.map +1 -1
  5. package/dist/account-routing-evidence.d.ts +5989 -0
  6. package/dist/account-routing-evidence.d.ts.map +1 -0
  7. package/dist/account-routing-evidence.js +49 -0
  8. package/dist/account-routing-evidence.js.map +1 -0
  9. package/dist/agent-capabilities.js +1 -1
  10. package/dist/agent-capabilities.js.map +1 -1
  11. package/dist/attempt-execution.d.ts +5 -0
  12. package/dist/attempt-execution.d.ts.map +1 -1
  13. package/dist/budget.d.ts +16 -0
  14. package/dist/budget.d.ts.map +1 -1
  15. package/dist/budget.js +13 -1
  16. package/dist/budget.js.map +1 -1
  17. package/dist/config.d.ts +12 -12
  18. package/dist/config.d.ts.map +1 -1
  19. package/dist/config.js +2 -1
  20. package/dist/config.js.map +1 -1
  21. package/dist/control-operation-responses.d.ts +298 -24
  22. package/dist/control-operation-responses.d.ts.map +1 -1
  23. package/dist/control-run-detail.d.ts +816 -42
  24. package/dist/control-run-detail.d.ts.map +1 -1
  25. package/dist/control-run-failure.d.ts +258 -0
  26. package/dist/control-run-failure.d.ts.map +1 -1
  27. package/dist/control-run-failure.js +55 -0
  28. package/dist/control-run-failure.js.map +1 -1
  29. package/dist/control.d.ts +258 -39
  30. package/dist/control.d.ts.map +1 -1
  31. package/dist/control.js +9 -21
  32. package/dist/control.js.map +1 -1
  33. package/dist/credential-profile-snapshot.d.ts +332 -0
  34. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  35. package/dist/decision.d.ts +5 -0
  36. package/dist/decision.d.ts.map +1 -1
  37. package/dist/decision.js +9 -2
  38. package/dist/decision.js.map +1 -1
  39. package/dist/events.d.ts +4 -4
  40. package/dist/events.d.ts.map +1 -1
  41. package/dist/events.js +6 -0
  42. package/dist/events.js.map +1 -1
  43. package/dist/harness-input.d.ts +11 -0
  44. package/dist/harness-input.d.ts.map +1 -1
  45. package/dist/harness-input.js +7 -0
  46. package/dist/harness-input.js.map +1 -1
  47. package/dist/harness.d.ts +32 -4
  48. package/dist/harness.d.ts.map +1 -1
  49. package/dist/harness.js +5 -4
  50. package/dist/harness.js.map +1 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +2 -0
  54. package/dist/index.js.map +1 -1
  55. package/dist/mcp-run-result.d.ts +445 -0
  56. package/dist/mcp-run-result.d.ts.map +1 -1
  57. package/dist/model-image.d.ts +7 -0
  58. package/dist/model-image.d.ts.map +1 -1
  59. package/dist/model-operation.d.ts +26 -0
  60. package/dist/model-operation.d.ts.map +1 -1
  61. package/dist/model-operation.js +3 -1
  62. package/dist/model-operation.js.map +1 -1
  63. package/dist/processing.d.ts +56 -0
  64. package/dist/processing.d.ts.map +1 -1
  65. package/dist/processing.js +15 -0
  66. package/dist/processing.js.map +1 -1
  67. package/dist/quota-read.d.ts +3 -3
  68. package/dist/quota-read.js +1 -1
  69. package/dist/quota-read.js.map +1 -1
  70. package/dist/run-continuation.d.ts +9 -6
  71. package/dist/run-continuation.d.ts.map +1 -1
  72. package/dist/run-continuation.js +4 -0
  73. package/dist/run-continuation.js.map +1 -1
  74. package/dist/run-continuity.d.ts +7 -7
  75. package/dist/run-continuity.d.ts.map +1 -1
  76. package/dist/run-continuity.js +2 -1
  77. package/dist/run-continuity.js.map +1 -1
  78. package/dist/run-time-limit.d.ts +81 -0
  79. package/dist/run-time-limit.d.ts.map +1 -0
  80. package/dist/run-time-limit.js +36 -0
  81. package/dist/run-time-limit.js.map +1 -0
  82. package/dist/surface-run-controls.d.ts.map +1 -1
  83. package/dist/surface-run-controls.js +9 -0
  84. package/dist/surface-run-controls.js.map +1 -1
  85. package/dist/telemetry.d.ts +12 -0
  86. package/dist/telemetry.d.ts.map +1 -1
  87. package/generated/AgentCapabilityCatalog.schema.json +1 -1
  88. package/generated/AttemptExecutionEvidence.schema.json +6 -1
  89. package/generated/BudgetLease.schema.json +5 -0
  90. package/generated/ControlAccountResetResponse.schema.json +51 -0
  91. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1016 -0
  92. package/generated/ControlAccountResourcesResponse.schema.json +71 -20
  93. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
  94. package/generated/ControlCredentialProfilesQueryResponse.schema.json +72 -21
  95. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +72 -21
  96. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -1
  97. package/generated/ControlHarnessListResponse.schema.json +1 -1
  98. package/generated/ControlModelAccountCatalogResponse.schema.json +2 -1
  99. package/generated/ControlModelCatalogQueryResponse.schema.json +2 -1
  100. package/generated/ControlModelCatalogResponse.schema.json +2 -1
  101. package/generated/ControlModelOperationDetail.schema.json +5 -0
  102. package/generated/ControlQuotaQueryResponse.schema.json +131 -20
  103. package/generated/ControlQuotaReadRequest.schema.json +2 -1
  104. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  105. package/generated/ControlRunAgainDraft.schema.json +9 -1
  106. package/generated/ControlRunDetail.schema.json +187 -4
  107. package/generated/ControlRunListResponse.schema.json +164 -1
  108. package/generated/ControlRunStartRequest.schema.json +9 -1
  109. package/generated/ControlRunSummary.schema.json +164 -1
  110. package/generated/ControlSettingsSnapshot.schema.json +10 -3
  111. package/generated/ControlThreadTurnRequest.schema.json +9 -1
  112. package/generated/DecisionRecord.schema.json +8 -1
  113. package/generated/EnvelopeCustody.schema.json +6 -1
  114. package/generated/GlobalConfig.schema.json +10 -3
  115. package/generated/HarnessEvent.schema.json +24 -0
  116. package/generated/HarnessManifest.schema.json +1 -1
  117. package/generated/HarnessStatusDto.schema.json +1 -1
  118. package/generated/ImageCallResult.schema.json +5 -0
  119. package/generated/McpAccountsToolResult.schema.json +2578 -0
  120. package/generated/McpRunHandleResult.schema.json +177 -2
  121. package/generated/McpRunToolResult.schema.json +168 -1
  122. package/generated/ModelCallResult.schema.json +5 -0
  123. package/generated/ProcessingCostBasis.schema.json +5 -0
  124. package/generated/RunContinuityReceipt.schema.json +2 -1
  125. package/generated/RunEvent.schema.json +1 -0
  126. package/generated/RunFailure.schema.json +162 -0
  127. package/generated/RunProcessingIntent.schema.json +117 -0
  128. package/generated/RunResumable.schema.json +2 -1
  129. package/generated/RunTelemetry.schema.json +6 -1
  130. package/generated/RunTimeLimitRequest.schema.json +92 -0
  131. package/generated/RunTimeLimitSnapshot.schema.json +61 -0
  132. package/generated/UsageCostSummary.schema.json +1 -1
  133. package/package.json +2 -2
@@ -187,14 +187,17 @@ export declare const ControlRunDetail: z.ZodObject<{
187
187
  nativeMode: z.ZodNullable<z.ZodString>;
188
188
  kind: z.ZodEnum<["included", "paid_credits", "cash", "valuation", "unknown"]>;
189
189
  source: z.ZodString;
190
+ debit: z.ZodOptional<z.ZodLiteral<"unobserved">>;
190
191
  }, "strict", z.ZodTypeAny, {
191
192
  nativeMode: string | null;
192
193
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
193
194
  source: string;
195
+ debit?: "unobserved" | undefined;
194
196
  }, {
195
197
  nativeMode: string | null;
196
198
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
197
199
  source: string;
200
+ debit?: "unobserved" | undefined;
198
201
  }>>;
199
202
  usageCost: z.ZodOptional<z.ZodObject<{
200
203
  cashUsd: z.ZodNumber;
@@ -231,6 +234,7 @@ export declare const ControlRunDetail: z.ZodObject<{
231
234
  nativeMode: string | null;
232
235
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
233
236
  source: string;
237
+ debit?: "unobserved" | undefined;
234
238
  } | undefined;
235
239
  usageCost?: {
236
240
  cashUsd: number;
@@ -255,6 +259,7 @@ export declare const ControlRunDetail: z.ZodObject<{
255
259
  nativeMode: string | null;
256
260
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
257
261
  source: string;
262
+ debit?: "unobserved" | undefined;
258
263
  } | undefined;
259
264
  usageCost?: {
260
265
  cashUsd: number;
@@ -302,7 +307,7 @@ export declare const ControlRunDetail: z.ZodObject<{
302
307
  }>>>;
303
308
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
304
309
  resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
305
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
310
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
306
311
  resetsAt: z.ZodNullable<z.ZodString>;
307
312
  limitWindow: z.ZodNullable<z.ZodString>;
308
313
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -332,7 +337,7 @@ export declare const ControlRunDetail: z.ZodObject<{
332
337
  root: string | null;
333
338
  }>;
334
339
  }, "strict", z.ZodTypeAny, {
335
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
340
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
336
341
  resetsAt: string | null;
337
342
  limitWindow: string | null;
338
343
  limitEvidence: "unspecified" | "window" | null;
@@ -348,7 +353,7 @@ export declare const ControlRunDetail: z.ZodObject<{
348
353
  root: string | null;
349
354
  };
350
355
  }, {
351
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
356
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
352
357
  resetsAt: string | null;
353
358
  limitWindow: string | null;
354
359
  limitEvidence: "unspecified" | "window" | null;
@@ -368,7 +373,7 @@ export declare const ControlRunDetail: z.ZodObject<{
368
373
  tryIndex: z.ZodNumber;
369
374
  attemptId: z.ZodString;
370
375
  carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
371
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
376
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
372
377
  from: z.ZodObject<{
373
378
  runId: z.ZodString;
374
379
  attemptId: z.ZodString;
@@ -401,7 +406,7 @@ export declare const ControlRunDetail: z.ZodObject<{
401
406
  tryIndex: number;
402
407
  attemptId: string;
403
408
  carrier: "fresh" | "native" | "native_moved" | "packet";
404
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
409
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
405
410
  from: {
406
411
  runId: string;
407
412
  attemptId: string;
@@ -422,7 +427,7 @@ export declare const ControlRunDetail: z.ZodObject<{
422
427
  tryIndex: number;
423
428
  attemptId: string;
424
429
  carrier: "fresh" | "native" | "native_moved" | "packet";
425
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
430
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
426
431
  from: {
427
432
  runId: string;
428
433
  attemptId: string;
@@ -444,17 +449,17 @@ export declare const ControlRunDetail: z.ZodObject<{
444
449
  root: z.ZodString;
445
450
  bytes: z.ZodNullable<z.ZodNumber>;
446
451
  retainedAt: z.ZodString;
447
- cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
452
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
448
453
  }, "strict", z.ZodTypeAny, {
449
454
  root: string;
450
455
  bytes: number | null;
451
456
  retainedAt: string;
452
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
457
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
453
458
  }, {
454
459
  root: string;
455
460
  bytes: number | null;
456
461
  retainedAt: string;
457
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
462
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
458
463
  }>>>;
459
464
  taskId: z.ZodOptional<z.ZodString>;
460
465
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
@@ -505,6 +510,46 @@ export declare const ControlRunDetail: z.ZodObject<{
505
510
  binary_path: string | null;
506
511
  installed_version: string | null;
507
512
  }>]>>;
513
+ captureFailure: z.ZodOptional<z.ZodObject<{
514
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
515
+ message: z.ZodString;
516
+ causeCode: z.ZodOptional<z.ZodString>;
517
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
518
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
519
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
520
+ cleanup: z.ZodOptional<z.ZodObject<{
521
+ code: z.ZodNullable<z.ZodString>;
522
+ message: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ code: string | null;
525
+ message: string;
526
+ }, {
527
+ code: string | null;
528
+ message: string;
529
+ }>>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
532
+ message: string;
533
+ causeCode?: string | undefined;
534
+ bufferBudgetBytes?: number | undefined;
535
+ stream?: "stderr" | "stdout" | undefined;
536
+ drain?: "truncated" | undefined;
537
+ cleanup?: {
538
+ code: string | null;
539
+ message: string;
540
+ } | undefined;
541
+ }, {
542
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
543
+ message: string;
544
+ causeCode?: string | undefined;
545
+ bufferBudgetBytes?: number | undefined;
546
+ stream?: "stderr" | "stdout" | undefined;
547
+ drain?: "truncated" | undefined;
548
+ cleanup?: {
549
+ code: string | null;
550
+ message: string;
551
+ } | undefined;
552
+ }>>;
508
553
  phase: z.ZodDefault<z.ZodString>;
509
554
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
510
555
  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 +574,63 @@ export declare const ControlRunDetail: z.ZodObject<{
529
574
  message: string | null;
530
575
  source: string;
531
576
  }>>>;
577
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
578
+ harnessId: z.ZodString;
579
+ profileId: z.ZodNullable<z.ZodString>;
580
+ profileDisplayName: z.ZodNullable<z.ZodString>;
581
+ requestedModel: z.ZodNullable<z.ZodString>;
582
+ attemptId: z.ZodString;
583
+ tryIndex: z.ZodNumber;
584
+ observedAt: z.ZodString;
585
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
586
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
587
+ error: z.ZodString;
588
+ vendorFailure: z.ZodNullable<z.ZodObject<{
589
+ code: z.ZodNullable<z.ZodString>;
590
+ message: z.ZodNullable<z.ZodString>;
591
+ source: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ code: string | null;
594
+ message: string | null;
595
+ source: string;
596
+ }, {
597
+ code: string | null;
598
+ message: string | null;
599
+ source: string;
600
+ }>>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ harnessId: string;
603
+ profileId: string | null;
604
+ profileDisplayName: string | null;
605
+ requestedModel: string | null;
606
+ attemptId: string;
607
+ tryIndex: number;
608
+ observedAt: string;
609
+ phase: "after_progress" | "pre_progress" | "pre_start";
610
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
611
+ error: string;
612
+ vendorFailure: {
613
+ code: string | null;
614
+ message: string | null;
615
+ source: string;
616
+ } | null;
617
+ }, {
618
+ harnessId: string;
619
+ profileId: string | null;
620
+ profileDisplayName: string | null;
621
+ requestedModel: string | null;
622
+ attemptId: string;
623
+ tryIndex: number;
624
+ observedAt: string;
625
+ phase: "after_progress" | "pre_progress" | "pre_start";
626
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
627
+ error: string;
628
+ vendorFailure: {
629
+ code: string | null;
630
+ message: string | null;
631
+ source: string;
632
+ } | null;
633
+ }>, "many">>;
532
634
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
533
635
  }, "strip", z.ZodTypeAny, {
534
636
  requestRefusal?: {
@@ -546,6 +648,18 @@ export declare const ControlRunDetail: z.ZodObject<{
546
648
  binary_path: string | null;
547
649
  installed_version: string | null;
548
650
  } | undefined;
651
+ captureFailure?: {
652
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
653
+ message: string;
654
+ causeCode?: string | undefined;
655
+ bufferBudgetBytes?: number | undefined;
656
+ stream?: "stderr" | "stdout" | undefined;
657
+ drain?: "truncated" | undefined;
658
+ cleanup?: {
659
+ code: string | null;
660
+ message: string;
661
+ } | undefined;
662
+ } | undefined;
549
663
  phase: string;
550
664
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
551
665
  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 +676,23 @@ export declare const ControlRunDetail: z.ZodObject<{
562
676
  message: string | null;
563
677
  source: string;
564
678
  } | null;
679
+ poolAttempts: {
680
+ harnessId: string;
681
+ profileId: string | null;
682
+ profileDisplayName: string | null;
683
+ requestedModel: string | null;
684
+ attemptId: string;
685
+ tryIndex: number;
686
+ observedAt: string;
687
+ phase: "after_progress" | "pre_progress" | "pre_start";
688
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
689
+ error: string;
690
+ vendorFailure: {
691
+ code: string | null;
692
+ message: string | null;
693
+ source: string;
694
+ } | null;
695
+ }[];
565
696
  nextActions: string[];
566
697
  }, {
567
698
  requestRefusal?: {
@@ -579,6 +710,18 @@ export declare const ControlRunDetail: z.ZodObject<{
579
710
  binary_path: string | null;
580
711
  installed_version: string | null;
581
712
  } | undefined;
713
+ captureFailure?: {
714
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
715
+ message: string;
716
+ causeCode?: string | undefined;
717
+ bufferBudgetBytes?: number | undefined;
718
+ stream?: "stderr" | "stdout" | undefined;
719
+ drain?: "truncated" | undefined;
720
+ cleanup?: {
721
+ code: string | null;
722
+ message: string;
723
+ } | undefined;
724
+ } | undefined;
582
725
  phase?: string | undefined;
583
726
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
584
727
  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 +738,23 @@ export declare const ControlRunDetail: z.ZodObject<{
595
738
  message: string | null;
596
739
  source: string;
597
740
  } | null | undefined;
741
+ poolAttempts?: {
742
+ harnessId: string;
743
+ profileId: string | null;
744
+ profileDisplayName: string | null;
745
+ requestedModel: string | null;
746
+ attemptId: string;
747
+ tryIndex: number;
748
+ observedAt: string;
749
+ phase: "after_progress" | "pre_progress" | "pre_start";
750
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
751
+ error: string;
752
+ vendorFailure: {
753
+ code: string | null;
754
+ message: string | null;
755
+ source: string;
756
+ } | null;
757
+ }[] | undefined;
598
758
  nextActions?: string[] | undefined;
599
759
  }>>>;
600
760
  project: z.ZodDefault<z.ZodObject<{
@@ -1049,7 +1209,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1049
1209
  } | null;
1050
1210
  continueFrom: string | null;
1051
1211
  resumable: {
1052
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1212
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1053
1213
  resetsAt: string | null;
1054
1214
  limitWindow: string | null;
1055
1215
  limitEvidence: "unspecified" | "window" | null;
@@ -1069,7 +1229,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1069
1229
  tryIndex: number;
1070
1230
  attemptId: string;
1071
1231
  carrier: "fresh" | "native" | "native_moved" | "packet";
1072
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1232
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1073
1233
  from: {
1074
1234
  runId: string;
1075
1235
  attemptId: string;
@@ -1091,7 +1251,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1091
1251
  root: string;
1092
1252
  bytes: number | null;
1093
1253
  retainedAt: string;
1094
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1254
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1095
1255
  } | null;
1096
1256
  taskId?: string | undefined;
1097
1257
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -1113,6 +1273,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1113
1273
  binary_path: string | null;
1114
1274
  installed_version: string | null;
1115
1275
  } | undefined;
1276
+ captureFailure?: {
1277
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
1278
+ message: string;
1279
+ causeCode?: string | undefined;
1280
+ bufferBudgetBytes?: number | undefined;
1281
+ stream?: "stderr" | "stdout" | undefined;
1282
+ drain?: "truncated" | undefined;
1283
+ cleanup?: {
1284
+ code: string | null;
1285
+ message: string;
1286
+ } | undefined;
1287
+ } | undefined;
1116
1288
  phase: string;
1117
1289
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1118
1290
  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 +1301,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1129
1301
  message: string | null;
1130
1302
  source: string;
1131
1303
  } | null;
1304
+ poolAttempts: {
1305
+ harnessId: string;
1306
+ profileId: string | null;
1307
+ profileDisplayName: string | null;
1308
+ requestedModel: string | null;
1309
+ attemptId: string;
1310
+ tryIndex: number;
1311
+ observedAt: string;
1312
+ phase: "after_progress" | "pre_progress" | "pre_start";
1313
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1314
+ error: string;
1315
+ vendorFailure: {
1316
+ code: string | null;
1317
+ message: string | null;
1318
+ source: string;
1319
+ } | null;
1320
+ }[];
1132
1321
  nextActions: string[];
1133
1322
  } | null;
1134
1323
  project: {
@@ -1303,7 +1492,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1303
1492
  } | null | undefined;
1304
1493
  continueFrom?: string | null | undefined;
1305
1494
  resumable?: {
1306
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1495
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1307
1496
  resetsAt: string | null;
1308
1497
  limitWindow: string | null;
1309
1498
  limitEvidence: "unspecified" | "window" | null;
@@ -1323,7 +1512,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1323
1512
  tryIndex: number;
1324
1513
  attemptId: string;
1325
1514
  carrier: "fresh" | "native" | "native_moved" | "packet";
1326
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1515
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1327
1516
  from: {
1328
1517
  runId: string;
1329
1518
  attemptId: string;
@@ -1345,7 +1534,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1345
1534
  root: string;
1346
1535
  bytes: number | null;
1347
1536
  retainedAt: string;
1348
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1537
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1349
1538
  } | null | undefined;
1350
1539
  taskId?: string | undefined;
1351
1540
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -1367,6 +1556,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1367
1556
  binary_path: string | null;
1368
1557
  installed_version: string | null;
1369
1558
  } | undefined;
1559
+ captureFailure?: {
1560
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
1561
+ message: string;
1562
+ causeCode?: string | undefined;
1563
+ bufferBudgetBytes?: number | undefined;
1564
+ stream?: "stderr" | "stdout" | undefined;
1565
+ drain?: "truncated" | undefined;
1566
+ cleanup?: {
1567
+ code: string | null;
1568
+ message: string;
1569
+ } | undefined;
1570
+ } | undefined;
1370
1571
  phase?: string | undefined;
1371
1572
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1372
1573
  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 +1584,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1383
1584
  message: string | null;
1384
1585
  source: string;
1385
1586
  } | null | undefined;
1587
+ poolAttempts?: {
1588
+ harnessId: string;
1589
+ profileId: string | null;
1590
+ profileDisplayName: string | null;
1591
+ requestedModel: string | null;
1592
+ attemptId: string;
1593
+ tryIndex: number;
1594
+ observedAt: string;
1595
+ phase: "after_progress" | "pre_progress" | "pre_start";
1596
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1597
+ error: string;
1598
+ vendorFailure: {
1599
+ code: string | null;
1600
+ message: string | null;
1601
+ source: string;
1602
+ } | null;
1603
+ }[] | undefined;
1386
1604
  nextActions?: string[] | undefined;
1387
1605
  } | null | undefined;
1388
1606
  project?: {
@@ -1582,7 +1800,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1582
1800
  }>>>;
1583
1801
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1584
1802
  resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1585
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1803
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1586
1804
  resetsAt: z.ZodNullable<z.ZodString>;
1587
1805
  limitWindow: z.ZodNullable<z.ZodString>;
1588
1806
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -1612,7 +1830,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1612
1830
  root: string | null;
1613
1831
  }>;
1614
1832
  }, "strict", z.ZodTypeAny, {
1615
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1833
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1616
1834
  resetsAt: string | null;
1617
1835
  limitWindow: string | null;
1618
1836
  limitEvidence: "unspecified" | "window" | null;
@@ -1628,7 +1846,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1628
1846
  root: string | null;
1629
1847
  };
1630
1848
  }, {
1631
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1849
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1632
1850
  resetsAt: string | null;
1633
1851
  limitWindow: string | null;
1634
1852
  limitEvidence: "unspecified" | "window" | null;
@@ -1648,7 +1866,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1648
1866
  tryIndex: z.ZodNumber;
1649
1867
  attemptId: z.ZodString;
1650
1868
  carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
1651
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1869
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1652
1870
  from: z.ZodObject<{
1653
1871
  runId: z.ZodString;
1654
1872
  attemptId: z.ZodString;
@@ -1681,7 +1899,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1681
1899
  tryIndex: number;
1682
1900
  attemptId: string;
1683
1901
  carrier: "fresh" | "native" | "native_moved" | "packet";
1684
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1902
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1685
1903
  from: {
1686
1904
  runId: string;
1687
1905
  attemptId: string;
@@ -1702,7 +1920,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1702
1920
  tryIndex: number;
1703
1921
  attemptId: string;
1704
1922
  carrier: "fresh" | "native" | "native_moved" | "packet";
1705
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1923
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1706
1924
  from: {
1707
1925
  runId: string;
1708
1926
  attemptId: string;
@@ -1724,17 +1942,17 @@ export declare const ControlRunDetail: z.ZodObject<{
1724
1942
  root: z.ZodString;
1725
1943
  bytes: z.ZodNullable<z.ZodNumber>;
1726
1944
  retainedAt: z.ZodString;
1727
- cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
1945
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
1728
1946
  }, "strict", z.ZodTypeAny, {
1729
1947
  root: string;
1730
1948
  bytes: number | null;
1731
1949
  retainedAt: string;
1732
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1950
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1733
1951
  }, {
1734
1952
  root: string;
1735
1953
  bytes: number | null;
1736
1954
  retainedAt: string;
1737
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1955
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1738
1956
  }>>>;
1739
1957
  taskId: z.ZodOptional<z.ZodString>;
1740
1958
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
@@ -1785,6 +2003,46 @@ export declare const ControlRunDetail: z.ZodObject<{
1785
2003
  binary_path: string | null;
1786
2004
  installed_version: string | null;
1787
2005
  }>]>>;
2006
+ captureFailure: z.ZodOptional<z.ZodObject<{
2007
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
2008
+ message: z.ZodString;
2009
+ causeCode: z.ZodOptional<z.ZodString>;
2010
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
2011
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
2012
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
2013
+ cleanup: z.ZodOptional<z.ZodObject<{
2014
+ code: z.ZodNullable<z.ZodString>;
2015
+ message: z.ZodString;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ code: string | null;
2018
+ message: string;
2019
+ }, {
2020
+ code: string | null;
2021
+ message: string;
2022
+ }>>;
2023
+ }, "strip", z.ZodTypeAny, {
2024
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2025
+ message: string;
2026
+ causeCode?: string | undefined;
2027
+ bufferBudgetBytes?: number | undefined;
2028
+ stream?: "stderr" | "stdout" | undefined;
2029
+ drain?: "truncated" | undefined;
2030
+ cleanup?: {
2031
+ code: string | null;
2032
+ message: string;
2033
+ } | undefined;
2034
+ }, {
2035
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2036
+ message: string;
2037
+ causeCode?: string | undefined;
2038
+ bufferBudgetBytes?: number | undefined;
2039
+ stream?: "stderr" | "stdout" | undefined;
2040
+ drain?: "truncated" | undefined;
2041
+ cleanup?: {
2042
+ code: string | null;
2043
+ message: string;
2044
+ } | undefined;
2045
+ }>>;
1788
2046
  phase: z.ZodDefault<z.ZodString>;
1789
2047
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1790
2048
  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 +2067,63 @@ export declare const ControlRunDetail: z.ZodObject<{
1809
2067
  message: string | null;
1810
2068
  source: string;
1811
2069
  }>>>;
2070
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2071
+ harnessId: z.ZodString;
2072
+ profileId: z.ZodNullable<z.ZodString>;
2073
+ profileDisplayName: z.ZodNullable<z.ZodString>;
2074
+ requestedModel: z.ZodNullable<z.ZodString>;
2075
+ attemptId: z.ZodString;
2076
+ tryIndex: z.ZodNumber;
2077
+ observedAt: z.ZodString;
2078
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
2079
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
2080
+ error: z.ZodString;
2081
+ vendorFailure: z.ZodNullable<z.ZodObject<{
2082
+ code: z.ZodNullable<z.ZodString>;
2083
+ message: z.ZodNullable<z.ZodString>;
2084
+ source: z.ZodString;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ code: string | null;
2087
+ message: string | null;
2088
+ source: string;
2089
+ }, {
2090
+ code: string | null;
2091
+ message: string | null;
2092
+ source: string;
2093
+ }>>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ harnessId: string;
2096
+ profileId: string | null;
2097
+ profileDisplayName: string | null;
2098
+ requestedModel: string | null;
2099
+ attemptId: string;
2100
+ tryIndex: number;
2101
+ observedAt: string;
2102
+ phase: "after_progress" | "pre_progress" | "pre_start";
2103
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2104
+ error: string;
2105
+ vendorFailure: {
2106
+ code: string | null;
2107
+ message: string | null;
2108
+ source: string;
2109
+ } | null;
2110
+ }, {
2111
+ harnessId: string;
2112
+ profileId: string | null;
2113
+ profileDisplayName: string | null;
2114
+ requestedModel: string | null;
2115
+ attemptId: string;
2116
+ tryIndex: number;
2117
+ observedAt: string;
2118
+ phase: "after_progress" | "pre_progress" | "pre_start";
2119
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2120
+ error: string;
2121
+ vendorFailure: {
2122
+ code: string | null;
2123
+ message: string | null;
2124
+ source: string;
2125
+ } | null;
2126
+ }>, "many">>;
1812
2127
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1813
2128
  }, "strip", z.ZodTypeAny, {
1814
2129
  requestRefusal?: {
@@ -1826,6 +2141,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1826
2141
  binary_path: string | null;
1827
2142
  installed_version: string | null;
1828
2143
  } | undefined;
2144
+ captureFailure?: {
2145
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2146
+ message: string;
2147
+ causeCode?: string | undefined;
2148
+ bufferBudgetBytes?: number | undefined;
2149
+ stream?: "stderr" | "stdout" | undefined;
2150
+ drain?: "truncated" | undefined;
2151
+ cleanup?: {
2152
+ code: string | null;
2153
+ message: string;
2154
+ } | undefined;
2155
+ } | undefined;
1829
2156
  phase: string;
1830
2157
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1831
2158
  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 +2169,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1842
2169
  message: string | null;
1843
2170
  source: string;
1844
2171
  } | null;
2172
+ poolAttempts: {
2173
+ harnessId: string;
2174
+ profileId: string | null;
2175
+ profileDisplayName: string | null;
2176
+ requestedModel: string | null;
2177
+ attemptId: string;
2178
+ tryIndex: number;
2179
+ observedAt: string;
2180
+ phase: "after_progress" | "pre_progress" | "pre_start";
2181
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2182
+ error: string;
2183
+ vendorFailure: {
2184
+ code: string | null;
2185
+ message: string | null;
2186
+ source: string;
2187
+ } | null;
2188
+ }[];
1845
2189
  nextActions: string[];
1846
2190
  }, {
1847
2191
  requestRefusal?: {
@@ -1859,6 +2203,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1859
2203
  binary_path: string | null;
1860
2204
  installed_version: string | null;
1861
2205
  } | undefined;
2206
+ captureFailure?: {
2207
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2208
+ message: string;
2209
+ causeCode?: string | undefined;
2210
+ bufferBudgetBytes?: number | undefined;
2211
+ stream?: "stderr" | "stdout" | undefined;
2212
+ drain?: "truncated" | undefined;
2213
+ cleanup?: {
2214
+ code: string | null;
2215
+ message: string;
2216
+ } | undefined;
2217
+ } | undefined;
1862
2218
  phase?: string | undefined;
1863
2219
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1864
2220
  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 +2231,23 @@ export declare const ControlRunDetail: z.ZodObject<{
1875
2231
  message: string | null;
1876
2232
  source: string;
1877
2233
  } | null | undefined;
2234
+ poolAttempts?: {
2235
+ harnessId: string;
2236
+ profileId: string | null;
2237
+ profileDisplayName: string | null;
2238
+ requestedModel: string | null;
2239
+ attemptId: string;
2240
+ tryIndex: number;
2241
+ observedAt: string;
2242
+ phase: "after_progress" | "pre_progress" | "pre_start";
2243
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2244
+ error: string;
2245
+ vendorFailure: {
2246
+ code: string | null;
2247
+ message: string | null;
2248
+ source: string;
2249
+ } | null;
2250
+ }[] | undefined;
1878
2251
  nextActions?: string[] | undefined;
1879
2252
  }>>>;
1880
2253
  project: z.ZodDefault<z.ZodObject<{
@@ -2329,7 +2702,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2329
2702
  } | null;
2330
2703
  continueFrom: string | null;
2331
2704
  resumable: {
2332
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2705
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2333
2706
  resetsAt: string | null;
2334
2707
  limitWindow: string | null;
2335
2708
  limitEvidence: "unspecified" | "window" | null;
@@ -2349,7 +2722,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2349
2722
  tryIndex: number;
2350
2723
  attemptId: string;
2351
2724
  carrier: "fresh" | "native" | "native_moved" | "packet";
2352
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2725
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2353
2726
  from: {
2354
2727
  runId: string;
2355
2728
  attemptId: string;
@@ -2371,7 +2744,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2371
2744
  root: string;
2372
2745
  bytes: number | null;
2373
2746
  retainedAt: string;
2374
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2747
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2375
2748
  } | null;
2376
2749
  taskId?: string | undefined;
2377
2750
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -2393,6 +2766,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2393
2766
  binary_path: string | null;
2394
2767
  installed_version: string | null;
2395
2768
  } | undefined;
2769
+ captureFailure?: {
2770
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2771
+ message: string;
2772
+ causeCode?: string | undefined;
2773
+ bufferBudgetBytes?: number | undefined;
2774
+ stream?: "stderr" | "stdout" | undefined;
2775
+ drain?: "truncated" | undefined;
2776
+ cleanup?: {
2777
+ code: string | null;
2778
+ message: string;
2779
+ } | undefined;
2780
+ } | undefined;
2396
2781
  phase: string;
2397
2782
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2398
2783
  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 +2794,23 @@ export declare const ControlRunDetail: z.ZodObject<{
2409
2794
  message: string | null;
2410
2795
  source: string;
2411
2796
  } | null;
2797
+ poolAttempts: {
2798
+ harnessId: string;
2799
+ profileId: string | null;
2800
+ profileDisplayName: string | null;
2801
+ requestedModel: string | null;
2802
+ attemptId: string;
2803
+ tryIndex: number;
2804
+ observedAt: string;
2805
+ phase: "after_progress" | "pre_progress" | "pre_start";
2806
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
2807
+ error: string;
2808
+ vendorFailure: {
2809
+ code: string | null;
2810
+ message: string | null;
2811
+ source: string;
2812
+ } | null;
2813
+ }[];
2412
2814
  nextActions: string[];
2413
2815
  } | null;
2414
2816
  project: {
@@ -2583,7 +2985,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2583
2985
  } | null | undefined;
2584
2986
  continueFrom?: string | null | undefined;
2585
2987
  resumable?: {
2586
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2988
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2587
2989
  resetsAt: string | null;
2588
2990
  limitWindow: string | null;
2589
2991
  limitEvidence: "unspecified" | "window" | null;
@@ -2603,7 +3005,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2603
3005
  tryIndex: number;
2604
3006
  attemptId: string;
2605
3007
  carrier: "fresh" | "native" | "native_moved" | "packet";
2606
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3008
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2607
3009
  from: {
2608
3010
  runId: string;
2609
3011
  attemptId: string;
@@ -2625,7 +3027,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2625
3027
  root: string;
2626
3028
  bytes: number | null;
2627
3029
  retainedAt: string;
2628
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
3030
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2629
3031
  } | null | undefined;
2630
3032
  taskId?: string | undefined;
2631
3033
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -2647,6 +3049,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2647
3049
  binary_path: string | null;
2648
3050
  installed_version: string | null;
2649
3051
  } | undefined;
3052
+ captureFailure?: {
3053
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
3054
+ message: string;
3055
+ causeCode?: string | undefined;
3056
+ bufferBudgetBytes?: number | undefined;
3057
+ stream?: "stderr" | "stdout" | undefined;
3058
+ drain?: "truncated" | undefined;
3059
+ cleanup?: {
3060
+ code: string | null;
3061
+ message: string;
3062
+ } | undefined;
3063
+ } | undefined;
2650
3064
  phase?: string | undefined;
2651
3065
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2652
3066
  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 +3077,23 @@ export declare const ControlRunDetail: z.ZodObject<{
2663
3077
  message: string | null;
2664
3078
  source: string;
2665
3079
  } | null | undefined;
3080
+ poolAttempts?: {
3081
+ harnessId: string;
3082
+ profileId: string | null;
3083
+ profileDisplayName: string | null;
3084
+ requestedModel: string | null;
3085
+ attemptId: string;
3086
+ tryIndex: number;
3087
+ observedAt: string;
3088
+ phase: "after_progress" | "pre_progress" | "pre_start";
3089
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
3090
+ error: string;
3091
+ vendorFailure: {
3092
+ code: string | null;
3093
+ message: string | null;
3094
+ source: string;
3095
+ } | null;
3096
+ }[] | undefined;
2666
3097
  nextActions?: string[] | undefined;
2667
3098
  } | null | undefined;
2668
3099
  project?: {
@@ -3338,6 +3769,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3338
3769
  maxUsd: number;
3339
3770
  }>]>>;
3340
3771
  spendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3772
+ controllableSpendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3341
3773
  valuationUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3342
3774
  valuationKnowledge: z.ZodDefault<z.ZodEnum<["exact", "estimated", "unknown"]>>;
3343
3775
  remainingUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
@@ -3353,6 +3785,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3353
3785
  maxUsd: number;
3354
3786
  };
3355
3787
  spendUsd: number | null;
3788
+ controllableSpendUsd: number | null;
3356
3789
  valuationUsd: number | null;
3357
3790
  valuationKnowledge: "estimated" | "exact" | "unknown";
3358
3791
  remainingUsd: number | null;
@@ -3368,6 +3801,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3368
3801
  maxUsd: number;
3369
3802
  } | undefined;
3370
3803
  spendUsd?: number | null | undefined;
3804
+ controllableSpendUsd?: number | null | undefined;
3371
3805
  valuationUsd?: number | null | undefined;
3372
3806
  valuationKnowledge?: "estimated" | "exact" | "unknown" | undefined;
3373
3807
  remainingUsd?: number | null | undefined;
@@ -3493,18 +3927,21 @@ export declare const ControlRunDetail: z.ZodObject<{
3493
3927
  spend_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3494
3928
  estimated: z.ZodDefault<z.ZodBoolean>;
3495
3929
  cash_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3930
+ controllable_cash_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3496
3931
  valuation_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3497
3932
  valuation_knowledge: z.ZodOptional<z.ZodEnum<["exact", "estimated", "unknown"]>>;
3498
3933
  }, "strip", z.ZodTypeAny, {
3499
3934
  spend_usd: number | null;
3500
3935
  estimated: boolean;
3501
3936
  cash_usd: number | null;
3937
+ controllable_cash_usd?: number | null | undefined;
3502
3938
  valuation_usd: number | null;
3503
3939
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
3504
3940
  }, {
3505
3941
  spend_usd?: number | null | undefined;
3506
3942
  estimated?: boolean | undefined;
3507
3943
  cash_usd?: number | null | undefined;
3944
+ controllable_cash_usd?: number | null | undefined;
3508
3945
  valuation_usd?: number | null | undefined;
3509
3946
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
3510
3947
  }>>;
@@ -3594,6 +4031,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3594
4031
  spend_usd: number | null;
3595
4032
  estimated: boolean;
3596
4033
  cash_usd: number | null;
4034
+ controllable_cash_usd?: number | null | undefined;
3597
4035
  valuation_usd: number | null;
3598
4036
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
3599
4037
  };
@@ -3653,6 +4091,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3653
4091
  spend_usd?: number | null | undefined;
3654
4092
  estimated?: boolean | undefined;
3655
4093
  cash_usd?: number | null | undefined;
4094
+ controllable_cash_usd?: number | null | undefined;
3656
4095
  valuation_usd?: number | null | undefined;
3657
4096
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
3658
4097
  } | undefined;
@@ -4238,6 +4677,46 @@ export declare const ControlRunDetail: z.ZodObject<{
4238
4677
  binary_path: string | null;
4239
4678
  installed_version: string | null;
4240
4679
  }>]>>;
4680
+ captureFailure: z.ZodOptional<z.ZodObject<{
4681
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
4682
+ message: z.ZodString;
4683
+ causeCode: z.ZodOptional<z.ZodString>;
4684
+ bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
4685
+ stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
4686
+ drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
4687
+ cleanup: z.ZodOptional<z.ZodObject<{
4688
+ code: z.ZodNullable<z.ZodString>;
4689
+ message: z.ZodString;
4690
+ }, "strip", z.ZodTypeAny, {
4691
+ code: string | null;
4692
+ message: string;
4693
+ }, {
4694
+ code: string | null;
4695
+ message: string;
4696
+ }>>;
4697
+ }, "strip", z.ZodTypeAny, {
4698
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4699
+ message: string;
4700
+ causeCode?: string | undefined;
4701
+ bufferBudgetBytes?: number | undefined;
4702
+ stream?: "stderr" | "stdout" | undefined;
4703
+ drain?: "truncated" | undefined;
4704
+ cleanup?: {
4705
+ code: string | null;
4706
+ message: string;
4707
+ } | undefined;
4708
+ }, {
4709
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4710
+ message: string;
4711
+ causeCode?: string | undefined;
4712
+ bufferBudgetBytes?: number | undefined;
4713
+ stream?: "stderr" | "stdout" | undefined;
4714
+ drain?: "truncated" | undefined;
4715
+ cleanup?: {
4716
+ code: string | null;
4717
+ message: string;
4718
+ } | undefined;
4719
+ }>>;
4241
4720
  phase: z.ZodDefault<z.ZodString>;
4242
4721
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
4243
4722
  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 +4741,63 @@ export declare const ControlRunDetail: z.ZodObject<{
4262
4741
  message: string | null;
4263
4742
  source: string;
4264
4743
  }>>>;
4744
+ poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
4745
+ harnessId: z.ZodString;
4746
+ profileId: z.ZodNullable<z.ZodString>;
4747
+ profileDisplayName: z.ZodNullable<z.ZodString>;
4748
+ requestedModel: z.ZodNullable<z.ZodString>;
4749
+ attemptId: z.ZodString;
4750
+ tryIndex: z.ZodNumber;
4751
+ observedAt: z.ZodString;
4752
+ phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
4753
+ category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
4754
+ error: z.ZodString;
4755
+ vendorFailure: z.ZodNullable<z.ZodObject<{
4756
+ code: z.ZodNullable<z.ZodString>;
4757
+ message: z.ZodNullable<z.ZodString>;
4758
+ source: z.ZodString;
4759
+ }, "strip", z.ZodTypeAny, {
4760
+ code: string | null;
4761
+ message: string | null;
4762
+ source: string;
4763
+ }, {
4764
+ code: string | null;
4765
+ message: string | null;
4766
+ source: string;
4767
+ }>>;
4768
+ }, "strip", z.ZodTypeAny, {
4769
+ harnessId: string;
4770
+ profileId: string | null;
4771
+ profileDisplayName: string | null;
4772
+ requestedModel: string | null;
4773
+ attemptId: string;
4774
+ tryIndex: number;
4775
+ observedAt: string;
4776
+ phase: "after_progress" | "pre_progress" | "pre_start";
4777
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4778
+ error: string;
4779
+ vendorFailure: {
4780
+ code: string | null;
4781
+ message: string | null;
4782
+ source: string;
4783
+ } | null;
4784
+ }, {
4785
+ harnessId: string;
4786
+ profileId: string | null;
4787
+ profileDisplayName: string | null;
4788
+ requestedModel: string | null;
4789
+ attemptId: string;
4790
+ tryIndex: number;
4791
+ observedAt: string;
4792
+ phase: "after_progress" | "pre_progress" | "pre_start";
4793
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4794
+ error: string;
4795
+ vendorFailure: {
4796
+ code: string | null;
4797
+ message: string | null;
4798
+ source: string;
4799
+ } | null;
4800
+ }>, "many">>;
4265
4801
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4266
4802
  }, "strip", z.ZodTypeAny, {
4267
4803
  requestRefusal?: {
@@ -4279,6 +4815,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4279
4815
  binary_path: string | null;
4280
4816
  installed_version: string | null;
4281
4817
  } | undefined;
4818
+ captureFailure?: {
4819
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4820
+ message: string;
4821
+ causeCode?: string | undefined;
4822
+ bufferBudgetBytes?: number | undefined;
4823
+ stream?: "stderr" | "stdout" | undefined;
4824
+ drain?: "truncated" | undefined;
4825
+ cleanup?: {
4826
+ code: string | null;
4827
+ message: string;
4828
+ } | undefined;
4829
+ } | undefined;
4282
4830
  phase: string;
4283
4831
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4284
4832
  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 +4843,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4295
4843
  message: string | null;
4296
4844
  source: string;
4297
4845
  } | null;
4846
+ poolAttempts: {
4847
+ harnessId: string;
4848
+ profileId: string | null;
4849
+ profileDisplayName: string | null;
4850
+ requestedModel: string | null;
4851
+ attemptId: string;
4852
+ tryIndex: number;
4853
+ observedAt: string;
4854
+ phase: "after_progress" | "pre_progress" | "pre_start";
4855
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4856
+ error: string;
4857
+ vendorFailure: {
4858
+ code: string | null;
4859
+ message: string | null;
4860
+ source: string;
4861
+ } | null;
4862
+ }[];
4298
4863
  nextActions: string[];
4299
4864
  }, {
4300
4865
  requestRefusal?: {
@@ -4312,6 +4877,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4312
4877
  binary_path: string | null;
4313
4878
  installed_version: string | null;
4314
4879
  } | undefined;
4880
+ captureFailure?: {
4881
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
4882
+ message: string;
4883
+ causeCode?: string | undefined;
4884
+ bufferBudgetBytes?: number | undefined;
4885
+ stream?: "stderr" | "stdout" | undefined;
4886
+ drain?: "truncated" | undefined;
4887
+ cleanup?: {
4888
+ code: string | null;
4889
+ message: string;
4890
+ } | undefined;
4891
+ } | undefined;
4315
4892
  phase?: string | undefined;
4316
4893
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4317
4894
  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 +4905,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4328
4905
  message: string | null;
4329
4906
  source: string;
4330
4907
  } | null | undefined;
4908
+ poolAttempts?: {
4909
+ harnessId: string;
4910
+ profileId: string | null;
4911
+ profileDisplayName: string | null;
4912
+ requestedModel: string | null;
4913
+ attemptId: string;
4914
+ tryIndex: number;
4915
+ observedAt: string;
4916
+ phase: "after_progress" | "pre_progress" | "pre_start";
4917
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
4918
+ error: string;
4919
+ vendorFailure: {
4920
+ code: string | null;
4921
+ message: string | null;
4922
+ source: string;
4923
+ } | null;
4924
+ }[] | undefined;
4331
4925
  nextActions?: string[] | undefined;
4332
4926
  }>>>;
4333
4927
  /** Minimal typed required-operator-actions for a succeeded-but-BLOCKED run
@@ -4363,6 +4957,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4363
4957
  nativeMode: string | null;
4364
4958
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
4365
4959
  source: string;
4960
+ debit?: "unobserved" | undefined;
4366
4961
  } | undefined;
4367
4962
  usageCost?: {
4368
4963
  cashUsd: number;
@@ -4386,7 +4981,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4386
4981
  } | null;
4387
4982
  continueFrom: string | null;
4388
4983
  resumable: {
4389
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4984
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4390
4985
  resetsAt: string | null;
4391
4986
  limitWindow: string | null;
4392
4987
  limitEvidence: "unspecified" | "window" | null;
@@ -4406,7 +5001,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4406
5001
  tryIndex: number;
4407
5002
  attemptId: string;
4408
5003
  carrier: "fresh" | "native" | "native_moved" | "packet";
4409
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5004
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4410
5005
  from: {
4411
5006
  runId: string;
4412
5007
  attemptId: string;
@@ -4428,7 +5023,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4428
5023
  root: string;
4429
5024
  bytes: number | null;
4430
5025
  retainedAt: string;
4431
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5026
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4432
5027
  } | null;
4433
5028
  taskId?: string | undefined;
4434
5029
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -4450,6 +5045,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4450
5045
  binary_path: string | null;
4451
5046
  installed_version: string | null;
4452
5047
  } | undefined;
5048
+ captureFailure?: {
5049
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5050
+ message: string;
5051
+ causeCode?: string | undefined;
5052
+ bufferBudgetBytes?: number | undefined;
5053
+ stream?: "stderr" | "stdout" | undefined;
5054
+ drain?: "truncated" | undefined;
5055
+ cleanup?: {
5056
+ code: string | null;
5057
+ message: string;
5058
+ } | undefined;
5059
+ } | undefined;
4453
5060
  phase: string;
4454
5061
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4455
5062
  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 +5073,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4466
5073
  message: string | null;
4467
5074
  source: string;
4468
5075
  } | null;
5076
+ poolAttempts: {
5077
+ harnessId: string;
5078
+ profileId: string | null;
5079
+ profileDisplayName: string | null;
5080
+ requestedModel: string | null;
5081
+ attemptId: string;
5082
+ tryIndex: number;
5083
+ observedAt: string;
5084
+ phase: "after_progress" | "pre_progress" | "pre_start";
5085
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5086
+ error: string;
5087
+ vendorFailure: {
5088
+ code: string | null;
5089
+ message: string | null;
5090
+ source: string;
5091
+ } | null;
5092
+ }[];
4469
5093
  nextActions: string[];
4470
5094
  } | null;
4471
5095
  project: {
@@ -4641,7 +5265,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4641
5265
  } | null;
4642
5266
  continueFrom: string | null;
4643
5267
  resumable: {
4644
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5268
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4645
5269
  resetsAt: string | null;
4646
5270
  limitWindow: string | null;
4647
5271
  limitEvidence: "unspecified" | "window" | null;
@@ -4661,7 +5285,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4661
5285
  tryIndex: number;
4662
5286
  attemptId: string;
4663
5287
  carrier: "fresh" | "native" | "native_moved" | "packet";
4664
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5288
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4665
5289
  from: {
4666
5290
  runId: string;
4667
5291
  attemptId: string;
@@ -4683,7 +5307,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4683
5307
  root: string;
4684
5308
  bytes: number | null;
4685
5309
  retainedAt: string;
4686
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5310
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4687
5311
  } | null;
4688
5312
  taskId?: string | undefined;
4689
5313
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -4705,6 +5329,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4705
5329
  binary_path: string | null;
4706
5330
  installed_version: string | null;
4707
5331
  } | undefined;
5332
+ captureFailure?: {
5333
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5334
+ message: string;
5335
+ causeCode?: string | undefined;
5336
+ bufferBudgetBytes?: number | undefined;
5337
+ stream?: "stderr" | "stdout" | undefined;
5338
+ drain?: "truncated" | undefined;
5339
+ cleanup?: {
5340
+ code: string | null;
5341
+ message: string;
5342
+ } | undefined;
5343
+ } | undefined;
4708
5344
  phase: string;
4709
5345
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4710
5346
  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 +5357,23 @@ export declare const ControlRunDetail: z.ZodObject<{
4721
5357
  message: string | null;
4722
5358
  source: string;
4723
5359
  } | null;
5360
+ poolAttempts: {
5361
+ harnessId: string;
5362
+ profileId: string | null;
5363
+ profileDisplayName: string | null;
5364
+ requestedModel: string | null;
5365
+ attemptId: string;
5366
+ tryIndex: number;
5367
+ observedAt: string;
5368
+ phase: "after_progress" | "pre_progress" | "pre_start";
5369
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5370
+ error: string;
5371
+ vendorFailure: {
5372
+ code: string | null;
5373
+ message: string | null;
5374
+ source: string;
5375
+ } | null;
5376
+ }[];
4724
5377
  nextActions: string[];
4725
5378
  } | null;
4726
5379
  project: {
@@ -4998,6 +5651,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4998
5651
  maxUsd: number;
4999
5652
  };
5000
5653
  spendUsd: number | null;
5654
+ controllableSpendUsd: number | null;
5001
5655
  valuationUsd: number | null;
5002
5656
  valuationKnowledge: "estimated" | "exact" | "unknown";
5003
5657
  remainingUsd: number | null;
@@ -5047,6 +5701,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5047
5701
  spend_usd: number | null;
5048
5702
  estimated: boolean;
5049
5703
  cash_usd: number | null;
5704
+ controllable_cash_usd?: number | null | undefined;
5050
5705
  valuation_usd: number | null;
5051
5706
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
5052
5707
  };
@@ -5212,6 +5867,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5212
5867
  binary_path: string | null;
5213
5868
  installed_version: string | null;
5214
5869
  } | undefined;
5870
+ captureFailure?: {
5871
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
5872
+ message: string;
5873
+ causeCode?: string | undefined;
5874
+ bufferBudgetBytes?: number | undefined;
5875
+ stream?: "stderr" | "stdout" | undefined;
5876
+ drain?: "truncated" | undefined;
5877
+ cleanup?: {
5878
+ code: string | null;
5879
+ message: string;
5880
+ } | undefined;
5881
+ } | undefined;
5215
5882
  phase: string;
5216
5883
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5217
5884
  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 +5895,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5228
5895
  message: string | null;
5229
5896
  source: string;
5230
5897
  } | null;
5898
+ poolAttempts: {
5899
+ harnessId: string;
5900
+ profileId: string | null;
5901
+ profileDisplayName: string | null;
5902
+ requestedModel: string | null;
5903
+ attemptId: string;
5904
+ tryIndex: number;
5905
+ observedAt: string;
5906
+ phase: "after_progress" | "pre_progress" | "pre_start";
5907
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
5908
+ error: string;
5909
+ vendorFailure: {
5910
+ code: string | null;
5911
+ message: string | null;
5912
+ source: string;
5913
+ } | null;
5914
+ }[];
5231
5915
  nextActions: string[];
5232
5916
  } | null;
5233
5917
  requiredActions: {
@@ -5251,6 +5935,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5251
5935
  nativeMode: string | null;
5252
5936
  kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
5253
5937
  source: string;
5938
+ debit?: "unobserved" | undefined;
5254
5939
  } | undefined;
5255
5940
  usageCost?: {
5256
5941
  cashUsd: number;
@@ -5274,7 +5959,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5274
5959
  } | null | undefined;
5275
5960
  continueFrom?: string | null | undefined;
5276
5961
  resumable?: {
5277
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5962
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5278
5963
  resetsAt: string | null;
5279
5964
  limitWindow: string | null;
5280
5965
  limitEvidence: "unspecified" | "window" | null;
@@ -5294,7 +5979,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5294
5979
  tryIndex: number;
5295
5980
  attemptId: string;
5296
5981
  carrier: "fresh" | "native" | "native_moved" | "packet";
5297
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5982
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5298
5983
  from: {
5299
5984
  runId: string;
5300
5985
  attemptId: string;
@@ -5316,7 +6001,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5316
6001
  root: string;
5317
6002
  bytes: number | null;
5318
6003
  retainedAt: string;
5319
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
6004
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5320
6005
  } | null | undefined;
5321
6006
  taskId?: string | undefined;
5322
6007
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -5338,6 +6023,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5338
6023
  binary_path: string | null;
5339
6024
  installed_version: string | null;
5340
6025
  } | undefined;
6026
+ captureFailure?: {
6027
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6028
+ message: string;
6029
+ causeCode?: string | undefined;
6030
+ bufferBudgetBytes?: number | undefined;
6031
+ stream?: "stderr" | "stdout" | undefined;
6032
+ drain?: "truncated" | undefined;
6033
+ cleanup?: {
6034
+ code: string | null;
6035
+ message: string;
6036
+ } | undefined;
6037
+ } | undefined;
5341
6038
  phase?: string | undefined;
5342
6039
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5343
6040
  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 +6051,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5354
6051
  message: string | null;
5355
6052
  source: string;
5356
6053
  } | null | undefined;
6054
+ poolAttempts?: {
6055
+ harnessId: string;
6056
+ profileId: string | null;
6057
+ profileDisplayName: string | null;
6058
+ requestedModel: string | null;
6059
+ attemptId: string;
6060
+ tryIndex: number;
6061
+ observedAt: string;
6062
+ phase: "after_progress" | "pre_progress" | "pre_start";
6063
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6064
+ error: string;
6065
+ vendorFailure: {
6066
+ code: string | null;
6067
+ message: string | null;
6068
+ source: string;
6069
+ } | null;
6070
+ }[] | undefined;
5357
6071
  nextActions?: string[] | undefined;
5358
6072
  } | null | undefined;
5359
6073
  project?: {
@@ -5529,7 +6243,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5529
6243
  } | null | undefined;
5530
6244
  continueFrom?: string | null | undefined;
5531
6245
  resumable?: {
5532
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6246
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5533
6247
  resetsAt: string | null;
5534
6248
  limitWindow: string | null;
5535
6249
  limitEvidence: "unspecified" | "window" | null;
@@ -5549,7 +6263,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5549
6263
  tryIndex: number;
5550
6264
  attemptId: string;
5551
6265
  carrier: "fresh" | "native" | "native_moved" | "packet";
5552
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6266
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5553
6267
  from: {
5554
6268
  runId: string;
5555
6269
  attemptId: string;
@@ -5571,7 +6285,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5571
6285
  root: string;
5572
6286
  bytes: number | null;
5573
6287
  retainedAt: string;
5574
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
6288
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5575
6289
  } | null | undefined;
5576
6290
  taskId?: string | undefined;
5577
6291
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -5593,6 +6307,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5593
6307
  binary_path: string | null;
5594
6308
  installed_version: string | null;
5595
6309
  } | undefined;
6310
+ captureFailure?: {
6311
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6312
+ message: string;
6313
+ causeCode?: string | undefined;
6314
+ bufferBudgetBytes?: number | undefined;
6315
+ stream?: "stderr" | "stdout" | undefined;
6316
+ drain?: "truncated" | undefined;
6317
+ cleanup?: {
6318
+ code: string | null;
6319
+ message: string;
6320
+ } | undefined;
6321
+ } | undefined;
5596
6322
  phase?: string | undefined;
5597
6323
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5598
6324
  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 +6335,23 @@ export declare const ControlRunDetail: z.ZodObject<{
5609
6335
  message: string | null;
5610
6336
  source: string;
5611
6337
  } | null | undefined;
6338
+ poolAttempts?: {
6339
+ harnessId: string;
6340
+ profileId: string | null;
6341
+ profileDisplayName: string | null;
6342
+ requestedModel: string | null;
6343
+ attemptId: string;
6344
+ tryIndex: number;
6345
+ observedAt: string;
6346
+ phase: "after_progress" | "pre_progress" | "pre_start";
6347
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6348
+ error: string;
6349
+ vendorFailure: {
6350
+ code: string | null;
6351
+ message: string | null;
6352
+ source: string;
6353
+ } | null;
6354
+ }[] | undefined;
5612
6355
  nextActions?: string[] | undefined;
5613
6356
  } | null | undefined;
5614
6357
  project?: {
@@ -5886,6 +6629,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5886
6629
  maxUsd: number;
5887
6630
  } | undefined;
5888
6631
  spendUsd?: number | null | undefined;
6632
+ controllableSpendUsd?: number | null | undefined;
5889
6633
  valuationUsd?: number | null | undefined;
5890
6634
  valuationKnowledge?: "estimated" | "exact" | "unknown" | undefined;
5891
6635
  remainingUsd?: number | null | undefined;
@@ -5935,6 +6679,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5935
6679
  spend_usd?: number | null | undefined;
5936
6680
  estimated?: boolean | undefined;
5937
6681
  cash_usd?: number | null | undefined;
6682
+ controllable_cash_usd?: number | null | undefined;
5938
6683
  valuation_usd?: number | null | undefined;
5939
6684
  valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
5940
6685
  } | undefined;
@@ -6100,6 +6845,18 @@ export declare const ControlRunDetail: z.ZodObject<{
6100
6845
  binary_path: string | null;
6101
6846
  installed_version: string | null;
6102
6847
  } | undefined;
6848
+ captureFailure?: {
6849
+ code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
6850
+ message: string;
6851
+ causeCode?: string | undefined;
6852
+ bufferBudgetBytes?: number | undefined;
6853
+ stream?: "stderr" | "stdout" | undefined;
6854
+ drain?: "truncated" | undefined;
6855
+ cleanup?: {
6856
+ code: string | null;
6857
+ message: string;
6858
+ } | undefined;
6859
+ } | undefined;
6103
6860
  phase?: string | undefined;
6104
6861
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
6105
6862
  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 +6873,23 @@ export declare const ControlRunDetail: z.ZodObject<{
6116
6873
  message: string | null;
6117
6874
  source: string;
6118
6875
  } | null | undefined;
6876
+ poolAttempts?: {
6877
+ harnessId: string;
6878
+ profileId: string | null;
6879
+ profileDisplayName: string | null;
6880
+ requestedModel: string | null;
6881
+ attemptId: string;
6882
+ tryIndex: number;
6883
+ observedAt: string;
6884
+ phase: "after_progress" | "pre_progress" | "pre_start";
6885
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
6886
+ error: string;
6887
+ vendorFailure: {
6888
+ code: string | null;
6889
+ message: string | null;
6890
+ source: string;
6891
+ } | null;
6892
+ }[] | undefined;
6119
6893
  nextActions?: string[] | undefined;
6120
6894
  } | null | undefined;
6121
6895
  requiredActions?: {