@claudexor/schema 4.7.0 → 4.8.2

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 (196) hide show
  1. package/dist/account-resources.d.ts +37 -37
  2. package/dist/account-routing-evidence.d.ts +14 -14
  3. package/dist/attachment.d.ts +178 -0
  4. package/dist/attachment.d.ts.map +1 -1
  5. package/dist/attachment.js +46 -0
  6. package/dist/attachment.js.map +1 -1
  7. package/dist/captured-run-start.d.ts +1105 -0
  8. package/dist/captured-run-start.d.ts.map +1 -0
  9. package/dist/captured-run-start.js +41 -0
  10. package/dist/captured-run-start.js.map +1 -0
  11. package/dist/command-summary.d.ts +1 -1
  12. package/dist/command-summary.d.ts.map +1 -1
  13. package/dist/command-summary.js +1 -0
  14. package/dist/command-summary.js.map +1 -1
  15. package/dist/control-gc.d.ts +377 -0
  16. package/dist/control-gc.d.ts.map +1 -1
  17. package/dist/control-gc.js +74 -1
  18. package/dist/control-gc.js.map +1 -1
  19. package/dist/control-harness-models.js +1 -1
  20. package/dist/control-harness-models.js.map +1 -1
  21. package/dist/control-operation-responses.d.ts +201 -9
  22. package/dist/control-operation-responses.d.ts.map +1 -1
  23. package/dist/control-operation-responses.js +7 -1
  24. package/dist/control-operation-responses.js.map +1 -1
  25. package/dist/control-run-detail.d.ts +292 -19
  26. package/dist/control-run-detail.d.ts.map +1 -1
  27. package/dist/control-run-detail.js +2 -0
  28. package/dist/control-run-detail.js.map +1 -1
  29. package/dist/control-run-failure.d.ts +29 -4
  30. package/dist/control-run-failure.d.ts.map +1 -1
  31. package/dist/control-run-failure.js +3 -0
  32. package/dist/control-run-failure.js.map +1 -1
  33. package/dist/control-run-retry.d.ts +31 -0
  34. package/dist/control-run-retry.d.ts.map +1 -1
  35. package/dist/control-run-retry.js +12 -1
  36. package/dist/control-run-retry.js.map +1 -1
  37. package/dist/control-timeline.d.ts +9 -0
  38. package/dist/control-timeline.d.ts.map +1 -1
  39. package/dist/control-timeline.js +13 -0
  40. package/dist/control-timeline.js.map +1 -1
  41. package/dist/control.d.ts +78 -5
  42. package/dist/control.d.ts.map +1 -1
  43. package/dist/control.js +7 -9
  44. package/dist/control.js.map +1 -1
  45. package/dist/credential-profile-snapshot.d.ts +28 -28
  46. package/dist/credential-profile.d.ts +1 -1
  47. package/dist/credential-profile.js +2 -2
  48. package/dist/credential-profile.js.map +1 -1
  49. package/dist/credential-store.d.ts +3 -2
  50. package/dist/credential-store.d.ts.map +1 -1
  51. package/dist/credential-store.js +5 -4
  52. package/dist/credential-store.js.map +1 -1
  53. package/dist/daemon-status.d.ts +492 -0
  54. package/dist/daemon-status.d.ts.map +1 -1
  55. package/dist/daemon-status.js +22 -0
  56. package/dist/daemon-status.js.map +1 -1
  57. package/dist/deferred-message.d.ts +2450 -0
  58. package/dist/deferred-message.d.ts.map +1 -0
  59. package/dist/deferred-message.js +186 -0
  60. package/dist/deferred-message.js.map +1 -0
  61. package/dist/events.d.ts +3 -3
  62. package/dist/events.js +1 -1
  63. package/dist/events.js.map +1 -1
  64. package/dist/harness-input.d.ts +15 -0
  65. package/dist/harness-input.d.ts.map +1 -1
  66. package/dist/harness-input.js +10 -1
  67. package/dist/harness-input.js.map +1 -1
  68. package/dist/harness-model.d.ts +65 -0
  69. package/dist/harness-model.d.ts.map +1 -1
  70. package/dist/harness-model.js +42 -0
  71. package/dist/harness-model.js.map +1 -1
  72. package/dist/harness-quota.d.ts +3 -3
  73. package/dist/harness-speech.d.ts +36 -0
  74. package/dist/harness-speech.d.ts.map +1 -0
  75. package/dist/harness-speech.js +27 -0
  76. package/dist/harness-speech.js.map +1 -0
  77. package/dist/harness.d.ts +79 -9
  78. package/dist/harness.d.ts.map +1 -1
  79. package/dist/harness.js +5 -4
  80. package/dist/harness.js.map +1 -1
  81. package/dist/index.d.ts +9 -0
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +9 -0
  84. package/dist/index.js.map +1 -1
  85. package/dist/mcp-run-result.d.ts +356 -12
  86. package/dist/mcp-run-result.d.ts.map +1 -1
  87. package/dist/mcp-run-result.js +5 -0
  88. package/dist/mcp-run-result.js.map +1 -1
  89. package/dist/mcp-run-wait.d.ts +133 -0
  90. package/dist/mcp-run-wait.d.ts.map +1 -1
  91. package/dist/mcp-run-wait.js +4 -0
  92. package/dist/mcp-run-wait.js.map +1 -1
  93. package/dist/mcp-upload.d.ts +133 -0
  94. package/dist/mcp-upload.d.ts.map +1 -0
  95. package/dist/mcp-upload.js +40 -0
  96. package/dist/mcp-upload.js.map +1 -0
  97. package/dist/quota-read.d.ts +8 -8
  98. package/dist/quota.d.ts +26 -20
  99. package/dist/quota.d.ts.map +1 -1
  100. package/dist/quota.js +11 -1
  101. package/dist/quota.js.map +1 -1
  102. package/dist/run-observation.d.ts +189 -0
  103. package/dist/run-observation.d.ts.map +1 -0
  104. package/dist/run-observation.js +99 -0
  105. package/dist/run-observation.js.map +1 -0
  106. package/dist/setup-login.d.ts +5 -5
  107. package/dist/setup.d.ts +63 -63
  108. package/dist/setup.d.ts.map +1 -1
  109. package/dist/setup.js +1 -1
  110. package/dist/setup.js.map +1 -1
  111. package/dist/task-group-runs.d.ts +258 -0
  112. package/dist/task-group-runs.d.ts.map +1 -0
  113. package/dist/task-group-runs.js +94 -0
  114. package/dist/task-group-runs.js.map +1 -0
  115. package/dist/task-group.d.ts +23 -0
  116. package/dist/task-group.d.ts.map +1 -0
  117. package/dist/task-group.js +38 -0
  118. package/dist/task-group.js.map +1 -0
  119. package/dist/telemetry.d.ts +136 -8
  120. package/dist/telemetry.d.ts.map +1 -1
  121. package/dist/telemetry.js +2 -5
  122. package/dist/telemetry.js.map +1 -1
  123. package/dist/thread-history.d.ts +12553 -0
  124. package/dist/thread-history.d.ts.map +1 -0
  125. package/dist/thread-history.js +291 -0
  126. package/dist/thread-history.js.map +1 -0
  127. package/generated/ControlAccountResetResponse.schema.json +1 -0
  128. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1 -0
  129. package/generated/ControlAccountResourcesResponse.schema.json +1 -0
  130. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  131. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1 -0
  132. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +1 -0
  133. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -0
  134. package/generated/ControlDaemonStatus.schema.json +112 -43
  135. package/generated/ControlGcLastResponse.schema.json +184 -0
  136. package/generated/ControlGcReceipt.schema.json +60 -1
  137. package/generated/ControlGcRequest.schema.json +4 -0
  138. package/generated/ControlQueuedRunInfo.schema.json +10 -0
  139. package/generated/ControlQuotaFreshnessResponse.schema.json +1 -0
  140. package/generated/ControlQuotaQueryResponse.schema.json +1 -0
  141. package/generated/ControlQuotaResponse.schema.json +1 -0
  142. package/generated/ControlRunAgainDraft.schema.json +5 -0
  143. package/generated/ControlRunControlResponse.schema.json +169 -0
  144. package/generated/ControlRunDecisionResponse.schema.json +14 -0
  145. package/generated/ControlRunDetail.schema.json +240 -2
  146. package/generated/ControlRunListResponse.schema.json +32 -2
  147. package/generated/ControlRunRetryResponse.schema.json +10 -0
  148. package/generated/ControlRunStartInfo.schema.json +10 -0
  149. package/generated/ControlRunStartRequest.schema.json +5 -0
  150. package/generated/ControlRunStartResponse.schema.json +18 -0
  151. package/generated/ControlRunSummary.schema.json +32 -2
  152. package/generated/ControlSetupJob.schema.json +2 -1
  153. package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
  154. package/generated/ControlSetupJobEvent.schema.json +2 -1
  155. package/generated/ControlSetupJobListFilter.schema.json +2 -1
  156. package/generated/ControlSetupJobListResponse.schema.json +2 -1
  157. package/generated/ControlSetupJobSnapshot.schema.json +2 -1
  158. package/generated/ControlThreadDetail.schema.json +1 -1
  159. package/generated/ControlUploadImport.schema.json +124 -0
  160. package/generated/ControlUploadImportRequest.schema.json +66 -0
  161. package/generated/DeferredMessageCall.schema.json +331 -0
  162. package/generated/DeferredMessageDetail.schema.json +917 -0
  163. package/generated/DeferredMessageMutation.schema.json +315 -0
  164. package/generated/DeferredMessageProjection.schema.json +177 -0
  165. package/generated/DeferredMessageReadInput.schema.json +20 -0
  166. package/generated/DeferredMessageReadResult.schema.json +399 -0
  167. package/generated/DeferredMessageReceipt.schema.json +193 -0
  168. package/generated/HarnessEvent.schema.json +100 -1
  169. package/generated/McpAccountsToolResult.schema.json +1 -0
  170. package/generated/McpRunHandleResult.schema.json +226 -19
  171. package/generated/McpRunToolResult.schema.json +228 -11
  172. package/generated/McpRunWaitResult.schema.json +180 -2
  173. package/generated/McpStoreIdentityInput.schema.json +11 -0
  174. package/generated/McpUploadCreateInput.schema.json +54 -0
  175. package/generated/McpUploadFinalizeInput.schema.json +40 -0
  176. package/generated/McpUploadImportInput.schema.json +52 -0
  177. package/generated/McpUploadImportLocalInput.schema.json +27 -0
  178. package/generated/McpUploadImportLocalResult.schema.json +45 -0
  179. package/generated/McpUploadTargetInput.schema.json +20 -0
  180. package/generated/ResourceAttachmentRef.schema.json +21 -0
  181. package/generated/RoutePrimaryDivergedPayload.schema.json +23 -14
  182. package/generated/RunFailure.schema.json +31 -1
  183. package/generated/RunObservationRecord.schema.json +64 -0
  184. package/generated/RunTelemetry.schema.json +83 -1
  185. package/generated/RunWaitManyInput.schema.json +54 -0
  186. package/generated/RunWaitManyResult.schema.json +110 -0
  187. package/generated/RunWaitManySummary.schema.json +75 -0
  188. package/generated/TaskGroupId.schema.json +11 -0
  189. package/generated/TaskGroupReceipt.schema.json +26 -0
  190. package/generated/TaskGroupRunsInput.schema.json +46 -0
  191. package/generated/TaskGroupRunsResult.schema.json +162 -0
  192. package/generated/ThreadHistoryInput.schema.json +48 -0
  193. package/generated/ThreadHistoryPage.schema.json +2857 -0
  194. package/generated/ThreadPromptPart.schema.json +57 -0
  195. package/generated/ThreadPromptPartInput.schema.json +41 -0
  196. package/package.json +2 -2
