@claudexor/schema 5.0.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/account-routing-evidence.d.ts +256 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -1
  3. package/dist/account-routing-evidence.js +27 -2
  4. package/dist/account-routing-evidence.js.map +1 -1
  5. package/dist/agent-capabilities.d.ts +3 -0
  6. package/dist/agent-capabilities.d.ts.map +1 -1
  7. package/dist/agent-capabilities.js +6 -2
  8. package/dist/agent-capabilities.js.map +1 -1
  9. package/dist/attachment.d.ts +103 -6
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +32 -6
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/browser-evidence.d.ts +85 -0
  14. package/dist/browser-evidence.d.ts.map +1 -0
  15. package/dist/browser-evidence.js +72 -0
  16. package/dist/browser-evidence.js.map +1 -0
  17. package/dist/config.d.ts.map +1 -1
  18. package/dist/config.js +1 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/control-gc.d.ts +30 -0
  21. package/dist/control-gc.d.ts.map +1 -1
  22. package/dist/control-gc.js +28 -1
  23. package/dist/control-gc.js.map +1 -1
  24. package/dist/control-operation-responses.d.ts +438 -36
  25. package/dist/control-operation-responses.d.ts.map +1 -1
  26. package/dist/control-operation-responses.js +11 -2
  27. package/dist/control-operation-responses.js.map +1 -1
  28. package/dist/control-process-scope.d.ts +34 -0
  29. package/dist/control-process-scope.d.ts.map +1 -1
  30. package/dist/control-process-scope.js +13 -0
  31. package/dist/control-process-scope.js.map +1 -1
  32. package/dist/control-run-detail.d.ts +785 -89
  33. package/dist/control-run-detail.d.ts.map +1 -1
  34. package/dist/control-run-event-part.d.ts +3 -3
  35. package/dist/control-run-failure.d.ts +29 -6
  36. package/dist/control-run-failure.d.ts.map +1 -1
  37. package/dist/control-run-failure.js +28 -3
  38. package/dist/control-run-failure.js.map +1 -1
  39. package/dist/control-trust.d.ts +8 -0
  40. package/dist/control-trust.d.ts.map +1 -1
  41. package/dist/control-trust.js +4 -0
  42. package/dist/control-trust.js.map +1 -1
  43. package/dist/control-web-evidence.d.ts +125 -0
  44. package/dist/control-web-evidence.d.ts.map +1 -0
  45. package/dist/control-web-evidence.js +109 -0
  46. package/dist/control-web-evidence.js.map +1 -0
  47. package/dist/control.d.ts +292 -98
  48. package/dist/control.d.ts.map +1 -1
  49. package/dist/control.js +43 -49
  50. package/dist/control.js.map +1 -1
  51. package/dist/credential-profile.d.ts +4 -3
  52. package/dist/credential-profile.d.ts.map +1 -1
  53. package/dist/credential-profile.js +4 -3
  54. package/dist/credential-profile.js.map +1 -1
  55. package/dist/decision.d.ts +9 -9
  56. package/dist/decision.d.ts.map +1 -1
  57. package/dist/decision.js +2 -0
  58. package/dist/decision.js.map +1 -1
  59. package/dist/deferred-message.d.ts +646 -0
  60. package/dist/deferred-message.d.ts.map +1 -1
  61. package/dist/deferred-message.js +16 -2
  62. package/dist/deferred-message.js.map +1 -1
  63. package/dist/events.d.ts +10 -10
  64. package/dist/events.d.ts.map +1 -1
  65. package/dist/events.js +6 -0
  66. package/dist/events.js.map +1 -1
  67. package/dist/harness-confinement.js +1 -1
  68. package/dist/harness-confinement.js.map +1 -1
  69. package/dist/harness-input.d.ts +12 -0
  70. package/dist/harness-input.d.ts.map +1 -1
  71. package/dist/harness-input.js +11 -1
  72. package/dist/harness-input.js.map +1 -1
  73. package/dist/harness-interaction.d.ts +20 -0
  74. package/dist/harness-interaction.d.ts.map +1 -1
  75. package/dist/harness-interaction.js +36 -0
  76. package/dist/harness-interaction.js.map +1 -1
  77. package/dist/harness.d.ts +95 -19
  78. package/dist/harness.d.ts.map +1 -1
  79. package/dist/harness.js +16 -15
  80. package/dist/harness.js.map +1 -1
  81. package/dist/index.d.ts +5 -0
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +5 -0
  84. package/dist/index.js.map +1 -1
  85. package/dist/mcp-run-result.d.ts +363 -50
  86. package/dist/mcp-run-result.d.ts.map +1 -1
  87. package/dist/mcp-run-wait.d.ts +133 -7
  88. package/dist/mcp-run-wait.d.ts.map +1 -1
  89. package/dist/operation.d.ts +1 -1
  90. package/dist/operation.d.ts.map +1 -1
  91. package/dist/operation.js +1 -1
  92. package/dist/operation.js.map +1 -1
  93. package/dist/process-scope.d.ts +154 -0
  94. package/dist/process-scope.d.ts.map +1 -1
  95. package/dist/process-scope.js +16 -1
  96. package/dist/process-scope.js.map +1 -1
  97. package/dist/quota.d.ts +14 -0
  98. package/dist/quota.d.ts.map +1 -1
  99. package/dist/quota.js +14 -0
  100. package/dist/quota.js.map +1 -1
  101. package/dist/rate-limit.d.ts +3 -0
  102. package/dist/rate-limit.d.ts.map +1 -1
  103. package/dist/rate-limit.js +4 -0
  104. package/dist/rate-limit.js.map +1 -1
  105. package/dist/raw.d.ts.map +1 -1
  106. package/dist/raw.js +11 -5
  107. package/dist/raw.js.map +1 -1
  108. package/dist/route-controls.d.ts +49 -0
  109. package/dist/route-controls.d.ts.map +1 -0
  110. package/dist/route-controls.js +53 -0
  111. package/dist/route-controls.js.map +1 -0
  112. package/dist/route-health.d.ts +23 -23
  113. package/dist/route-health.js +1 -1
  114. package/dist/route-health.js.map +1 -1
  115. package/dist/run-continuation.d.ts +6 -6
  116. package/dist/run-continuity.d.ts +7 -7
  117. package/dist/run-continuity.d.ts.map +1 -1
  118. package/dist/run-continuity.js +2 -1
  119. package/dist/run-continuity.js.map +1 -1
  120. package/dist/run-facts.d.ts +5 -5
  121. package/dist/run-facts.js +1 -1
  122. package/dist/run-facts.js.map +1 -1
  123. package/dist/status-projection.d.ts +3 -2
  124. package/dist/status-projection.d.ts.map +1 -1
  125. package/dist/status-projection.js +5 -2
  126. package/dist/status-projection.js.map +1 -1
  127. package/dist/task-group.d.ts +3 -0
  128. package/dist/task-group.d.ts.map +1 -1
  129. package/dist/task-group.js +11 -1
  130. package/dist/task-group.js.map +1 -1
  131. package/dist/task.d.ts +2 -2
  132. package/dist/task.d.ts.map +1 -1
  133. package/dist/task.js +4 -4
  134. package/dist/task.js.map +1 -1
  135. package/dist/telemetry.d.ts +602 -117
  136. package/dist/telemetry.d.ts.map +1 -1
  137. package/dist/telemetry.js +17 -88
  138. package/dist/telemetry.js.map +1 -1
  139. package/dist/thread-export.d.ts +847 -0
  140. package/dist/thread-export.d.ts.map +1 -0
  141. package/dist/thread-export.js +238 -0
  142. package/dist/thread-export.js.map +1 -0
  143. package/dist/thread-history.d.ts +248 -132
  144. package/dist/thread-history.d.ts.map +1 -1
  145. package/dist/thread.d.ts +72 -6
  146. package/dist/thread.d.ts.map +1 -1
  147. package/dist/thread.js +19 -3
  148. package/dist/thread.js.map +1 -1
  149. package/dist/tool-ref.d.ts +172 -21
  150. package/dist/tool-ref.d.ts.map +1 -1
  151. package/dist/tool-ref.js +114 -29
  152. package/dist/tool-ref.js.map +1 -1
  153. package/dist/web-evidence.d.ts +91 -0
  154. package/dist/web-evidence.d.ts.map +1 -0
  155. package/dist/web-evidence.js +77 -0
  156. package/dist/web-evidence.js.map +1 -0
  157. package/dist/workspace-preparation.d.ts +54 -0
  158. package/dist/workspace-preparation.d.ts.map +1 -0
  159. package/dist/workspace-preparation.js +59 -0
  160. package/dist/workspace-preparation.js.map +1 -0
  161. package/dist/workspace.js +1 -1
  162. package/dist/workspace.js.map +1 -1
  163. package/generated/AgentCapabilityCatalog.schema.json +20 -2
  164. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
  165. package/generated/ControlCredentialProfilesQueryResponse.schema.json +2 -2
  166. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2 -2
  167. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +2 -2
  168. package/generated/ControlGcLastResponse.schema.json +22 -0
  169. package/generated/ControlGcReceipt.schema.json +13 -1
  170. package/generated/ControlHarnessListResponse.schema.json +2 -2
  171. package/generated/ControlQueuedRunInfo.schema.json +1 -1
  172. package/generated/ControlResource.schema.json +5 -0
  173. package/generated/ControlResourceRelease.schema.json +44 -0
  174. package/generated/ControlResourceReleaseRequest.schema.json +27 -0
  175. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  176. package/generated/ControlRouteHealth.schema.json +13 -1
  177. package/generated/ControlRunControlResponse.schema.json +41 -3
  178. package/generated/ControlRunDecisionRequest.schema.json +8 -2
  179. package/generated/ControlRunDecisionResponse.schema.json +4 -3
  180. package/generated/ControlRunDetail.schema.json +337 -10
  181. package/generated/ControlRunEventPart.schema.json +1 -0
  182. package/generated/ControlRunListResponse.schema.json +296 -7
  183. package/generated/ControlRunRetryResponse.schema.json +1 -1
  184. package/generated/ControlRunStartInfo.schema.json +1 -1
  185. package/generated/ControlRunStartResponse.schema.json +2 -2
  186. package/generated/ControlRunSummary.schema.json +296 -7
  187. package/generated/ControlThreadDetail.schema.json +1 -0
  188. package/generated/ControlThreadTurnResponse.schema.json +9 -0
  189. package/generated/ControlTrustListResponse.schema.json +8 -0
  190. package/generated/ControlTrustState.schema.json +8 -0
  191. package/generated/ControlUploadImport.schema.json +12 -2
  192. package/generated/ControlUploadImportRequest.schema.json +5 -0
  193. package/generated/DecisionRecord.schema.json +1 -0
  194. package/generated/DeferredMessageDetail.schema.json +43 -7
  195. package/generated/DeferredMessageProjection.schema.json +41 -3
  196. package/generated/DeferredMessageReadResult.schema.json +42 -4
  197. package/generated/DeferredMessageReceipt.schema.json +41 -3
  198. package/generated/EnvelopeCustody.schema.json +3 -2
  199. package/generated/GlobalConfig.schema.json +1 -1
  200. package/generated/HarnessEvent.schema.json +140 -4
  201. package/generated/HarnessManifest.schema.json +2 -2
  202. package/generated/HarnessStatusDto.schema.json +2 -2
  203. package/generated/McpAccountsToolResult.schema.json +62 -2
  204. package/generated/McpRunHandleResult.schema.json +90 -6
  205. package/generated/McpRunToolResult.schema.json +89 -6
  206. package/generated/McpRunWaitResult.schema.json +42 -3
  207. package/generated/McpThreadTurnResult.schema.json +9 -0
  208. package/generated/RawContextPacket.schema.json +6 -4
  209. package/generated/RawGitPatchEnvelope.schema.json +1 -1
  210. package/generated/RoutePoolDegradedPayload.schema.json +2 -1
  211. package/generated/RunContinuityReceipt.schema.json +2 -1
  212. package/generated/RunEvent.schema.json +1 -0
  213. package/generated/RunFacts.schema.json +1 -0
  214. package/generated/RunFailure.schema.json +46 -2
  215. package/generated/RunResumable.schema.json +2 -1
  216. package/generated/RunTelemetry.schema.json +288 -7
  217. package/generated/TaskContract.schema.json +3 -3
  218. package/generated/TaskGroupReceipt.schema.json +1 -1
  219. package/generated/Thread.schema.json +41 -0
  220. package/generated/ThreadExportManifest.schema.json +461 -0
  221. package/generated/ThreadExportReceipt.schema.json +94 -0
  222. package/generated/ThreadHistoryPage.schema.json +47 -2
  223. package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
  224. package/generated/ThreadRetireRequest.schema.json +41 -0
  225. package/generated/ThreadRetirement.schema.json +175 -0
  226. package/generated/ThreadTurn.schema.json +1 -1
  227. package/generated/WorkspaceEnvelope.schema.json +1 -1
  228. package/generated/WorkspacePreparedPayload.schema.json +67 -0
  229. package/package.json +2 -2
