@claudexor/schema 5.0.2 → 6.0.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 (281) hide show
  1. package/dist/account-routing-evidence.d.ts +324 -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/attempt-execution.d.ts +23 -0
  14. package/dist/attempt-execution.d.ts.map +1 -1
  15. package/dist/attempt-execution.js +2 -0
  16. package/dist/attempt-execution.js.map +1 -1
  17. package/dist/browser-evidence.d.ts +85 -0
  18. package/dist/browser-evidence.d.ts.map +1 -0
  19. package/dist/browser-evidence.js +72 -0
  20. package/dist/browser-evidence.js.map +1 -0
  21. package/dist/config.d.ts.map +1 -1
  22. package/dist/config.js +1 -1
  23. package/dist/config.js.map +1 -1
  24. package/dist/control-gc.d.ts +30 -0
  25. package/dist/control-gc.d.ts.map +1 -1
  26. package/dist/control-gc.js +28 -1
  27. package/dist/control-gc.js.map +1 -1
  28. package/dist/control-harness-list.d.ts +34 -0
  29. package/dist/control-harness-list.d.ts.map +1 -1
  30. package/dist/control-harness-models.d.ts +122 -0
  31. package/dist/control-harness-models.d.ts.map +1 -1
  32. package/dist/control-harness-models.js +2 -0
  33. package/dist/control-harness-models.js.map +1 -1
  34. package/dist/control-operation-responses.d.ts +459 -36
  35. package/dist/control-operation-responses.d.ts.map +1 -1
  36. package/dist/control-operation-responses.js +11 -2
  37. package/dist/control-operation-responses.js.map +1 -1
  38. package/dist/control-pending-interaction.d.ts +96 -0
  39. package/dist/control-pending-interaction.d.ts.map +1 -0
  40. package/dist/control-pending-interaction.js +42 -0
  41. package/dist/control-pending-interaction.js.map +1 -0
  42. package/dist/control-process-scope.d.ts +34 -0
  43. package/dist/control-process-scope.d.ts.map +1 -1
  44. package/dist/control-process-scope.js +13 -0
  45. package/dist/control-process-scope.js.map +1 -1
  46. package/dist/control-run-detail.d.ts +877 -89
  47. package/dist/control-run-detail.d.ts.map +1 -1
  48. package/dist/control-run-detail.js +2 -1
  49. package/dist/control-run-detail.js.map +1 -1
  50. package/dist/control-run-failure.d.ts +40 -6
  51. package/dist/control-run-failure.d.ts.map +1 -1
  52. package/dist/control-run-failure.js +34 -3
  53. package/dist/control-run-failure.js.map +1 -1
  54. package/dist/control-run-message.js +1 -1
  55. package/dist/control-run-message.js.map +1 -1
  56. package/dist/control-trust.d.ts +8 -0
  57. package/dist/control-trust.d.ts.map +1 -1
  58. package/dist/control-trust.js +4 -0
  59. package/dist/control-trust.js.map +1 -1
  60. package/dist/control-web-evidence.d.ts +125 -0
  61. package/dist/control-web-evidence.d.ts.map +1 -0
  62. package/dist/control-web-evidence.js +109 -0
  63. package/dist/control-web-evidence.js.map +1 -0
  64. package/dist/control.d.ts +322 -179
  65. package/dist/control.d.ts.map +1 -1
  66. package/dist/control.js +52 -75
  67. package/dist/control.js.map +1 -1
  68. package/dist/credential-profile-snapshot.d.ts +136 -0
  69. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  70. package/dist/credential-profile.d.ts +4 -3
  71. package/dist/credential-profile.d.ts.map +1 -1
  72. package/dist/credential-profile.js +4 -3
  73. package/dist/credential-profile.js.map +1 -1
  74. package/dist/decision.d.ts +9 -9
  75. package/dist/decision.d.ts.map +1 -1
  76. package/dist/decision.js +2 -0
  77. package/dist/decision.js.map +1 -1
  78. package/dist/deferred-message.d.ts +646 -0
  79. package/dist/deferred-message.d.ts.map +1 -1
  80. package/dist/deferred-message.js +16 -2
  81. package/dist/deferred-message.js.map +1 -1
  82. package/dist/events.d.ts +6 -6
  83. package/dist/events.d.ts.map +1 -1
  84. package/dist/events.js +1 -0
  85. package/dist/events.js.map +1 -1
  86. package/dist/harness-confinement.js +1 -1
  87. package/dist/harness-confinement.js.map +1 -1
  88. package/dist/harness-input.d.ts +12 -0
  89. package/dist/harness-input.d.ts.map +1 -1
  90. package/dist/harness-input.js +11 -1
  91. package/dist/harness-input.js.map +1 -1
  92. package/dist/harness-interaction.d.ts +32 -0
  93. package/dist/harness-interaction.d.ts.map +1 -1
  94. package/dist/harness-interaction.js +47 -0
  95. package/dist/harness-interaction.js.map +1 -1
  96. package/dist/harness-maintenance.d.ts +3561 -717
  97. package/dist/harness-maintenance.d.ts.map +1 -1
  98. package/dist/harness-maintenance.js +107 -111
  99. package/dist/harness-maintenance.js.map +1 -1
  100. package/dist/harness-program.d.ts +2164 -0
  101. package/dist/harness-program.d.ts.map +1 -0
  102. package/dist/harness-program.js +110 -0
  103. package/dist/harness-program.js.map +1 -0
  104. package/dist/harness.d.ts +162 -19
  105. package/dist/harness.d.ts.map +1 -1
  106. package/dist/harness.js +25 -15
  107. package/dist/harness.js.map +1 -1
  108. package/dist/index.d.ts +6 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +6 -0
  111. package/dist/index.js.map +1 -1
  112. package/dist/mcp-run-result.d.ts +453 -50
  113. package/dist/mcp-run-result.d.ts.map +1 -1
  114. package/dist/mcp-run-wait.d.ts +131 -0
  115. package/dist/mcp-run-wait.d.ts.map +1 -1
  116. package/dist/mcp-run-wait.js +3 -2
  117. package/dist/mcp-run-wait.js.map +1 -1
  118. package/dist/model-operation.d.ts +107 -0
  119. package/dist/model-operation.d.ts.map +1 -1
  120. package/dist/model-operation.js +3 -0
  121. package/dist/model-operation.js.map +1 -1
  122. package/dist/operation.d.ts +1 -1
  123. package/dist/operation.d.ts.map +1 -1
  124. package/dist/operation.js +1 -1
  125. package/dist/operation.js.map +1 -1
  126. package/dist/process-scope.d.ts +154 -0
  127. package/dist/process-scope.d.ts.map +1 -1
  128. package/dist/process-scope.js +16 -1
  129. package/dist/process-scope.js.map +1 -1
  130. package/dist/quota.d.ts +15 -0
  131. package/dist/quota.d.ts.map +1 -1
  132. package/dist/quota.js +15 -0
  133. package/dist/quota.js.map +1 -1
  134. package/dist/rate-limit.d.ts +3 -0
  135. package/dist/rate-limit.d.ts.map +1 -1
  136. package/dist/rate-limit.js +4 -0
  137. package/dist/rate-limit.js.map +1 -1
  138. package/dist/raw.d.ts.map +1 -1
  139. package/dist/raw.js +11 -5
  140. package/dist/raw.js.map +1 -1
  141. package/dist/readiness.d.ts +26 -0
  142. package/dist/readiness.d.ts.map +1 -1
  143. package/dist/route-controls.d.ts +49 -0
  144. package/dist/route-controls.d.ts.map +1 -0
  145. package/dist/route-controls.js +53 -0
  146. package/dist/route-controls.js.map +1 -0
  147. package/dist/route-health.d.ts +23 -23
  148. package/dist/route-health.js +1 -1
  149. package/dist/route-health.js.map +1 -1
  150. package/dist/run-continuation.d.ts +6 -6
  151. package/dist/run-continuity.d.ts +7 -7
  152. package/dist/run-continuity.d.ts.map +1 -1
  153. package/dist/run-continuity.js +2 -1
  154. package/dist/run-continuity.js.map +1 -1
  155. package/dist/run-facts.d.ts +5 -5
  156. package/dist/run-facts.js +1 -1
  157. package/dist/run-facts.js.map +1 -1
  158. package/dist/run-observation.d.ts +70 -0
  159. package/dist/run-observation.d.ts.map +1 -1
  160. package/dist/run-observation.js +31 -12
  161. package/dist/run-observation.js.map +1 -1
  162. package/dist/status-projection.d.ts +3 -2
  163. package/dist/status-projection.d.ts.map +1 -1
  164. package/dist/status-projection.js +5 -2
  165. package/dist/status-projection.js.map +1 -1
  166. package/dist/task-group.d.ts +3 -0
  167. package/dist/task-group.d.ts.map +1 -1
  168. package/dist/task-group.js +11 -1
  169. package/dist/task-group.js.map +1 -1
  170. package/dist/task.d.ts +2 -2
  171. package/dist/task.d.ts.map +1 -1
  172. package/dist/task.js +4 -4
  173. package/dist/task.js.map +1 -1
  174. package/dist/telemetry.d.ts +658 -117
  175. package/dist/telemetry.d.ts.map +1 -1
  176. package/dist/telemetry.js +19 -88
  177. package/dist/telemetry.js.map +1 -1
  178. package/dist/thread-export.d.ts +847 -0
  179. package/dist/thread-export.d.ts.map +1 -0
  180. package/dist/thread-export.js +238 -0
  181. package/dist/thread-export.js.map +1 -0
  182. package/dist/thread-history.d.ts +356 -132
  183. package/dist/thread-history.d.ts.map +1 -1
  184. package/dist/thread.d.ts +72 -6
  185. package/dist/thread.d.ts.map +1 -1
  186. package/dist/thread.js +19 -3
  187. package/dist/thread.js.map +1 -1
  188. package/dist/tool-ref.d.ts +172 -21
  189. package/dist/tool-ref.d.ts.map +1 -1
  190. package/dist/tool-ref.js +114 -29
  191. package/dist/tool-ref.js.map +1 -1
  192. package/dist/web-evidence.d.ts +91 -0
  193. package/dist/web-evidence.d.ts.map +1 -0
  194. package/dist/web-evidence.js +77 -0
  195. package/dist/web-evidence.js.map +1 -0
  196. package/dist/workspace.js +1 -1
  197. package/dist/workspace.js.map +1 -1
  198. package/generated/AgentCapabilityCatalog.schema.json +20 -2
  199. package/generated/AttemptExecutionEvidence.schema.json +35 -0
  200. package/generated/ConformanceReport.schema.json +26 -0
  201. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
  202. package/generated/ControlCredentialProfilesQueryResponse.schema.json +28 -2
  203. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +28 -2
  204. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +28 -2
  205. package/generated/ControlGcLastResponse.schema.json +22 -0
  206. package/generated/ControlGcReceipt.schema.json +13 -1
  207. package/generated/ControlHarnessAccountCatalog.schema.json +27 -0
  208. package/generated/ControlHarnessAccountModelsResponse.schema.json +27 -0
  209. package/generated/ControlHarnessListResponse.schema.json +28 -2
  210. package/generated/ControlHarnessMaintenanceCreateRequest.schema.json +2 -28
  211. package/generated/ControlHarnessMaintenanceInventory.schema.json +547 -184
  212. package/generated/ControlHarnessMaintenanceOperation.schema.json +211 -63
  213. package/generated/ControlHarnessModelsQueryResponse.schema.json +30 -0
  214. package/generated/ControlHarnessModelsResponse.schema.json +27 -0
  215. package/generated/ControlModelAccountCatalogResponse.schema.json +27 -0
  216. package/generated/ControlModelCatalogQueryResponse.schema.json +27 -0
  217. package/generated/ControlModelCatalogResponse.schema.json +27 -0
  218. package/generated/ControlPendingInteraction.schema.json +10 -1
  219. package/generated/ControlQueuedRunInfo.schema.json +1 -1
  220. package/generated/ControlResource.schema.json +5 -0
  221. package/generated/ControlResourceRelease.schema.json +44 -0
  222. package/generated/ControlResourceReleaseRequest.schema.json +27 -0
  223. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  224. package/generated/ControlRouteHealth.schema.json +13 -1
  225. package/generated/ControlRunControlResponse.schema.json +41 -3
  226. package/generated/ControlRunDecisionRequest.schema.json +8 -2
  227. package/generated/ControlRunDecisionResponse.schema.json +4 -3
  228. package/generated/ControlRunDetail.schema.json +403 -11
  229. package/generated/ControlRunListResponse.schema.json +317 -7
  230. package/generated/ControlRunMessageResponse.schema.json +1 -1
  231. package/generated/ControlRunRetryResponse.schema.json +1 -1
  232. package/generated/ControlRunStartInfo.schema.json +1 -1
  233. package/generated/ControlRunStartResponse.schema.json +2 -2
  234. package/generated/ControlRunSummary.schema.json +317 -7
  235. package/generated/ControlThreadDetail.schema.json +6 -0
  236. package/generated/ControlThreadTurnResponse.schema.json +9 -0
  237. package/generated/ControlTrustListResponse.schema.json +8 -0
  238. package/generated/ControlTrustState.schema.json +8 -0
  239. package/generated/ControlUploadImport.schema.json +12 -2
  240. package/generated/ControlUploadImportRequest.schema.json +5 -0
  241. package/generated/DecisionRecord.schema.json +1 -0
  242. package/generated/DeferredMessageDetail.schema.json +43 -7
  243. package/generated/DeferredMessageProjection.schema.json +41 -3
  244. package/generated/DeferredMessageReadResult.schema.json +42 -4
  245. package/generated/DeferredMessageReceipt.schema.json +41 -3
  246. package/generated/EnvelopeCustody.schema.json +3 -2
  247. package/generated/GlobalConfig.schema.json +1 -1
  248. package/generated/HarnessEvent.schema.json +181 -4
  249. package/generated/HarnessManifest.schema.json +28 -2
  250. package/generated/HarnessProgram.schema.json +278 -0
  251. package/generated/HarnessProgramIdentity.schema.json +25 -0
  252. package/generated/HarnessStatusDto.schema.json +28 -2
  253. package/generated/McpAccountsToolResult.schema.json +88 -2
  254. package/generated/McpRunHandleResult.schema.json +141 -6
  255. package/generated/McpRunToolResult.schema.json +140 -6
  256. package/generated/McpRunWaitResult.schema.json +52 -5
  257. package/generated/McpThreadTurnResult.schema.json +9 -0
  258. package/generated/NativeProgramEvidence.schema.json +38 -0
  259. package/generated/RawContextPacket.schema.json +6 -4
  260. package/generated/RawGitPatchEnvelope.schema.json +1 -1
  261. package/generated/RoutePoolDegradedPayload.schema.json +2 -1
  262. package/generated/RunContinuityReceipt.schema.json +2 -1
  263. package/generated/RunFacts.schema.json +1 -0
  264. package/generated/RunFailure.schema.json +62 -2
  265. package/generated/RunResumable.schema.json +2 -1
  266. package/generated/RunTelemetry.schema.json +323 -7
  267. package/generated/RunWaitManyInput.schema.json +4 -0
  268. package/generated/RunWaitManyResult.schema.json +30 -0
  269. package/generated/SelectedHarnessProgram.schema.json +56 -0
  270. package/generated/TaskContract.schema.json +3 -3
  271. package/generated/TaskGroupReceipt.schema.json +1 -1
  272. package/generated/Thread.schema.json +41 -0
  273. package/generated/ThreadExportManifest.schema.json +461 -0
  274. package/generated/ThreadExportReceipt.schema.json +94 -0
  275. package/generated/ThreadHistoryPage.schema.json +71 -2
  276. package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
  277. package/generated/ThreadRetireRequest.schema.json +41 -0
  278. package/generated/ThreadRetirement.schema.json +175 -0
  279. package/generated/ThreadTurn.schema.json +1 -1
  280. package/generated/WorkspaceEnvelope.schema.json +1 -1
  281. package/package.json +2 -2