@@ -509,6 +509,21 @@ export declare const ControlRunDetail: z.ZodObject<{
509
509
  source: "claude_stdout";
510
510
  binary_path: string | null;
511
511
  installed_version: string | null;
512
+ }>, z.ZodObject<{
513
+ kind: z.ZodLiteral<"credential_source_unconfirmed">;
514
+ native_code: z.ZodLiteral<"grok_credential_source_unconfirmed">;
515
+ source: z.ZodLiteral<"grok_init">;
516
+ reported_source: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ kind: "credential_source_unconfirmed";
519
+ native_code: "grok_credential_source_unconfirmed";
520
+ source: "grok_init";
521
+ reported_source: string;
522
+ }, {
523
+ kind: "credential_source_unconfirmed";
524
+ native_code: "grok_credential_source_unconfirmed";
525
+ source: "grok_init";
526
+ reported_source: string;
512
527
  }>]>>;
513
528
  captureFailure: z.ZodOptional<z.ZodObject<{
514
529
  code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
@@ -552,7 +567,7 @@ export declare const ControlRunDetail: z.ZodObject<{
552
567
  }>>;
553
568
  phase: z.ZodDefault<z.ZodString>;
554
569
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
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", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
570
+ 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", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
556
571
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
557
572
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
558
573
  safeMessage: z.ZodString;
@@ -647,6 +662,11 @@ export declare const ControlRunDetail: z.ZodObject<{
647
662
  source: "claude_stdout";
648
663
  binary_path: string | null;
649
664
  installed_version: string | null;
665
+ } | {
666
+ kind: "credential_source_unconfirmed";
667
+ native_code: "grok_credential_source_unconfirmed";
668
+ source: "grok_init";
669
+ reported_source: string;
650
670
  } | undefined;
651
671
  captureFailure?: {
652
672
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -662,7 +682,7 @@ export declare const ControlRunDetail: z.ZodObject<{
662
682
  } | undefined;
663
683
  phase: string;
664
684
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
665
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
685
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
666
686
  harnessId: string | null;
667
687
  attemptId: string | null;
668
688
  safeMessage: string;
@@ -709,6 +729,11 @@ export declare const ControlRunDetail: z.ZodObject<{
709
729
  source: "claude_stdout";
710
730
  binary_path: string | null;
711
731
  installed_version: string | null;
732
+ } | {
733
+ kind: "credential_source_unconfirmed";
734
+ native_code: "grok_credential_source_unconfirmed";
735
+ source: "grok_init";
736
+ reported_source: string;
712
737
  } | undefined;
713
738
  captureFailure?: {
714
739
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -724,7 +749,7 @@ export declare const ControlRunDetail: z.ZodObject<{
724
749
  } | undefined;
725
750
  phase?: string | undefined;
726
751
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
727
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
752
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
728
753
  harnessId?: string | null | undefined;
729
754
  attemptId?: string | null | undefined;
730
755
  safeMessage: string;
@@ -1272,6 +1297,11 @@ export declare const ControlRunDetail: z.ZodObject<{
1272
1297
  source: "claude_stdout";
1273
1298
  binary_path: string | null;
1274
1299
  installed_version: string | null;
1300
+ } | {
1301
+ kind: "credential_source_unconfirmed";
1302
+ native_code: "grok_credential_source_unconfirmed";
1303
+ source: "grok_init";
1304
+ reported_source: string;
1275
1305
  } | undefined;
1276
1306
  captureFailure?: {
1277
1307
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -1287,7 +1317,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1287
1317
  } | undefined;
1288
1318
  phase: string;
1289
1319
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1290
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
1320
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
1291
1321
  harnessId: string | null;
1292
1322
  attemptId: string | null;
1293
1323
  safeMessage: string;
@@ -1555,6 +1585,11 @@ export declare const ControlRunDetail: z.ZodObject<{
1555
1585
  source: "claude_stdout";
1556
1586
  binary_path: string | null;
1557
1587
  installed_version: string | null;
1588
+ } | {
1589
+ kind: "credential_source_unconfirmed";
1590
+ native_code: "grok_credential_source_unconfirmed";
1591
+ source: "grok_init";
1592
+ reported_source: string;
1558
1593
  } | undefined;
1559
1594
  captureFailure?: {
1560
1595
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -1570,7 +1605,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1570
1605
  } | undefined;
1571
1606
  phase?: string | undefined;
1572
1607
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1573
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
1608
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
1574
1609
  harnessId?: string | null | undefined;
1575
1610
  attemptId?: string | null | undefined;
1576
1611
  safeMessage: string;
@@ -1762,6 +1797,97 @@ export declare const ControlRunDetail: z.ZodObject<{
1762
1797
  startedAt?: string | undefined;
1763
1798
  finishedAt?: string | undefined;
1764
1799
  }>;
1800
+ deferredMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1801
+ draftId: z.ZodString;
1802
+ revision: z.ZodNumber;
1803
+ state: z.ZodEnum<["waiting", "held", "dispatched", "cleared"]>;
1804
+ predecessorJobId: z.ZodString;
1805
+ predecessorRunId: z.ZodNullable<z.ZodString>;
1806
+ predecessorResult: z.ZodString;
1807
+ hold: z.ZodNullable<z.ZodObject<{
1808
+ code: z.ZodEnum<["predecessor_failed", "predecessor_cancelled", "predecessor_interrupted", "predecessor_needs_input", "predecessor_incomplete", "predecessor_facts_unavailable", "predecessor_work_unverified", "predecessor_checks_failed", "predecessor_review_blocked", "predecessor_output_unavailable", "settlement_unknown", "stop_requested", "shutdown", "restart_requires_controller", "partition_retired", "admission_refused"]>;
1809
+ problem: z.ZodOptional<z.ZodObject<{
1810
+ message: z.ZodString;
1811
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1812
+ retryable: z.ZodDefault<z.ZodBoolean>;
1813
+ required_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1814
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1815
+ }, "strict", z.ZodTypeAny, {
1816
+ message: string;
1817
+ code: string | null;
1818
+ retryable: boolean;
1819
+ required_actions: string[];
1820
+ context: Record<string, unknown>;
1821
+ }, {
1822
+ message: string;
1823
+ code?: string | null | undefined;
1824
+ retryable?: boolean | undefined;
1825
+ required_actions?: string[] | undefined;
1826
+ context?: Record<string, unknown> | undefined;
1827
+ }>>;
1828
+ }, "strict", z.ZodTypeAny, {
1829
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
1830
+ problem?: {
1831
+ message: string;
1832
+ code: string | null;
1833
+ retryable: boolean;
1834
+ required_actions: string[];
1835
+ context: Record<string, unknown>;
1836
+ } | undefined;
1837
+ }, {
1838
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
1839
+ problem?: {
1840
+ message: string;
1841
+ code?: string | null | undefined;
1842
+ retryable?: boolean | undefined;
1843
+ required_actions?: string[] | undefined;
1844
+ context?: Record<string, unknown> | undefined;
1845
+ } | undefined;
1846
+ }>>;
1847
+ dispatchedRevision: z.ZodNullable<z.ZodNumber>;
1848
+ successorJobId: z.ZodNullable<z.ZodString>;
1849
+ successorRunId: z.ZodNullable<z.ZodString>;
1850
+ }, "strict", z.ZodTypeAny, {
1851
+ draftId: string;
1852
+ revision: number;
1853
+ state: "cleared" | "dispatched" | "held" | "waiting";
1854
+ predecessorJobId: string;
1855
+ predecessorRunId: string | null;
1856
+ predecessorResult: string;
1857
+ hold: {
1858
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
1859
+ problem?: {
1860
+ message: string;
1861
+ code: string | null;
1862
+ retryable: boolean;
1863
+ required_actions: string[];
1864
+ context: Record<string, unknown>;
1865
+ } | undefined;
1866
+ } | null;
1867
+ dispatchedRevision: number | null;
1868
+ successorJobId: string | null;
1869
+ successorRunId: string | null;
1870
+ }, {
1871
+ draftId: string;
1872
+ revision: number;
1873
+ state: "cleared" | "dispatched" | "held" | "waiting";
1874
+ predecessorJobId: string;
1875
+ predecessorRunId: string | null;
1876
+ predecessorResult: string;
1877
+ hold: {
1878
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
1879
+ problem?: {
1880
+ message: string;
1881
+ code?: string | null | undefined;
1882
+ retryable?: boolean | undefined;
1883
+ required_actions?: string[] | undefined;
1884
+ context?: Record<string, unknown> | undefined;
1885
+ } | undefined;
1886
+ } | null;
1887
+ dispatchedRevision: number | null;
1888
+ successorJobId: string | null;
1889
+ successorRunId: string | null;
1890
+ }>>>;
1765
1891
  children: z.ZodDefault<z.ZodArray<z.ZodObject<{
1766
1892
  jobId: z.ZodString;
1767
1893
  runId: z.ZodString;
@@ -2002,6 +2128,21 @@ export declare const ControlRunDetail: z.ZodObject<{
2002
2128
  source: "claude_stdout";
2003
2129
  binary_path: string | null;
2004
2130
  installed_version: string | null;
2131
+ }>, z.ZodObject<{
2132
+ kind: z.ZodLiteral<"credential_source_unconfirmed">;
2133
+ native_code: z.ZodLiteral<"grok_credential_source_unconfirmed">;
2134
+ source: z.ZodLiteral<"grok_init">;
2135
+ reported_source: z.ZodString;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ kind: "credential_source_unconfirmed";
2138
+ native_code: "grok_credential_source_unconfirmed";
2139
+ source: "grok_init";
2140
+ reported_source: string;
2141
+ }, {
2142
+ kind: "credential_source_unconfirmed";
2143
+ native_code: "grok_credential_source_unconfirmed";
2144
+ source: "grok_init";
2145
+ reported_source: string;
2005
2146
  }>]>>;
2006
2147
  captureFailure: z.ZodOptional<z.ZodObject<{
2007
2148
  code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
@@ -2045,7 +2186,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2045
2186
  }>>;
2046
2187
  phase: z.ZodDefault<z.ZodString>;
2047
2188
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
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", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
2189
+ 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", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
2049
2190
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2050
2191
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2051
2192
  safeMessage: z.ZodString;
@@ -2140,6 +2281,11 @@ export declare const ControlRunDetail: z.ZodObject<{
2140
2281
  source: "claude_stdout";
2141
2282
  binary_path: string | null;
2142
2283
  installed_version: string | null;
2284
+ } | {
2285
+ kind: "credential_source_unconfirmed";
2286
+ native_code: "grok_credential_source_unconfirmed";
2287
+ source: "grok_init";
2288
+ reported_source: string;
2143
2289
  } | undefined;
2144
2290
  captureFailure?: {
2145
2291
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -2155,7 +2301,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2155
2301
  } | undefined;
2156
2302
  phase: string;
2157
2303
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2158
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
2304
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
2159
2305
  harnessId: string | null;
2160
2306
  attemptId: string | null;
2161
2307
  safeMessage: string;
@@ -2202,6 +2348,11 @@ export declare const ControlRunDetail: z.ZodObject<{
2202
2348
  source: "claude_stdout";
2203
2349
  binary_path: string | null;
2204
2350
  installed_version: string | null;
2351
+ } | {
2352
+ kind: "credential_source_unconfirmed";
2353
+ native_code: "grok_credential_source_unconfirmed";
2354
+ source: "grok_init";
2355
+ reported_source: string;
2205
2356
  } | undefined;
2206
2357
  captureFailure?: {
2207
2358
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -2217,7 +2368,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2217
2368
  } | undefined;
2218
2369
  phase?: string | undefined;
2219
2370
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2220
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
2371
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
2221
2372
  harnessId?: string | null | undefined;
2222
2373
  attemptId?: string | null | undefined;
2223
2374
  safeMessage: string;
@@ -2765,6 +2916,11 @@ export declare const ControlRunDetail: z.ZodObject<{
2765
2916
  source: "claude_stdout";
2766
2917
  binary_path: string | null;
2767
2918
  installed_version: string | null;
2919
+ } | {
2920
+ kind: "credential_source_unconfirmed";
2921
+ native_code: "grok_credential_source_unconfirmed";
2922
+ source: "grok_init";
2923
+ reported_source: string;
2768
2924
  } | undefined;
2769
2925
  captureFailure?: {
2770
2926
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -2780,7 +2936,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2780
2936
  } | undefined;
2781
2937
  phase: string;
2782
2938
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2783
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
2939
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
2784
2940
  harnessId: string | null;
2785
2941
  attemptId: string | null;
2786
2942
  safeMessage: string;
@@ -3048,6 +3204,11 @@ export declare const ControlRunDetail: z.ZodObject<{
3048
3204
  source: "claude_stdout";
3049
3205
  binary_path: string | null;
3050
3206
  installed_version: string | null;
3207
+ } | {
3208
+ kind: "credential_source_unconfirmed";
3209
+ native_code: "grok_credential_source_unconfirmed";
3210
+ source: "grok_init";
3211
+ reported_source: string;
3051
3212
  } | undefined;
3052
3213
  captureFailure?: {
3053
3214
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -3063,7 +3224,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3063
3224
  } | undefined;
3064
3225
  phase?: string | undefined;
3065
3226
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3066
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
3227
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
3067
3228
  harnessId?: string | null | undefined;
3068
3229
  attemptId?: string | null | undefined;
3069
3230
  safeMessage: string;
@@ -3709,6 +3870,9 @@ export declare const ControlRunDetail: z.ZodObject<{
3709
3870
  detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3710
3871
  textKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<["thinking", "message"]>>>;
3711
3872
  textDelta: z.ZodDefault<z.ZodBoolean>;
3873
+ speechKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3874
+ speechOp: z.ZodDefault<z.ZodNullable<z.ZodEnum<["fragment", "complete", "abandoned"]>>>;
3875
+ textFinal: z.ZodDefault<z.ZodBoolean>;
3712
3876
  severity: z.ZodDefault<z.ZodEnum<["info", "warning", "error"]>>;
3713
3877
  toolName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3714
3878
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3726,6 +3890,9 @@ export declare const ControlRunDetail: z.ZodObject<{
3726
3890
  detail: string | null;
3727
3891
  textKind: "message" | "thinking" | null;
3728
3892
  textDelta: boolean;
3893
+ speechKey: string | null;
3894
+ speechOp: "abandoned" | "complete" | "fragment" | null;
3895
+ textFinal: boolean;
3729
3896
  severity: "error" | "info" | "warning";
3730
3897
  toolName: string | null;
3731
3898
  target: string | null;
@@ -3743,6 +3910,9 @@ export declare const ControlRunDetail: z.ZodObject<{
3743
3910
  detail?: string | null | undefined;
3744
3911
  textKind?: "message" | "thinking" | null | undefined;
3745
3912
  textDelta?: boolean | undefined;
3913
+ speechKey?: string | null | undefined;
3914
+ speechOp?: "abandoned" | "complete" | "fragment" | null | undefined;
3915
+ textFinal?: boolean | undefined;
3746
3916
  severity?: "error" | "info" | "warning" | undefined;
3747
3917
  toolName?: string | null | undefined;
3748
3918
  target?: string | null | undefined;
@@ -4676,6 +4846,21 @@ export declare const ControlRunDetail: z.ZodObject<{
4676
4846
  source: "claude_stdout";
4677
4847
  binary_path: string | null;
4678
4848
  installed_version: string | null;
4849
+ }>, z.ZodObject<{
4850
+ kind: z.ZodLiteral<"credential_source_unconfirmed">;
4851
+ native_code: z.ZodLiteral<"grok_credential_source_unconfirmed">;
4852
+ source: z.ZodLiteral<"grok_init">;
4853
+ reported_source: z.ZodString;
4854
+ }, "strip", z.ZodTypeAny, {
4855
+ kind: "credential_source_unconfirmed";
4856
+ native_code: "grok_credential_source_unconfirmed";
4857
+ source: "grok_init";
4858
+ reported_source: string;
4859
+ }, {
4860
+ kind: "credential_source_unconfirmed";
4861
+ native_code: "grok_credential_source_unconfirmed";
4862
+ source: "grok_init";
4863
+ reported_source: string;
4679
4864
  }>]>>;
4680
4865
  captureFailure: z.ZodOptional<z.ZodObject<{
4681
4866
  code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
@@ -4719,7 +4904,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4719
4904
  }>>;
4720
4905
  phase: z.ZodDefault<z.ZodString>;
4721
4906
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
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", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
4907
+ 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", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
4723
4908
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4724
4909
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4725
4910
  safeMessage: z.ZodString;
@@ -4814,6 +4999,11 @@ export declare const ControlRunDetail: z.ZodObject<{
4814
4999
  source: "claude_stdout";
4815
5000
  binary_path: string | null;
4816
5001
  installed_version: string | null;
5002
+ } | {
5003
+ kind: "credential_source_unconfirmed";
5004
+ native_code: "grok_credential_source_unconfirmed";
5005
+ source: "grok_init";
5006
+ reported_source: string;
4817
5007
  } | undefined;
4818
5008
  captureFailure?: {
4819
5009
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -4829,7 +5019,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4829
5019
  } | undefined;
4830
5020
  phase: string;
4831
5021
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4832
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
5022
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
4833
5023
  harnessId: string | null;
4834
5024
  attemptId: string | null;
4835
5025
  safeMessage: string;
@@ -4876,6 +5066,11 @@ export declare const ControlRunDetail: z.ZodObject<{
4876
5066
  source: "claude_stdout";
4877
5067
  binary_path: string | null;
4878
5068
  installed_version: string | null;
5069
+ } | {
5070
+ kind: "credential_source_unconfirmed";
5071
+ native_code: "grok_credential_source_unconfirmed";
5072
+ source: "grok_init";
5073
+ reported_source: string;
4879
5074
  } | undefined;
4880
5075
  captureFailure?: {
4881
5076
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -4891,7 +5086,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4891
5086
  } | undefined;
4892
5087
  phase?: string | undefined;
4893
5088
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4894
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
5089
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
4895
5090
  harnessId?: string | null | undefined;
4896
5091
  attemptId?: string | null | undefined;
4897
5092
  safeMessage: string;
@@ -5044,6 +5239,11 @@ export declare const ControlRunDetail: z.ZodObject<{
5044
5239
  source: "claude_stdout";
5045
5240
  binary_path: string | null;
5046
5241
  installed_version: string | null;
5242
+ } | {
5243
+ kind: "credential_source_unconfirmed";
5244
+ native_code: "grok_credential_source_unconfirmed";
5245
+ source: "grok_init";
5246
+ reported_source: string;
5047
5247
  } | undefined;
5048
5248
  captureFailure?: {
5049
5249
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -5059,7 +5259,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5059
5259
  } | undefined;
5060
5260
  phase: string;
5061
5261
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5062
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
5262
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
5063
5263
  harnessId: string | null;
5064
5264
  attemptId: string | null;
5065
5265
  safeMessage: string;
@@ -5251,6 +5451,27 @@ export declare const ControlRunDetail: z.ZodObject<{
5251
5451
  startedAt?: string | undefined;
5252
5452
  finishedAt?: string | undefined;
5253
5453
  };
5454
+ deferredMessage?: {
5455
+ draftId: string;
5456
+ revision: number;
5457
+ state: "cleared" | "dispatched" | "held" | "waiting";
5458
+ predecessorJobId: string;
5459
+ predecessorRunId: string | null;
5460
+ predecessorResult: string;
5461
+ hold: {
5462
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
5463
+ problem?: {
5464
+ message: string;
5465
+ code: string | null;
5466
+ retryable: boolean;
5467
+ required_actions: string[];
5468
+ context: Record<string, unknown>;
5469
+ } | undefined;
5470
+ } | null;
5471
+ dispatchedRevision: number | null;
5472
+ successorJobId: string | null;
5473
+ successorRunId: string | null;
5474
+ } | null | undefined;
5254
5475
  children: {
5255
5476
  jobId: string;
5256
5477
  runId: string;
@@ -5328,6 +5549,11 @@ export declare const ControlRunDetail: z.ZodObject<{
5328
5549
  source: "claude_stdout";
5329
5550
  binary_path: string | null;
5330
5551
  installed_version: string | null;
5552
+ } | {
5553
+ kind: "credential_source_unconfirmed";
5554
+ native_code: "grok_credential_source_unconfirmed";
5555
+ source: "grok_init";
5556
+ reported_source: string;
5331
5557
  } | undefined;
5332
5558
  captureFailure?: {
5333
5559
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -5343,7 +5569,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5343
5569
  } | undefined;
5344
5570
  phase: string;
5345
5571
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5346
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
5572
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
5347
5573
  harnessId: string | null;
5348
5574
  attemptId: string | null;
5349
5575
  safeMessage: string;
@@ -5635,6 +5861,9 @@ export declare const ControlRunDetail: z.ZodObject<{
5635
5861
  detail: string | null;
5636
5862
  textKind: "message" | "thinking" | null;
5637
5863
  textDelta: boolean;
5864
+ speechKey: string | null;
5865
+ speechOp: "abandoned" | "complete" | "fragment" | null;
5866
+ textFinal: boolean;
5638
5867
  severity: "error" | "info" | "warning";
5639
5868
  toolName: string | null;
5640
5869
  target: string | null;
@@ -5866,6 +6095,11 @@ export declare const ControlRunDetail: z.ZodObject<{
5866
6095
  source: "claude_stdout";
5867
6096
  binary_path: string | null;
5868
6097
  installed_version: string | null;
6098
+ } | {
6099
+ kind: "credential_source_unconfirmed";
6100
+ native_code: "grok_credential_source_unconfirmed";
6101
+ source: "grok_init";
6102
+ reported_source: string;
5869
6103
  } | undefined;
5870
6104
  captureFailure?: {
5871
6105
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -5881,7 +6115,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5881
6115
  } | undefined;
5882
6116
  phase: string;
5883
6117
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5884
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
6118
+ code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
5885
6119
  harnessId: string | null;
5886
6120
  attemptId: string | null;
5887
6121
  safeMessage: string;
@@ -6022,6 +6256,11 @@ export declare const ControlRunDetail: z.ZodObject<{
6022
6256
  source: "claude_stdout";
6023
6257
  binary_path: string | null;
6024
6258
  installed_version: string | null;
6259
+ } | {
6260
+ kind: "credential_source_unconfirmed";
6261
+ native_code: "grok_credential_source_unconfirmed";
6262
+ source: "grok_init";
6263
+ reported_source: string;
6025
6264
  } | undefined;
6026
6265
  captureFailure?: {
6027
6266
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -6037,7 +6276,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6037
6276
  } | undefined;
6038
6277
  phase?: string | undefined;
6039
6278
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
6040
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
6279
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
6041
6280
  harnessId?: string | null | undefined;
6042
6281
  attemptId?: string | null | undefined;
6043
6282
  safeMessage: string;
@@ -6229,6 +6468,27 @@ export declare const ControlRunDetail: z.ZodObject<{
6229
6468
  startedAt?: string | undefined;
6230
6469
  finishedAt?: string | undefined;
6231
6470
  };
6471
+ deferredMessage?: {
6472
+ draftId: string;
6473
+ revision: number;
6474
+ state: "cleared" | "dispatched" | "held" | "waiting";
6475
+ predecessorJobId: string;
6476
+ predecessorRunId: string | null;
6477
+ predecessorResult: string;
6478
+ hold: {
6479
+ code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
6480
+ problem?: {
6481
+ message: string;
6482
+ code?: string | null | undefined;
6483
+ retryable?: boolean | undefined;
6484
+ required_actions?: string[] | undefined;
6485
+ context?: Record<string, unknown> | undefined;
6486
+ } | undefined;
6487
+ } | null;
6488
+ dispatchedRevision: number | null;
6489
+ successorJobId: string | null;
6490
+ successorRunId: string | null;
6491
+ } | null | undefined;
6232
6492
  children?: {
6233
6493
  jobId: string;
6234
6494
  runId: string;
@@ -6306,6 +6566,11 @@ export declare const ControlRunDetail: z.ZodObject<{
6306
6566
  source: "claude_stdout";
6307
6567
  binary_path: string | null;
6308
6568
  installed_version: string | null;
6569
+ } | {
6570
+ kind: "credential_source_unconfirmed";
6571
+ native_code: "grok_credential_source_unconfirmed";
6572
+ source: "grok_init";
6573
+ reported_source: string;
6309
6574
  } | undefined;
6310
6575
  captureFailure?: {
6311
6576
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -6321,7 +6586,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6321
6586
  } | undefined;
6322
6587
  phase?: string | undefined;
6323
6588
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
6324
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
6589
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
6325
6590
  harnessId?: string | null | undefined;
6326
6591
  attemptId?: string | null | undefined;
6327
6592
  safeMessage: string;
@@ -6613,6 +6878,9 @@ export declare const ControlRunDetail: z.ZodObject<{
6613
6878
  detail?: string | null | undefined;
6614
6879
  textKind?: "message" | "thinking" | null | undefined;
6615
6880
  textDelta?: boolean | undefined;
6881
+ speechKey?: string | null | undefined;
6882
+ speechOp?: "abandoned" | "complete" | "fragment" | null | undefined;
6883
+ textFinal?: boolean | undefined;
6616
6884
  severity?: "error" | "info" | "warning" | undefined;
6617
6885
  toolName?: string | null | undefined;
6618
6886
  target?: string | null | undefined;
@@ -6844,6 +7112,11 @@ export declare const ControlRunDetail: z.ZodObject<{
6844
7112
  source: "claude_stdout";
6845
7113
  binary_path: string | null;
6846
7114
  installed_version: string | null;
7115
+ } | {
7116
+ kind: "credential_source_unconfirmed";
7117
+ native_code: "grok_credential_source_unconfirmed";
7118
+ source: "grok_init";
7119
+ reported_source: string;
6847
7120
  } | undefined;
6848
7121
  captureFailure?: {
6849
7122
  code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
@@ -6859,7 +7132,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6859
7132
  } | undefined;
6860
7133
  phase?: string | undefined;
6861
7134
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
6862
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "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;
7135
+ code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "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;
6863
7136
  harnessId?: string | null | undefined;
6864
7137
  attemptId?: string | null | undefined;
6865
7138
  safeMessage: string;