package/dist/control.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod/v3";
2
2
  export { ControlQuotaResponse } from "./quota.js";
3
+ export { ControlRouteControl, ControlWebEvidence } from "./control-web-evidence.js";
3
4
  export { RunExecution } from "./control-run-execution.js";
4
5
  export { ControlTimelineEvent } from "./control-timeline.js";
5
6
  export declare const ControlReviewerPanelEntry: z.ZodObject<{
@@ -1566,47 +1567,6 @@ export declare const ControlProjectMetadata: z.ZodObject<{
1566
1567
  context?: "auto" | "off" | undefined;
1567
1568
  }>;
1568
1569
  export type ControlProjectMetadata = z.infer<typeof ControlProjectMetadata>;
1569
- export declare const ControlWebEvidence: z.ZodObject<{
1570
- required: z.ZodDefault<z.ZodBoolean>;
1571
- /** Requested external-context policy for the run. */
1572
- mode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
1573
- /** Mode the selected route actually executed (disclosed upgrades, e.g. claude cached->live). */
1574
- effectiveMode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
1575
- attempted: z.ZodDefault<z.ZodBoolean>;
1576
- satisfied: z.ZodDefault<z.ZodBoolean>;
1577
- status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
1578
- tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1579
- target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1580
- errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1581
- rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1582
- /** False when the run predates telemetry.yaml; surfaces must render "telemetry unavailable". */
1583
- available: z.ZodDefault<z.ZodBoolean>;
1584
- }, "strip", z.ZodTypeAny, {
1585
- required: boolean;
1586
- mode: "auto" | "cached" | "live" | "off";
1587
- effectiveMode: "auto" | "cached" | "live" | "off";
1588
- attempted: boolean;
1589
- satisfied: boolean;
1590
- status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1591
- tool: string | null;
1592
- target: string | null;
1593
- errorSummary: string | null;
1594
- rawDetailRef: string | null;
1595
- available: boolean;
1596
- }, {
1597
- required?: boolean | undefined;
1598
- mode?: "auto" | "cached" | "live" | "off" | undefined;
1599
- effectiveMode?: "auto" | "cached" | "live" | "off" | undefined;
1600
- attempted?: boolean | undefined;
1601
- satisfied?: boolean | undefined;
1602
- status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
1603
- tool?: string | null | undefined;
1604
- target?: string | null | undefined;
1605
- errorSummary?: string | null | undefined;
1606
- rawDetailRef?: string | null | undefined;
1607
- available?: boolean | undefined;
1608
- }>;
1609
- export type ControlWebEvidence = z.infer<typeof ControlWebEvidence>;
1610
1570
  /**
1611
1571
  * Run-level route evidence projected from telemetry (observed model per
1612
1572
  * attempt). `verified` is true only when an observed model was actually
@@ -1653,6 +1613,8 @@ export declare const RunDeliveryState: z.ZodObject<{
1653
1613
  deliveredAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1654
1614
  revertAnchorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1655
1615
  postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1616
+ takenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1617
+ takenReason: z.ZodOptional<z.ZodLiteral<"captured_result">>;
1656
1618
  }, "strip", z.ZodTypeAny, {
1657
1619
  applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
1658
1620
  appliedPaths?: string[] | undefined;
@@ -1660,6 +1622,8 @@ export declare const RunDeliveryState: z.ZodObject<{
1660
1622
  deliveredAt: string | null;
1661
1623
  revertAnchorId?: string | null | undefined;
1662
1624
  postTurnSha: string | null;
1625
+ takenAt?: string | null | undefined;
1626
+ takenReason?: "captured_result" | undefined;
1663
1627
  }, {
1664
1628
  applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
1665
1629
  appliedPaths?: string[] | undefined;
@@ -1667,6 +1631,8 @@ export declare const RunDeliveryState: z.ZodObject<{
1667
1631
  deliveredAt?: string | null | undefined;
1668
1632
  revertAnchorId?: string | null | undefined;
1669
1633
  postTurnSha?: string | null | undefined;
1634
+ takenAt?: string | null | undefined;
1635
+ takenReason?: "captured_result" | undefined;
1670
1636
  }>;
1671
1637
  export type RunDeliveryState = z.infer<typeof RunDeliveryState>;
1672
1638
  export declare const ControlRunResult: z.ZodObject<{
@@ -1765,7 +1731,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1765
1731
  }>>>;
1766
1732
  continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1767
1733
  resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1768
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1734
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1769
1735
  resetsAt: z.ZodNullable<z.ZodString>;
1770
1736
  limitWindow: z.ZodNullable<z.ZodString>;
1771
1737
  limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
@@ -1795,7 +1761,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1795
1761
  root: string | null;
1796
1762
  }>;
1797
1763
  }, "strict", z.ZodTypeAny, {
1798
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1764
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1799
1765
  resetsAt: string | null;
1800
1766
  limitWindow: string | null;
1801
1767
  limitEvidence: "unspecified" | "window" | null;
@@ -1811,7 +1777,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1811
1777
  root: string | null;
1812
1778
  };
1813
1779
  }, {
1814
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1780
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1815
1781
  resetsAt: string | null;
1816
1782
  limitWindow: string | null;
1817
1783
  limitEvidence: "unspecified" | "window" | null;
@@ -1831,7 +1797,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1831
1797
  tryIndex: z.ZodNumber;
1832
1798
  attemptId: z.ZodString;
1833
1799
  carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
1834
- cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1800
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1835
1801
  from: z.ZodObject<{
1836
1802
  runId: z.ZodString;
1837
1803
  attemptId: z.ZodString;
@@ -1865,7 +1831,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1865
1831
  tryIndex: number;
1866
1832
  attemptId: string;
1867
1833
  carrier: "fresh" | "native" | "native_moved" | "packet";
1868
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1834
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1869
1835
  from: {
1870
1836
  runId: string;
1871
1837
  attemptId: string;
@@ -1887,7 +1853,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1887
1853
  tryIndex: number;
1888
1854
  attemptId: string;
1889
1855
  carrier: "fresh" | "native" | "native_moved" | "packet";
1890
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1856
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
1891
1857
  from: {
1892
1858
  runId: string;
1893
1859
  attemptId: string;
@@ -1910,17 +1876,17 @@ export declare const ControlRunSummary: z.ZodObject<{
1910
1876
  root: z.ZodString;
1911
1877
  bytes: z.ZodNullable<z.ZodNumber>;
1912
1878
  retainedAt: z.ZodString;
1913
- cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
1879
+ 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"]>>;
1914
1880
  }, "strict", z.ZodTypeAny, {
1915
1881
  root: string;
1916
1882
  bytes: number | null;
1917
1883
  retainedAt: string;
1918
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1884
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1919
1885
  }, {
1920
1886
  root: string;
1921
1887
  bytes: number | null;
1922
1888
  retainedAt: string;
1923
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1889
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
1924
1890
  }>>>;
1925
1891
  taskId: z.ZodOptional<z.ZodString>;
1926
1892
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
@@ -1985,6 +1951,18 @@ export declare const ControlRunSummary: z.ZodObject<{
1985
1951
  native_code: "grok_credential_source_unconfirmed";
1986
1952
  source: "grok_init";
1987
1953
  reported_source: string;
1954
+ }>, z.ZodObject<{
1955
+ kind: z.ZodLiteral<"vendor_not_retryable">;
1956
+ source: z.ZodLiteral<"agy_stderr">;
1957
+ error_id: z.ZodNullable<z.ZodString>;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ kind: "vendor_not_retryable";
1960
+ source: "agy_stderr";
1961
+ error_id: string | null;
1962
+ }, {
1963
+ kind: "vendor_not_retryable";
1964
+ source: "agy_stderr";
1965
+ error_id: string | null;
1988
1966
  }>]>>;
1989
1967
  rawContextShortfall: z.ZodOptional<z.ZodObject<{
1990
1968
  model: z.ZodString;
@@ -2128,7 +2106,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2128
2106
  }>>;
2129
2107
  phase: z.ZodDefault<z.ZodString>;
2130
2108
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
2131
- 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"]>>>;
2109
+ 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"]>>>;
2132
2110
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2133
2111
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2134
2112
  safeMessage: z.ZodString;
@@ -2244,6 +2222,10 @@ export declare const ControlRunSummary: z.ZodObject<{
2244
2222
  native_code: "grok_credential_source_unconfirmed";
2245
2223
  source: "grok_init";
2246
2224
  reported_source: string;
2225
+ } | {
2226
+ kind: "vendor_not_retryable";
2227
+ source: "agy_stderr";
2228
+ error_id: string | null;
2247
2229
  } | undefined;
2248
2230
  rawContextShortfall?: {
2249
2231
  model: string;
@@ -2283,7 +2265,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2283
2265
  } | undefined;
2284
2266
  phase: string;
2285
2267
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2286
- 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;
2268
+ 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;
2287
2269
  harnessId: string | null;
2288
2270
  attemptId: string | null;
2289
2271
  safeMessage: string;
@@ -2341,6 +2323,10 @@ export declare const ControlRunSummary: z.ZodObject<{
2341
2323
  native_code: "grok_credential_source_unconfirmed";
2342
2324
  source: "grok_init";
2343
2325
  reported_source: string;
2326
+ } | {
2327
+ kind: "vendor_not_retryable";
2328
+ source: "agy_stderr";
2329
+ error_id: string | null;
2344
2330
  } | undefined;
2345
2331
  rawContextShortfall?: {
2346
2332
  model: string;
@@ -2380,7 +2366,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2380
2366
  } | undefined;
2381
2367
  phase?: string | undefined;
2382
2368
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2383
- 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;
2369
+ 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;
2384
2370
  harnessId?: string | null | undefined;
2385
2371
  attemptId?: string | null | undefined;
2386
2372
  safeMessage: string;
@@ -2571,18 +2557,27 @@ export declare const ControlRunSummary: z.ZodObject<{
2571
2557
  webMode: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
2572
2558
  webEvidence: z.ZodDefault<z.ZodObject<{
2573
2559
  required: z.ZodDefault<z.ZodBoolean>;
2574
- /** Requested external-context policy for the run. */
2575
2560
  mode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
2576
- /** Mode the selected route actually executed (disclosed upgrades, e.g. claude cached->live). */
2577
2561
  effectiveMode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
2578
2562
  attempted: z.ZodDefault<z.ZodBoolean>;
2579
2563
  satisfied: z.ZodDefault<z.ZodBoolean>;
2580
2564
  status: z.ZodDefault<z.ZodEnum<["none", "attempted", "satisfied", "failed", "unverified"]>>;
2565
+ verification: z.ZodDefault<z.ZodEnum<["verified", "dispatched", "none"]>>;
2566
+ verifiedContent: z.ZodDefault<z.ZodNullable<z.ZodEnum<["page", "search_results"]>>>;
2567
+ observation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2568
+ evidence: z.ZodLiteral<"tool_calls">;
2569
+ network: z.ZodLiteral<"not_measured">;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ evidence: "tool_calls";
2572
+ network: "not_measured";
2573
+ }, {
2574
+ evidence: "tool_calls";
2575
+ network: "not_measured";
2576
+ }>>>;
2581
2577
  tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2582
