@claudexor/schema 5.0.2 → 5.1.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 (221) hide show
  1. package/dist/account-routing-evidence.d.ts +256 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -1
  3. package/dist/account-routing-evidence.js +27 -2
  4. package/dist/account-routing-evidence.js.map +1 -1
  5. package/dist/agent-capabilities.d.ts +3 -0
  6. package/dist/agent-capabilities.d.ts.map +1 -1
  7. package/dist/agent-capabilities.js +6 -2
  8. package/dist/agent-capabilities.js.map +1 -1
  9. package/dist/attachment.d.ts +103 -6
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +32 -6
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/browser-evidence.d.ts +85 -0
  14. package/dist/browser-evidence.d.ts.map +1 -0
  15. package/dist/browser-evidence.js +72 -0
  16. package/dist/browser-evidence.js.map +1 -0
  17. package/dist/config.d.ts.map +1 -1
  18. package/dist/config.js +1 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/control-gc.d.ts +30 -0
  21. package/dist/control-gc.d.ts.map +1 -1
  22. package/dist/control-gc.js +28 -1
  23. package/dist/control-gc.js.map +1 -1
  24. package/dist/control-operation-responses.d.ts +438 -36
  25. package/dist/control-operation-responses.d.ts.map +1 -1
  26. package/dist/control-operation-responses.js +11 -2
  27. package/dist/control-operation-responses.js.map +1 -1
  28. package/dist/control-process-scope.d.ts +34 -0
  29. package/dist/control-process-scope.d.ts.map +1 -1
  30. package/dist/control-process-scope.js +13 -0
  31. package/dist/control-process-scope.js.map +1 -1
  32. package/dist/control-run-detail.d.ts +785 -89
  33. package/dist/control-run-detail.d.ts.map +1 -1
  34. package/dist/control-run-failure.d.ts +29 -6
  35. package/dist/control-run-failure.d.ts.map +1 -1
  36. package/dist/control-run-failure.js +28 -3
  37. package/dist/control-run-failure.js.map +1 -1
  38. package/dist/control-trust.d.ts +8 -0
  39. package/dist/control-trust.d.ts.map +1 -1
  40. package/dist/control-trust.js +4 -0
  41. package/dist/control-trust.js.map +1 -1
  42. package/dist/control-web-evidence.d.ts +125 -0
  43. package/dist/control-web-evidence.d.ts.map +1 -0
  44. package/dist/control-web-evidence.js +109 -0
  45. package/dist/control-web-evidence.js.map +1 -0
  46. package/dist/control.d.ts +292 -98
  47. package/dist/control.d.ts.map +1 -1
  48. package/dist/control.js +43 -49
  49. package/dist/control.js.map +1 -1
  50. package/dist/credential-profile.d.ts +4 -3
  51. package/dist/credential-profile.d.ts.map +1 -1
  52. package/dist/credential-profile.js +4 -3
  53. package/dist/credential-profile.js.map +1 -1
  54. package/dist/decision.d.ts +9 -9
  55. package/dist/decision.d.ts.map +1 -1
  56. package/dist/decision.js +2 -0
  57. package/dist/decision.js.map +1 -1
  58. package/dist/deferred-message.d.ts +646 -0
  59. package/dist/deferred-message.d.ts.map +1 -1
  60. package/dist/deferred-message.js +16 -2
  61. package/dist/deferred-message.js.map +1 -1
  62. package/dist/events.d.ts +6 -6
  63. package/dist/events.d.ts.map +1 -1
  64. package/dist/events.js +1 -0
  65. package/dist/events.js.map +1 -1
  66. package/dist/harness-confinement.js +1 -1
  67. package/dist/harness-confinement.js.map +1 -1
  68. package/dist/harness-input.d.ts +12 -0
  69. package/dist/harness-input.d.ts.map +1 -1
  70. package/dist/harness-input.js +11 -1
  71. package/dist/harness-input.js.map +1 -1
  72. package/dist/harness-interaction.d.ts +20 -0
  73. package/dist/harness-interaction.d.ts.map +1 -1
  74. package/dist/harness-interaction.js +36 -0
  75. package/dist/harness-interaction.js.map +1 -1
  76. package/dist/harness.d.ts +95 -19
  77. package/dist/harness.d.ts.map +1 -1
  78. package/dist/harness.js +16 -15
  79. package/dist/harness.js.map +1 -1
  80. package/dist/index.d.ts +4 -0
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +4 -0
  83. package/dist/index.js.map +1 -1
  84. package/dist/mcp-run-result.d.ts +363 -50
  85. package/dist/mcp-run-result.d.ts.map +1 -1
  86. package/dist/mcp-run-wait.d.ts +126 -0
  87. package/dist/mcp-run-wait.d.ts.map +1 -1
  88. package/dist/operation.d.ts +1 -1
  89. package/dist/operation.d.ts.map +1 -1
  90. package/dist/operation.js +1 -1
  91. package/dist/operation.js.map +1 -1
  92. package/dist/process-scope.d.ts +154 -0
  93. package/dist/process-scope.d.ts.map +1 -1
  94. package/dist/process-scope.js +16 -1
  95. package/dist/process-scope.js.map +1 -1
  96. package/dist/quota.d.ts +14 -0
  97. package/dist/quota.d.ts.map +1 -1
  98. package/dist/quota.js +14 -0
  99. package/dist/quota.js.map +1 -1
  100. package/dist/rate-limit.d.ts +3 -0
  101. package/dist/rate-limit.d.ts.map +1 -1
  102. package/dist/rate-limit.js +4 -0
  103. package/dist/rate-limit.js.map +1 -1
  104. package/dist/raw.d.ts.map +1 -1
  105. package/dist/raw.js +11 -5
  106. package/dist/raw.js.map +1 -1
  107. package/dist/route-controls.d.ts +49 -0
  108. package/dist/route-controls.d.ts.map +1 -0
  109. package/dist/route-controls.js +53 -0
  110. package/dist/route-controls.js.map +1 -0
  111. package/dist/route-health.d.ts +23 -23
  112. package/dist/route-health.js +1 -1
  113. package/dist/route-health.js.map +1 -1
  114. package/dist/run-continuation.d.ts +6 -6
  115. package/dist/run-continuity.d.ts +7 -7
  116. package/dist/run-continuity.d.ts.map +1 -1
  117. package/dist/run-continuity.js +2 -1
  118. package/dist/run-continuity.js.map +1 -1
  119. package/dist/run-facts.d.ts +5 -5
  120. package/dist/run-facts.js +1 -1
  121. package/dist/run-facts.js.map +1 -1
  122. package/dist/status-projection.d.ts +3 -2
  123. package/dist/status-projection.d.ts.map +1 -1
  124. package/dist/status-projection.js +5 -2
  125. package/dist/status-projection.js.map +1 -1
  126. package/dist/task-group.d.ts +3 -0
  127. package/dist/task-group.d.ts.map +1 -1
  128. package/dist/task-group.js +11 -1
  129. package/dist/task-group.js.map +1 -1
  130. package/dist/task.d.ts +2 -2
  131. package/dist/task.d.ts.map +1 -1
  132. package/dist/task.js +4 -4
  133. package/dist/task.js.map +1 -1
  134. package/dist/telemetry.d.ts +602 -117
  135. package/dist/telemetry.d.ts.map +1 -1
  136. package/dist/telemetry.js +17 -88
  137. package/dist/telemetry.js.map +1 -1
  138. package/dist/thread-export.d.ts +847 -0
  139. package/dist/thread-export.d.ts.map +1 -0
  140. package/dist/thread-export.js +238 -0
  141. package/dist/thread-export.js.map +1 -0
  142. package/dist/thread-history.d.ts +248 -132
  143. package/dist/thread-history.d.ts.map +1 -1
  144. package/dist/thread.d.ts +72 -6
  145. package/dist/thread.d.ts.map +1 -1
  146. package/dist/thread.js +19 -3
  147. package/dist/thread.js.map +1 -1
  148. package/dist/tool-ref.d.ts +172 -21
  149. package/dist/tool-ref.d.ts.map +1 -1
  150. package/dist/tool-ref.js +114 -29
  151. package/dist/tool-ref.js.map +1 -1
  152. package/dist/web-evidence.d.ts +91 -0
  153. package/dist/web-evidence.d.ts.map +1 -0
  154. package/dist/web-evidence.js +77 -0
  155. package/dist/web-evidence.js.map +1 -0
  156. package/dist/workspace.js +1 -1
  157. package/dist/workspace.js.map +1 -1
  158. package/generated/AgentCapabilityCatalog.schema.json +20 -2
  159. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
  160. package/generated/ControlCredentialProfilesQueryResponse.schema.json +2 -2
  161. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2 -2
  162. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +2 -2
  163. package/generated/ControlGcLastResponse.schema.json +22 -0
  164. package/generated/ControlGcReceipt.schema.json +13 -1
  165. package/generated/ControlHarnessListResponse.schema.json +2 -2
  166. package/generated/ControlQueuedRunInfo.schema.json +1 -1
  167. package/generated/ControlResource.schema.json +5 -0
  168. package/generated/ControlResourceRelease.schema.json +44 -0
  169. package/generated/ControlResourceReleaseRequest.schema.json +27 -0
  170. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  171. package/generated/ControlRouteHealth.schema.json +13 -1
  172. package/generated/ControlRunControlResponse.schema.json +41 -3
  173. package/generated/ControlRunDecisionRequest.schema.json +8 -2
  174. package/generated/ControlRunDecisionResponse.schema.json +4 -3
  175. package/generated/ControlRunDetail.schema.json +337 -10
  176. package/generated/ControlRunListResponse.schema.json +296 -7
  177. package/generated/ControlRunRetryResponse.schema.json +1 -1
  178. package/generated/ControlRunStartInfo.schema.json +1 -1
  179. package/generated/ControlRunStartResponse.schema.json +2 -2
  180. package/generated/ControlRunSummary.schema.json +296 -7
  181. package/generated/ControlThreadDetail.schema.json +1 -0
  182. package/generated/ControlThreadTurnResponse.schema.json +9 -0
  183. package/generated/ControlTrustListResponse.schema.json +8 -0
  184. package/generated/ControlTrustState.schema.json +8 -0
  185. package/generated/ControlUploadImport.schema.json +12 -2
  186. package/generated/ControlUploadImportRequest.schema.json +5 -0
  187. package/generated/DecisionRecord.schema.json +1 -0
  188. package/generated/DeferredMessageDetail.schema.json +43 -7
  189. package/generated/DeferredMessageProjection.schema.json +41 -3
  190. package/generated/DeferredMessageReadResult.schema.json +42 -4
  191. package/generated/DeferredMessageReceipt.schema.json +41 -3
  192. package/generated/EnvelopeCustody.schema.json +3 -2
  193. package/generated/GlobalConfig.schema.json +1 -1
  194. package/generated/HarnessEvent.schema.json +140 -4
  195. package/generated/HarnessManifest.schema.json +2 -2
  196. package/generated/HarnessStatusDto.schema.json +2 -2
  197. package/generated/McpAccountsToolResult.schema.json +62 -2
  198. package/generated/McpRunHandleResult.schema.json +90 -6
  199. package/generated/McpRunToolResult.schema.json +89 -6
  200. package/generated/McpRunWaitResult.schema.json +41 -3
  201. package/generated/McpThreadTurnResult.schema.json +9 -0
  202. package/generated/RawContextPacket.schema.json +6 -4
  203. package/generated/RawGitPatchEnvelope.schema.json +1 -1
  204. package/generated/RoutePoolDegradedPayload.schema.json +2 -1
  205. package/generated/RunContinuityReceipt.schema.json +2 -1
  206. package/generated/RunFacts.schema.json +1 -0
  207. package/generated/RunFailure.schema.json +46 -2
  208. package/generated/RunResumable.schema.json +2 -1
  209. package/generated/RunTelemetry.schema.json +288 -7
  210. package/generated/TaskContract.schema.json +3 -3
  211. package/generated/TaskGroupReceipt.schema.json +1 -1
  212. package/generated/Thread.schema.json +41 -0
  213. package/generated/ThreadExportManifest.schema.json +461 -0
  214. package/generated/ThreadExportReceipt.schema.json +94 -0
  215. package/generated/ThreadHistoryPage.schema.json +47 -2
  216. package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
  217. package/generated/ThreadRetireRequest.schema.json +41 -0
  218. package/generated/ThreadRetirement.schema.json +175 -0
  219. package/generated/ThreadTurn.schema.json +1 -1
  220. package/generated/WorkspaceEnvelope.schema.json +1 -1
  221. package/package.json +2 -2