@@ -156,6 +156,19 @@ export declare const ControlCandidate: z.ZodObject<{
156
156
  export type ControlCandidate = z.infer<typeof ControlCandidate>;
157
157
  export declare const ControlRunDetail: z.ZodObject<{
158
158
  attemptExecution: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
+ programs: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ path: z.ZodNullable<z.ZodString>;
161
+ version: z.ZodNullable<z.ZodString>;
162
+ versionSource: z.ZodEnum<["vendor_stream", "version_probe", "remembered", "unknown"]>;
163
+ }, "strict", z.ZodTypeAny, {
164
+ path: string | null;
165
+ version: string | null;
166
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
167
+ }, {
168
+ path: string | null;
169
+ version: string | null;
170
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
171
+ }>, "many">>;
159
172
  attemptId: z.ZodString;
160
173
  harnessId: z.ZodString;
161
174
  processing: z.ZodOptional<z.ZodObject<{
@@ -219,6 +232,11 @@ export declare const ControlRunDetail: z.ZodObject<{
219
232
  valuationKnowledge: "estimated" | "exact" | "unknown";
220
233
  }>>;
221
234
  }, "strict", z.ZodTypeAny, {
235
+ programs?: {
236
+ path: string | null;
237
+ version: string | null;
238
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
239
+ }[] | undefined;
222
240
  attemptId: string;
223
241
  harnessId: string;
224
242
  processing?: {
@@ -244,6 +262,11 @@ export declare const ControlRunDetail: z.ZodObject<{
244
262
  valuationKnowledge: "estimated" | "exact" | "unknown";
245
263
  } | undefined;
246
264
  }, {
265
+ programs?: {
266
+ path: string | null;
267
+ version: string | null;
268
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
269
+ }[] | undefined;
247
270
  attemptId: string;
248
271
  harnessId: string;
249
272
  processing?: {
@@ -307,7 +330,7 @@ export declare const ControlRunDetail: z.ZodObject<{
307
330
  }>>>;
308
331
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
332
  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"]>;
333
+ 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
334
  resetsAt: z.ZodNullable<z.ZodString>;
312
335
  limitWindow: z.ZodNullable<z.ZodString>;
313
336
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -337,7 +360,7 @@ export declare const ControlRunDetail: z.ZodObject<{
337
360
  root: string | null;
338
361
  }>;
339
362
  }, "strict", z.ZodTypeAny, {
340
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
363
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
341
364
  resetsAt: string | null;
342
365
  limitWindow: string | null;
343
366
  limitEvidence: "unspecified" | "window" | null;
@@ -353,7 +376,7 @@ export declare const ControlRunDetail: z.ZodObject<{
353
376
  root: string | null;
354
377
  };
355
378
  }, {
356
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
379
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
357
380
  resetsAt: string | null;
358
381
  limitWindow: string | null;
359
382
  limitEvidence: "unspecified" | "window" | null;
@@ -373,7 +396,7 @@ export declare const ControlRunDetail: z.ZodObject<{
373
396
  tryIndex: z.ZodNumber;
374
397
  attemptId: z.ZodString;
375
398
  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"]>;
399
+ 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
400
  from: z.ZodObject<{
378
401
  runId: z.ZodString;
379
402
  attemptId: z.ZodString;
@@ -407,7 +430,7 @@ export declare const ControlRunDetail: z.ZodObject<{
407
430
  tryIndex: number;
408
431
  attemptId: string;
409
432
  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";
433
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
411
434
  from: {
412
435
  runId: string;
413
436
  attemptId: string;
@@ -429,7 +452,7 @@ export declare const ControlRunDetail: z.ZodObject<{
429
452
  tryIndex: number;
430
453
  attemptId: string;
431
454
  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";
455
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
433
456
  from: {
434
457
  runId: string;
435
458
  attemptId: string;
@@ -452,23 +475,24 @@ export declare const ControlRunDetail: z.ZodObject<{
452
475
  root: z.ZodString;
453
476
  bytes: z.ZodNullable<z.ZodNumber>;
454
477
  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"]>>;
478
+ 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
479
  }, "strict", z.ZodTypeAny, {
457
480
  root: string;
458
481
  bytes: number | null;
459
482
  retainedAt: string;
460
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
483
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
461
484
  }, {
462
485
  root: string;
463
486
  bytes: number | null;
464
487
  retainedAt: string;
465
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
488
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
466
489
  }>>>;
467
490
  taskId: z.ZodOptional<z.ZodString>;
468
491
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
469
492
  runDir: z.ZodOptional<z.ZodString>;
470
493
  error: z.ZodOptional<z.ZodString>;
471
494
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
495
+ lastVendorError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
496
  requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
473
497
  scope: z.ZodLiteral<"turn_text">;
474
498
  unit: z.ZodLiteral<"unicode_scalars">;
@@ -527,6 +551,18 @@ export declare const ControlRunDetail: z.ZodObject<{
527
551
  native_code: "grok_credential_source_unconfirmed";
528
552
  source: "grok_init";
529
553
  reported_source: string;
554
+ }>, z.ZodObject<{
555
+ kind: z.ZodLiteral<"vendor_not_retryable">;
556
+ source: z.ZodLiteral<"agy_stderr">;
557
+ error_id: z.ZodNullable<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ kind: "vendor_not_retryable";
560
+ source: "agy_stderr";
561
+ error_id: string | null;
562
+ }, {
563
+ kind: "vendor_not_retryable";
564
+ source: "agy_stderr";
565
+ error_id: string | null;
530
566
  }>]>>;
531
567
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
532
568
  model: z.ZodString;
@@ -670,7 +706,7 @@ export declare const ControlRunDetail: z.ZodObject<{
670
706
  }>>;
671
707
  phase: z.ZodDefault<z.ZodString>;
672
708
  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"]>>>;
709
+ 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
710
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
675
711
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
676
712
  safeMessage: z.ZodString;
@@ -709,6 +745,7 @@ export declare const ControlRunDetail: z.ZodObject<{
709
745
  source: string;
710
746
  }>>>;
711
747
  poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
748
+ lastVendorError: z.ZodOptional<z.ZodString>;
712
749
  harnessId: z.ZodString;
713
750
  profileId: z.ZodNullable<z.ZodString>;
714
751
  profileDisplayName: z.ZodNullable<z.ZodString>;
@@ -733,6 +770,7 @@ export declare const ControlRunDetail: z.ZodObject<{
733
770
  source: string;
734
771
  }>>;
735
772
  }, "strip", z.ZodTypeAny, {
773
+ lastVendorError?: string | undefined;
736
774
  harnessId: string;
737
775
  profileId: string | null;
738
776
  profileDisplayName: string | null;
@@ -749,6 +787,7 @@ export declare const ControlRunDetail: z.ZodObject<{
749
787
  source: string;
750
788
  } | null;
751
789
  }, {
790
+ lastVendorError?: string | undefined;
752
791
  harnessId: string;
753
792
  profileId: string | null;
754
793
  profileDisplayName: string | null;
@@ -767,6 +806,7 @@ export declare const ControlRunDetail: z.ZodObject<{
767
806
  }>, "many">>;
768
807
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
769
808
  }, "strip", z.ZodTypeAny, {
809
+ lastVendorError?: string | null | undefined;
770
810
  requestRefusal?: {
771
811
  scope: "turn_text";
772
812
  unit: "unicode_scalars";
@@ -786,6 +826,10 @@ export declare const ControlRunDetail: z.ZodObject<{
786
826
  native_code: "grok_credential_source_unconfirmed";
787
827
  source: "grok_init";
788
828
  reported_source: string;
829
+ } | {
830
+ kind: "vendor_not_retryable";
831
+ source: "agy_stderr";
832
+ error_id: string | null;
789
833
  } | undefined;
790
834
  rawContextShortfall?: {
791
835
  model: string;
@@ -825,7 +869,7 @@ export declare const ControlRunDetail: z.ZodObject<{
825
869
  } | undefined;
826
870
  phase: string;
827
871
  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;
872
+ 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
873
  harnessId: string | null;
830
874
  attemptId: string | null;
831
875
  safeMessage: string;
@@ -846,6 +890,7 @@ export declare const ControlRunDetail: z.ZodObject<{
846
890
  source: string;
847
891
  } | null;
848
892
  poolAttempts: {
893
+ lastVendorError?: string | undefined;
849
894
  harnessId: string;
850
895
  profileId: string | null;
851
896
  profileDisplayName: string | null;
@@ -864,6 +909,7 @@ export declare const ControlRunDetail: z.ZodObject<{
864
909
  }[];
865
910
  nextActions: string[];
866
911
  }, {
912
+ lastVendorError?: string | null | undefined;
867
913
  requestRefusal?: {
868
914
  scope: "turn_text";
869
915
  unit: "unicode_scalars";
@@ -883,6 +929,10 @@ export declare const ControlRunDetail: z.ZodObject<{
883
929
  native_code: "grok_credential_source_unconfirmed";
884
930
  source: "grok_init";
885
931
  reported_source: string;
932
+ } | {
933
+ kind: "vendor_not_retryable";
934
+ source: "agy_stderr";
935
+ error_id: string | null;
886
936
  } | undefined;
887
937
  rawContextShortfall?: {
888
938
  model: string;
@@ -922,7 +972,7 @@ export declare const ControlRunDetail: z.ZodObject<{
922
972
  } | undefined;
923
973
  phase?: string | undefined;
924
974
  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;
975
+ 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
976
  harnessId?: string | null | undefined;
927
977
  attemptId?: string | null | undefined;
928
978
  safeMessage: string;
@@ -943,6 +993,7 @@ export declare const ControlRunDetail: z.ZodObject<{
943
993
  source: string;
944
994
  } | null | undefined;
945
995
  poolAttempts?: {
996
+ lastVendorError?: string | undefined;
946
997
  harnessId: string;
947
998
  profileId: string | null;
948
999
  profileDisplayName: string | null;
@@ -1107,6 +1158,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1107
1158
  attempted: z.ZodDefault<z.ZodBoolean>;
1108
1159
  satisfied: z.ZodDefault<z.ZodBoolean>;
1109
1160
  status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
1161
+ verification: z.ZodDefault<z.ZodEnum<["verified", "dispatched", "none"]>>;
1162
+ verifiedContent: z.ZodDefault<z.ZodNullable<z.ZodEnum<["page", "search_results"]>>>;
1163
+ observation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1164
+ evidence: z.ZodLiteral<"tool_calls">;
1165
+ network: z.ZodLiteral<"not_measured">;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ evidence: "tool_calls";
1168
+ network: "not_measured";
1169
+ }, {
1170
+ evidence: "tool_calls";
1171
+ network: "not_measured";
1172
+ }>>>;
1110
1173
  tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1111
1174
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1112
1175
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1119,6 +1182,12 @@ export declare const ControlRunDetail: z.ZodObject<{
1119
1182
  attempted: boolean;
1120
1183
  satisfied: boolean;
1121
1184
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1185
+ verification: "dispatched" | "none" | "verified";
1186
+ verifiedContent: "page" | "search_results" | null;
1187
+ observation: {
1188
+ evidence: "tool_calls";
1189
+ network: "not_measured";
1190
+ } | null;
1122
1191
  tool: string | null;
1123
1192
  target: string | null;
1124
1193
  errorSummary: string | null;
@@ -1131,12 +1200,72 @@ export declare const ControlRunDetail: z.ZodObject<{
1131
1200
  attempted?: boolean | undefined;
1132
1201
  satisfied?: boolean | undefined;
1133
1202
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
1203
+ verification?: "dispatched" | "none" | "verified" | undefined;
1204
+ verifiedContent?: "page" | "search_results" | null | undefined;
1205
+ observation?: {
1206
+ evidence: "tool_calls";
1207
+ network: "not_measured";
1208
+ } | null | undefined;
1134
1209
  tool?: string | null | undefined;
1135
1210
  target?: string | null | undefined;
1136
1211
  errorSummary?: string | null | undefined;
1137
1212
  rawDetailRef?: string | null | undefined;
1138
1213
  available?: boolean | undefined;
1139
1214
  }>>;
1215
+ routeControls: z.ZodDefault<z.ZodArray<z.ZodObject<{
1216
+ harnessId: z.ZodString;
1217
+ webMode: z.ZodEnum<["off", "auto", "cached", "live"]>;
1218
+ webMechanism: z.ZodEnum<["native", "tools", "uncontrolled", "none"]>;
1219
+ browser: z.ZodBoolean;
1220
+ browserStartup: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1221
+ status: z.ZodEnum<["ready", "failed", "cancelled", "starting", "not_observed"]>;
1222
+ waitedMs: z.ZodNumber;
1223
+ error: z.ZodNullable<z.ZodString>;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1226
+ waitedMs: number;
1227
+ error: string | null;
1228
+ }, {
1229
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1230
+ waitedMs: number;
1231
+ error: string | null;
1232
+ }>>>;
1233
+ access: z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>;
1234
+ nativeAccess: z.ZodNullable<z.ZodString>;
1235
+ accessMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "tool_policy", "native_settings", "none"]>;
1236
+ nativeSessionStarted: z.ZodBoolean;
1237
+ homeScoped: z.ZodNullable<z.ZodBoolean>;
1238
+ }, "strip", z.ZodTypeAny, {
1239
+ harnessId: string;
1240
+ webMode: "auto" | "cached" | "live" | "off";
1241
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1242
+ browser: boolean;
1243
+ browserStartup: {
1244
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1245
+ waitedMs: number;
1246
+ error: string | null;
1247
+ } | null;
1248
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1249
+ nativeAccess: string | null;
1250
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1251
+ nativeSessionStarted: boolean;
1252
+ homeScoped: boolean | null;
1253
+ }, {
1254
+ harnessId: string;
1255
+ webMode: "auto" | "cached" | "live" | "off";
1256
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1257
+ browser: boolean;
1258
+ browserStartup?: {
1259
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1260
+ waitedMs: number;
1261
+ error: string | null;
1262
+ } | null | undefined;
1263
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1264
+ nativeAccess: string | null;
1265
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1266
+ nativeSessionStarted: boolean;
1267
+ homeScoped: boolean | null;
1268
+ }>, "many">>;
1140
1269
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
1141
1270
  capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
1142
1271
  harness_id: z.ZodString;
@@ -1222,7 +1351,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1222
1351
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
1223
1352
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
1224
1353
  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"]>>>;
1354
+ 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
1355
  work_state: z.ZodOptional<z.ZodObject<{
1227
1356
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
1228
1357
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -1265,7 +1394,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1265
1394
  checks: "failed" | "not_configured" | "passed";
1266
1395
  review: "approved" | "blocked" | "not_run";
1267
1396
  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;
1397
+ 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
1398
  work_state?: {
1270
1399
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1271
1400
  source: "absent" | "constrained" | "validated";
@@ -1282,7 +1411,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1282
1411
  checks?: "failed" | "not_configured" | "passed" | undefined;
1283
1412
  review?: "approved" | "blocked" | "not_run" | undefined;
1284
1413
  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;
1414
+ 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
1415
  work_state?: {
1287
1416
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1288
1417
  source: "absent" | "constrained" | "validated";
@@ -1295,6 +1424,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1295
1424
  } | undefined;
1296
1425
  }>>>;
1297
1426
  waitingOnUser: z.ZodDefault<z.ZodBoolean>;
1427
+ asyncQuestionsOnly: z.ZodDefault<z.ZodBoolean>;
1298
1428
  processScope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1299
1429
  settled: z.ZodBoolean;
1300
1430
  coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
@@ -1317,6 +1447,35 @@ export declare const ControlRunDetail: z.ZodObject<{
1317
1447
  survivors: number;
1318
1448
  unreadable: number;
1319
1449
  }>>>;
1450
+ processScopeLater: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1451
+ settled: z.ZodBoolean;
1452
+ coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
1453
+ completeness: z.ZodEnum<["complete", "not_provable"]>;
1454
+ census: z.ZodEnum<["ok", "failed", "unsupported"]>;
1455
+ survivors: z.ZodNumber;
1456
+ unreadable: z.ZodNumber;
1457
+ } & {
1458
+ attempt: z.ZodNumber;
1459
+ at: z.ZodString;
1460
+ }, "strict", z.ZodTypeAny, {
1461
+ settled: boolean;
1462
+ coverage: "marker" | "marker+capture" | "tree_only";
1463
+ completeness: "complete" | "not_provable";
1464
+ census: "failed" | "ok" | "unsupported";
1465
+ survivors: number;
1466
+ unreadable: number;
1467
+ attempt: number;
1468
+ at: string;
1469
+ }, {
1470
+ settled: boolean;
1471
+ coverage: "marker" | "marker+capture" | "tree_only";
1472
+ completeness: "complete" | "not_provable";
1473
+ census: "failed" | "ok" | "unsupported";
1474
+ survivors: number;
1475
+ unreadable: number;
1476
+ attempt: number;
1477
+ at: string;
1478
+ }>>>;
1320
1479
  route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1321
1480
  requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1322
1481
  observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1481,7 +1640,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1481
1640
  } | null;
1482
1641
  continueFrom: string | null;
1483
1642
  resumable: {
1484
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1643
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1485
1644
  resetsAt: string | null;
1486
1645
  limitWindow: string | null;
1487
1646
  limitEvidence: "unspecified" | "window" | null;
@@ -1501,7 +1660,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1501
1660
  tryIndex: number;
1502
1661
  attemptId: string;
1503
1662
  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";
1663
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1505
1664
  from: {
1506
1665
  runId: string;
1507
1666
  attemptId: string;
@@ -1524,13 +1683,14 @@ export declare const ControlRunDetail: z.ZodObject<{
1524
1683
  root: string;
1525
1684
  bytes: number | null;
1526
1685
  retainedAt: string;
1527
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1686
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1528
1687
  } | null;
1529
1688
  taskId?: string | undefined;
1530
1689
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
1531
1690
  runDir?: string | undefined;
1532
1691
  error?: string | undefined;
1533
1692
  failure: {
1693
+ lastVendorError?: string | null | undefined;
1534
1694
  requestRefusal?: {
1535
1695
  scope: "turn_text";
1536
1696
  unit: "unicode_scalars";
@@ -1550,6 +1710,10 @@ export declare const ControlRunDetail: z.ZodObject<{
1550
1710
  native_code: "grok_credential_source_unconfirmed";
1551
1711
  source: "grok_init";
1552
1712
  reported_source: string;
1713
+ } | {
1714
+ kind: "vendor_not_retryable";
1715
+ source: "agy_stderr";
1716
+ error_id: string | null;
1553
1717
  } | undefined;
1554
1718
  rawContextShortfall?: {
1555
1719
  model: string;
@@ -1589,7 +1753,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1589
1753
  } | undefined;
1590
1754
  phase: string;
1591
1755
  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;
1756
+ 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
1757
  harnessId: string | null;
1594
1758
  attemptId: string | null;
1595
1759
  safeMessage: string;
@@ -1610,6 +1774,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1610
1774
  source: string;
1611
1775
  } | null;
1612
1776
  poolAttempts: {
1777
+ lastVendorError?: string | undefined;
1613
1778
  harnessId: string;
1614
1779
  profileId: string | null;
1615
1780
  profileDisplayName: string | null;
@@ -1698,12 +1863,34 @@ export declare const ControlRunDetail: z.ZodObject<{
1698
1863
  attempted: boolean;
1699
1864
  satisfied: boolean;
1700
1865
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1866
+ verification: "dispatched" | "none" | "verified";
1867
+ verifiedContent: "page" | "search_results" | null;
1868
+ observation: {
1869
+ evidence: "tool_calls";
1870
+ network: "not_measured";
1871
+ } | null;
1701
1872
  tool: string | null;
1702
1873
  target: string | null;
1703
1874
  errorSummary: string | null;
1704
1875
  rawDetailRef: string | null;
1705
1876
  available: boolean;
1706
1877
  };
1878
+ routeControls: {
1879
+ harnessId: string;
1880
+ webMode: "auto" | "cached" | "live" | "off";
1881
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
1882
+ browser: boolean;
1883
+ browserStartup: {
1884
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
1885
+ waitedMs: number;
1886
+ error: string | null;
1887
+ } | null;
1888
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
1889
+ nativeAccess: string | null;
1890
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
1891
+ nativeSessionStarted: boolean;
1892
+ homeScoped: boolean | null;
1893
+ }[];
1707
1894
  requestRequirements: {
1708
1895
  capability: "browser" | "delegation" | "path_deny";
1709
1896
  harness_id: string;
@@ -1737,7 +1924,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1737
1924
  checks: "failed" | "not_configured" | "passed";
1738
1925
  review: "approved" | "blocked" | "not_run";
1739
1926
  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;
1927
+ 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
1928
  work_state?: {
1742
1929
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1743
1930
  source: "absent" | "constrained" | "validated";
@@ -1750,6 +1937,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1750
1937
  } | undefined;
1751
1938
  } | null;
1752
1939
  waitingOnUser: boolean;
1940
+ asyncQuestionsOnly: boolean;
1753
1941
  processScope: {
1754
1942
  settled: boolean;
1755
1943
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -1758,6 +1946,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1758
1946
  survivors: number;
1759
1947
  unreadable: number;
1760
1948
  } | null;
1949
+ processScopeLater: {
1950
+ settled: boolean;
1951
+ coverage: "marker" | "marker+capture" | "tree_only";
1952
+ completeness: "complete" | "not_provable";
1953
+ census: "failed" | "ok" | "unsupported";
1954
+ survivors: number;
1955
+ unreadable: number;
1956
+ attempt: number;
1957
+ at: string;
1958
+ } | null;
1761
1959
  route: {
1762
1960
  requestedModel: string | null;
1763
1961
  observedModel: string | null;
@@ -1816,7 +2014,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1816
2014
  } | null | undefined;
1817
2015
  continueFrom?: string | null | undefined;
1818
2016
  resumable?: {
1819
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2017
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1820
2018
  resetsAt: string | null;
1821
2019
  limitWindow: string | null;
1822
2020
  limitEvidence: "unspecified" | "window" | null;
@@ -1836,7 +2034,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1836
2034
  tryIndex: number;
1837
2035
  attemptId: string;
1838
2036
  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";
2037
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1840
2038
  from: {
1841
2039
  runId: string;
1842
2040
  attemptId: string;
@@ -1859,13 +2057,14 @@ export declare const ControlRunDetail: z.ZodObject<{
1859
2057
  root: string;
1860
2058
  bytes: number | null;
1861
2059
  retainedAt: string;
1862
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2060
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1863
2061
  } | null | undefined;
1864
2062
  taskId?: string | undefined;
1865
2063
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
1866
2064
  runDir?: string | undefined;
1867
2065
  error?: string | undefined;
1868
2066
  failure?: {
2067
+ lastVendorError?: string | null | undefined;
1869
2068
  requestRefusal?: {
1870
2069
  scope: "turn_text";
1871
2070
  unit: "unicode_scalars";
@@ -1885,6 +2084,10 @@ export declare const ControlRunDetail: z.ZodObject<{
1885
2084
  native_code: "grok_credential_source_unconfirmed";
1886
2085
  source: "grok_init";
1887
2086
  reported_source: string;
2087
+ } | {
2088
+ kind: "vendor_not_retryable";
2089
+ source: "agy_stderr";
2090
+ error_id: string | null;
1888
2091
  } | undefined;
1889
2092
  rawContextShortfall?: {
1890
2093
  model: string;
@@ -1924,7 +2127,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1924
2127
  } | undefined;
1925
2128
  phase?: string | undefined;
1926
2129
  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;
2130
+ 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
2131
  harnessId?: string | null | undefined;
1929
2132
  attemptId?: string | null | undefined;
1930
2133
  safeMessage: string;
@@ -1945,6 +2148,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1945
2148
  source: string;
1946
2149
  } | null | undefined;
1947
2150
  poolAttempts?: {
2151
+ lastVendorError?: string | undefined;
1948
2152
  harnessId: string;
1949
2153
  profileId: string | null;
1950
2154
  profileDisplayName: string | null;
@@ -2033,12 +2237,34 @@ export declare const ControlRunDetail: z.ZodObject<{
2033
2237
  attempted?: boolean | undefined;
2034
2238
  satisfied?: boolean | undefined;
2035
2239
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
2240
+ verification?: "dispatched" | "none" | "verified" | undefined;
2241
+ verifiedContent?: "page" | "search_results" | null | undefined;
2242
+ observation?: {
2243
+ evidence: "tool_calls";
2244
+ network: "not_measured";
2245
+ } | null | undefined;
2036
2246
  tool?: string | null | undefined;
2037
2247
  target?: string | null | undefined;
2038
2248
  errorSummary?: string | null | undefined;
2039
2249
  rawDetailRef?: string | null | undefined;
2040
2250
  available?: boolean | undefined;
2041
2251
  } | undefined;
2252
+ routeControls?: {
2253
+ harnessId: string;
2254
+ webMode: "auto" | "cached" | "live" | "off";
2255
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
2256
+ browser: boolean;
2257
+ browserStartup?: {
2258
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2259
+ waitedMs: number;
2260
+ error: string | null;
2261
+ } | null | undefined;
2262
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
2263
+ nativeAccess: string | null;
2264
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
2265
+ nativeSessionStarted: boolean;
2266
+ homeScoped: boolean | null;
2267
+ }[] | undefined;
2042
2268
  requestRequirements?: {
2043
2269
  capability: "browser" | "delegation" | "path_deny";
2044
2270
  harness_id: string;
@@ -2072,7 +2298,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2072
2298
  checks?: "failed" | "not_configured" | "passed" | undefined;
2073
2299
  review?: "approved" | "blocked" | "not_run" | undefined;
2074
2300
  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;
2301
+ 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
2302
  work_state?: {
2077
2303
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2078
2304
  source: "absent" | "constrained" | "validated";
@@ -2085,6 +2311,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2085
2311
  } | undefined;
2086
2312
  } | null | undefined;
2087
2313
  waitingOnUser?: boolean | undefined;
2314
+ asyncQuestionsOnly?: boolean | undefined;
2088
2315
  processScope?: {
2089
2316
  settled: boolean;
2090
2317
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -2093,6 +2320,16 @@ export declare const ControlRunDetail: z.ZodObject<{
2093
2320
  survivors: number;
2094
2321
  unreadable: number;
2095
2322
  } | null | undefined;
2323
+ processScopeLater?: {
2324
+ settled: boolean;
2325
+ coverage: "marker" | "marker+capture" | "tree_only";
2326
+ completeness: "complete" | "not_provable";
2327
+ census: "failed" | "ok" | "unsupported";
2328
+ survivors: number;
2329
+ unreadable: number;
2330
+ attempt: number;
2331
+ at: string;
2332
+ } | null | undefined;
2096
2333
  route?: {
2097
2334
  requestedModel?: string | null | undefined;
2098
2335
  observedModel?: string | null | undefined;
@@ -2185,6 +2422,76 @@ export declare const ControlRunDetail: z.ZodObject<{
2185
2422
  context?: Record<string, unknown> | undefined;
2186
2423
  } | undefined;
2187
2424
  }>>;
2425
+ resumed: z.ZodOptional<z.ZodObject<{
2426
+ from: z.ZodObject<{
2427
+ 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"]>;
2428
+ problem: z.ZodOptional<z.ZodObject<{
2429
+ message: z.ZodString;
2430
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2431
+ retryable: z.ZodDefault<z.ZodBoolean>;
2432
+ required_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2433
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2434
+ }, "strict", z.ZodTypeAny, {
2435
+ message: string;
2436
+ code: string | null;
2437
+ retryable: boolean;
2438
+ required_actions: string[];
2439
+ context: Record<string, unknown>;
2440
+ }, {
2441
+ message: string;
2442
+ code?: string | null | undefined;
2443
+ retryable?: boolean | undefined;
2444
+ required_actions?: string[] | undefined;
2445
+ context?: Record<string, unknown> | undefined;
2446
+ }>>;
2447
+ }, "strict", z.ZodTypeAny, {
2448
+ 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";
2449
+ problem?: {
2450
+ message: string;
2451
+ code: string | null;
2452
+ retryable: boolean;
2453
+ required_actions: string[];
2454
+ context: Record<string, unknown>;
2455
+ } | undefined;
2456
+ }, {
2457
+ 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";
2458
+ problem?: {
2459
+ message: string;
2460
+ code?: string | null | undefined;
2461
+ retryable?: boolean | undefined;
2462
+ required_actions?: string[] | undefined;
2463
+ context?: Record<string, unknown> | undefined;
2464
+ } | undefined;
2465
+ }>;
2466
+ reason: z.ZodLiteral<"process_scope_settled">;
2467
+ at: z.ZodString;
2468
+ }, "strict", z.ZodTypeAny, {
2469
+ from: {
2470
+ 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";
2471
+ problem?: {
2472
+ message: string;
2473
+ code: string | null;
2474
+ retryable: boolean;
2475
+ required_actions: string[];
2476
+ context: Record<string, unknown>;
2477
+ } | undefined;
2478
+ };
2479
+ reason: "process_scope_settled";
2480
+ at: string;
2481
+ }, {
2482
+ from: {
2483
+ 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";
2484
+ problem?: {
2485
+ message: string;
2486
+ code?: string | null | undefined;
2487
+ retryable?: boolean | undefined;
2488
+ required_actions?: string[] | undefined;
2489
+ context?: Record<string, unknown> | undefined;
2490
+ } | undefined;
2491
+ };
2492
+ reason: "process_scope_settled";
2493
+ at: string;
2494
+ }>>;
2188
2495
  dispatchedRevision: z.ZodNullable<z.ZodNumber>;
2189
2496
  successorJobId: z.ZodNullable<z.ZodString>;
2190
2497
  successorRunId: z.ZodNullable<z.ZodString>;
@@ -2205,6 +2512,20 @@ export declare const ControlRunDetail: z.ZodObject<{
2205
2512
  context: Record<string, unknown>;
2206
2513
  } | undefined;
2207
2514
  } | null;
2515
+ resumed?: {
2516
+ from: {
2517
+ 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";
2518
+ problem?: {
2519
+ message: string;
2520
+ code: string | null;
2521
+ retryable: boolean;
2522
+ required_actions: string[];
2523
+ context: Record<string, unknown>;
2524
+ } | undefined;
2525
+ };
2526
+ reason: "process_scope_settled";
2527
+ at: string;
2528
+ } | undefined;
2208
2529
  dispatchedRevision: number | null;
2209
2530
  successorJobId: string | null;
2210
2531
  successorRunId: string | null;
@@ -2225,6 +2546,20 @@ export declare const ControlRunDetail: z.ZodObject<{
2225
2546
  context?: Record<string, unknown> | undefined;
2226
2547
  } | undefined;
2227
2548
  } | null;
2549
+ resumed?: {
2550
+ from: {
2551
+ 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";
2552
+ problem?: {
2553
+ message: string;
2554
+ code?: string | null | undefined;
2555
+ retryable?: boolean | undefined;
2556
+ required_actions?: string[] | undefined;
2557
+ context?: Record<string, unknown> | undefined;
2558
+ } | undefined;
2559
+ };
2560
+ reason: "process_scope_settled";
2561
+ at: string;
2562
+ } | undefined;
2228
2563
  dispatchedRevision: number | null;
2229
2564
  successorJobId: string | null;
2230
2565
  successorRunId: string | null;
@@ -2267,7 +2602,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2267
2602
  }>>>;
2268
2603
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2269
2604
  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"]>;
2605
+ 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
2606
  resetsAt: z.ZodNullable<z.ZodString>;
2272
2607
  limitWindow: z.ZodNullable<z.ZodString>;
2273
2608
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -2297,7 +2632,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2297
2632
  root: string | null;
2298
2633
  }>;
2299
2634
  }, "strict", z.ZodTypeAny, {
2300
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2635
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2301
2636
  resetsAt: string | null;
2302
2637
  limitWindow: string | null;
2303
2638
  limitEvidence: "unspecified" | "window" | null;
@@ -2313,7 +2648,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2313
2648
  root: string | null;
2314
2649
  };
2315
2650
  }, {
2316
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2651
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2317
2652
  resetsAt: string | null;
2318
2653
  limitWindow: string | null;
2319
2654
  limitEvidence: "unspecified" | "window" | null;
@@ -2333,7 +2668,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2333
2668
  tryIndex: z.ZodNumber;
2334
2669
  attemptId: z.ZodString;
2335
2670
  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"]>;
2671
+ 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
2672
  from: z.ZodObject<{
2338
2673
  runId: z.ZodString;
2339
2674
  attemptId: z.ZodString;
@@ -2367,7 +2702,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2367
2702
  tryIndex: number;
2368
2703
  attemptId: string;
2369
2704
  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";
2705
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2371
2706
  from: {
2372
2707
  runId: string;
2373
2708
  attemptId: string;
@@ -2389,7 +2724,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2389
2724
  tryIndex: number;
2390
2725
  attemptId: string;
2391
2726
  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";
2727
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2393
2728
  from: {
2394
2729
  runId: string;
2395
2730
  attemptId: string;
@@ -2412,23 +2747,24 @@ export declare const ControlRunDetail: z.ZodObject<{
2412
2747
  root: z.ZodString;
2413
2748
  bytes: z.ZodNullable<z.ZodNumber>;
2414
2749
  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"]>>;
2750
+ 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
2751
  }, "strict", z.ZodTypeAny, {
2417
2752
  root: string;
2418
2753
  bytes: number | null;
2419
2754
  retainedAt: string;
2420
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2755
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
2421
2756
  }, {
2422
2757
  root: string;
2423
2758
  bytes: number | null;
2424
2759
  retainedAt: string;
2425
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2760
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
2426
2761
  }>>>;
2427
2762
  taskId: z.ZodOptional<z.ZodString>;
2428
2763
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
2429
2764
  runDir: z.ZodOptional<z.ZodString>;
2430
2765
  error: z.ZodOptional<z.ZodString>;
2431
2766
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2767
+ lastVendorError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
2768
  requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2433
2769
  scope: z.ZodLiteral<"turn_text">;
2434
2770
  unit: z.ZodLiteral<"unicode_scalars">;
@@ -2487,6 +2823,18 @@ export declare const ControlRunDetail: z.ZodObject<{
2487
2823
  native_code: "grok_credential_source_unconfirmed";
2488
2824
  source: "grok_init";
2489
2825
  reported_source: string;
2826
+ }>, z.ZodObject<{
2827
+ kind: z.ZodLiteral<"vendor_not_retryable">;
2828
+ source: z.ZodLiteral<"agy_stderr">;
2829
+ error_id: z.ZodNullable<z.ZodString>;
2830
+ }, "strip", z.ZodTypeAny, {
2831
+ kind: "vendor_not_retryable";
2832
+ source: "agy_stderr";
2833
+ error_id: string | null;
2834
+ }, {
2835
+ kind: "vendor_not_retryable";
2836
+ source: "agy_stderr";
2837
+ error_id: string | null;
2490
2838
  }>]>>;
2491
2839
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
2492
2840
  model: z.ZodString;
@@ -2630,7 +2978,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2630
2978
  }>>;
2631
2979
  phase: z.ZodDefault<z.ZodString>;
2632
2980
  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"]>>>;
2981
+ 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
2982
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2635
2983
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2636
2984
  safeMessage: z.ZodString;
@@ -2669,6 +3017,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2669
3017
  source: string;
2670
3018
  }>>>;
2671
3019
  poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3020
+ lastVendorError: z.ZodOptional<z.ZodString>;
2672
3021
  harnessId: z.ZodString;
2673
3022
  profileId: z.ZodNullable<z.ZodString>;
2674
3023
  profileDisplayName: z.ZodNullable<z.ZodString>;
@@ -2693,6 +3042,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2693
3042
  source: string;
2694
3043
  }>>;
2695
3044
  }, "strip", z.ZodTypeAny, {
3045
+ lastVendorError?: string | undefined;
2696
3046
  harnessId: string;
2697
3047
  profileId: string | null;
2698
3048
  profileDisplayName: string | null;
@@ -2709,6 +3059,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2709
3059
  source: string;
2710
3060
  } | null;
2711
3061
  }, {
3062
+ lastVendorError?: string | undefined;
2712
3063
  harnessId: string;
2713
3064
  profileId: string | null;
2714
3065
  profileDisplayName: string | null;
@@ -2727,6 +3078,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2727
3078
  }>, "many">>;
2728
3079
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2729
3080
  }, "strip", z.ZodTypeAny, {
3081
+ lastVendorError?: string | null | undefined;
2730
3082
  requestRefusal?: {
2731
3083
  scope: "turn_text";
2732
3084
  unit: "unicode_scalars";
@@ -2746,6 +3098,10 @@ export declare const ControlRunDetail: z.ZodObject<{
2746
3098
  native_code: "grok_credential_source_unconfirmed";
2747
3099
  source: "grok_init";
2748
3100
  reported_source: string;
3101
+ } | {
3102
+ kind: "vendor_not_retryable";
3103
+ source: "agy_stderr";
3104
+ error_id: string | null;
2749
3105
  } | undefined;
2750
3106
  rawContextShortfall?: {
2751
3107
  model: string;
@@ -2785,7 +3141,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2785
3141
  } | undefined;
2786
3142
  phase: string;
2787
3143
  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;
3144
+ 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
3145
  harnessId: string | null;
2790
3146
  attemptId: string | null;
2791
3147
  safeMessage: string;
@@ -2806,6 +3162,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2806
3162
  source: string;
2807
3163
  } | null;
2808
3164
  poolAttempts: {
3165
+ lastVendorError?: string | undefined;
2809
3166
  harnessId: string;
2810
3167
  profileId: string | null;
2811
3168
  profileDisplayName: string | null;
@@ -2824,6 +3181,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2824
3181
  }[];
2825
3182
  nextActions: string[];
2826
3183
  }, {
3184
+ lastVendorError?: string | null | undefined;
2827
3185
  requestRefusal?: {
2828
3186
  scope: "turn_text";
2829
3187
  unit: "unicode_scalars";
@@ -2843,6 +3201,10 @@ export declare const ControlRunDetail: z.ZodObject<{
2843
3201
  native_code: "grok_credential_source_unconfirmed";
2844
3202
  source: "grok_init";
2845
3203
  reported_source: string;
3204
+ } | {
3205
+ kind: "vendor_not_retryable";
3206
+ source: "agy_stderr";
3207
+ error_id: string | null;
2846
3208
  } | undefined;
2847
3209
  rawContextShortfall?: {
2848
3210
  model: string;
@@ -2882,7 +3244,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2882
3244
  } | undefined;
2883
3245
  phase?: string | undefined;
2884
3246
  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;
3247
+ 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
3248
  harnessId?: string | null | undefined;
2887
3249
  attemptId?: string | null | undefined;
2888
3250
  safeMessage: string;
@@ -2903,6 +3265,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2903
3265
  source: string;
2904
3266
  } | null | undefined;
2905
3267
  poolAttempts?: {
3268
+ lastVendorError?: string | undefined;
2906
3269
  harnessId: string;
2907
3270
  profileId: string | null;
2908
3271
  profileDisplayName: string | null;
@@ -3067,6 +3430,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3067
3430
  attempted: z.ZodDefault<z.ZodBoolean>;
3068
3431
  satisfied: z.ZodDefault<z.ZodBoolean>;
3069
3432
  status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
3433
+ verification: z.ZodDefault<z.ZodEnum<["verified", "dispatched", "none"]>>;
3434
+ verifiedContent: z.ZodDefault<z.ZodNullable<z.ZodEnum<["page", "search_results"]>>>;
3435
+ observation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3436
+ evidence: z.ZodLiteral<"tool_calls">;
3437
+ network: z.ZodLiteral<"not_measured">;
3438
+ }, "strip", z.ZodTypeAny, {
3439
+ evidence: "tool_calls";
3440
+ network: "not_measured";
3441
+ }, {
3442
+ evidence: "tool_calls";
3443
+ network: "not_measured";
3444
+ }>>>;
3070
3445
  tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3071
3446
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3072
3447
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3079,6 +3454,12 @@ export declare const ControlRunDetail: z.ZodObject<{
3079
3454
  attempted: boolean;
3080
3455
  satisfied: boolean;
3081
3456
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
3457
+ verification: "dispatched" | "none" | "verified";
3458
+ verifiedContent: "page" | "search_results" | null;
3459
+ observation: {
3460
+ evidence: "tool_calls";
3461
+ network: "not_measured";
3462
+ } | null;
3082
3463
  tool: string | null;
3083
3464
  target: string | null;
3084
3465
  errorSummary: string | null;
@@ -3091,12 +3472,72 @@ export declare const ControlRunDetail: z.ZodObject<{
3091
3472
  attempted?: boolean | undefined;
3092
3473
  satisfied?: boolean | undefined;
3093
3474
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
3475
+ verification?: "dispatched" | "none" | "verified" | undefined;
3476
+ verifiedContent?: "page" | "search_results" | null | undefined;
3477
+ observation?: {
3478
+ evidence: "tool_calls";
3479
+ network: "not_measured";
3480
+ } | null | undefined;
3094
3481
  tool?: string | null | undefined;
3095
3482
  target?: string | null | undefined;
3096
3483
  errorSummary?: string | null | undefined;
3097
3484
  rawDetailRef?: string | null | undefined;
3098
3485
  available?: boolean | undefined;
3099
3486
  }>>;
3487
+ routeControls: z.ZodDefault<z.ZodArray<z.ZodObject<{
3488
+ harnessId: z.ZodString;
3489
+ webMode: z.ZodEnum<["off", "auto", "cached", "live"]>;
3490
+ webMechanism: z.ZodEnum<["native", "tools", "uncontrolled", "none"]>;
3491
+ browser: z.ZodBoolean;
3492
+ browserStartup: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3493
+ status: z.ZodEnum<["ready", "failed", "cancelled", "starting", "not_observed"]>;
3494
+ waitedMs: z.ZodNumber;
3495
+ error: z.ZodNullable<z.ZodString>;
3496
+ }, "strip", z.ZodTypeAny, {
3497
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3498
+ waitedMs: number;
3499
+ error: string | null;
3500
+ }, {
3501
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3502
+ waitedMs: number;
3503
+ error: string | null;
3504
+ }>>>;
3505
+ access: z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>;
3506
+ nativeAccess: z.ZodNullable<z.ZodString>;
3507
+ accessMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "tool_policy", "native_settings", "none"]>;
3508
+ nativeSessionStarted: z.ZodBoolean;
3509
+ homeScoped: z.ZodNullable<z.ZodBoolean>;
3510
+ }, "strip", z.ZodTypeAny, {
3511
+ harnessId: string;
3512
+ webMode: "auto" | "cached" | "live" | "off";
3513
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3514
+ browser: boolean;
3515
+ browserStartup: {
3516
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3517
+ waitedMs: number;
3518
+ error: string | null;
3519
+ } | null;
3520
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3521
+ nativeAccess: string | null;
3522
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3523
+ nativeSessionStarted: boolean;
3524
+ homeScoped: boolean | null;
3525
+ }, {
3526
+ harnessId: string;
3527
+ webMode: "auto" | "cached" | "live" | "off";
3528
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3529
+ browser: boolean;
3530
+ browserStartup?: {
3531
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3532
+ waitedMs: number;
3533
+ error: string | null;
3534
+ } | null | undefined;
3535
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3536
+ nativeAccess: string | null;
3537
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3538
+ nativeSessionStarted: boolean;
3539
+ homeScoped: boolean | null;
3540
+ }>, "many">>;
3100
3541
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
3101
3542
  capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
3102
3543
  harness_id: z.ZodString;
@@ -3182,7 +3623,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3182
3623
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
3183
3624
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
3184
3625
  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"]>>>;
3626
+ 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
3627
  work_state: z.ZodOptional<z.ZodObject<{
3187
3628
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
3188
3629
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -3225,7 +3666,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3225
3666
  checks: "failed" | "not_configured" | "passed";
3226
3667
  review: "approved" | "blocked" | "not_run";
3227
3668
  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;
3669
+ 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
3670
  work_state?: {
3230
3671
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3231
3672
  source: "absent" | "constrained" | "validated";
@@ -3242,7 +3683,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3242
3683
  checks?: "failed" | "not_configured" | "passed" | undefined;
3243
3684
  review?: "approved" | "blocked" | "not_run" | undefined;
3244
3685
  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;
3686
+ 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
3687
  work_state?: {
3247
3688
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3248
3689
  source: "absent" | "constrained" | "validated";
@@ -3255,6 +3696,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3255
3696
  } | undefined;
3256
3697
  }>>>;
3257
3698
  waitingOnUser: z.ZodDefault<z.ZodBoolean>;
3699
+ asyncQuestionsOnly: z.ZodDefault<z.ZodBoolean>;
3258
3700
  processScope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3259
3701
  settled: z.ZodBoolean;
3260
3702
  coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
@@ -3277,6 +3719,35 @@ export declare const ControlRunDetail: z.ZodObject<{
3277
3719
  survivors: number;
3278
3720
  unreadable: number;
3279
3721
  }>>>;
3722
+ processScopeLater: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3723
+ settled: z.ZodBoolean;
3724
+ coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
3725
+ completeness: z.ZodEnum<["complete", "not_provable"]>;
3726
+ census: z.ZodEnum<["ok", "failed", "unsupported"]>;
3727
+ survivors: z.ZodNumber;
3728
+ unreadable: z.ZodNumber;
3729
+ } & {
3730
+ attempt: z.ZodNumber;
3731
+ at: z.ZodString;
3732
+ }, "strict", z.ZodTypeAny, {
3733
+ settled: boolean;
3734
+ coverage: "marker" | "marker+capture" | "tree_only";
3735
+ completeness: "complete" | "not_provable";
3736
+ census: "failed" | "ok" | "unsupported";
3737
+ survivors: number;
3738
+ unreadable: number;
3739
+ attempt: number;
3740
+ at: string;
3741
+ }, {
3742
+ settled: boolean;
3743
+ coverage: "marker" | "marker+capture" | "tree_only";
3744
+ completeness: "complete" | "not_provable";
3745
+ census: "failed" | "ok" | "unsupported";
3746
+ survivors: number;
3747
+ unreadable: number;
3748
+ attempt: number;
3749
+ at: string;
3750
+ }>>>;
3280
3751
  route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3281
3752
  requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3282
3753
  observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3441,7 +3912,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3441
3912
  } | null;
3442
3913
  continueFrom: string | null;
3443
3914
  resumable: {
3444
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3915
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3445
3916
  resetsAt: string | null;
3446
3917
  limitWindow: string | null;
3447
3918
  limitEvidence: "unspecified" | "window" | null;
@@ -3461,7 +3932,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3461
3932
  tryIndex: number;
3462
3933
  attemptId: string;
3463
3934
  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";
3935
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3465
3936
  from: {
3466
3937
  runId: string;
3467
3938
  attemptId: string;
@@ -3484,13 +3955,14 @@ export declare const ControlRunDetail: z.ZodObject<{
3484
3955
  root: string;
3485
3956
  bytes: number | null;
3486
3957
  retainedAt: string;
3487
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
3958
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3488
3959
  } | null;
3489
3960
  taskId?: string | undefined;
3490
3961
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
3491
3962
  runDir?: string | undefined;
3492
3963
  error?: string | undefined;
3493
3964
  failure: {
3965
+ lastVendorError?: string | null | undefined;
3494
3966
  requestRefusal?: {
3495
3967
  scope: "turn_text";
3496
3968
  unit: "unicode_scalars";
@@ -3510,6 +3982,10 @@ export declare const ControlRunDetail: z.ZodObject<{
3510
3982
  native_code: "grok_credential_source_unconfirmed";
3511
3983
  source: "grok_init";
3512
3984
  reported_source: string;
3985
+ } | {
3986
+ kind: "vendor_not_retryable";
3987
+ source: "agy_stderr";
3988
+ error_id: string | null;
3513
3989
  } | undefined;
3514
3990
  rawContextShortfall?: {
3515
3991
  model: string;
@@ -3549,7 +4025,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3549
4025
  } | undefined;
3550
4026
  phase: string;
3551
4027
  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;
4028
+ 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
4029
  harnessId: string | null;
3554
4030
  attemptId: string | null;
3555
4031
  safeMessage: string;
@@ -3570,6 +4046,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3570
4046
  source: string;
3571
4047
  } | null;
3572
4048
  poolAttempts: {
4049
+ lastVendorError?: string | undefined;
3573
4050
  harnessId: string;
3574
4051
  profileId: string | null;
3575
4052
  profileDisplayName: string | null;
@@ -3658,12 +4135,34 @@ export declare const ControlRunDetail: z.ZodObject<{
3658
4135
  attempted: boolean;
3659
4136
  satisfied: boolean;
3660
4137
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
4138
+ verification: "dispatched" | "none" | "verified";
4139
+ verifiedContent: "page" | "search_results" | null;
4140
+ observation: {
4141
+ evidence: "tool_calls";
4142
+ network: "not_measured";
4143
+ } | null;
3661
4144
  tool: string | null;
3662
4145
  target: string | null;
3663
4146
  errorSummary: string | null;
3664
4147
  rawDetailRef: string | null;
3665
4148
  available: boolean;
3666
4149
  };
4150
+ routeControls: {
4151
+ harnessId: string;
4152
+ webMode: "auto" | "cached" | "live" | "off";
4153
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
4154
+ browser: boolean;
4155
+ browserStartup: {
4156
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
4157
+ waitedMs: number;
4158
+ error: string | null;
4159
+ } | null;
4160
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
4161
+ nativeAccess: string | null;
4162
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
4163
+ nativeSessionStarted: boolean;
4164
+ homeScoped: boolean | null;
4165
+ }[];
3667
4166
  requestRequirements: {
3668
4167
  capability: "browser" | "delegation" | "path_deny";
3669
4168
  harness_id: string;
@@ -3697,7 +4196,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3697
4196
  checks: "failed" | "not_configured" | "passed";
3698
4197
  review: "approved" | "blocked" | "not_run";
3699
4198
  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;
4199
+ 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
4200
  work_state?: {
3702
4201
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3703
4202
  source: "absent" | "constrained" | "validated";
@@ -3710,6 +4209,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3710
4209
  } | undefined;
3711
4210
  } | null;
3712
4211
  waitingOnUser: boolean;
4212
+ asyncQuestionsOnly: boolean;
3713
4213
  processScope: {
3714
4214
  settled: boolean;
3715
4215
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -3718,6 +4218,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3718
4218
  survivors: number;
3719
4219
  unreadable: number;
3720
4220
  } | null;
4221
+ processScopeLater: {
4222
+ settled: boolean;
4223
+ coverage: "marker" | "marker+capture" | "tree_only";
4224
+ completeness: "complete" | "not_provable";
4225
+ census: "failed" | "ok" | "unsupported";
4226
+ survivors: number;
4227
+ unreadable: number;
4228
+ attempt: number;
4229
+ at: string;
4230
+ } | null;
3721
4231
  route: {
3722
4232
  requestedModel: string | null;
3723
4233
  observedModel: string | null;
@@ -3776,7 +4286,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3776
4286
  } | null | undefined;
3777
4287
  continueFrom?: string | null | undefined;
3778
4288
  resumable?: {
3779
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4289
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3780
4290
  resetsAt: string | null;
3781
4291
  limitWindow: string | null;
3782
4292
  limitEvidence: "unspecified" | "window" | null;
@@ -3796,7 +4306,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3796
4306
  tryIndex: number;
3797
4307
  attemptId: string;
3798
4308
  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";
4309
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3800
4310
  from: {
3801
4311
  runId: string;
3802
4312
  attemptId: string;
@@ -3819,13 +4329,14 @@ export declare const ControlRunDetail: z.ZodObject<{
3819
4329
  root: string;
3820
4330
  bytes: number | null;
3821
4331
  retainedAt: string;
3822
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4332
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3823
4333
  } | null | undefined;
3824
4334
  taskId?: string | undefined;
3825
4335
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
3826
4336
  runDir?: string | undefined;
3827
4337
  error?: string | undefined;
3828
4338
  failure?: {
4339
+ lastVendorError?: string | null | undefined;
3829
4340
  requestRefusal?: {
3830
4341
  scope: "turn_text";
3831
4342
  unit: "unicode_scalars";
@@ -3845,6 +4356,10 @@ export declare const ControlRunDetail: z.ZodObject<{
3845
4356
  native_code: "grok_credential_source_unconfirmed";
3846
4357
  source: "grok_init";
3847
4358
  reported_source: string;
4359
+ } | {
4360
+ kind: "vendor_not_retryable";
4361
+ source: "agy_stderr";
4362
+ error_id: string | null;
3848
4363
  } | undefined;
3849
4364
  rawContextShortfall?: {
3850
4365
  model: string;
@@ -3884,7 +4399,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3884
4399
  } | undefined;
3885
4400
  phase?: string | undefined;
3886
4401
  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;
4402
+ 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
4403
  harnessId?: string | null | undefined;
3889
4404
  attemptId?: string | null | undefined;
3890
4405
  safeMessage: string;
@@ -3905,6 +4420,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3905
4420
  source: string;
3906
4421
  } | null | undefined;
3907
4422
  poolAttempts?: {
4423
+ lastVendorError?: string | undefined;
3908
4424
  harnessId: string;
3909
4425
  profileId: string | null;
3910
4426
  profileDisplayName: string | null;
@@ -3993,12 +4509,34 @@ export declare const ControlRunDetail: z.ZodObject<{
3993
4509
  attempted?: boolean | undefined;
3994
4510
  satisfied?: boolean | undefined;
3995
4511
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
4512
+ verification?: "dispatched" | "none" | "verified" | undefined;
4513
+ verifiedContent?: "page" | "search_results" | null | undefined;
4514
+ observation?: {
4515
+ evidence: "tool_calls";
4516
+ network: "not_measured";
4517
+ } | null | undefined;
3996
4518
  tool?: string | null | undefined;
3997
4519
  target?: string | null | undefined;
3998
4520
  errorSummary?: string | null | undefined;
3999
4521
  rawDetailRef?: string | null | undefined;
4000
4522
  available?: boolean | undefined;
4001
4523
  } | undefined;
4524
+ routeControls?: {
4525
+ harnessId: string;
4526
+ webMode: "auto" | "cached" | "live" | "off";
4527
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
4528
+ browser: boolean;
4529
+ browserStartup?: {
4530
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
4531
+ waitedMs: number;
4532
+ error: string | null;
4533
+ } | null | undefined;
4534
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
4535
+ nativeAccess: string | null;
4536
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
4537
+ nativeSessionStarted: boolean;
4538
+ homeScoped: boolean | null;
4539
+ }[] | undefined;
4002
4540
  requestRequirements?: {
4003
4541
  capability: "browser" | "delegation" | "path_deny";
4004
4542
  harness_id: string;
@@ -4032,7 +4570,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4032
4570
  checks?: "failed" | "not_configured" | "passed" | undefined;
4033
4571
  review?: "approved" | "blocked" | "not_run" | undefined;
4034
4572
  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;
4573
+ 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
4574
  work_state?: {
4037
4575
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4038
4576
  source: "absent" | "constrained" | "validated";
@@ -4045,6 +4583,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4045
4583
  } | undefined;
4046
4584
  } | null | undefined;
4047
4585
  waitingOnUser?: boolean | undefined;
4586
+ asyncQuestionsOnly?: boolean | undefined;
4048
4587
  processScope?: {
4049
4588
  settled: boolean;
4050
4589
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -4053,6 +4592,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4053
4592
  survivors: number;
4054
4593
  unreadable: number;
4055
4594
  } | null | undefined;
4595
+ processScopeLater?: {
4596
+ settled: boolean;
4597
+ coverage: "marker" | "marker+capture" | "tree_only";
4598
+ completeness: "complete" | "not_provable";
4599
+ census: "failed" | "ok" | "unsupported";
4600
+ survivors: number;
4601
+ unreadable: number;
4602
+ attempt: number;
4603
+ at: string;
4604
+ } | null | undefined;
4056
4605
  route?: {
4057
4606
  requestedModel?: string | null | undefined;
4058
4607
  observedModel?: string | null | undefined;
@@ -4111,7 +4660,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4111
4660
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4112
4661
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4113
4662
  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"]>>>;
4663
+ 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
4664
  work_state: z.ZodOptional<z.ZodObject<{
4116
4665
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4117
4666
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4154,7 +4703,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4154
4703
  checks: "failed" | "not_configured" | "passed";
4155
4704
  review: "approved" | "blocked" | "not_run";
4156
4705
  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;
4706
+ 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
4707
  work_state?: {
4159
4708
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4160
4709
  source: "absent" | "constrained" | "validated";
@@ -4171,7 +4720,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4171
4720
  checks?: "failed" | "not_configured" | "passed" | undefined;
4172
4721
  review?: "approved" | "blocked" | "not_run" | undefined;
4173
4722
  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;
4723
+ 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
4724
  work_state?: {
4176
4725
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4177
4726
  source: "absent" | "constrained" | "validated";
@@ -4356,7 +4905,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4356
4905
  checks: "failed" | "not_configured" | "passed";
4357
4906
  review: "approved" | "blocked" | "not_run";
4358
4907
  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;
4908
+ 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
4909
  work_state?: {
4361
4910
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4362
4911
  source: "absent" | "constrained" | "validated";
@@ -4429,7 +4978,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4429
4978
  checks?: "failed" | "not_configured" | "passed" | undefined;
4430
4979
  review?: "approved" | "blocked" | "not_run" | undefined;
4431
4980
  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;
4981
+ 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
4982
  work_state?: {
4434
4983
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4435
4984
  source: "absent" | "constrained" | "validated";
@@ -4670,7 +5219,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4670
5219
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4671
5220
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4672
5221
  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"]>>>;
5222
+ 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
5223
  work_state: z.ZodOptional<z.ZodObject<{
4675
5224
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4676
5225
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4713,7 +5262,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4713
5262
  checks: "failed" | "not_configured" | "passed";
4714
5263
  review: "approved" | "blocked" | "not_run";
4715
5264
  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;
5265
+ 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
5266
  work_state?: {
4718
5267
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4719
5268
  source: "absent" | "constrained" | "validated";
@@ -4730,7 +5279,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4730
5279
  checks?: "failed" | "not_configured" | "passed" | undefined;
4731
5280
  review?: "approved" | "blocked" | "not_run" | undefined;
4732
5281
  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;
5282
+ 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
5283
  work_state?: {
4735
5284
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4736
5285
  source: "absent" | "constrained" | "validated";
@@ -4850,7 +5399,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4850
5399
  checks: "failed" | "not_configured" | "passed";
4851
5400
  review: "approved" | "blocked" | "not_run";
4852
5401
  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;
5402
+ 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
5403
  work_state?: {
4855
5404
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4856
5405
  source: "absent" | "constrained" | "validated";
@@ -4910,7 +5459,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4910
5459
  checks?: "failed" | "not_configured" | "passed" | undefined;
4911
5460
  review?: "approved" | "blocked" | "not_run" | undefined;
4912
5461
  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;
5462
+ 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
5463
  work_state?: {
4915
5464
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4916
5465
  source: "absent" | "constrained" | "validated";
@@ -5302,6 +5851,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5302
5851
  }>, "many">>;
5303
5852
  requestedAt: z.ZodString;
5304
5853
  timeoutAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5854
+ delivery: z.ZodDefault<z.ZodEnum<["blocking", "async"]>>;
5305
5855
  }, "strip", z.ZodTypeAny, {
5306
5856
  interactionId: string;
5307
5857
  runId: string;
@@ -5320,6 +5870,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5320
5870
  }[];
5321
5871
  requestedAt: string;
5322
5872
  timeoutAt: string | null;
5873
+ delivery: "async" | "blocking";
5323
5874
  }, {
5324
5875
  interactionId: string;
5325
5876
  runId: string;
@@ -5338,6 +5889,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5338
5889
  }[] | undefined;
5339
5890
  requestedAt: string;
5340
5891
  timeoutAt?: string | null | undefined;
5892
+ delivery?: "async" | "blocking" | undefined;
5341
5893
  }>, "many">>;
5342
5894
  /** Per-candidate evidence cards. Present for EVERY envelope-producing
5343
5895
  * mode (races show N lanes; single-candidate turns and convergence
@@ -5485,6 +6037,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5485
6037
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
5486
6038
  }>>>;
5487
6039
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
6040
+ lastVendorError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5488
6041
  requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5489
6042
  scope: z.ZodLiteral<"turn_text">;
5490
6043
  unit: z.ZodLiteral<"unicode_scalars">;
@@ -5543,6 +6096,18 @@ export declare const ControlRunDetail: z.ZodObject<{
5543
6096
  native_code: "grok_credential_source_unconfirmed";
5544
6097
  source: "grok_init";
5545
6098
  reported_source: string;
6099
+ }>, z.ZodObject<{
6100
+ kind: z.ZodLiteral<"vendor_not_retryable">;
6101
+ source: z.ZodLiteral<"agy_stderr">;
6102
+ error_id: z.ZodNullable<z.ZodString>;
6103
+ }, "strip", z.ZodTypeAny, {
6104
+ kind: "vendor_not_retryable";
6105
+ source: "agy_stderr";
6106
+ error_id: string | null;
6107
+ }, {
6108
+ kind: "vendor_not_retryable";
6109
+ source: "agy_stderr";
6110
+ error_id: string | null;
5546
6111
  }>]>>;
5547
6112
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
5548
6113
  model: z.ZodString;
@@ -5686,7 +6251,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5686
6251
  }>>;
5687
6252
  phase: z.ZodDefault<z.ZodString>;
5688
6253
  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"]>>>;
6254
+ 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
6255
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5691
6256
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5692
6257
  safeMessage: z.ZodString;
@@ -5725,6 +6290,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5725
6290
  source: string;
5726
6291
  }>>>;
5727
6292
  poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
6293
+ lastVendorError: z.ZodOptional<z.ZodString>;
5728
6294
  harnessId: z.ZodString;
5729
6295
  profileId: z.ZodNullable<z.ZodString>;
5730
6296
  profileDisplayName: z.ZodNullable<z.ZodString>;
@@ -5749,6 +6315,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5749
6315
  source: string;
5750
6316
  }>>;
5751
6317
  }, "strip", z.ZodTypeAny, {
6318
+ lastVendorError?: string | undefined;
5752
6319
  harnessId: string;
5753
6320
  profileId: string | null;
5754
6321
  profileDisplayName: string | null;
@@ -5765,6 +6332,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5765
6332
  source: string;
5766
6333
  } | null;
5767
6334
  }, {
6335
+ lastVendorError?: string | undefined;
5768
6336
  harnessId: string;
5769
6337
  profileId: string | null;
5770
6338
  profileDisplayName: string | null;
@@ -5783,6 +6351,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5783
6351
  }>, "many">>;
5784
6352
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5785
6353
  }, "strip", z.ZodTypeAny, {
6354
+ lastVendorError?: string | null | undefined;
5786
6355
  requestRefusal?: {
5787
6356
  scope: "turn_text";
5788
6357
  unit: "unicode_scalars";
@@ -5802,6 +6371,10 @@ export declare const ControlRunDetail: z.ZodObject<{
5802
6371
  native_code: "grok_credential_source_unconfirmed";
5803
6372
  source: "grok_init";
5804
6373
  reported_source: string;
6374
+ } | {
6375
+ kind: "vendor_not_retryable";
6376
+ source: "agy_stderr";
6377
+ error_id: string | null;
5805
6378
  } | undefined;
5806
6379
  rawContextShortfall?: {
5807
6380
  model: string;
@@ -5841,7 +6414,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5841
6414
  } | undefined;
5842
6415
  phase: string;
5843
6416
  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;
6417
+ 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
6418
  harnessId: string | null;
5846
6419
  attemptId: string | null;
5847
6420
  safeMessage: string;
@@ -5862,6 +6435,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5862
6435
  source: string;
5863
6436
  } | null;
5864
6437
  poolAttempts: {
6438
+ lastVendorError?: string | undefined;
5865
6439
  harnessId: string;
5866
6440
  profileId: string | null;
5867
6441
  profileDisplayName: string | null;
@@ -5880,6 +6454,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5880
6454
  }[];
5881
6455
  nextActions: string[];
5882
6456
  }, {
6457
+ lastVendorError?: string | null | undefined;
5883
6458
  requestRefusal?: {
5884
6459
  scope: "turn_text";
5885
6460
  unit: "unicode_scalars";
@@ -5899,6 +6474,10 @@ export declare const ControlRunDetail: z.ZodObject<{
5899
6474
  native_code: "grok_credential_source_unconfirmed";
5900
6475
  source: "grok_init";
5901
6476
  reported_source: string;
6477
+ } | {
6478
+ kind: "vendor_not_retryable";
6479
+ source: "agy_stderr";
6480
+ error_id: string | null;
5902
6481
  } | undefined;
5903
6482
  rawContextShortfall?: {
5904
6483
  model: string;
@@ -5938,7 +6517,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5938
6517
  } | undefined;
5939
6518
  phase?: string | undefined;
5940
6519
  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;
6520
+ 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
6521
  harnessId?: string | null | undefined;
5943
6522
  attemptId?: string | null | undefined;
5944
6523
  safeMessage: string;
@@ -5959,6 +6538,7 @@ export declare const ControlRunDetail: z.ZodObject<{
5959
6538
  source: string;
5960
6539
  } | null | undefined;
5961
6540
  poolAttempts?: {
6541
+ lastVendorError?: string | undefined;
5962
6542
  harnessId: string;
5963
6543
  profileId: string | null;
5964
6544
  profileDisplayName: string | null;
@@ -5995,6 +6575,11 @@ export declare const ControlRunDetail: z.ZodObject<{
5995
6575
  }>, "many">>;
5996
6576
  }, "strip", z.ZodTypeAny, {
5997
6577
  attemptExecution?: {
6578
+ programs?: {
6579
+ path: string | null;
6580
+ version: string | null;
6581
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
6582
+ }[] | undefined;
5998
6583
  attemptId: string;
5999
6584
  harnessId: string;
6000
6585
  processing?: {
@@ -6034,7 +6619,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6034
6619
  } | null;
6035
6620
  continueFrom: string | null;
6036
6621
  resumable: {
6037
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
6622
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6038
6623
  resetsAt: string | null;
6039
6624
  limitWindow: string | null;
6040
6625
  limitEvidence: "unspecified" | "window" | null;
@@ -6054,7 +6639,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6054
6639
  tryIndex: number;
6055
6640
  attemptId: string;
6056
6641
  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";
6642
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6058
6643
  from: {
6059
6644
  runId: string;
6060
6645
  attemptId: string;
@@ -6077,13 +6662,14 @@ export declare const ControlRunDetail: z.ZodObject<{
6077
6662
  root: string;
6078
6663
  bytes: number | null;
6079
6664
  retainedAt: string;
6080
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
6665
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
6081
6666
  } | null;
6082
6667
  taskId?: string | undefined;
6083
6668
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
6084
6669
  runDir?: string | undefined;
6085
6670
  error?: string | undefined;
6086
6671
  failure: {
6672
+ lastVendorError?: string | null | undefined;
6087
6673
  requestRefusal?: {
6088
6674
  scope: "turn_text";
6089
6675
  unit: "unicode_scalars";
@@ -6103,6 +6689,10 @@ export declare const ControlRunDetail: z.ZodObject<{
6103
6689
  native_code: "grok_credential_source_unconfirmed";
6104
6690
  source: "grok_init";
6105
6691
  reported_source: string;
6692
+ } | {
6693
+ kind: "vendor_not_retryable";
6694
+ source: "agy_stderr";
6695
+ error_id: string | null;
6106
6696
  } | undefined;
6107
6697
  rawContextShortfall?: {
6108
6698
  model: string;
@@ -6142,7 +6732,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6142
6732
  } | undefined;
6143
6733
  phase: string;
6144
6734
  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;
6735
+ 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
6736
  harnessId: string | null;
6147
6737
  attemptId: string | null;
6148
6738
  safeMessage: string;
@@ -6163,6 +6753,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6163
6753
  source: string;
6164
6754
  } | null;
6165
6755
  poolAttempts: {
6756
+ lastVendorError?: string | undefined;
6166
6757
  harnessId: string;
6167
6758
  profileId: string | null;
6168
6759
  profileDisplayName: string | null;
@@ -6251,12 +6842,34 @@ export declare const ControlRunDetail: z.ZodObject<{
6251
6842
  attempted: boolean;
6252
6843
  satisfied: boolean;
6253
6844
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
6845
+ verification: "dispatched" | "none" | "verified";
6846
+ verifiedContent: "page" | "search_results" | null;
6847
+ observation: {
6848
+ evidence: "tool_calls";
6849
+ network: "not_measured";
6850
+ } | null;
6254
6851
  tool: string | null;
6255
6852
  target: string | null;
6256
6853
  errorSummary: string | null;
6257
6854
  rawDetailRef: string | null;
6258
6855
  available: boolean;
6259
6856
  };
6857
+ routeControls: {
6858
+ harnessId: string;
6859
+ webMode: "auto" | "cached" | "live" | "off";
6860
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
6861
+ browser: boolean;
6862
+ browserStartup: {
6863
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
6864
+ waitedMs: number;
6865
+ error: string | null;
6866
+ } | null;
6867
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
6868
+ nativeAccess: string | null;
6869
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
6870
+ nativeSessionStarted: boolean;
6871
+ homeScoped: boolean | null;
6872
+ }[];
6260
6873
  requestRequirements: {
6261
6874
  capability: "browser" | "delegation" | "path_deny";
6262
6875
  harness_id: string;
@@ -6290,7 +6903,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6290
6903
  checks: "failed" | "not_configured" | "passed";
6291
6904
  review: "approved" | "blocked" | "not_run";
6292
6905
  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;
6906
+ 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
6907
  work_state?: {
6295
6908
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6296
6909
  source: "absent" | "constrained" | "validated";
@@ -6303,6 +6916,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6303
6916
  } | undefined;
6304
6917
  } | null;
6305
6918
  waitingOnUser: boolean;
6919
+ asyncQuestionsOnly: boolean;
6306
6920
  processScope: {
6307
6921
  settled: boolean;
6308
6922
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -6311,6 +6925,16 @@ export declare const ControlRunDetail: z.ZodObject<{
6311
6925
  survivors: number;
6312
6926
  unreadable: number;
6313
6927
  } | null;
6928
+ processScopeLater: {
6929
+ settled: boolean;
6930
+ coverage: "marker" | "marker+capture" | "tree_only";
6931
+ completeness: "complete" | "not_provable";
6932
+ census: "failed" | "ok" | "unsupported";
6933
+ survivors: number;
6934
+ unreadable: number;
6935
+ attempt: number;
6936
+ at: string;
6937
+ } | null;
6314
6938
  route: {
6315
6939
  requestedModel: string | null;
6316
6940
  observedModel: string | null;
@@ -6373,6 +6997,20 @@ export declare const ControlRunDetail: z.ZodObject<{
6373
6997
  context: Record<string, unknown>;
6374
6998
  } | undefined;
6375
6999
  } | null;
7000
+ resumed?: {
7001
+ from: {
7002
+ 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";
7003
+ problem?: {
7004
+ message: string;
7005
+ code: string | null;
7006
+ retryable: boolean;
7007
+ required_actions: string[];
7008
+ context: Record<string, unknown>;
7009
+ } | undefined;
7010
+ };
7011
+ reason: "process_scope_settled";
7012
+ at: string;
7013
+ } | undefined;
6376
7014
  dispatchedRevision: number | null;
6377
7015
  successorJobId: string | null;
6378
7016
  successorRunId: string | null;
@@ -6391,7 +7029,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6391
7029
  } | null;
6392
7030
  continueFrom: string | null;
6393
7031
  resumable: {
6394
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
7032
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6395
7033
  resetsAt: string | null;
6396
7034
  limitWindow: string | null;
6397
7035
  limitEvidence: "unspecified" | "window" | null;
@@ -6411,7 +7049,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6411
7049
  tryIndex: number;
6412
7050
  attemptId: string;
6413
7051
  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";
7052
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
6415
7053
  from: {
6416
7054
  runId: string;
6417
7055
  attemptId: string;
@@ -6434,13 +7072,14 @@ export declare const ControlRunDetail: z.ZodObject<{
6434
7072
  root: string;
6435
7073
  bytes: number | null;
6436
7074
  retainedAt: string;
6437
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
7075
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
6438
7076
  } | null;
6439
7077
  taskId?: string | undefined;
6440
7078
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
6441
7079
  runDir?: string | undefined;
6442
7080
  error?: string | undefined;
6443
7081
  failure: {
7082
+ lastVendorError?: string | null | undefined;
6444
7083
  requestRefusal?: {
6445
7084
  scope: "turn_text";
6446
7085
  unit: "unicode_scalars";
@@ -6460,6 +7099,10 @@ export declare const ControlRunDetail: z.ZodObject<{
6460
7099
  native_code: "grok_credential_source_unconfirmed";
6461
7100
  source: "grok_init";
6462
7101
  reported_source: string;
7102
+ } | {
7103
+ kind: "vendor_not_retryable";
7104
+ source: "agy_stderr";
7105
+ error_id: string | null;
6463
7106
  } | undefined;
6464
7107
  rawContextShortfall?: {
6465
7108
  model: string;
@@ -6499,7 +7142,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6499
7142
  } | undefined;
6500
7143
  phase: string;
6501
7144
  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;
7145
+ 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
7146
  harnessId: string | null;
6504
7147
  attemptId: string | null;
6505
7148
  safeMessage: string;
@@ -6520,6 +7163,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6520
7163
  source: string;
6521
7164
  } | null;
6522
7165
  poolAttempts: {
7166
+ lastVendorError?: string | undefined;
6523
7167
  harnessId: string;
6524
7168
  profileId: string | null;
6525
7169
  profileDisplayName: string | null;
@@ -6608,12 +7252,34 @@ export declare const ControlRunDetail: z.ZodObject<{
6608
7252
  attempted: boolean;
6609
7253
  satisfied: boolean;
6610
7254
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
7255
+ verification: "dispatched" | "none" | "verified";
7256
+ verifiedContent: "page" | "search_results" | null;
7257
+ observation: {
7258
+ evidence: "tool_calls";
7259
+ network: "not_measured";
7260
+ } | null;
6611
7261
  tool: string | null;
6612
7262
  target: string | null;
6613
7263
  errorSummary: string | null;
6614
7264
  rawDetailRef: string | null;
6615
7265
  available: boolean;
6616
7266
  };
7267
+ routeControls: {
7268
+ harnessId: string;
7269
+ webMode: "auto" | "cached" | "live" | "off";
7270
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
7271
+ browser: boolean;
7272
+ browserStartup: {
7273
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
7274
+ waitedMs: number;
7275
+ error: string | null;
7276
+ } | null;
7277
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
7278
+ nativeAccess: string | null;
7279
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
7280
+ nativeSessionStarted: boolean;
7281
+ homeScoped: boolean | null;
7282
+ }[];
6617
7283
  requestRequirements: {
6618
7284
  capability: "browser" | "delegation" | "path_deny";
6619
7285
  harness_id: string;
@@ -6647,7 +7313,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6647
7313
  checks: "failed" | "not_configured" | "passed";
6648
7314
  review: "approved" | "blocked" | "not_run";
6649
7315
  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;
7316
+ 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
7317
  work_state?: {
6652
7318
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6653
7319
  source: "absent" | "constrained" | "validated";
@@ -6660,6 +7326,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6660
7326
  } | undefined;
6661
7327
  } | null;
6662
7328
  waitingOnUser: boolean;
7329
+ asyncQuestionsOnly: boolean;
6663
7330
  processScope: {
6664
7331
  settled: boolean;
6665
7332
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -6668,6 +7335,16 @@ export declare const ControlRunDetail: z.ZodObject<{
6668
7335
  survivors: number;
6669
7336
  unreadable: number;
6670
7337
  } | null;
7338
+ processScopeLater: {
7339
+ settled: boolean;
7340
+ coverage: "marker" | "marker+capture" | "tree_only";
7341
+ completeness: "complete" | "not_provable";
7342
+ census: "failed" | "ok" | "unsupported";
7343
+ survivors: number;
7344
+ unreadable: number;
7345
+ attempt: number;
7346
+ at: string;
7347
+ } | null;
6671
7348
  route: {
6672
7349
  requestedModel: string | null;
6673
7350
  observedModel: string | null;
@@ -6724,7 +7401,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6724
7401
  checks: "failed" | "not_configured" | "passed";
6725
7402
  review: "approved" | "blocked" | "not_run";
6726
7403
  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;
7404
+ 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
7405
  work_state?: {
6729
7406
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6730
7407
  source: "absent" | "constrained" | "validated";
@@ -6849,7 +7526,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6849
7526
  checks: "failed" | "not_configured" | "passed";
6850
7527
  review: "approved" | "blocked" | "not_run";
6851
7528
  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;
7529
+ 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
7530
  work_state?: {
6854
7531
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6855
7532
  source: "absent" | "constrained" | "validated";
@@ -6996,6 +7673,7 @@ export declare const ControlRunDetail: z.ZodObject<{
6996
7673
  }[];
6997
7674
  requestedAt: string;
6998
7675
  timeoutAt: string | null;
7676
+ delivery: "async" | "blocking";
6999
7677
  }[];
7000
7678
  candidates: {
7001
7679
  attemptId: string;
@@ -7033,6 +7711,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7033
7711
  evidence: "complete" | "incomplete" | "unavailable";
7034
7712
  } | null;
7035
7713
  failure: {
7714
+ lastVendorError?: string | null | undefined;
7036
7715
  requestRefusal?: {
7037
7716
  scope: "turn_text";
7038
7717
  unit: "unicode_scalars";
@@ -7052,6 +7731,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7052
7731
  native_code: "grok_credential_source_unconfirmed";
7053
7732
  source: "grok_init";
7054
7733
  reported_source: string;
7734
+ } | {
7735
+ kind: "vendor_not_retryable";
7736
+ source: "agy_stderr";
7737
+ error_id: string | null;
7055
7738
  } | undefined;
7056
7739
  rawContextShortfall?: {
7057
7740
  model: string;
@@ -7091,7 +7774,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7091
7774
  } | undefined;
7092
7775
  phase: string;
7093
7776
  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;
7777
+ 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
7778
  harnessId: string | null;
7096
7779
  attemptId: string | null;
7097
7780
  safeMessage: string;
@@ -7112,6 +7795,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7112
7795
  source: string;
7113
7796
  } | null;
7114
7797
  poolAttempts: {
7798
+ lastVendorError?: string | undefined;
7115
7799
  harnessId: string;
7116
7800
  profileId: string | null;
7117
7801
  profileDisplayName: string | null;
@@ -7136,6 +7820,11 @@ export declare const ControlRunDetail: z.ZodObject<{
7136
7820
  }[];
7137
7821
  }, {
7138
7822
  attemptExecution?: {
7823
+ programs?: {
7824
+ path: string | null;
7825
+ version: string | null;
7826
+ versionSource: "remembered" | "unknown" | "vendor_stream" | "version_probe";
7827
+ }[] | undefined;
7139
7828
  attemptId: string;
7140
7829
  harnessId: string;
7141
7830
  processing?: {
@@ -7175,7 +7864,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7175
7864
  } | null | undefined;
7176
7865
  continueFrom?: string | null | undefined;
7177
7866
  resumable?: {
7178
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
7867
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7179
7868
  resetsAt: string | null;
7180
7869
  limitWindow: string | null;
7181
7870
  limitEvidence: "unspecified" | "window" | null;
@@ -7195,7 +7884,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7195
7884
  tryIndex: number;
7196
7885
  attemptId: string;
7197
7886
  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";
7887
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7199
7888
  from: {
7200
7889
  runId: string;
7201
7890
  attemptId: string;
@@ -7218,13 +7907,14 @@ export declare const ControlRunDetail: z.ZodObject<{
7218
7907
  root: string;
7219
7908
  bytes: number | null;
7220
7909
  retainedAt: string;
7221
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
7910
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
7222
7911
  } | null | undefined;
7223
7912
  taskId?: string | undefined;
7224
7913
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
7225
7914
  runDir?: string | undefined;
7226
7915
  error?: string | undefined;
7227
7916
  failure?: {
7917
+ lastVendorError?: string | null | undefined;
7228
7918
  requestRefusal?: {
7229
7919
  scope: "turn_text";
7230
7920
  unit: "unicode_scalars";
@@ -7244,6 +7934,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7244
7934
  native_code: "grok_credential_source_unconfirmed";
7245
7935
  source: "grok_init";
7246
7936
  reported_source: string;
7937
+ } | {
7938
+ kind: "vendor_not_retryable";
7939
+ source: "agy_stderr";
7940
+ error_id: string | null;
7247
7941
  } | undefined;
7248
7942
  rawContextShortfall?: {
7249
7943
  model: string;
@@ -7283,7 +7977,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7283
7977
  } | undefined;
7284
7978
  phase?: string | undefined;
7285
7979
  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;
7980
+ 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
7981
  harnessId?: string | null | undefined;
7288
7982
  attemptId?: string | null | undefined;
7289
7983
  safeMessage: string;
@@ -7304,6 +7998,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7304
7998
  source: string;
7305
7999
  } | null | undefined;
7306
8000
  poolAttempts?: {
8001
+ lastVendorError?: string | undefined;
7307
8002
  harnessId: string;
7308
8003
  profileId: string | null;
7309
8004
  profileDisplayName: string | null;
@@ -7392,12 +8087,34 @@ export declare const ControlRunDetail: z.ZodObject<{
7392
8087
  attempted?: boolean | undefined;
7393
8088
  satisfied?: boolean | undefined;
7394
8089
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
8090
+ verification?: "dispatched" | "none" | "verified" | undefined;
8091
+ verifiedContent?: "page" | "search_results" | null | undefined;
8092
+ observation?: {
8093
+ evidence: "tool_calls";
8094
+ network: "not_measured";
8095
+ } | null | undefined;
7395
8096
  tool?: string | null | undefined;
7396
8097
  target?: string | null | undefined;
7397
8098
  errorSummary?: string | null | undefined;
7398
8099
  rawDetailRef?: string | null | undefined;
7399
8100
  available?: boolean | undefined;
7400
8101
  } | undefined;
8102
+ routeControls?: {
8103
+ harnessId: string;
8104
+ webMode: "auto" | "cached" | "live" | "off";
8105
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
8106
+ browser: boolean;
8107
+ browserStartup?: {
8108
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
8109
+ waitedMs: number;
8110
+ error: string | null;
8111
+ } | null | undefined;
8112
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
8113
+ nativeAccess: string | null;
8114
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
8115
+ nativeSessionStarted: boolean;
8116
+ homeScoped: boolean | null;
8117
+ }[] | undefined;
7401
8118
  requestRequirements?: {
7402
8119
  capability: "browser" | "delegation" | "path_deny";
7403
8120
  harness_id: string;
@@ -7431,7 +8148,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7431
8148
  checks?: "failed" | "not_configured" | "passed" | undefined;
7432
8149
  review?: "approved" | "blocked" | "not_run" | undefined;
7433
8150
  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;
8151
+ 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
8152
  work_state?: {
7436
8153
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7437
8154
  source: "absent" | "constrained" | "validated";
@@ -7444,6 +8161,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7444
8161
  } | undefined;
7445
8162
  } | null | undefined;
7446
8163
  waitingOnUser?: boolean | undefined;
8164
+ asyncQuestionsOnly?: boolean | undefined;
7447
8165
  processScope?: {
7448
8166
  settled: boolean;
7449
8167
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -7452,6 +8170,16 @@ export declare const ControlRunDetail: z.ZodObject<{
7452
8170
  survivors: number;
7453
8171
  unreadable: number;
7454
8172
  } | null | undefined;
8173
+ processScopeLater?: {
8174
+ settled: boolean;
8175
+ coverage: "marker" | "marker+capture" | "tree_only";
8176
+ completeness: "complete" | "not_provable";
8177
+ census: "failed" | "ok" | "unsupported";
8178
+ survivors: number;
8179
+ unreadable: number;
8180
+ attempt: number;
8181
+ at: string;
8182
+ } | null | undefined;
7455
8183
  route?: {
7456
8184
  requestedModel?: string | null | undefined;
7457
8185
  observedModel?: string | null | undefined;
@@ -7514,6 +8242,20 @@ export declare const ControlRunDetail: z.ZodObject<{
7514
8242
  context?: Record<string, unknown> | undefined;
7515
8243
  } | undefined;
7516
8244
  } | null;
8245
+ resumed?: {
8246
+ from: {
8247
+ 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";
8248
+ problem?: {
8249
+ message: string;
8250
+ code?: string | null | undefined;
8251
+ retryable?: boolean | undefined;
8252
+ required_actions?: string[] | undefined;
8253
+ context?: Record<string, unknown> | undefined;
8254
+ } | undefined;
8255
+ };
8256
+ reason: "process_scope_settled";
8257
+ at: string;
8258
+ } | undefined;
7517
8259
  dispatchedRevision: number | null;
7518
8260
  successorJobId: string | null;
7519
8261
  successorRunId: string | null;
@@ -7532,7 +8274,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7532
8274
  } | null | undefined;
7533
8275
  continueFrom?: string | null | undefined;
7534
8276
  resumable?: {
7535
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
8277
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7536
8278
  resetsAt: string | null;
7537
8279
  limitWindow: string | null;
7538
8280
  limitEvidence: "unspecified" | "window" | null;
@@ -7552,7 +8294,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7552
8294
  tryIndex: number;
7553
8295
  attemptId: string;
7554
8296
  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";
8297
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
7556
8298
  from: {
7557
8299
  runId: string;
7558
8300
  attemptId: string;
@@ -7575,13 +8317,14 @@ export declare const ControlRunDetail: z.ZodObject<{
7575
8317
  root: string;
7576
8318
  bytes: number | null;
7577
8319
  retainedAt: string;
7578
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
8320
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
7579
8321
  } | null | undefined;
7580
8322
  taskId?: string | undefined;
7581
8323
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
7582
8324
  runDir?: string | undefined;
7583
8325
  error?: string | undefined;
7584
8326
  failure?: {
8327
+ lastVendorError?: string | null | undefined;
7585
8328
  requestRefusal?: {
7586
8329
  scope: "turn_text";
7587
8330
  unit: "unicode_scalars";
@@ -7601,6 +8344,10 @@ export declare const ControlRunDetail: z.ZodObject<{
7601
8344
  native_code: "grok_credential_source_unconfirmed";
7602
8345
  source: "grok_init";
7603
8346
  reported_source: string;
8347
+ } | {
8348
+ kind: "vendor_not_retryable";
8349
+ source: "agy_stderr";
8350
+ error_id: string | null;
7604
8351
  } | undefined;
7605
8352
  rawContextShortfall?: {
7606
8353
  model: string;
@@ -7640,7 +8387,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7640
8387
  } | undefined;
7641
8388
  phase?: string | undefined;
7642
8389
  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;
8390
+ 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
8391
  harnessId?: string | null | undefined;
7645
8392
  attemptId?: string | null | undefined;
7646
8393
  safeMessage: string;
@@ -7661,6 +8408,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7661
8408
  source: string;
7662
8409
  } | null | undefined;
7663
8410
  poolAttempts?: {
8411
+ lastVendorError?: string | undefined;
7664
8412
  harnessId: string;
7665
8413
  profileId: string | null;
7666
8414
  profileDisplayName: string | null;
@@ -7749,12 +8497,34 @@ export declare const ControlRunDetail: z.ZodObject<{
7749
8497
  attempted?: boolean | undefined;
7750
8498
  satisfied?: boolean | undefined;
7751
8499
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
8500
+ verification?: "dispatched" | "none" | "verified" | undefined;
8501
+ verifiedContent?: "page" | "search_results" | null | undefined;
8502
+ observation?: {
8503
+ evidence: "tool_calls";
8504
+ network: "not_measured";
8505
+ } | null | undefined;
7752
8506
  tool?: string | null | undefined;
7753
8507
  target?: string | null | undefined;
7754
8508
  errorSummary?: string | null | undefined;
7755
8509
  rawDetailRef?: string | null | undefined;
7756
8510
  available?: boolean | undefined;
7757
8511
  } | undefined;
8512
+ routeControls?: {
8513
+ harnessId: string;
8514
+ webMode: "auto" | "cached" | "live" | "off";
8515
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
8516
+ browser: boolean;
8517
+ browserStartup?: {
8518
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
8519
+ waitedMs: number;
8520
+ error: string | null;
8521
+ } | null | undefined;
8522
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
8523
+ nativeAccess: string | null;
8524
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
8525
+ nativeSessionStarted: boolean;
8526
+ homeScoped: boolean | null;
8527
+ }[] | undefined;
7758
8528
  requestRequirements?: {
7759
8529
  capability: "browser" | "delegation" | "path_deny";
7760
8530
  harness_id: string;
@@ -7788,7 +8558,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7788
8558
  checks?: "failed" | "not_configured" | "passed" | undefined;
7789
8559
  review?: "approved" | "blocked" | "not_run" | undefined;
7790
8560
  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;
8561
+ 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
8562
  work_state?: {
7793
8563
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7794
8564
  source: "absent" | "constrained" | "validated";
@@ -7801,6 +8571,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7801
8571
  } | undefined;
7802
8572
  } | null | undefined;
7803
8573
  waitingOnUser?: boolean | undefined;
8574
+ asyncQuestionsOnly?: boolean | undefined;
7804
8575
  processScope?: {
7805
8576
  settled: boolean;
7806
8577
  coverage: "marker" | "marker+capture" | "tree_only";
@@ -7809,6 +8580,16 @@ export declare const ControlRunDetail: z.ZodObject<{
7809
8580
  survivors: number;
7810
8581
  unreadable: number;
7811
8582
  } | null | undefined;
8583
+ processScopeLater?: {
8584
+ settled: boolean;
8585
+ coverage: "marker" | "marker+capture" | "tree_only";
8586
+ completeness: "complete" | "not_provable";
8587
+ census: "failed" | "ok" | "unsupported";
8588
+ survivors: number;
8589
+ unreadable: number;
8590
+ attempt: number;
8591
+ at: string;
8592
+ } | null | undefined;
7812
8593
  route?: {
7813
8594
  requestedModel?: string | null | undefined;
7814
8595
  observedModel?: string | null | undefined;
@@ -7865,7 +8646,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7865
8646
  checks?: "failed" | "not_configured" | "passed" | undefined;
7866
8647
  review?: "approved" | "blocked" | "not_run" | undefined;
7867
8648
  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;
8649
+ 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
8650
  work_state?: {
7870
8651
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7871
8652
  source: "absent" | "constrained" | "validated";
@@ -7990,7 +8771,7 @@ export declare const ControlRunDetail: z.ZodObject<{
7990
8771
  checks?: "failed" | "not_configured" | "passed" | undefined;
7991
8772
  review?: "approved" | "blocked" | "not_run" | undefined;
7992
8773
  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;
8774
+ 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
8775
  work_state?: {
7995
8776
  state: "completed" | "incomplete" | "needs_input" | "unverified";
7996
8777
  source: "absent" | "constrained" | "validated";
@@ -8137,6 +8918,7 @@ export declare const ControlRunDetail: z.ZodObject<{
8137
8918
  }[] | undefined;
8138
8919
  requestedAt: string;
8139
8920
  timeoutAt?: string | null | undefined;
8921
+ delivery?: "async" | "blocking" | undefined;
8140
8922
  }[] | undefined;
8141
8923
  candidates?: {
8142
8924
  attemptId: string;
@@ -8174,6 +8956,7 @@ export declare const ControlRunDetail: z.ZodObject<{
8174
8956
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
8175
8957
  } | null | undefined;
8176
8958
  failure?: {
8959
+ lastVendorError?: string | null | undefined;
8177
8960
  requestRefusal?: {
8178
8961
  scope: "turn_text";
8179
8962
  unit: "unicode_scalars";
@@ -8193,6 +8976,10 @@ export declare const ControlRunDetail: z.ZodObject<{
8193
8976
  native_code: "grok_credential_source_unconfirmed";
8194
8977
  source: "grok_init";
8195
8978
  reported_source: string;
8979
+ } | {
8980
+ kind: "vendor_not_retryable";
8981
+ source: "agy_stderr";
8982
+ error_id: string | null;
8196
8983
  } | undefined;
8197
8984
  rawContextShortfall?: {
8198
8985
  model: string;
@@ -8232,7 +9019,7 @@ export declare const ControlRunDetail: z.ZodObject<{
8232
9019
  } | undefined;
8233
9020
  phase?: string | undefined;
8234
9021
  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;
9022
+ 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
9023
  harnessId?: string | null | undefined;
8237
9024
  attemptId?: string | null | undefined;
8238
9025
  safeMessage: string;
@@ -8253,6 +9040,7 @@ export declare const ControlRunDetail: z.ZodObject<{
8253
9040
  source: string;
8254
9041
  } | null | undefined;
8255
9042
  poolAttempts?: {
9043
+ lastVendorError?: string | undefined;
8256
9044
  harnessId: string;
8257
9045
  profileId: string | null;
8258
9046
  profileDisplayName: string | null;