2578
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2583
2579
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2584
2580
  rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2585
- /** False when the run predates telemetry.yaml; surfaces must render "telemetry unavailable". */
2586
2581
  available: z.ZodDefault<z.ZodBoolean>;
2587
2582
  }, "strip", z.ZodTypeAny, {
2588
2583
  required: boolean;
@@ -2591,6 +2586,12 @@ export declare const ControlRunSummary: z.ZodObject<{
2591
2586
  attempted: boolean;
2592
2587
  satisfied: boolean;
2593
2588
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
2589
+ verification: "dispatched" | "none" | "verified";
2590
+ verifiedContent: "page" | "search_results" | null;
2591
+ observation: {
2592
+ evidence: "tool_calls";
2593
+ network: "not_measured";
2594
+ } | null;
2594
2595
  tool: string | null;
2595
2596
  target: string | null;
2596
2597
  errorSummary: string | null;
@@ -2603,12 +2604,72 @@ export declare const ControlRunSummary: z.ZodObject<{
2603
2604
  attempted?: boolean | undefined;
2604
2605
  satisfied?: boolean | undefined;
2605
2606
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
2607
+ verification?: "dispatched" | "none" | "verified" | undefined;
2608
+ verifiedContent?: "page" | "search_results" | null | undefined;
2609
+ observation?: {
2610
+ evidence: "tool_calls";
2611
+ network: "not_measured";
2612
+ } | null | undefined;
2606
2613
  tool?: string | null | undefined;
2607
2614
  target?: string | null | undefined;
2608
2615
  errorSummary?: string | null | undefined;
2609
2616
  rawDetailRef?: string | null | undefined;
2610
2617
  available?: boolean | undefined;
2611
2618
  }>>;
2619
+ routeControls: z.ZodDefault<z.ZodArray<z.ZodObject<{
2620
+ harnessId: z.ZodString;
2621
+ webMode: z.ZodEnum<["off", "auto", "cached", "live"]>;
2622
+ webMechanism: z.ZodEnum<["native", "tools", "uncontrolled", "none"]>;
2623
+ browser: z.ZodBoolean;
2624
+ browserStartup: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2625
+ status: z.ZodEnum<["ready", "failed", "cancelled", "starting", "not_observed"]>;
2626
+ waitedMs: z.ZodNumber;
2627
+ error: z.ZodNullable<z.ZodString>;
2628
+ }, "strip", z.ZodTypeAny, {
2629
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2630
+ waitedMs: number;
2631
+ error: string | null;
2632
+ }, {
2633
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2634
+ waitedMs: number;
2635
+ error: string | null;
2636
+ }>>>;
2637
+ access: z.ZodEnum<["readonly", "workspace_write", "full", "inherit_native"]>;
2638
+ nativeAccess: z.ZodNullable<z.ZodString>;
2639
+ accessMechanism: z.ZodEnum<["fs_sandbox", "permission_deny", "tool_allowlist", "tool_policy", "native_settings", "none"]>;
2640
+ nativeSessionStarted: z.ZodBoolean;
2641
+ homeScoped: z.ZodNullable<z.ZodBoolean>;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ harnessId: string;
2644
+ webMode: "auto" | "cached" | "live" | "off";
2645
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
2646
+ browser: boolean;
2647
+ browserStartup: {
2648
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2649
+ waitedMs: number;
2650
+ error: string | null;
2651
+ } | null;
2652
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
2653
+ nativeAccess: string | null;
2654
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
2655
+ nativeSessionStarted: boolean;
2656
+ homeScoped: boolean | null;
2657
+ }, {
2658
+ harnessId: string;
2659
+ webMode: "auto" | "cached" | "live" | "off";
2660
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
2661
+ browser: boolean;
2662
+ browserStartup?: {
2663
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
2664
+ waitedMs: number;
2665
+ error: string | null;
2666
+ } | null | undefined;
2667
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
2668
+ nativeAccess: string | null;
2669
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
2670
+ nativeSessionStarted: boolean;
2671
+ homeScoped: boolean | null;
2672
+ }>, "many">>;
2612
2673
  requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
2613
2674
  capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
2614
2675
  harness_id: z.ZodString;
@@ -2705,7 +2766,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2705
2766
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
2706
2767
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
2707
2768
  review_requested: z.ZodOptional<z.ZodBoolean>;
2708
- 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"]>>>;
2769
+ 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"]>>>;
2709
2770
  work_state: z.ZodOptional<z.ZodObject<{
2710
2771
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
2711
2772
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -2748,7 +2809,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2748
2809
  checks: "failed" | "not_configured" | "passed";
2749
2810
  review: "approved" | "blocked" | "not_run";
2750
2811
  review_requested?: boolean | undefined;
2751
- 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;
2812
+ 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;
2752
2813
  work_state?: {
2753
2814
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2754
2815
  source: "absent" | "constrained" | "validated";
@@ -2765,7 +2826,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2765
2826
  checks?: "failed" | "not_configured" | "passed" | undefined;
2766
2827
  review?: "approved" | "blocked" | "not_run" | undefined;
2767
2828
  review_requested?: boolean | undefined;
2768
- 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;
2829
+ 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;
2769
2830
  work_state?: {
2770
2831
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2771
2832
  source: "absent" | "constrained" | "validated";
@@ -2802,6 +2863,36 @@ export declare const ControlRunSummary: z.ZodObject<{
2802
2863
  survivors: number;
2803
2864
  unreadable: number;
2804
2865
  }>>>;
2866
+ /** A later bounded settlement of the finished run's scope (#613); null when none. */
2867
+ processScopeLater: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2868
+ settled: z.ZodBoolean;
2869
+ coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
2870
+ completeness: z.ZodEnum<["complete", "not_provable"]>;
2871
+ census: z.ZodEnum<["ok", "failed", "unsupported"]>;
2872
+ survivors: z.ZodNumber;
2873
+ unreadable: z.ZodNumber;
2874
+ } & {
2875
+ attempt: z.ZodNumber;
2876
+ at: z.ZodString;
2877
+ }, "strict", z.ZodTypeAny, {
2878
+ settled: boolean;
2879
+ coverage: "marker" | "marker+capture" | "tree_only";
2880
+ completeness: "complete" | "not_provable";
2881
+ census: "failed" | "ok" | "unsupported";
2882
+ survivors: number;
2883
+ unreadable: number;
2884
+ attempt: number;
2885
+ at: string;
2886
+ }, {
2887
+ settled: boolean;
2888
+ coverage: "marker" | "marker+capture" | "tree_only";
2889
+ completeness: "complete" | "not_provable";
2890
+ census: "failed" | "ok" | "unsupported";
2891
+ survivors: number;
2892
+ unreadable: number;
2893
+ attempt: number;
2894
+ at: string;
2895
+ }>>>;
2805
2896
  /** Route evidence from telemetry; null when no telemetry exists (legacy). */
2806
2897
  route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2807
2898
  requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2971,7 +3062,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2971
3062
  } | null;
2972
3063
  continueFrom: string | null;
2973
3064
  resumable: {
2974
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3065
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2975
3066
  resetsAt: string | null;
2976
3067
  limitWindow: string | null;
2977
3068
  limitEvidence: "unspecified" | "window" | null;
@@ -2991,7 +3082,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2991
3082
  tryIndex: number;
2992
3083
  attemptId: string;
2993
3084
  carrier: "fresh" | "native" | "native_moved" | "packet";
2994
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3085
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
2995
3086
  from: {
2996
3087
  runId: string;
2997
3088
  attemptId: string;
@@ -3014,7 +3105,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3014
3105
  root: string;
3015
3106
  bytes: number | null;
3016
3107
  retainedAt: string;
3017
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
3108
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3018
3109
  } | null;
3019
3110
  taskId?: string | undefined;
3020
3111
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -3040,6 +3131,10 @@ export declare const ControlRunSummary: z.ZodObject<{
3040
3131
  native_code: "grok_credential_source_unconfirmed";
3041
3132
  source: "grok_init";
3042
3133
  reported_source: string;
3134
+ } | {
3135
+ kind: "vendor_not_retryable";
3136
+ source: "agy_stderr";
3137
+ error_id: string | null;
3043
3138
  } | undefined;
3044
3139
  rawContextShortfall?: {
3045
3140
  model: string;
@@ -3079,7 +3174,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3079
3174
  } | undefined;
3080
3175
  phase: string;
3081
3176
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3082
- 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;
3177
+ 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;
3083
3178
  harnessId: string | null;
3084
3179
  attemptId: string | null;
3085
3180
  safeMessage: string;
@@ -3188,12 +3283,34 @@ export declare const ControlRunSummary: z.ZodObject<{
3188
3283
  attempted: boolean;
3189
3284
  satisfied: boolean;
3190
3285
  status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
3286
+ verification: "dispatched" | "none" | "verified";
3287
+ verifiedContent: "page" | "search_results" | null;
3288
+ observation: {
3289
+ evidence: "tool_calls";
3290
+ network: "not_measured";
3291
+ } | null;
3191
3292
  tool: string | null;
3192
3293
  target: string | null;
3193
3294
  errorSummary: string | null;
3194
3295
  rawDetailRef: string | null;
3195
3296
  available: boolean;
3196
3297
  };
3298
+ routeControls: {
3299
+ harnessId: string;
3300
+ webMode: "auto" | "cached" | "live" | "off";
3301
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3302
+ browser: boolean;
3303
+ browserStartup: {
3304
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3305
+ waitedMs: number;
3306
+ error: string | null;
3307
+ } | null;
3308
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3309
+ nativeAccess: string | null;
3310
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3311
+ nativeSessionStarted: boolean;
3312
+ homeScoped: boolean | null;
3313
+ }[];
3197
3314
  requestRequirements: {
3198
3315
  capability: "browser" | "delegation" | "path_deny";
3199
3316
  harness_id: string;
@@ -3227,7 +3344,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3227
3344
  checks: "failed" | "not_configured" | "passed";
3228
3345
  review: "approved" | "blocked" | "not_run";
3229
3346
  review_requested?: boolean | undefined;
3230
- 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;
3347
+ 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;
3231
3348
  work_state?: {
3232
3349
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3233
3350
  source: "absent" | "constrained" | "validated";
@@ -3248,6 +3365,16 @@ export declare const ControlRunSummary: z.ZodObject<{
3248
3365
  survivors: number;
3249
3366
  unreadable: number;
3250
3367
  } | null;
3368
+ processScopeLater: {
3369
+ settled: boolean;
3370
+ coverage: "marker" | "marker+capture" | "tree_only";
3371
+ completeness: "complete" | "not_provable";
3372
+ census: "failed" | "ok" | "unsupported";
3373
+ survivors: number;
3374
+ unreadable: number;
3375
+ attempt: number;
3376
+ at: string;
3377
+ } | null;
3251
3378
  route: {
3252
3379
  requestedModel: string | null;
3253
3380
  observedModel: string | null;
@@ -3306,7 +3433,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3306
3433
  } | null | undefined;
3307
3434
  continueFrom?: string | null | undefined;
3308
3435
  resumable?: {
3309
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3436
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3310
3437
  resetsAt: string | null;
3311
3438
  limitWindow: string | null;
3312
3439
  limitEvidence: "unspecified" | "window" | null;
@@ -3326,7 +3453,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3326
3453
  tryIndex: number;
3327
3454
  attemptId: string;
3328
3455
  carrier: "fresh" | "native" | "native_moved" | "packet";
3329
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
3456
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
3330
3457
  from: {
3331
3458
  runId: string;
3332
3459
  attemptId: string;
@@ -3349,7 +3476,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3349
3476
  root: string;
3350
3477
  bytes: number | null;
3351
3478
  retainedAt: string;
3352
- cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
3479
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
3353
3480
  } | null | undefined;
3354
3481
  taskId?: string | undefined;
3355
3482
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
@@ -3375,6 +3502,10 @@ export declare const ControlRunSummary: z.ZodObject<{
3375
3502
  native_code: "grok_credential_source_unconfirmed";
3376
3503
  source: "grok_init";
3377
3504
  reported_source: string;
3505
+ } | {
3506
+ kind: "vendor_not_retryable";
3507
+ source: "agy_stderr";
3508
+ error_id: string | null;
3378
3509
  } | undefined;
3379
3510
  rawContextShortfall?: {
3380
3511
  model: string;
@@ -3414,7 +3545,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3414
3545
  } | undefined;
3415
3546
  phase?: string | undefined;
3416
3547
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3417
- 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;
3548
+ 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;
3418
3549
  harnessId?: string | null | undefined;
3419
3550
  attemptId?: string | null | undefined;
3420
3551
  safeMessage: string;
@@ -3523,12 +3654,34 @@ export declare const ControlRunSummary: z.ZodObject<{
3523
3654
  attempted?: boolean | undefined;
3524
3655
  satisfied?: boolean | undefined;
3525
3656
  status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
3657
+ verification?: "dispatched" | "none" | "verified" | undefined;
3658
+ verifiedContent?: "page" | "search_results" | null | undefined;
3659
+ observation?: {
3660
+ evidence: "tool_calls";
3661
+ network: "not_measured";
3662
+ } | null | undefined;
3526
3663
  tool?: string | null | undefined;
3527
3664
  target?: string | null | undefined;
3528
3665
  errorSummary?: string | null | undefined;
3529
3666
  rawDetailRef?: string | null | undefined;
3530
3667
  available?: boolean | undefined;
3531
3668
  } | undefined;
3669
+ routeControls?: {
3670
+ harnessId: string;
3671
+ webMode: "auto" | "cached" | "live" | "off";
3672
+ webMechanism: "native" | "none" | "tools" | "uncontrolled";
3673
+ browser: boolean;
3674
+ browserStartup?: {
3675
+ status: "cancelled" | "failed" | "not_observed" | "ready" | "starting";
3676
+ waitedMs: number;
3677
+ error: string | null;
3678
+ } | null | undefined;
3679
+ access: "full" | "inherit_native" | "readonly" | "workspace_write";
3680
+ nativeAccess: string | null;
3681
+ accessMechanism: "fs_sandbox" | "native_settings" | "none" | "permission_deny" | "tool_allowlist" | "tool_policy";
3682
+ nativeSessionStarted: boolean;
3683
+ homeScoped: boolean | null;
3684
+ }[] | undefined;
3532
3685
  requestRequirements?: {
3533
3686
  capability: "browser" | "delegation" | "path_deny";
3534
3687
  harness_id: string;
@@ -3562,7 +3715,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3562
3715
  checks?: "failed" | "not_configured" | "passed" | undefined;
3563
3716
  review?: "approved" | "blocked" | "not_run" | undefined;
3564
3717
  review_requested?: boolean | undefined;
3565
- 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;
3718
+ 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;
3566
3719
  work_state?: {
3567
3720
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3568
3721
  source: "absent" | "constrained" | "validated";
@@ -3583,6 +3736,16 @@ export declare const ControlRunSummary: z.ZodObject<{
3583
3736
  survivors: number;
3584
3737
  unreadable: number;
3585
3738
  } | null | undefined;
3739
+ processScopeLater?: {
3740
+ settled: boolean;
3741
+ coverage: "marker" | "marker+capture" | "tree_only";
3742
+ completeness: "complete" | "not_provable";
3743
+ census: "failed" | "ok" | "unsupported";
3744
+ survivors: number;
3745
+ unreadable: number;
3746
+ attempt: number;
3747
+ at: string;
3748
+ } | null | undefined;
3586
3749
  route?: {
3587
3750
  requestedModel?: string | null | undefined;
3588
3751
  observedModel?: string | null | undefined;
@@ -4056,10 +4219,12 @@ export type ControlApplyRequest = z.infer<typeof ControlApplyRequest>;
4056
4219
  * v0.8 "apply: human_review" dead end: a typed, auditable unblock path instead
4057
4220
  * of a read-only review queue.
4058
4221
  */
4059
- export declare const RunDecisionAction: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard"]>;
4222
+ export declare const RunDecisionAction: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard", "taken"]>;
4060
4223
  export type RunDecisionAction = z.infer<typeof RunDecisionAction>;
4061
- export declare const ControlRunDecisionRequest: z.ZodObject<{
4062
- action: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard"]>;
4224
+ export declare const RunTakenReason: z.ZodLiteral<"captured_result">;
4225
+ export type RunTakenReason = z.infer<typeof RunTakenReason>;
4226
+ export declare const ControlRunDecisionRequest: z.ZodEffects<z.ZodObject<{
4227
+ action: z.ZodEnum<["accept_clean_patch", "rerun_with_feedback", "accept_risk", "override_needs_human", "revert_run", "discard", "taken"]>;
4063
4228
  /** Findings the decision targets (override/accept_risk). */
4064
4229
  findingIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4065
4230
  /** Reviewer feedback to seed a rerun turn. */
@@ -4084,8 +4249,35 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
4084
4249
  kind: "project";
4085
4250
  root: string;
4086
4251
  }>]>>;
4252
+ reason: z.ZodOptional<z.ZodLiteral<"captured_result">>;
4087
4253
  }, "strict", z.ZodTypeAny, {
4088
- action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
4254
+ action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run" | "taken";
4255
+ findingIds: string[];
4256
+ feedback?: string | undefined;
4257
+ acceptedRisks: string[];
4258
+ applyMode?: "apply" | "branch" | "commit" | "pr" | undefined;
4259
+ target?: {
4260
+ kind: "original_project";
4261
+ } | {
4262
+ kind: "project";
4263
+ root: string;
4264
+ } | undefined;
4265
+ reason?: "captured_result" | undefined;
4266
+ }, {
4267
+ action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run" | "taken";
4268
+ findingIds?: string[] | undefined;
4269
+ feedback?: string | undefined;
4270
+ acceptedRisks?: string[] | undefined;
4271
+ applyMode?: "apply" | "branch" | "commit" | "pr" | undefined;
4272
+ target?: {
4273
+ kind: "original_project";
4274
+ } | {
4275
+ kind: "project";
4276
+ root: string;
4277
+ } | undefined;
4278
+ reason?: "captured_result" | undefined;
4279
+ }>, {
4280
+ action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run" | "taken";
4089
4281
  findingIds: string[];
4090
4282
  feedback?: string | undefined;
4091
4283
  acceptedRisks: string[];
@@ -4096,8 +4288,9 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
4096
4288
  kind: "project";
4097
4289
  root: string;
4098
4290
  } | undefined;
4291
+ reason?: "captured_result" | undefined;
4099
4292
  }, {
4100
- action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run";
4293
+ action: "accept_clean_patch" | "accept_risk" | "discard" | "override_needs_human" | "rerun_with_feedback" | "revert_run" | "taken";
4101
4294
  findingIds?: string[] | undefined;
4102
4295
  feedback?: string | undefined;
4103
4296
  acceptedRisks?: string[] | undefined;
@@ -4108,13 +4301,14 @@ export declare const ControlRunDecisionRequest: z.ZodObject<{
4108
4301
  kind: "project";
4109
4302
  root: string;
4110
4303
  } | undefined;
4304
+ reason?: "captured_result" | undefined;
4111
4305
  }>;
4112
4306
  export type ControlRunDecisionRequest = z.infer<typeof ControlRunDecisionRequest>;
4113
4307
  export declare const ControlRunDecisionResponse: z.ZodObject<{
4114
4308
  taskGroupId: z.ZodOptional<z.ZodString>;
4115
4309
  storeId: z.ZodOptional<z.ZodString>;
4116
4310
  accepted: z.ZodBoolean;
4117
- status: z.ZodEnum<["applied", "requeued", "rejected", "unsupported", "discarded"]>;
4311
+ status: z.ZodEnum<["applied", "requeued", "rejected", "unsupported", "discarded", "taken"]>;
4118
4312
  /** New run id when the decision re-enqueues a turn (rerun_with_feedback). */
4119
4313
  newRunId: z.ZodOptional<z.ZodString>;
4120
4314
  newJobId: z.ZodOptional<z.ZodString>;
@@ -4123,7 +4317,7 @@ export declare const ControlRunDecisionResponse: z.ZodObject<{
4123
4317
  taskGroupId?: string | undefined;
4124
4318
  storeId?: string | undefined;
4125
4319
  accepted: boolean;
4126
- status: "applied" | "discarded" | "rejected" | "requeued" | "unsupported";
4320
+ status: "applied" | "discarded" | "rejected" | "requeued" | "taken" | "unsupported";
4127
4321
  newRunId?: string | undefined;
4128
4322
  newJobId?: string | undefined;
4129
4323
  message?: string | undefined;
@@ -4131,7 +4325,7 @@ export declare const ControlRunDecisionResponse: z.ZodObject<{
4131
4325
  taskGroupId?: string | undefined;
4132
4326
  storeId?: string | undefined;
4133
4327
  accepted: boolean;
4134
- status: "applied" | "discarded" | "rejected" | "requeued" | "unsupported";
4328
+ status: "applied" | "discarded" | "rejected" | "requeued" | "taken" | "unsupported";
4135
4329
  newRunId?: string | undefined;
4136
4330
  newJobId?: string | undefined;
4137
4331
  message?: string | undefined;
@@ -4309,7 +4503,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4309
4503
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4310
4504
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4311
4505
  review_requested: z.ZodOptional<z.ZodBoolean>;
4312
- 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"]>>>;
4506
+ 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"]>>>;
4313
4507
  work_state: z.ZodOptional<z.ZodObject<{
4314
4508
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4315
4509
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4352,7 +4546,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4352
4546
  checks: "failed" | "not_configured" | "passed";
4353
4547
  review: "approved" | "blocked" | "not_run";
4354
4548
  review_requested?: boolean | undefined;
4355
- 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;
4549
+ 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;
4356
4550
  work_state?: {
4357
4551
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4358
4552
  source: "absent" | "constrained" | "validated";
@@ -4369,7 +4563,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4369
4563
  checks?: "failed" | "not_configured" | "passed" | undefined;
4370
4564
  review?: "approved" | "blocked" | "not_run" | undefined;
4371
4565
  review_requested?: boolean | undefined;
4372
- 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;
4566
+ 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;
4373
4567
  work_state?: {
4374
4568
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4375
4569
  source: "absent" | "constrained" | "validated";
@@ -4443,7 +4637,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4443
4637
  checks: "failed" | "not_configured" | "passed";
4444
4638
  review: "approved" | "blocked" | "not_run";
4445
4639
  review_requested?: boolean | undefined;
4446
- 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;
4640
+ 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;
4447
4641
  work_state?: {
4448
4642
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4449
4643
  source: "absent" | "constrained" | "validated";
@@ -4493,7 +4687,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4493
4687
  checks?: "failed" | "not_configured" | "passed" | undefined;
4494
4688
  review?: "approved" | "blocked" | "not_run" | undefined;
4495
4689
  review_requested?: boolean | undefined;
4496
- 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;
4690
+ 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;
4497
4691
  work_state?: {
4498
4692
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4499
4693
  source: "absent" | "constrained" | "validated";
@@ -4608,7 +4802,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4608
4802
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4609
4803
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4610
4804
  review_requested: z.ZodOptional<z.ZodBoolean>;
4611
- 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"]>>>;
4805
+ 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"]>>>;
4612
4806
  work_state: z.ZodOptional<z.ZodObject<{
4613
4807
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4614
4808
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4651,7 +4845,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4651
4845
  checks: "failed" | "not_configured" | "passed";
4652
4846
  review: "approved" | "blocked" | "not_run";
4653
4847
  review_requested?: boolean | undefined;
4654
- 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;
4848
+ 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;
4655
4849
  work_state?: {
4656
4850
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4657
4851
  source: "absent" | "constrained" | "validated";
@@ -4668,7 +4862,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4668
4862
  checks?: "failed" | "not_configured" | "passed" | undefined;
4669
4863
  review?: "approved" | "blocked" | "not_run" | undefined;
4670
4864
  review_requested?: boolean | undefined;
4671
- 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;
4865
+ 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;
4672
4866
  work_state?: {
4673
4867
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4674
4868
  source: "absent" | "constrained" | "validated";
@@ -4742,7 +4936,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4742
4936
  checks: "failed" | "not_configured" | "passed";
4743
4937
  review: "approved" | "blocked" | "not_run";
4744
4938
  review_requested?: boolean | undefined;
4745
- 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;
4939
+ 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;
4746
4940
  work_state?: {
4747
4941
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4748
4942
  source: "absent" | "constrained" | "validated";
@@ -4792,7 +4986,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4792
4986
  checks?: "failed" | "not_configured" | "passed" | undefined;
4793
4987
  review?: "approved" | "blocked" | "not_run" | undefined;
4794
4988
  review_requested?: boolean | undefined;
4795
- 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;
4989
+ 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;
4796
4990
  work_state?: {
4797
4991
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4798
4992
  source: "absent" | "constrained" | "validated";
@@ -4918,7 +5112,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4918
5112
  checks: "failed" | "not_configured" | "passed";
4919
5113
  review: "approved" | "blocked" | "not_run";
4920
5114
  review_requested?: boolean | undefined;
4921
- 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;
5115
+ 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;
4922
5116
  work_state?: {
4923
5117
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4924
5118
  source: "absent" | "constrained" | "validated";
@@ -4998,7 +5192,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4998
5192
  checks?: "failed" | "not_configured" | "passed" | undefined;
4999
5193
  review?: "approved" | "blocked" | "not_run" | undefined;
5000
5194
  review_requested?: boolean | undefined;
5001
- 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;
5195
+ 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;
5002
5196
  work_state?: {
5003
5197
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5004
5198
  source: "absent" | "constrained" | "validated";
@@ -5398,7 +5592,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5398
5592
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
5399
5593
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
5400
5594
  review_requested: z.ZodOptional<z.ZodBoolean>;
5401
- 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"]>>>;
5595
+ 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"]>>>;
5402
5596
  work_state: z.ZodOptional<z.ZodObject<{
5403
5597
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
5404
5598
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -5441,7 +5635,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5441
5635
  checks: "failed" | "not_configured" | "passed";
5442
5636
  review: "approved" | "blocked" | "not_run";
5443
5637
  review_requested?: boolean | undefined;
5444
- 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;
5638
+ 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;
5445
5639
  work_state?: {
5446
5640
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5447
5641
  source: "absent" | "constrained" | "validated";
@@ -5458,7 +5652,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5458
5652
  checks?: "failed" | "not_configured" | "passed" | undefined;
5459
5653
  review?: "approved" | "blocked" | "not_run" | undefined;
5460
5654
  review_requested?: boolean | undefined;
5461
- 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;
5655
+ 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;
5462
5656
  work_state?: {
5463
5657
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5464
5658
  source: "absent" | "constrained" | "validated";
@@ -5532,7 +5726,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5532
5726
  checks: "failed" | "not_configured" | "passed";
5533
5727
  review: "approved" | "blocked" | "not_run";
5534
5728
  review_requested?: boolean | undefined;
5535
- 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;
5729
+ 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;
5536
5730
  work_state?: {
5537
5731
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5538
5732
  source: "absent" | "constrained" | "validated";
@@ -5582,7 +5776,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5582
5776
  checks?: "failed" | "not_configured" | "passed" | undefined;
5583
5777
  review?: "approved" | "blocked" | "not_run" | undefined;
5584
5778
  review_requested?: boolean | undefined;
5585
- 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;
5779
+ 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;
5586
5780
  work_state?: {
5587
5781
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5588
5782
  source: "absent" | "constrained" | "validated";
@@ -5708,7 +5902,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5708
5902
  checks: "failed" | "not_configured" | "passed";
5709
5903
  review: "approved" | "blocked" | "not_run";
5710
5904
  review_requested?: boolean | undefined;
5711
- 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;
5905
+ 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;
5712
5906
  work_state?: {
5713
5907
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5714
5908
  source: "absent" | "constrained" | "validated";
@@ -5788,7 +5982,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5788
5982
  checks?: "failed" | "not_configured" | "passed" | undefined;
5789
5983
  review?: "approved" | "blocked" | "not_run" | undefined;
5790
5984
  review_requested?: boolean | undefined;
5791
- 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;
5985
+ 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;
5792
5986
  work_state?: {
5793
5987
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5794
5988
  source: "absent" | "constrained" | "validated";
@@ -5901,7 +6095,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5901
6095
  checks: "failed" | "not_configured" | "passed";
5902
6096
  review: "approved" | "blocked" | "not_run";
5903
6097
  review_requested?: boolean | undefined;
5904
- 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;
6098
+ 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;
5905
6099
  work_state?: {
5906
6100
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5907
6101
  source: "absent" | "constrained" | "validated";
@@ -6014,7 +6208,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
6014
6208
  checks?: "failed" | "not_configured" | "passed" | undefined;
6015
6209
  review?: "approved" | "blocked" | "not_run" | undefined;
6016
6210
  review_requested?: boolean | undefined;
6017
- 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;
6211
+ 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;
6018
6212
  work_state?: {
6019
6213
  state: "completed" | "incomplete" | "needs_input" | "unverified";
6020
6214
  source: "absent" | "constrained" | "validated";