@@ -307,7 +307,7 @@ export declare const ControlRunDetail: z.ZodObject<{
307
307
  }>>>;
308
308
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
309
  resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
310
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "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", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
311
311
  resetsAt: z.ZodNullable<z.ZodString>;
312
312
  limitWindow: z.ZodNullable<z.ZodString>;
313
313
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -337,7 +337,7 @@ export declare const ControlRunDetail: z.ZodObject<{
337
337
  root: string | null;
338
338
  }>;
339
339
  }, "strict", z.ZodTypeAny, {
340
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "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" | "turn_limit" | "vendor_limit" | "wall_clock";
341
341
  resetsAt: string | null;
342
342
  limitWindow: string | null;
343
343
  limitEvidence: "unspecified" | "window" | null;
@@ -353,7 +353,7 @@ export declare const ControlRunDetail: z.ZodObject<{
353
353
  root: string | null;
354
354
  };
355
355
  }, {
356
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "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" | "turn_limit" | "vendor_limit" | "wall_clock";
357
357
  resetsAt: string | null;
358
358
  limitWindow: string | null;
359
359
  limitEvidence: "unspecified" | "window" | null;
@@ -373,7 +373,7 @@ export declare const ControlRunDetail: z.ZodObject<{
373
373
  tryIndex: z.ZodNumber;
374
374
  attemptId: z.ZodString;
375
375
  carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
376
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "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", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
377
377
  from: z.ZodObject<{
378
378
  runId: z.ZodString;
379
379
  attemptId: z.ZodString;
@@ -407,7 +407,7 @@ export declare const ControlRunDetail: z.ZodObject<{
407
407
  tryIndex: number;
408
408
  attemptId: string;
409
409
  carrier: "fresh" | "native" | "native_moved" | "packet";
410
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
410
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
411
411
  from: {
412
412
  runId: string;
413
413
  attemptId: string;
@@ -429,7 +429,7 @@ export declare const ControlRunDetail: z.ZodObject<{
429
429
  tryIndex: number;
430
430
  attemptId: string;
431
431
  carrier: "fresh" | "native" | "native_moved" | "packet";
432
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
432
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
433
433
  from: {
434
434
  runId: string;
435
435
  attemptId: string;
@@ -452,17 +452,17 @@ export declare const ControlRunDetail: z.ZodObject<{
452
452
  root: z.ZodString;
453
453
  bytes: z.ZodNullable<z.ZodNumber>;
454
454
  retainedAt: z.ZodString;
455
- cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
455
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
456
456
  }, "strict", z.ZodTypeAny, {
457
457
  root: string;
458
458
  bytes: number | null;
459
459
  retainedAt: string;
460
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
460
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
461
461
  }, {
462
462
  root: string;
463
463
  bytes: number | null;
464
464
  retainedAt: string;
465
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
465
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
466
466
  }>>>;
467
467
  taskId: z.ZodOptional<z.ZodString>;
468
468
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
@@ -527,6 +527,18 @@ export declare const ControlRunDetail: z.ZodObject<{
527
527
  native_code: "grok_credential_source_unconfirmed";
528
528
  source: "grok_init";
529
529
  reported_source: string;
530
+ }>, z.ZodObject<{
531
+ kind: z.ZodLiteral<"vendor_not_retryable">;
532
+ source: z.ZodLiteral<"agy_stderr">;
533
+ error_id: z.ZodNullable<z.ZodString>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ kind: "vendor_not_retryable";
536
+ source: "agy_stderr";
537
+ error_id: string | null;
538
+ }, {
539
+ kind: "vendor_not_retryable";
540
+ source: "agy_stderr";
541
+ error_id: string | null;
530
542
  }>]>>;
531
543
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
532
544
  model: z.ZodString;
@@ -670,7 +682,7 @@ export declare const ControlRunDetail: z.ZodObject<{
670
682
  }>>;
671
683
  phase: z.ZodDefault<z.ZodString>;
672
684
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
673
- 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "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"]>>>;
685
+ 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "model_selection_required", "raw_patch_requires_isolation", "raw_patch_missing_evidence", "raw_patch_digest_mismatch", "raw_patch_base_mismatch", "raw_patch_path_traversal", "raw_patch_outside_scope", "raw_patch_stale_preimage", "raw_patch_binary_unsupported", "raw_patch_truncated", "raw_patch_apply_failed", "vendor_cli_too_old", "credential_source_unconfirmed", "vendor_not_retryable", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
674
686
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
675
687
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
676
688
  safeMessage: z.ZodString;
@@ -786,6 +798,10 @@ export declare const ControlRunDetail: z.ZodObject<{
786
798
  native_code: "grok_credential_source_unconfirmed";
787
799
  source: "grok_init";
788
800
  reported_source: string;
801
+ } | {
802
+ kind: "vendor_not_retryable";
803
+ source: "agy_stderr";
804
+ error_id: string | null;
789
805
  } | undefined;
790
806
  rawContextShortfall?: {
791
807
  model: string;
@@ -825,7 +841,7 @@ export declare const ControlRunDetail: z.ZodObject<{
825
841
  } | undefined;
826
842
  phase: string;
827
843
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
828
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
844
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
829
845
  harnessId: string | null;
830
846
  attemptId: string | null;
831
847
  safeMessage: string;
@@ -883,6 +899,10 @@ export declare const ControlRunDetail: z.ZodObject<{
883
899
  native_code: "grok_credential_source_unconfirmed";
884
900
  source: "grok_init";
885
901
  reported_source: string;
902
+ } | {
903
+ kind: "vendor_not_retryable";
904
+ source: "agy_stderr";
905
+ error_id: string | null;
886
906
  } | undefined;
887
907
  rawContextShortfall?: {
888
908
  model: string;
@@ -922,7 +942,7 @@ export declare const ControlRunDetail: z.ZodObject<{
922
942
  } | undefined;
923
943
  phase?: string | undefined;
924
944
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
925
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
945
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
926
946
  harnessId?: string | null | undefined;
927
947
  attemptId?: string | null | undefined;
928
948
  safeMessage: string;
@@ -1107,6 +1127,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1107
1127
  attempted: z.ZodDefault<z.ZodBoolean>;
1108
1128
  satisfied: z.ZodDefault<z.ZodBoolean>;
1109
1129
  status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
1130
+ verification: z.ZodDefault<z.ZodEnum<["verified", "dispatched", "none"]>>;
1131
+ verifiedContent: z.ZodDefault<z.ZodNullable<z.ZodEnum<["page", "search_results"]>>>;
1132
+ observation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1133
+ evidence: z.ZodLiteral<"tool_calls">;
1134
+ network: z.ZodLiteral<"not_measured">;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ evidence: "tool_calls";
1137
+ network: "not_measured";
1138
+ }, {
1139
+ evidence: "tool_calls";
1140
+ network: "not_measured";
1141
+ }>>>;
1110
1142
  tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1111
1143
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1112
1144
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1119,6 +1151,12 @@ export declare const ControlRunDetail: z.ZodObject<{
1119
1151
  attempted: boolean;
1120
1152
  satisfied: boolean;
1121
1153
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1154
+ verification: "dispatched" | "none" | "verified";
1155
+ verifiedContent: "page" | "search_results" | null;
1156
+ observation: {
1157
+ evidence: "tool_calls";
1158
+ network: "not_measured";
1159
+ } | null;
1122
1160
  tool: string | null;
1123
1161
  target: string | null;
1124
1162
  errorSummary: string | null;
@@ -1131,12 +1169,72 @@ export declare const ControlRunDetail: z.ZodObject<{
1131
1169
  attempted?: boolean | undefined;
1132
1170
  satisfied?: boolean | undefined;
1133
1171
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
1172
+ verification?: "dispatched" | "none" | "verified" | undefined;
1173
+ verifiedContent?: "page" | "search_results" | null | undefined;
1174
+ observation?: {
1175
+ evidence: "tool_calls";
1176
+ network: "not_measured";
1177
+ } | null | undefined;
1134
1178
  tool?: string | null | undefined;
1135
1179
  target?: string | null | undefined;
1136
1180
  errorSummary?: string | null | undefined;
1137
1181
  rawDetailRef?: string | null | undefined;
1138
1182
  available?: boolean | undefined;
1139
1183
  }>>;
1184
+ routeControls: z.ZodDefault<z.ZodArray<z.ZodObject<{
1185
+ harnessId: z.ZodString;
1186
+ webMode: z.ZodEnum<["off", "auto", "cached", "live"]>;
1187
+ webMechanism: z.ZodEnum<["native", "tools", "uncontrolled", "none"]>;
1188
+ browser: z.ZodBoolean;
1189
+ browserStartup: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1190
+ status: z.ZodEnum<["ready", "failed", "cancelled", "starting", "not_observed"]>;
1191
+ waitedMs: z.ZodNumber;
1192
+ error: z.ZodNullable<z.ZodString>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1195
+ waitedMs: number;
1196
+ error: string | null;
1197
+ }, {
1198
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1199
+ waitedMs: number;
1200
+ error: string | null;
1201
+ }>>>;
1202
+ access: z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>;
1203
+ nativeAccess: z.ZodNullable<z.ZodString>;
1204
+ accessMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "tool_policy", "native_settings", "none"]>;
1205
+ nativeSessionStarted: z.ZodBoolean;
1206
+ homeScoped: z.ZodNullable<z.ZodBoolean>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ harnessId: string;
1209
+ webMode: "auto" | "cached" | "live" | "off";
1210
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1211
+ browser: boolean;
1212
+ browserStartup: {
1213
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1214
+ waitedMs: number;
1215
+ error: string | null;
1216
+ } | null;
1217
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1218
+ nativeAccess: string | null;
1219
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1220
+ nativeSessionStarted: boolean;
1221
+ homeScoped: boolean | null;
1222
+ }, {
1223
+ harnessId: string;
1224
+ webMode: "auto" | "cached" | "live" | "off";
1225
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1226
+ browser: boolean;
1227
+ browserStartup?: {
1228
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1229
+ waitedMs: number;
1230
+ error: string | null;
1231
+ } | null | undefined;
1232
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1233
+ nativeAccess: string | null;
1234
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1235
+ nativeSessionStarted: boolean;
1236
+ homeScoped: boolean | null;
1237
+ }>, "many">>;
1140
1238
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
1141
1239
  capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
1142
1240
  harness_id: z.ZodString;
@@ -1222,7 +1320,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1222
1320
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
1223
1321
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
1224
1322
  review_requested: z.ZodOptional<z.ZodBoolean>;
1225
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
1323
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
1226
1324
  work_state: z.ZodOptional<z.ZodObject<{
1227
1325
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
1228
1326
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -1265,7 +1363,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1265
1363
  checks: "failed" | "not_configured" | "passed";
1266
1364
  review: "approved" | "blocked" | "not_run";
1267
1365
  review_requested?: boolean | undefined;
1268
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1366
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1269
1367
  work_state?: {
1270
1368
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1271
1369
  source: "absent" | "constrained" | "validated";
@@ -1282,7 +1380,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1282
1380
  checks?: "failed" | "not_configured" | "passed" | undefined;
1283
1381
  review?: "approved" | "blocked" | "not_run" | undefined;
1284
1382
  review_requested?: boolean | undefined;
1285
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
1383
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
1286
1384
  work_state?: {
1287
1385
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1288
1386
  source: "absent" | "constrained" | "validated";
@@ -1317,6 +1415,35 @@ export declare const ControlRunDetail: z.ZodObject<{
1317
1415
  survivors: number;
1318
1416
  unreadable: number;
1319
1417
  }>>>;
1418
+ processScopeLater: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1419
+ settled: z.ZodBoolean;
1420
+ coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
1421
+ completeness: z.ZodEnum<["complete", "not_provable"]>;
1422
+ census: z.ZodEnum<["ok", "failed", "unsupported"]>;
1423
+ survivors: z.ZodNumber;
1424
+ unreadable: z.ZodNumber;
1425
+ } & {
1426
+ attempt: z.ZodNumber;
1427
+ at: z.ZodString;
1428
+ }, "strict", z.ZodTypeAny, {
1429
+ settled: boolean;
1430
+ coverage: "marker" | "marker+capture" | "tree_only";
1431
+ completeness: "complete" | "not_provable";
1432
+ census: "failed" | "ok" | "unsupported";
1433
+ survivors: number;
1434
+ unreadable: number;
1435
+ attempt: number;
1436
+ at: string;
1437
+ }, {
1438
+ settled: boolean;
1439
+ coverage: "marker" | "marker+capture" | "tree_only";
1440
+ completeness: "complete" | "not_provable";
1441
+ census: "failed" | "ok" | "unsupported";
1442
+ survivors: number;
1443
+ unreadable: number;
1444
+ attempt: number;
1445
+ at: string;
1446
+ }>>>;
1320
1447
  route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1321
1448
  requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1322
1449
  observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1481,7 +1608,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1481
1608
  } | null;
1482
1609
  continueFrom: string | null;
1483
1610
  resumable: {
1484
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1611
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1485
1612
  resetsAt: string | null;
1486
1613
  limitWindow: string | null;
1487
1614
  limitEvidence: "unspecified" | "window" | null;
@@ -1501,7 +1628,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1501
1628
  tryIndex: number;
1502
1629
  attemptId: string;
1503
1630
  carrier: "fresh" | "native" | "native_moved" | "packet";
1504
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1631
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1505
1632
  from: {
1506
1633
  runId: string;
1507
1634
  attemptId: string;
@@ -1524,7 +1651,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1524
1651
  root: string;
1525
1652
  bytes: number | null;
1526
1653
  retainedAt: string;
1527
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1654
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1528
1655
  } | null;
1529
1656
  taskId?: string | undefined;
1530
1657
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -1550,6 +1677,10 @@ export declare const ControlRunDetail: z.ZodObject<{
1550
1677
  native_code: "grok_credential_source_unconfirmed";
1551
1678
  source: "grok_init";
1552
1679
  reported_source: string;
1680
+ } | {
1681
+ kind: "vendor_not_retryable";
1682
+ source: "agy_stderr";
1683
+ error_id: string | null;
1553
1684
  } | undefined;
1554
1685
  rawContextShortfall?: {
1555
1686
  model: string;
@@ -1589,7 +1720,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1589
1720
  } | undefined;
1590
1721
  phase: string;
1591
1722
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1592
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1723
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
1593
1724
  harnessId: string | null;
1594
1725
  attemptId: string | null;
1595
1726
  safeMessage: string;
@@ -1698,12 +1829,34 @@ export declare const ControlRunDetail: z.ZodObject<{
1698
1829
  attempted: boolean;
1699
1830
  satisfied: boolean;
1700
1831
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1832
+ verification: "dispatched" | "none" | "verified";
1833
+ verifiedContent: "page" | "search_results" | null;
1834
+ observation: {
1835
+ evidence: "tool_calls";
1836
+ network: "not_measured";
1837
+ } | null;
1701
1838
  tool: string | null;
1702
1839
  target: string | null;
1703
1840
  errorSummary: string | null;
1704
1841
  rawDetailRef: string | null;
1705
1842
  available: boolean;
1706
1843
  };
1844
+ routeControls: {
1845
+ harnessId: string;
1846
+ webMode: "auto" | "cached" | "live" | "off";
1847
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1848
+ browser: boolean;
1849
+ browserStartup: {
1850
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1851
+ waitedMs: number;
1852
+ error: string | null;
1853
+ } | null;
1854
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1855
+ nativeAccess: string | null;
1856
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1857
+ nativeSessionStarted: boolean;
1858
+ homeScoped: boolean | null;
1859
+ }[];
1707
1860
  requestRequirements: {
1708
1861
  capability: "browser" | "delegation" | "path_deny";
1709
1862
  harness_id: string;
@@ -1737,7 +1890,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1737
1890
  checks: "failed" | "not_configured" | "passed";
1738
1891
  review: "approved" | "blocked" | "not_run";
1739
1892
  review_requested?: boolean | undefined;
1740
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1893
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1741
1894
  work_state?: {
1742
1895
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1743
1896
  source: "absent" | "constrained" | "validated";
@@ -1758,6 +1911,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1758
1911
  survivors: number;
1759
1912
  unreadable: number;
1760
1913
  } | null;
1914
+ processScopeLater: {
1915
+ settled: boolean;
1916
+ coverage: "marker" | "marker+capture" | "tree_only";
1917
+ completeness: "complete" | "not_provable";
1918
+ census: "failed" | "ok" | "unsupported";
1919
+ survivors: number;
1920
+ unreadable: number;
1921
+ attempt: number;
1922
+ at: string;
1923
+ } | null;
1761
1924
  route: {
1762
1925
  requestedModel: string | null;
1763
1926
  observedModel: string | null;
@@ -1816,7 +1979,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1816
1979
  } | null | undefined;
1817
1980
  continueFrom?: string | null | undefined;
1818
1981
  resumable?: {
1819
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1982
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1820
1983
  resetsAt: string | null;
1821
1984
  limitWindow: string | null;
1822
1985
  limitEvidence: "unspecified" | "window" | null;
@@ -1836,7 +1999,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1836
1999
  tryIndex: number;
1837
2000
  attemptId: string;
1838
2001
  carrier: "fresh" | "native" | "native_moved" | "packet";
1839
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2002
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1840
2003
  from: {
1841
2004
  runId: string;
1842
2005
  attemptId: string;
@@ -1859,7 +2022,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1859
2022
  root: string;
1860
2023
  bytes: number | null;
1861
2024
  retainedAt: string;
1862
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2025
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1863
2026
  } | null | undefined;
1864
2027
  taskId?: string | undefined;
1865
2028
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -1885,6 +2048,10 @@ export declare const ControlRunDetail: z.ZodObject<{
1885
2048
  native_code: "grok_credential_source_unconfirmed";
1886
2049
  source: "grok_init";
1887
2050
  reported_source: string;
2051
+ } | {
2052
+ kind: "vendor_not_retryable";
2053
+ source: "agy_stderr";
2054
+ error_id: string | null;
1888
2055
  } | undefined;
1889
2056
  rawContextShortfall?: {
1890
2057
  model: string;
@@ -1924,7 +2091,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1924
2091
  } | undefined;
1925
2092
  phase?: string | undefined;
1926
2093
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1927
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
2094
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
1928
2095
  harnessId?: string | null | undefined;
1929
2096
  attemptId?: string | null | undefined;
1930
2097
  safeMessage: string;
@@ -2033,12 +2200,34 @@ export declare const ControlRunDetail: z.ZodObject<{
2033
2200
  attempted?: boolean | undefined;
2034
2201
  satisfied?: boolean | undefined;
2035
2202
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
2203
+ verification?: "dispatched" | "none" | "verified" | undefined;
2204
+ verifiedContent?: "page" | "search_results" | null | undefined;
2205
+ observation?: {
2206
+ evidence: "tool_calls";
2207
+ network: "not_measured";
2208
+ } | null | undefined;
2036
2209
  tool?: string | null | undefined;
2037
2210
  target?: string | null | undefined;
2038
2211
  errorSummary?: string | null | undefined;
2039
2212
  rawDetailRef?: string | null | undefined;
2040
2213
  available?: boolean | undefined;
2041
2214
  } | undefined;
2215
+ routeControls?: {
2216
+ harnessId: string;
2217
+ webMode: "auto" | "cached" | "live" | "off";
2218
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
2219
+ browser: boolean;
2220
+ browserStartup?: {
2221
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2222
+ waitedMs: number;
2223
+ error: string | null;
2224
+ } | null | undefined;
2225
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
2226
+ nativeAccess: string | null;
2227
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
2228
+ nativeSessionStarted: boolean;
2229
+ homeScoped: boolean | null;
2230
+ }[] | undefined;
2042
2231
  requestRequirements?: {
2043
2232
  capability: "browser" | "delegation" | "path_deny";
2044
2233
  harness_id: string;
@@ -2072,7 +2261,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2072
2261
  checks?: "failed" | "not_configured" | "passed" | undefined;
2073
2262
  review?: "approved" | "blocked" | "not_run" | undefined;
2074
2263
  review_requested?: boolean | undefined;
2075
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
2264
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
2076
2265
  work_state?: {
2077
2266
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2078
2267
  source: "absent" | "constrained" | "validated";
@@ -2093,6 +2282,16 @@ export declare const ControlRunDetail: z.ZodObject<{
2093
2282
  survivors: number;
2094
2283
  unreadable: number;
2095
2284
  } | null | undefined;
2285
+ processScopeLater?: {
2286
+ settled: boolean;
2287
+ coverage: "marker" | "marker+capture" | "tree_only";
2288
+ completeness: "complete" | "not_provable";
2289
+ census: "failed" | "ok" | "unsupported";
2290
+ survivors: number;
2291
+ unreadable: number;
2292
+ attempt: number;
2293
+ at: string;
2294
+ } | null | undefined;
2096
2295
  route?: {
2097
2296
  requestedModel?: string | null | undefined;
2098
2297
  observedModel?: string | null | undefined;
@@ -2185,6 +2384,76 @@ export declare const ControlRunDetail: z.ZodObject<{
2185
2384
  context?: Record<string, unknown> | undefined;
2186
2385
  } | undefined;
2187
2386
  }>>;
2387
+ resumed: z.ZodOptional<z.ZodObject<{
2388
+ from: z.ZodObject<{
2389
+ 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"]>;
2390
+ problem: z.ZodOptional<z.ZodObject<{
2391
+ message: z.ZodString;
2392
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2393
+ retryable: z.ZodDefault<z.ZodBoolean>;
2394
+ required_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2395
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2396
+ }, "strict", z.ZodTypeAny, {
2397
+ message: string;
2398
+ code: string | null;
2399
+ retryable: boolean;
2400
+ required_actions: string[];
2401
+ context: Record<string, unknown>;
2402
+ }, {
2403
+ message: string;
2404
+ code?: string | null | undefined;
2405
+ retryable?: boolean | undefined;
2406
+ required_actions?: string[] | undefined;
2407
+ context?: Record<string, unknown> | undefined;
2408
+ }>>;
2409
+ }, "strict", z.ZodTypeAny, {
2410
+ 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";
2411
+ problem?: {
2412
+ message: string;
2413
+ code: string | null;
2414
+ retryable: boolean;
2415
+ required_actions: string[];
2416
+ context: Record<string, unknown>;
2417
+ } | undefined;
2418
+ }, {
2419
+ 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";
2420
+ problem?: {
2421
+ message: string;
2422
+ code?: string | null | undefined;
2423
+ retryable?: boolean | undefined;
2424
+ required_actions?: string[] | undefined;
2425
+ context?: Record<string, unknown> | undefined;
2426
+ } | undefined;
2427
+ }>;
2428
+ reason: z.ZodLiteral<"process_scope_settled">;
2429
+ at: z.ZodString;
2430
+ }, "strict", z.ZodTypeAny, {
2431
+ from: {
2432
+ 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";
2433
+ problem?: {
2434
+ message: string;
2435
+ code: string | null;
2436
+ retryable: boolean;
2437
+ required_actions: string[];
2438
+ context: Record<string, unknown>;
2439
+ } | undefined;
2440
+ };
2441
+ reason: "process_scope_settled";
2442
+ at: string;
2443
+ }, {
2444
+ from: {
2445
+ 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";
2446
+ problem?: {
2447
+ message: string;
2448
+ code?: string | null | undefined;
2449
+ retryable?: boolean | undefined;
2450
+ required_actions?: string[] | undefined;
2451
+ context?: Record<string, unknown> | undefined;
2452
+ } | undefined;
2453
+ };
2454
+ reason: "process_scope_settled";
2455
+ at: string;
2456
+ }>>;
2188
2457
  dispatchedRevision: z.ZodNullable<z.ZodNumber>;
2189
2458
  successorJobId: z.ZodNullable<z.ZodString>;
2190
2459
  successorRunId: z.ZodNullable<z.ZodString>;
@@ -2205,6 +2474,20 @@ export declare const ControlRunDetail: z.ZodObject<{
2205
2474
  context: Record<string, unknown>;
2206
2475
  } | undefined;
2207
2476
  } | null;
2477
+ resumed?: {
2478
+ from: {
2479
+ 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";
2480
+ problem?: {
2481
+ message: string;
2482
+ code: string | null;
2483
+ retryable: boolean;
2484
+ required_actions: string[];
2485
+ context: Record<string, unknown>;
2486
+ } | undefined;
2487
+ };
2488
+ reason: "process_scope_settled";
2489
+ at: string;
2490
+ } | undefined;
2208
2491
  dispatchedRevision: number | null;
2209
2492
  successorJobId: string | null;
2210
2493
  successorRunId: string | null;
@@ -2225,6 +2508,20 @@ export declare const ControlRunDetail: z.ZodObject<{
2225
2508
  context?: Record<string, unknown> | undefined;
2226
2509
  } | undefined;
2227
2510
  } | null;
2511
+ resumed?: {
2512
+ from: {
2513
+ 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";
2514
+ problem?: {
2515
+ message: string;
2516
+ code?: string | null | undefined;
2517
+ retryable?: boolean | undefined;
2518
+ required_actions?: string[] | undefined;
2519
+ context?: Record<string, unknown> | undefined;
2520
+ } | undefined;
2521
+ };
2522
+ reason: "process_scope_settled";
2523
+ at: string;
2524
+ } | undefined;
2228
2525
  dispatchedRevision: number | null;
2229
2526
  successorJobId: string | null;
2230
2527
  successorRunId: string | null;
@@ -2267,7 +2564,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2267
2564
  }>>>;
2268
2565
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2269
2566
  resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2270
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
2567
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
2271
2568
  resetsAt: z.ZodNullable<z.ZodString>;
2272
2569
  limitWindow: z.ZodNullable<z.ZodString>;
2273
2570
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -2297,7 +2594,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2297
2594
  root: string | null;
2298
2595
  }>;
2299
2596
  }, "strict", z.ZodTypeAny, {
2300
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2597
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2301
2598
  resetsAt: string | null;
2302
2599
  limitWindow: string | null;
2303
2600
  limitEvidence: "unspecified" | "window" | null;
@@ -2313,7 +2610,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2313
2610
  root: string | null;
2314
2611
  };
2315
2612
  }, {
2316
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2613
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2317
2614
  resetsAt: string | null;
2318
2615
  limitWindow: string | null;
2319
2616
  limitEvidence: "unspecified" | "window" | null;
@@ -2333,7 +2630,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2333
2630
  tryIndex: z.ZodNumber;
2334
2631
  attemptId: z.ZodString;
2335
2632
  carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
2336
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
2633
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
2337
2634
  from: z.ZodObject<{
2338
2635
  runId: z.ZodString;
2339
2636
  attemptId: z.ZodString;
@@ -2367,7 +2664,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2367
2664
  tryIndex: number;
2368
2665
  attemptId: string;
2369
2666
  carrier: "fresh" | "native" | "native_moved" | "packet";
2370
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2667
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2371
2668
  from: {
2372
2669
  runId: string;
2373
2670
  attemptId: string;
@@ -2389,7 +2686,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2389
2686
  tryIndex: number;
2390
2687
  attemptId: string;
2391
2688
  carrier: "fresh" | "native" | "native_moved" | "packet";
2392
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2689
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2393
2690
  from: {
2394
2691
  runId: string;
2395
2692
  attemptId: string;
@@ -2412,17 +2709,17 @@ export declare const ControlRunDetail: z.ZodObject<{
2412
2709
  root: z.ZodString;
2413
2710
  bytes: z.ZodNullable<z.ZodNumber>;
2414
2711
  retainedAt: z.ZodString;
2415
- cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
2712
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
2416
2713
  }, "strict", z.ZodTypeAny, {
2417
2714
  root: string;
2418
2715
  bytes: number | null;
2419
2716
  retainedAt: string;
2420
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2717
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
2421
2718
  }, {
2422
2719
  root: string;
2423
2720
  bytes: number | null;
2424
2721
  retainedAt: string;
2425
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2722
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
2426
2723
  }>>>;
2427
2724
  taskId: z.ZodOptional<z.ZodString>;
2428
2725
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
@@ -2487,6 +2784,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2487
2784
  native_code: "grok_credential_source_unconfirmed";
2488
2785
  source: "grok_init";
2489
2786
  reported_source: string;
2787
+ }>, z.ZodObject<{
2788
+ kind: z.ZodLiteral<"vendor_not_retryable">;
2789
+ source: z.ZodLiteral<"agy_stderr">;
2790
+ error_id: z.ZodNullable<z.ZodString>;
2791
+ }, "strip", z.ZodTypeAny, {
2792
+ kind: "vendor_not_retryable";
2793
+ source: "agy_stderr";
2794
+ error_id: string | null;
2795
+ }, {
2796
+ kind: "vendor_not_retryable";
2797
+ source: "agy_stderr";
2798
+ error_id: string | null;
2490
2799
  }>]>>;
2491
2800
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
2492
2801
  model: z.ZodString;
@@ -2630,7 +2939,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2630
2939
  }>>;
2631
2940
  phase: z.ZodDefault<z.ZodString>;
2632
2941
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
2633
- 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "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"]>>>;
2942
+ 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "model_selection_required", "raw_patch_requires_isolation", "raw_patch_missing_evidence", "raw_patch_digest_mismatch", "raw_patch_base_mismatch", "raw_patch_path_traversal", "raw_patch_outside_scope", "raw_patch_stale_preimage", "raw_patch_binary_unsupported", "raw_patch_truncated", "raw_patch_apply_failed", "vendor_cli_too_old", "credential_source_unconfirmed", "vendor_not_retryable", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
2634
2943
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2635
2944
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2636
2945
  safeMessage: z.ZodString;
@@ -2746,6 +3055,10 @@ export declare const ControlRunDetail: z.ZodObject<{
2746
3055
  native_code: "grok_credential_source_unconfirmed";
2747
3056
  source: "grok_init";
2748
3057
  reported_source: string;
3058
+ } | {
3059
+ kind: "vendor_not_retryable";
3060
+ source: "agy_stderr";
3061
+ error_id: string | null;
2749
3062
  } | undefined;
2750
3063
  rawContextShortfall?: {
2751
3064
  model: string;
@@ -2785,7 +3098,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2785
3098
  } | undefined;
2786
3099
  phase: string;
2787
3100
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2788
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3101
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
2789
3102
  harnessId: string | null;
2790
3103
  attemptId: string | null;
2791
3104
  safeMessage: string;
@@ -2843,6 +3156,10 @@ export declare const ControlRunDetail: z.ZodObject<{
2843
3156
  native_code: "grok_credential_source_unconfirmed";
2844
3157
  source: "grok_init";
2845
3158
  reported_source: string;
3159
+ } | {
3160
+ kind: "vendor_not_retryable";
3161
+ source: "agy_stderr";
3162
+ error_id: string | null;
2846
3163
  } | undefined;
2847
3164
  rawContextShortfall?: {
2848
3165
  model: string;
@@ -2882,7 +3199,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2882
3199
  } | undefined;
2883
3200
  phase?: string | undefined;
2884
3201
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2885
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
3202
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
2886
3203
  harnessId?: string | null | undefined;
2887
3204
  attemptId?: string | null | undefined;
2888
3205
  safeMessage: string;
@@ -3067,6 +3384,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3067
3384
  attempted: z.ZodDefault<z.ZodBoolean>;
3068
3385
  satisfied: z.ZodDefault<z.ZodBoolean>;
3069
3386
  status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
3387
+ verification: z.ZodDefault<z.ZodEnum<["verified", "dispatched", "none"]>>;
3388
+ verifiedContent: z.ZodDefault<z.ZodNullable<z.ZodEnum<["page", "search_results"]>>>;
3389
+ observation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3390
+ evidence: z.ZodLiteral<"tool_calls">;
3391
+ network: z.ZodLiteral<"not_measured">;
3392
+ }, "strip", z.ZodTypeAny, {
3393
+ evidence: "tool_calls";
3394
+ network: "not_measured";
3395
+ }, {
3396
+ evidence: "tool_calls";
3397
+ network: "not_measured";
3398
+ }>>>;
3070
3399
  tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3071
3400
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3072
3401
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3079,6 +3408,12 @@ export declare const ControlRunDetail: z.ZodObject<{
3079
3408
  attempted: boolean;
3080
3409
  satisfied: boolean;
3081
3410
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
3411
+ verification: "dispatched" | "none" | "verified";
3412
+ verifiedContent: "page" | "search_results" | null;
3413
+ observation: {
3414
+ evidence: "tool_calls";
3415
+ network: "not_measured";
3416
+ } | null;
3082
3417
  tool: string | null;
3083
3418
  target: string | null;
3084
3419
  errorSummary: string | null;
@@ -3091,12 +3426,72 @@ export declare const ControlRunDetail: z.ZodObject<{
3091
3426
  attempted?: boolean | undefined;
3092
3427
  satisfied?: boolean | undefined;
3093
3428
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
3429
+ verification?: "dispatched" | "none" | "verified" | undefined;
3430
+ verifiedContent?: "page" | "search_results" | null | undefined;
3431
+ observation?: {
3432
+ evidence: "tool_calls";
3433
+ network: "not_measured";
3434
+ } | null | undefined;
3094
3435
  tool?: string | null | undefined;
3095
3436
  target?: string | null | undefined;
3096
3437
  errorSummary?: string | null | undefined;
3097
3438
  rawDetailRef?: string | null | undefined;
3098
3439
  available?: boolean | undefined;
3099
3440
  }>>;
3441
+ routeControls: z.ZodDefault<z.ZodArray<z.ZodObject<{
3442
+ harnessId: z.ZodString;
3443
+ webMode: z.ZodEnum<["off", "auto", "cached", "live"]>;
3444
+ webMechanism: z.ZodEnum<["native", "tools", "uncontrolled", "none"]>;
3445
+ browser: z.ZodBoolean;
3446
+ browserStartup: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3447
+ status: z.ZodEnum<["ready", "failed", "cancelled", "starting", "not_observed"]>;
3448
+ waitedMs: z.ZodNumber;
3449
+ error: z.ZodNullable<z.ZodString>;
3450
+ }, "strip", z.ZodTypeAny, {
3451
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3452
+ waitedMs: number;
3453
+ error: string | null;
3454
+ }, {
3455
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3456
+ waitedMs: number;
3457
+ error: string | null;
3458
+ }>>>;
3459
+ access: z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>;
3460
+ nativeAccess: z.ZodNullable<z.ZodString>;
3461
+ accessMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "tool_policy", "native_settings", "none"]>;
3462
+ nativeSessionStarted: z.ZodBoolean;
3463
+ homeScoped: z.ZodNullable<z.ZodBoolean>;
3464
+ }, "strip", z.ZodTypeAny, {
3465
+ harnessId: string;
3466
+ webMode: "auto" | "cached" | "live" | "off";
3467
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3468
+ browser: boolean;
3469
+ browserStartup: {
3470
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3471
+ waitedMs: number;
3472
+ error: string | null;
3473
+ } | null;
3474
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3475
+ nativeAccess: string | null;
3476
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3477
+ nativeSessionStarted: boolean;
3478
+ homeScoped: boolean | null;
3479
+ }, {
3480
+ harnessId: string;
3481
+ webMode: "auto" | "cached" | "live" | "off";
3482
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3483
+ browser: boolean;
3484
+ browserStartup?: {
3485
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3486
+ waitedMs: number;
3487
+ error: string | null;
3488
+ } | null | undefined;
3489
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3490
+ nativeAccess: string | null;
3491
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3492
+ nativeSessionStarted: boolean;
3493
+ homeScoped: boolean | null;
3494
+ }>, "many">>;
3100
3495
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
3101
3496
  capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
3102
3497
  harness_id: z.ZodString;
@@ -3182,7 +3577,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3182
3577
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
3183
3578
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
3184
3579
  review_requested: z.ZodOptional<z.ZodBoolean>;
3185
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
3580
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
3186
3581
  work_state: z.ZodOptional<z.ZodObject<{
3187
3582
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
3188
3583
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -3225,7 +3620,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3225
3620
  checks: "failed" | "not_configured" | "passed";
3226
3621
  review: "approved" | "blocked" | "not_run";
3227
3622
  review_requested?: boolean | undefined;
3228
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
3623
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
3229
3624
  work_state?: {
3230
3625
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3231
3626
  source: "absent" | "constrained" | "validated";
@@ -3242,7 +3637,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3242
3637
  checks?: "failed" | "not_configured" | "passed" | undefined;
3243
3638
  review?: "approved" | "blocked" | "not_run" | undefined;
3244
3639
  review_requested?: boolean | undefined;
3245
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
3640
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
3246
3641
  work_state?: {
3247
3642
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3248
3643
  source: "absent" | "constrained" | "validated";
@@ -3277,6 +3672,35 @@ export declare const ControlRunDetail: z.ZodObject<{
3277
3672
  survivors: number;
3278
3673
  unreadable: number;
3279
3674
  }>>>;
3675
+ processScopeLater: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3676
+ settled: z.ZodBoolean;
3677
+ coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
3678
+ completeness: z.ZodEnum<["complete", "not_provable"]>;
3679
+ census: z.ZodEnum<["ok", "failed", "unsupported"]>;
3680
+ survivors: z.ZodNumber;
3681
+ unreadable: z.ZodNumber;
3682
+ } & {
3683
+ attempt: z.ZodNumber;
3684
+ at: z.ZodString;
3685
+ }, "strict", z.ZodTypeAny, {
3686
+ settled: boolean;
3687
+ coverage: "marker" | "marker+capture" | "tree_only";
3688
+ completeness: "complete" | "not_provable";
3689
+ census: "failed" | "ok" | "unsupported";
3690
+ survivors: number;
3691
+ unreadable: number;
3692
+ attempt: number;
3693
+ at: string;
3694
+ }, {
3695
+ settled: boolean;
3696
+ coverage: "marker" | "marker+capture" | "tree_only";
3697
+ completeness: "complete" | "not_provable";
3698
+ census: "failed" | "ok" | "unsupported";
3699
+ survivors: number;
3700
+ unreadable: number;
3701
+ attempt: number;
3702
+ at: string;
3703
+ }>>>;
3280
3704
  route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3281
3705
  requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3282
3706
  observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3441,7 +3865,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3441
3865
  } | null;
3442
3866
  continueFrom: string | null;
3443
3867
  resumable: {
3444
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3868
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3445
3869
  resetsAt: string | null;
3446
3870
  limitWindow: string | null;
3447
3871
  limitEvidence: "unspecified" | "window" | null;
@@ -3461,7 +3885,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3461
3885
  tryIndex: number;
3462
3886
  attemptId: string;
3463
3887
  carrier: "fresh" | "native" | "native_moved" | "packet";
3464
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3888
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3465
3889
  from: {
3466
3890
  runId: string;
3467
3891
  attemptId: string;
@@ -3484,7 +3908,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3484
3908
  root: string;
3485
3909
  bytes: number | null;
3486
3910
  retainedAt: string;
3487
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
3911
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3488
3912
  } | null;
3489
3913
  taskId?: string | undefined;
3490
3914
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -3510,6 +3934,10 @@ export declare const ControlRunDetail: z.ZodObject<{
3510
3934
  native_code: "grok_credential_source_unconfirmed";
3511
3935
  source: "grok_init";
3512
3936
  reported_source: string;
3937
+ } | {
3938
+ kind: "vendor_not_retryable";
3939
+ source: "agy_stderr";
3940
+ error_id: string | null;
3513
3941
  } | undefined;
3514
3942
  rawContextShortfall?: {
3515
3943
  model: string;
@@ -3549,7 +3977,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3549
3977
  } | undefined;
3550
3978
  phase: string;
3551
3979
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3552
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3980
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
3553
3981
  harnessId: string | null;
3554
3982
  attemptId: string | null;
3555
3983
  safeMessage: string;
@@ -3658,12 +4086,34 @@ export declare const ControlRunDetail: z.ZodObject<{
3658
4086
  attempted: boolean;
3659
4087
  satisfied: boolean;
3660
4088
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
4089
+ verification: "dispatched" | "none" | "verified";
4090
+ verifiedContent: "page" | "search_results" | null;
4091
+ observation: {
4092
+ evidence: "tool_calls";
4093
+ network: "not_measured";
4094
+ } | null;
3661
4095
  tool: string | null;
3662
4096
  target: string | null;
3663
4097
  errorSummary: string | null;
3664
4098
  rawDetailRef: string | null;
3665
4099
  available: boolean;
3666
4100
  };
4101
+ routeControls: {
4102
+ harnessId: string;
4103
+ webMode: "auto" | "cached" | "live" | "off";
4104
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
4105
+ browser: boolean;
4106
+ browserStartup: {
4107
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
4108
+ waitedMs: number;
4109
+ error: string | null;
4110
+ } | null;
4111
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
4112
+ nativeAccess: string | null;
4113
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
4114
+ nativeSessionStarted: boolean;
4115
+ homeScoped: boolean | null;
4116
+ }[];
3667
4117
  requestRequirements: {
3668
4118
  capability: "browser" | "delegation" | "path_deny";
3669
4119
  harness_id: string;
@@ -3697,7 +4147,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3697
4147
  checks: "failed" | "not_configured" | "passed";
3698
4148
  review: "approved" | "blocked" | "not_run";
3699
4149
  review_requested?: boolean | undefined;
3700
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4150
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
3701
4151
  work_state?: {
3702
4152
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3703
4153
  source: "absent" | "constrained" | "validated";
@@ -3718,6 +4168,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3718
4168
  survivors: number;
3719
4169
  unreadable: number;
3720
4170
  } | null;
4171
+ processScopeLater: {
4172
+ settled: boolean;
4173
+ coverage: "marker" | "marker+capture" | "tree_only";
4174
+ completeness: "complete" | "not_provable";
4175
+ census: "failed" | "ok" | "unsupported";
4176
+ survivors: number;
4177
+ unreadable: number;
4178
+ attempt: number;
4179
+ at: string;
4180
+ } | null;
3721
4181
  route: {
3722
4182
  requestedModel: string | null;
3723
4183
  observedModel: string | null;
@@ -3776,7 +4236,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3776
4236
  } | null | undefined;
3777
4237
  continueFrom?: string | null | undefined;
3778
4238
  resumable?: {
3779
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4239
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3780
4240
  resetsAt: string | null;
3781
4241
  limitWindow: string | null;
3782
4242
  limitEvidence: "unspecified" | "window" | null;
@@ -3796,7 +4256,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3796
4256
  tryIndex: number;
3797
4257
  attemptId: string;
3798
4258
  carrier: "fresh" | "native" | "native_moved" | "packet";
3799
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4259
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3800
4260
  from: {
3801
4261
  runId: string;
3802
4262
  attemptId: string;
@@ -3819,7 +4279,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3819
4279
  root: string;
3820
4280
  bytes: number | null;
3821
4281
  retainedAt: string;
3822
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4282
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3823
4283
  } | null | undefined;
3824
4284
  taskId?: string | undefined;
3825
4285
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -3845,6 +4305,10 @@ export declare const ControlRunDetail: z.ZodObject<{
3845
4305
  native_code: "grok_credential_source_unconfirmed";
3846
4306
  source: "grok_init";
3847
4307
  reported_source: string;
4308
+ } | {
4309
+ kind: "vendor_not_retryable";
4310
+ source: "agy_stderr";
4311
+ error_id: string | null;
3848
4312
  } | undefined;
3849
4313
  rawContextShortfall?: {
3850
4314
  model: string;
@@ -3884,7 +4348,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3884
4348
  } | undefined;
3885
4349
  phase?: string | undefined;
3886
4350
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3887
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
4351
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
3888
4352
  harnessId?: string | null | undefined;
3889
4353
  attemptId?: string | null | undefined;
3890
4354
  safeMessage: string;
@@ -3993,12 +4457,34 @@ export declare const ControlRunDetail: z.ZodObject<{
3993
4457
  attempted?: boolean | undefined;
3994
4458
  satisfied?: boolean | undefined;
3995
4459
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
4460
+ verification?: "dispatched" | "none" | "verified" | undefined;
4461
+ verifiedContent?: "page" | "search_results" | null | undefined;
4462
+ observation?: {
4463
+ evidence: "tool_calls";
4464
+ network: "not_measured";
4465
+ } | null | undefined;
3996
4466
  tool?: string | null | undefined;
3997
4467
  target?: string | null | undefined;
3998
4468
  errorSummary?: string | null | undefined;
3999
4469
  rawDetailRef?: string | null | undefined;
4000
4470
  available?: boolean | undefined;
4001
4471
  } | undefined;
4472
+ routeControls?: {
4473
+ harnessId: string;
4474
+ webMode: "auto" | "cached" | "live" | "off";
4475
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
4476
+ browser: boolean;
4477
+ browserStartup?: {
4478
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
4479
+ waitedMs: number;
4480
+ error: string | null;
4481
+ } | null | undefined;
4482
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
4483
+ nativeAccess: string | null;
4484
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
4485
+ nativeSessionStarted: boolean;
4486
+ homeScoped: boolean | null;
4487
+ }[] | undefined;
4002
4488
  requestRequirements?: {
4003
4489
  capability: "browser" | "delegation" | "path_deny";
4004
4490
  harness_id: string;
@@ -4032,7 +4518,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4032
4518
  checks?: "failed" | "not_configured" | "passed" | undefined;
4033
4519
  review?: "approved" | "blocked" | "not_run" | undefined;
4034
4520
  review_requested?: boolean | undefined;
4035
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4521
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4036
4522
  work_state?: {
4037
4523
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4038
4524
  source: "absent" | "constrained" | "validated";
@@ -4053,6 +4539,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4053
4539
  survivors: number;
4054
4540
  unreadable: number;
4055
4541
  } | null | undefined;
4542
+ processScopeLater?: {
4543
+ settled: boolean;
4544
+ coverage: "marker" | "marker+capture" | "tree_only";
4545
+ completeness: "complete" | "not_provable";
4546
+ census: "failed" | "ok" | "unsupported";
4547
+ survivors: number;
4548
+ unreadable: number;
4549
+ attempt: number;
4550
+ at: string;
4551
+ } | null | undefined;
4056
4552
  route?: {
4057
4553
  requestedModel?: string | null | undefined;
4058
4554
  observedModel?: string | null | undefined;
@@ -4111,7 +4607,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4111
4607
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4112
4608
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4113
4609
  review_requested: z.ZodOptional<z.ZodBoolean>;
4114
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
4610
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
4115
4611
  work_state: z.ZodOptional<z.ZodObject<{
4116
4612
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4117
4613
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4154,7 +4650,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4154
4650
  checks: "failed" | "not_configured" | "passed";
4155
4651
  review: "approved" | "blocked" | "not_run";
4156
4652
  review_requested?: boolean | undefined;
4157
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4653
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4158
4654
  work_state?: {
4159
4655
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4160
4656
  source: "absent" | "constrained" | "validated";
@@ -4171,7 +4667,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4171
4667
  checks?: "failed" | "not_configured" | "passed" | undefined;
4172
4668
  review?: "approved" | "blocked" | "not_run" | undefined;
4173
4669
  review_requested?: boolean | undefined;
4174
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4670
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4175
4671
  work_state?: {
4176
4672
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4177
4673
  source: "absent" | "constrained" | "validated";
@@ -4356,7 +4852,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4356
4852
  checks: "failed" | "not_configured" | "passed";
4357
4853
  review: "approved" | "blocked" | "not_run";
4358
4854
  review_requested?: boolean | undefined;
4359
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4855
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4360
4856
  work_state?: {
4361
4857
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4362
4858
  source: "absent" | "constrained" | "validated";
@@ -4429,7 +4925,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4429
4925
  checks?: "failed" | "not_configured" | "passed" | undefined;
4430
4926
  review?: "approved" | "blocked" | "not_run" | undefined;
4431
4927
  review_requested?: boolean | undefined;
4432
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4928
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4433
4929
  work_state?: {
4434
4930
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4435
4931
  source: "absent" | "constrained" | "validated";
@@ -4670,7 +5166,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4670
5166
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4671
5167
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4672
5168
  review_requested: z.ZodOptional<z.ZodBoolean>;
4673
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
5169
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
4674
5170
  work_state: z.ZodOptional<z.ZodObject<{
4675
5171
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4676
5172
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4713,7 +5209,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4713
5209
  checks: "failed" | "not_configured" | "passed";
4714
5210
  review: "approved" | "blocked" | "not_run";
4715
5211
  review_requested?: boolean | undefined;
4716
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
5212
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4717
5213
  work_state?: {
4718
5214
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4719
5215
  source: "absent" | "constrained" | "validated";
@@ -4730,7 +5226,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4730
5226
  checks?: "failed" | "not_configured" | "passed" | undefined;
4731
5227
  review?: "approved" | "blocked" | "not_run" | undefined;
4732
5228
  review_requested?: boolean | undefined;
4733
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
5229
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4734
5230
  work_state?: {
4735
5231
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4736
5232
  source: "absent" | "constrained" | "validated";
@@ -4850,7 +5346,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4850
5346
  checks: "failed" | "not_configured" | "passed";
4851
5347
  review: "approved" | "blocked" | "not_run";
4852
5348
  review_requested?: boolean | undefined;
4853
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
5349
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
4854
5350
  work_state?: {
4855
5351
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4856
5352
  source: "absent" | "constrained" | "validated";
@@ -4910,7 +5406,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4910
5406
  checks?: "failed" | "not_configured" | "passed" | undefined;
4911
5407
  review?: "approved" | "blocked" | "not_run" | undefined;
4912
5408
  review_requested?: boolean | undefined;
4913
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
5409
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
4914
5410
  work_state?: {
4915
5411
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4916
5412
  source: "absent" | "constrained" | "validated";
@@ -5543,6 +6039,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5543
6039
  native_code: "grok_credential_source_unconfirmed";
5544
6040
  source: "grok_init";
5545
6041
  reported_source: string;
6042
+ }>, z.ZodObject<{
6043
+ kind: z.ZodLiteral<"vendor_not_retryable">;
6044
+ source: z.ZodLiteral<"agy_stderr">;
6045
+ error_id: z.ZodNullable<z.ZodString>;
6046
+ }, "strip", z.ZodTypeAny, {
6047
+ kind: "vendor_not_retryable";
6048
+ source: "agy_stderr";
6049
+ error_id: string | null;
6050
+ }, {
6051
+ kind: "vendor_not_retryable";
6052
+ source: "agy_stderr";
6053
+ error_id: string | null;
5546
6054
  }>]>>;
5547
6055
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
5548
6056
  model: z.ZodString;
@@ -5686,7 +6194,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5686
6194
  }>>;
5687
6195
  phase: z.ZodDefault<z.ZodString>;
5688
6196
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
5689
- 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "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"]>>>;
6197
+ 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", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "model_selection_required", "raw_patch_requires_isolation", "raw_patch_missing_evidence", "raw_patch_digest_mismatch", "raw_patch_base_mismatch", "raw_patch_path_traversal", "raw_patch_outside_scope", "raw_patch_stale_preimage", "raw_patch_binary_unsupported", "raw_patch_truncated", "raw_patch_apply_failed", "vendor_cli_too_old", "credential_source_unconfirmed", "vendor_not_retryable", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
5690
6198
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5691
6199
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5692
6200
  safeMessage: z.ZodString;
@@ -5802,6 +6310,10 @@ export declare const ControlRunDetail: z.ZodObject<{
5802
6310
  native_code: "grok_credential_source_unconfirmed";
5803
6311
  source: "grok_init";
5804
6312
  reported_source: string;
6313
+ } | {
6314
+ kind: "vendor_not_retryable";
6315
+ source: "agy_stderr";
6316
+ error_id: string | null;
5805
6317
  } | undefined;
5806
6318
  rawContextShortfall?: {
5807
6319
  model: string;
@@ -5841,7 +6353,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5841
6353
  } | undefined;
5842
6354
  phase: string;
5843
6355
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
5844
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
6356
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
5845
6357
  harnessId: string | null;
5846
6358
  attemptId: string | null;
5847
6359
  safeMessage: string;
@@ -5899,6 +6411,10 @@ export declare const ControlRunDetail: z.ZodObject<{
5899
6411
  native_code: "grok_credential_source_unconfirmed";
5900
6412
  source: "grok_init";
5901
6413
  reported_source: string;
6414
+ } | {
6415
+ kind: "vendor_not_retryable";
6416
+ source: "agy_stderr";
6417
+ error_id: string | null;
5902
6418
  } | undefined;
5903
6419
  rawContextShortfall?: {
5904
6420
  model: string;
@@ -5938,7 +6454,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5938
6454
  } | undefined;
5939
6455
  phase?: string | undefined;
5940
6456
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5941
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
6457
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
5942
6458
  harnessId?: string | null | undefined;
5943
6459
  attemptId?: string | null | undefined;
5944
6460
  safeMessage: string;
@@ -6034,7 +6550,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6034
6550
  } | null;
6035
6551
  continueFrom: string | null;
6036
6552
  resumable: {
6037
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6553
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6038
6554
  resetsAt: string | null;
6039
6555
  limitWindow: string | null;
6040
6556
  limitEvidence: "unspecified" | "window" | null;
@@ -6054,7 +6570,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6054
6570
  tryIndex: number;
6055
6571
  attemptId: string;
6056
6572
  carrier: "fresh" | "native" | "native_moved" | "packet";
6057
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6573
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6058
6574
  from: {
6059
6575
  runId: string;
6060
6576
  attemptId: string;
@@ -6077,7 +6593,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6077
6593
  root: string;
6078
6594
  bytes: number | null;
6079
6595
  retainedAt: string;
6080
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
6596
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
6081
6597
  } | null;
6082
6598
  taskId?: string | undefined;
6083
6599
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -6103,6 +6619,10 @@ export declare const ControlRunDetail: z.ZodObject<{
6103
6619
  native_code: "grok_credential_source_unconfirmed";
6104
6620
  source: "grok_init";
6105
6621
  reported_source: string;
6622
+ } | {
6623
+ kind: "vendor_not_retryable";
6624
+ source: "agy_stderr";
6625
+ error_id: string | null;
6106
6626
  } | undefined;
6107
6627
  rawContextShortfall?: {
6108
6628
  model: string;
@@ -6142,7 +6662,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6142
6662
  } | undefined;
6143
6663
  phase: string;
6144
6664
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
6145
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
6665
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
6146
6666
  harnessId: string | null;
6147
6667
  attemptId: string | null;
6148
6668
  safeMessage: string;
@@ -6251,12 +6771,34 @@ export declare const ControlRunDetail: z.ZodObject<{
6251
6771
  attempted: boolean;
6252
6772
  satisfied: boolean;
6253
6773
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
6774
+ verification: "dispatched" | "none" | "verified";
6775
+ verifiedContent: "page" | "search_results" | null;
6776
+ observation: {
6777
+ evidence: "tool_calls";
6778
+ network: "not_measured";
6779
+ } | null;
6254
6780
  tool: string | null;
6255
6781
  target: string | null;
6256
6782
  errorSummary: string | null;
6257
6783
  rawDetailRef: string | null;
6258
6784
  available: boolean;
6259
6785
  };
6786
+ routeControls: {
6787
+ harnessId: string;
6788
+ webMode: "auto" | "cached" | "live" | "off";
6789
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
6790
+ browser: boolean;
6791
+ browserStartup: {
6792
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
6793
+ waitedMs: number;
6794
+ error: string | null;
6795
+ } | null;
6796
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
6797
+ nativeAccess: string | null;
6798
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
6799
+ nativeSessionStarted: boolean;
6800
+ homeScoped: boolean | null;
6801
+ }[];
6260
6802
  requestRequirements: {
6261
6803
  capability: "browser" | "delegation" | "path_deny";
6262
6804
  harness_id: string;
@@ -6290,7 +6832,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6290
6832
  checks: "failed" | "not_configured" | "passed";
6291
6833
  review: "approved" | "blocked" | "not_run";
6292
6834
  review_requested?: boolean | undefined;
6293
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
6835
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
6294
6836
  work_state?: {
6295
6837
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6296
6838
  source: "absent" | "constrained" | "validated";
@@ -6311,6 +6853,16 @@ export declare const ControlRunDetail: z.ZodObject<{
6311
6853
  survivors: number;
6312
6854
  unreadable: number;
6313
6855
  } | null;
6856
+ processScopeLater: {
6857
+ settled: boolean;
6858
+ coverage: "marker" | "marker+capture" | "tree_only";
6859
+ completeness: "complete" | "not_provable";
6860
+ census: "failed" | "ok" | "unsupported";
6861
+ survivors: number;
6862
+ unreadable: number;
6863
+ attempt: number;
6864
+ at: string;
6865
+ } | null;
6314
6866
  route: {
6315
6867
  requestedModel: string | null;
6316
6868
  observedModel: string | null;
@@ -6373,6 +6925,20 @@ export declare const ControlRunDetail: z.ZodObject<{
6373
6925
  context: Record<string, unknown>;
6374
6926
  } | undefined;
6375
6927
  } | null;
6928
+ resumed?: {
6929
+ from: {
6930
+ 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";
6931
+ problem?: {
6932
+ message: string;
6933
+ code: string | null;
6934
+ retryable: boolean;
6935
+ required_actions: string[];
6936
+ context: Record<string, unknown>;
6937
+ } | undefined;
6938
+ };
6939
+ reason: "process_scope_settled";
6940
+ at: string;
6941
+ } | undefined;
6376
6942
  dispatchedRevision: number | null;
6377
6943
  successorJobId: string | null;
6378
6944
  successorRunId: string | null;
@@ -6391,7 +6957,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6391
6957
  } | null;
6392
6958
  continueFrom: string | null;
6393
6959
  resumable: {
6394
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6960
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6395
6961
  resetsAt: string | null;
6396
6962
  limitWindow: string | null;
6397
6963
  limitEvidence: "unspecified" | "window" | null;
@@ -6411,7 +6977,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6411
6977
  tryIndex: number;
6412
6978
  attemptId: string;
6413
6979
  carrier: "fresh" | "native" | "native_moved" | "packet";
6414
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6980
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6415
6981
  from: {
6416
6982
  runId: string;
6417
6983
  attemptId: string;
@@ -6434,7 +7000,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6434
7000
  root: string;
6435
7001
  bytes: number | null;
6436
7002
  retainedAt: string;
6437
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
7003
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
6438
7004
  } | null;
6439
7005
  taskId?: string | undefined;
6440
7006
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -6460,6 +7026,10 @@ export declare const ControlRunDetail: z.ZodObject<{
6460
7026
  native_code: "grok_credential_source_unconfirmed";
6461
7027
  source: "grok_init";
6462
7028
  reported_source: string;
7029
+ } | {
7030
+ kind: "vendor_not_retryable";
7031
+ source: "agy_stderr";
7032
+ error_id: string | null;
6463
7033
  } | undefined;
6464
7034
  rawContextShortfall?: {
6465
7035
  model: string;
@@ -6499,7 +7069,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6499
7069
  } | undefined;
6500
7070
  phase: string;
6501
7071
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
6502
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
7072
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
6503
7073
  harnessId: string | null;
6504
7074
  attemptId: string | null;
6505
7075
  safeMessage: string;
@@ -6608,12 +7178,34 @@ export declare const ControlRunDetail: z.ZodObject<{
6608
7178
  attempted: boolean;
6609
7179
  satisfied: boolean;
6610
7180
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
7181
+ verification: "dispatched" | "none" | "verified";
7182
+ verifiedContent: "page" | "search_results" | null;
7183
+ observation: {
7184
+ evidence: "tool_calls";
7185
+ network: "not_measured";
7186
+ } | null;
6611
7187
  tool: string | null;
6612
7188
  target: string | null;
6613
7189
  errorSummary: string | null;
6614
7190
  rawDetailRef: string | null;
6615
7191
  available: boolean;
6616
7192
  };
7193
+ routeControls: {
7194
+ harnessId: string;
7195
+ webMode: "auto" | "cached" | "live" | "off";
7196
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
7197
+ browser: boolean;
7198
+ browserStartup: {
7199
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
7200
+ waitedMs: number;
7201
+ error: string | null;
7202
+ } | null;
7203
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
7204
+ nativeAccess: string | null;
7205
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
7206
+ nativeSessionStarted: boolean;
7207
+ homeScoped: boolean | null;
7208
+ }[];
6617
7209
  requestRequirements: {
6618
7210
  capability: "browser" | "delegation" | "path_deny";
6619
7211
  harness_id: string;
@@ -6647,7 +7239,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6647
7239
  checks: "failed" | "not_configured" | "passed";
6648
7240
  review: "approved" | "blocked" | "not_run";
6649
7241
  review_requested?: boolean | undefined;
6650
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
7242
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
6651
7243
  work_state?: {
6652
7244
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6653
7245
  source: "absent" | "constrained" | "validated";
@@ -6668,6 +7260,16 @@ export declare const ControlRunDetail: z.ZodObject<{
6668
7260
  survivors: number;
6669
7261
  unreadable: number;
6670
7262
  } | null;
7263
+ processScopeLater: {
7264
+ settled: boolean;
7265
+ coverage: "marker" | "marker+capture" | "tree_only";
7266
+ completeness: "complete" | "not_provable";
7267
+ census: "failed" | "ok" | "unsupported";
7268
+ survivors: number;
7269
+ unreadable: number;
7270
+ attempt: number;
7271
+ at: string;
7272
+ } | null;
6671
7273
  route: {
6672
7274
  requestedModel: string | null;
6673
7275
  observedModel: string | null;
@@ -6724,7 +7326,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6724
7326
  checks: "failed" | "not_configured" | "passed";
6725
7327
  review: "approved" | "blocked" | "not_run";
6726
7328
  review_requested?: boolean | undefined;
6727
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
7329
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
6728
7330
  work_state?: {
6729
7331
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6730
7332
  source: "absent" | "constrained" | "validated";
@@ -6849,7 +7451,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6849
7451
  checks: "failed" | "not_configured" | "passed";
6850
7452
  review: "approved" | "blocked" | "not_run";
6851
7453
  review_requested?: boolean | undefined;
6852
- reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
7454
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
6853
7455
  work_state?: {
6854
7456
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6855
7457
  source: "absent" | "constrained" | "validated";
@@ -7052,6 +7654,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7052
7654
  native_code: "grok_credential_source_unconfirmed";
7053
7655
  source: "grok_init";
7054
7656
  reported_source: string;
7657
+ } | {
7658
+ kind: "vendor_not_retryable";
7659
+ source: "agy_stderr";
7660
+ error_id: string | null;
7055
7661
  } | undefined;
7056
7662
  rawContextShortfall?: {
7057
7663
  model: string;
@@ -7091,7 +7697,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7091
7697
  } | undefined;
7092
7698
  phase: string;
7093
7699
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
7094
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
7700
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
7095
7701
  harnessId: string | null;
7096
7702
  attemptId: string | null;
7097
7703
  safeMessage: string;
@@ -7175,7 +7781,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7175
7781
  } | null | undefined;
7176
7782
  continueFrom?: string | null | undefined;
7177
7783
  resumable?: {
7178
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
7784
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7179
7785
  resetsAt: string | null;
7180
7786
  limitWindow: string | null;
7181
7787
  limitEvidence: "unspecified" | "window" | null;
@@ -7195,7 +7801,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7195
7801
  tryIndex: number;
7196
7802
  attemptId: string;
7197
7803
  carrier: "fresh" | "native" | "native_moved" | "packet";
7198
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
7804
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7199
7805
  from: {
7200
7806
  runId: string;
7201
7807
  attemptId: string;
@@ -7218,7 +7824,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7218
7824
  root: string;
7219
7825
  bytes: number | null;
7220
7826
  retainedAt: string;
7221
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
7827
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
7222
7828
  } | null | undefined;
7223
7829
  taskId?: string | undefined;
7224
7830
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -7244,6 +7850,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7244
7850
  native_code: "grok_credential_source_unconfirmed";
7245
7851
  source: "grok_init";
7246
7852
  reported_source: string;
7853
+ } | {
7854
+ kind: "vendor_not_retryable";
7855
+ source: "agy_stderr";
7856
+ error_id: string | null;
7247
7857
  } | undefined;
7248
7858
  rawContextShortfall?: {
7249
7859
  model: string;
@@ -7283,7 +7893,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7283
7893
  } | undefined;
7284
7894
  phase?: string | undefined;
7285
7895
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
7286
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
7896
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
7287
7897
  harnessId?: string | null | undefined;
7288
7898
  attemptId?: string | null | undefined;
7289
7899
  safeMessage: string;
@@ -7392,12 +8002,34 @@ export declare const ControlRunDetail: z.ZodObject<{
7392
8002
  attempted?: boolean | undefined;
7393
8003
  satisfied?: boolean | undefined;
7394
8004
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
8005
+ verification?: "dispatched" | "none" | "verified" | undefined;
8006
+ verifiedContent?: "page" | "search_results" | null | undefined;
8007
+ observation?: {
8008
+ evidence: "tool_calls";
8009
+ network: "not_measured";
8010
+ } | null | undefined;
7395
8011
  tool?: string | null | undefined;
7396
8012
  target?: string | null | undefined;
7397
8013
  errorSummary?: string | null | undefined;
7398
8014
  rawDetailRef?: string | null | undefined;
7399
8015
  available?: boolean | undefined;
7400
8016
  } | undefined;
8017
+ routeControls?: {
8018
+ harnessId: string;
8019
+ webMode: "auto" | "cached" | "live" | "off";
8020
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
8021
+ browser: boolean;
8022
+ browserStartup?: {
8023
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
8024
+ waitedMs: number;
8025
+ error: string | null;
8026
+ } | null | undefined;
8027
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
8028
+ nativeAccess: string | null;
8029
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
8030
+ nativeSessionStarted: boolean;
8031
+ homeScoped: boolean | null;
8032
+ }[] | undefined;
7401
8033
  requestRequirements?: {
7402
8034
  capability: "browser" | "delegation" | "path_deny";
7403
8035
  harness_id: string;
@@ -7431,7 +8063,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7431
8063
  checks?: "failed" | "not_configured" | "passed" | undefined;
7432
8064
  review?: "approved" | "blocked" | "not_run" | undefined;
7433
8065
  review_requested?: boolean | undefined;
7434
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
8066
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
7435
8067
  work_state?: {
7436
8068
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7437
8069
  source: "absent" | "constrained" | "validated";
@@ -7452,6 +8084,16 @@ export declare const ControlRunDetail: z.ZodObject<{
7452
8084
  survivors: number;
7453
8085
  unreadable: number;
7454
8086
  } | null | undefined;
8087
+ processScopeLater?: {
8088
+ settled: boolean;
8089
+ coverage: "marker" | "marker+capture" | "tree_only";
8090
+ completeness: "complete" | "not_provable";
8091
+ census: "failed" | "ok" | "unsupported";
8092
+ survivors: number;
8093
+ unreadable: number;
8094
+ attempt: number;
8095
+ at: string;
8096
+ } | null | undefined;
7455
8097
  route?: {
7456
8098
  requestedModel?: string | null | undefined;
7457
8099
  observedModel?: string | null | undefined;
@@ -7514,6 +8156,20 @@ export declare const ControlRunDetail: z.ZodObject<{
7514
8156
  context?: Record<string, unknown> | undefined;
7515
8157
  } | undefined;
7516
8158
  } | null;
8159
+ resumed?: {
8160
+ from: {
8161
+ 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";
8162
+ problem?: {
8163
+ message: string;
8164
+ code?: string | null | undefined;
8165
+ retryable?: boolean | undefined;
8166
+ required_actions?: string[] | undefined;
8167
+ context?: Record<string, unknown> | undefined;
8168
+ } | undefined;
8169
+ };
8170
+ reason: "process_scope_settled";
8171
+ at: string;
8172
+ } | undefined;
7517
8173
  dispatchedRevision: number | null;
7518
8174
  successorJobId: string | null;
7519
8175
  successorRunId: string | null;
@@ -7532,7 +8188,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7532
8188
  } | null | undefined;
7533
8189
  continueFrom?: string | null | undefined;
7534
8190
  resumable?: {
7535
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
8191
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7536
8192
  resetsAt: string | null;
7537
8193
  limitWindow: string | null;
7538
8194
  limitEvidence: "unspecified" | "window" | null;
@@ -7552,7 +8208,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7552
8208
  tryIndex: number;
7553
8209
  attemptId: string;
7554
8210
  carrier: "fresh" | "native" | "native_moved" | "packet";
7555
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
8211
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7556
8212
  from: {
7557
8213
  runId: string;
7558
8214
  attemptId: string;
@@ -7575,7 +8231,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7575
8231
  root: string;
7576
8232
  bytes: number | null;
7577
8233
  retainedAt: string;
7578
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
8234
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
7579
8235
  } | null | undefined;
7580
8236
  taskId?: string | undefined;
7581
8237
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -7601,6 +8257,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7601
8257
  native_code: "grok_credential_source_unconfirmed";
7602
8258
  source: "grok_init";
7603
8259
  reported_source: string;
8260
+ } | {
8261
+ kind: "vendor_not_retryable";
8262
+ source: "agy_stderr";
8263
+ error_id: string | null;
7604
8264
  } | undefined;
7605
8265
  rawContextShortfall?: {
7606
8266
  model: string;
@@ -7640,7 +8300,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7640
8300
  } | undefined;
7641
8301
  phase?: string | undefined;
7642
8302
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
7643
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
8303
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
7644
8304
  harnessId?: string | null | undefined;
7645
8305
  attemptId?: string | null | undefined;
7646
8306
  safeMessage: string;
@@ -7749,12 +8409,34 @@ export declare const ControlRunDetail: z.ZodObject<{
7749
8409
  attempted?: boolean | undefined;
7750
8410
  satisfied?: boolean | undefined;
7751
8411
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
8412
+ verification?: "dispatched" | "none" | "verified" | undefined;
8413
+ verifiedContent?: "page" | "search_results" | null | undefined;
8414
+ observation?: {
8415
+ evidence: "tool_calls";
8416
+ network: "not_measured";
8417
+ } | null | undefined;
7752
8418
  tool?: string | null | undefined;
7753
8419
  target?: string | null | undefined;
7754
8420
  errorSummary?: string | null | undefined;
7755
8421
  rawDetailRef?: string | null | undefined;
7756
8422
  available?: boolean | undefined;
7757
8423
  } | undefined;
8424
+ routeControls?: {
8425
+ harnessId: string;
8426
+ webMode: "auto" | "cached" | "live" | "off";
8427
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
8428
+ browser: boolean;
8429
+ browserStartup?: {
8430
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
8431
+ waitedMs: number;
8432
+ error: string | null;
8433
+ } | null | undefined;
8434
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
8435
+ nativeAccess: string | null;
8436
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
8437
+ nativeSessionStarted: boolean;
8438
+ homeScoped: boolean | null;
8439
+ }[] | undefined;
7758
8440
  requestRequirements?: {
7759
8441
  capability: "browser" | "delegation" | "path_deny";
7760
8442
  harness_id: string;
@@ -7788,7 +8470,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7788
8470
  checks?: "failed" | "not_configured" | "passed" | undefined;
7789
8471
  review?: "approved" | "blocked" | "not_run" | undefined;
7790
8472
  review_requested?: boolean | undefined;
7791
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
8473
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
7792
8474
  work_state?: {
7793
8475
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7794
8476
  source: "absent" | "constrained" | "validated";
@@ -7809,6 +8491,16 @@ export declare const ControlRunDetail: z.ZodObject<{
7809
8491
  survivors: number;
7810
8492
  unreadable: number;
7811
8493
  } | null | undefined;
8494
+ processScopeLater?: {
8495
+ settled: boolean;
8496
+ coverage: "marker" | "marker+capture" | "tree_only";
8497
+ completeness: "complete" | "not_provable";
8498
+ census: "failed" | "ok" | "unsupported";
8499
+ survivors: number;
8500
+ unreadable: number;
8501
+ attempt: number;
8502
+ at: string;
8503
+ } | null | undefined;
7812
8504
  route?: {
7813
8505
  requestedModel?: string | null | undefined;
7814
8506
  observedModel?: string | null | undefined;
@@ -7865,7 +8557,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7865
8557
  checks?: "failed" | "not_configured" | "passed" | undefined;
7866
8558
  review?: "approved" | "blocked" | "not_run" | undefined;
7867
8559
  review_requested?: boolean | undefined;
7868
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
8560
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
7869
8561
  work_state?: {
7870
8562
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7871
8563
  source: "absent" | "constrained" | "validated";
@@ -7990,7 +8682,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7990
8682
  checks?: "failed" | "not_configured" | "passed" | undefined;
7991
8683
  review?: "approved" | "blocked" | "not_run" | undefined;
7992
8684
  review_requested?: boolean | undefined;
7993
- reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
8685
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
7994
8686
  work_state?: {
7995
8687
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7996
8688
  source: "absent" | "constrained" | "validated";
@@ -8193,6 +8885,10 @@ export declare const ControlRunDetail: z.ZodObject<{
8193
8885
  native_code: "grok_credential_source_unconfirmed";
8194
8886
  source: "grok_init";
8195
8887
  reported_source: string;
8888
+ } | {
8889
+ kind: "vendor_not_retryable";
8890
+ source: "agy_stderr";
8891
+ error_id: string | null;
8196
8892
  } | undefined;
8197
8893
  rawContextShortfall?: {
8198
8894
  model: string;
@@ -8232,7 +8928,7 @@ export declare const ControlRunDetail: z.ZodObject<{
8232
8928
  } | undefined;
8233
8929
  phase?: string | undefined;
8234
8930
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
8235
- 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" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
8931
+ 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" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
8236
8932
  harnessId?: string | null | undefined;
8237
8933
  attemptId?: string | null | undefined;
8238
8934
  safeMessage: string;