@claudexor/schema 4.8.2 → 5.0.1

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 (190) hide show
  1. package/dist/account-resources.d.ts +325 -56
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-resources.js +35 -5
  4. package/dist/account-resources.js.map +1 -1
  5. package/dist/account-routing-evidence.d.ts +253 -45
  6. package/dist/account-routing-evidence.d.ts.map +1 -1
  7. package/dist/account-target.d.ts +19 -5
  8. package/dist/account-target.d.ts.map +1 -1
  9. package/dist/account-target.js +14 -1
  10. package/dist/account-target.js.map +1 -1
  11. package/dist/agent-capabilities.d.ts +183 -0
  12. package/dist/agent-capabilities.d.ts.map +1 -1
  13. package/dist/agent-capabilities.js +2 -0
  14. package/dist/agent-capabilities.js.map +1 -1
  15. package/dist/budget.d.ts +3 -0
  16. package/dist/budget.d.ts.map +1 -1
  17. package/dist/budget.js +5 -1
  18. package/dist/budget.js.map +1 -1
  19. package/dist/capture-inventory.d.ts +60 -0
  20. package/dist/capture-inventory.d.ts.map +1 -0
  21. package/dist/capture-inventory.js +57 -0
  22. package/dist/capture-inventory.js.map +1 -0
  23. package/dist/control-harness-list.d.ts +102 -18
  24. package/dist/control-harness-list.d.ts.map +1 -1
  25. package/dist/control-harness-models.d.ts +299 -6
  26. package/dist/control-harness-models.d.ts.map +1 -1
  27. package/dist/control-harness-models.js +12 -3
  28. package/dist/control-harness-models.js.map +1 -1
  29. package/dist/control-operation-responses.d.ts +606 -23
  30. package/dist/control-operation-responses.d.ts.map +1 -1
  31. package/dist/control-operation-responses.js +3 -0
  32. package/dist/control-operation-responses.js.map +1 -1
  33. package/dist/control-run-detail.d.ts +1178 -72
  34. package/dist/control-run-detail.d.ts.map +1 -1
  35. package/dist/control-run-event-part.d.ts +3 -3
  36. package/dist/control-run-event-part.js +1 -1
  37. package/dist/control-run-event-part.js.map +1 -1
  38. package/dist/control-run-failure.d.ts +276 -12
  39. package/dist/control-run-failure.d.ts.map +1 -1
  40. package/dist/control-run-failure.js +54 -16
  41. package/dist/control-run-failure.js.map +1 -1
  42. package/dist/control-run-message.js +1 -1
  43. package/dist/control-run-message.js.map +1 -1
  44. package/dist/control-thread-apply.d.ts +165 -0
  45. package/dist/control-thread-apply.d.ts.map +1 -1
  46. package/dist/control-timeline.d.ts.map +1 -1
  47. package/dist/control-timeline.js +7 -3
  48. package/dist/control-timeline.js.map +1 -1
  49. package/dist/control.d.ts +383 -42
  50. package/dist/control.d.ts.map +1 -1
  51. package/dist/control.js +9 -5
  52. package/dist/control.js.map +1 -1
  53. package/dist/credential-profile-snapshot.d.ts +506 -90
  54. package/dist/credential-profile-snapshot.d.ts.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 +4 -0
  58. package/dist/decision.js.map +1 -1
  59. package/dist/delivery.d.ts +162 -0
  60. package/dist/delivery.d.ts.map +1 -1
  61. package/dist/delivery.js +32 -0
  62. package/dist/delivery.js.map +1 -1
  63. package/dist/events.d.ts +7 -6
  64. package/dist/events.d.ts.map +1 -1
  65. package/dist/events.js +10 -8
  66. package/dist/events.js.map +1 -1
  67. package/dist/git-result.d.ts +99 -0
  68. package/dist/git-result.d.ts.map +1 -0
  69. package/dist/git-result.js +80 -0
  70. package/dist/git-result.js.map +1 -0
  71. package/dist/harness-model.d.ts +89 -0
  72. package/dist/harness-model.d.ts.map +1 -1
  73. package/dist/harness-model.js +83 -0
  74. package/dist/harness-model.js.map +1 -1
  75. package/dist/harness.d.ts +353 -35
  76. package/dist/harness.d.ts.map +1 -1
  77. package/dist/harness.js +4 -19
  78. package/dist/harness.js.map +1 -1
  79. package/dist/index.d.ts +4 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +4 -0
  82. package/dist/index.js.map +1 -1
  83. package/dist/mcp-run-result.d.ts +620 -51
  84. package/dist/mcp-run-result.d.ts.map +1 -1
  85. package/dist/mcp-run-result.js +45 -5
  86. package/dist/mcp-run-result.js.map +1 -1
  87. package/dist/mcp-run-wait.d.ts +7 -7
  88. package/dist/primitives.d.ts.map +1 -1
  89. package/dist/primitives.js +3 -2
  90. package/dist/primitives.js.map +1 -1
  91. package/dist/project.d.ts +45 -1
  92. package/dist/project.d.ts.map +1 -1
  93. package/dist/project.js +26 -1
  94. package/dist/project.js.map +1 -1
  95. package/dist/quota-read.d.ts +6 -3
  96. package/dist/quota-read.d.ts.map +1 -1
  97. package/dist/quota-read.js +7 -1
  98. package/dist/quota-read.js.map +1 -1
  99. package/dist/quota-scope.d.ts +29 -0
  100. package/dist/quota-scope.d.ts.map +1 -0
  101. package/dist/quota-scope.js +95 -0
  102. package/dist/quota-scope.js.map +1 -0
  103. package/dist/rate-limit.d.ts +3 -0
  104. package/dist/rate-limit.d.ts.map +1 -1
  105. package/dist/rate-limit.js +5 -1
  106. package/dist/rate-limit.js.map +1 -1
  107. package/dist/raw.d.ts +223 -1
  108. package/dist/raw.d.ts.map +1 -1
  109. package/dist/raw.js +86 -0
  110. package/dist/raw.js.map +1 -1
  111. package/dist/readiness.d.ts +87 -18
  112. package/dist/readiness.d.ts.map +1 -1
  113. package/dist/readiness.js +7 -6
  114. package/dist/readiness.js.map +1 -1
  115. package/dist/route-health.d.ts +303 -0
  116. package/dist/route-health.d.ts.map +1 -0
  117. package/dist/route-health.js +71 -0
  118. package/dist/route-health.js.map +1 -0
  119. package/dist/run-continuity.d.ts +3 -0
  120. package/dist/run-continuity.d.ts.map +1 -1
  121. package/dist/run-continuity.js +4 -0
  122. package/dist/run-continuity.js.map +1 -1
  123. package/dist/run-facts.d.ts +5 -5
  124. package/dist/run-facts.d.ts.map +1 -1
  125. package/dist/run-facts.js +1 -0
  126. package/dist/run-facts.js.map +1 -1
  127. package/dist/setup-login.d.ts +1 -1
  128. package/dist/setup-login.js +1 -1
  129. package/dist/setup.d.ts +1 -1
  130. package/dist/setup.js +1 -1
  131. package/dist/status-projection.d.ts.map +1 -1
  132. package/dist/status-projection.js +3 -0
  133. package/dist/status-projection.js.map +1 -1
  134. package/dist/telemetry.d.ts +239 -7
  135. package/dist/telemetry.d.ts.map +1 -1
  136. package/dist/telemetry.js +4 -2
  137. package/dist/telemetry.js.map +1 -1
  138. package/dist/thread-history.d.ts +1109 -161
  139. package/dist/thread-history.d.ts.map +1 -1
  140. package/dist/thread-history.js +1 -1
  141. package/dist/thread-history.js.map +1 -1
  142. package/dist/tool-ref.d.ts +94 -3
  143. package/dist/tool-ref.d.ts.map +1 -1
  144. package/dist/tool-ref.js +98 -6
  145. package/dist/tool-ref.js.map +1 -1
  146. package/generated/AgentCapabilityCatalog.schema.json +54 -0
  147. package/generated/BudgetObservation.schema.json +8 -1
  148. package/generated/ControlAccountResetResponse.schema.json +60 -1
  149. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +46 -2
  150. package/generated/ControlAccountResourcesResponse.schema.json +46 -2
  151. package/generated/ControlApplyCheckResponse.schema.json +47 -0
  152. package/generated/ControlCredentialProfilesQueryResponse.schema.json +105 -4
  153. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +105 -4
  154. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +59 -2
  155. package/generated/ControlDeliveryResponse.schema.json +154 -0
  156. package/generated/ControlHarnessAccountCatalog.schema.json +13 -0
  157. package/generated/ControlHarnessAccountModelsResponse.schema.json +13 -0
  158. package/generated/ControlHarnessListResponse.schema.json +59 -2
  159. package/generated/ControlHarnessModelsQueryResponse.schema.json +97 -51
  160. package/generated/ControlHarnessModelsResponse.schema.json +96 -0
  161. package/generated/ControlProjectRemoveReceipt.schema.json +36 -0
  162. package/generated/ControlQuotaQueryResponse.schema.json +46 -2
  163. package/generated/ControlQuotaReadRequest.schema.json +4 -0
  164. package/generated/ControlQuotaRefreshRequest.schema.json +12 -3
  165. package/generated/ControlRouteHealth.schema.json +202 -0
  166. package/generated/ControlRunDetail.schema.json +344 -5
  167. package/generated/ControlRunEventPart.schema.json +3 -2
  168. package/generated/ControlRunListResponse.schema.json +341 -2
  169. package/generated/ControlRunMessageRequest.schema.json +1 -1
  170. package/generated/ControlRunSummary.schema.json +341 -2
  171. package/generated/ControlThreadApplyResponse.schema.json +154 -0
  172. package/generated/ControlThreadDetail.schema.json +1 -0
  173. package/generated/DecisionRecord.schema.json +1 -0
  174. package/generated/HarnessEvent.schema.json +189 -5
  175. package/generated/HarnessManifest.schema.json +57 -0
  176. package/generated/HarnessModel.schema.json +13 -0
  177. package/generated/HarnessStatusDto.schema.json +59 -2
  178. package/generated/JournaledRunCreatedPayload.schema.json +2 -2
  179. package/generated/McpAccountsToolResult.schema.json +105 -4
  180. package/generated/McpRunHandleResult.schema.json +279 -2
  181. package/generated/McpRunToolResult.schema.json +269 -0
  182. package/generated/McpRunWaitResult.schema.json +2 -1
  183. package/generated/RawContextPacket.schema.json +98 -0
  184. package/generated/RunContinuityReceipt.schema.json +8 -0
  185. package/generated/RunEvent.schema.json +2 -1
  186. package/generated/RunFacts.schema.json +1 -0
  187. package/generated/RunFailure.schema.json +201 -0
  188. package/generated/RunTelemetry.schema.json +123 -2
  189. package/generated/ThreadHistoryPage.schema.json +203 -1
  190. package/package.json +2 -2
package/dist/control.d.ts CHANGED
@@ -33,7 +33,7 @@ export declare const ControlRunStartRequest: z.ZodObject<{
33
33
  /** Caller-supplied system-level instructions layered onto every
34
34
  * task-producing lane (primary, candidate, planner, explorer) — never
35
35
  * reviewers, synthesis, or the auth smoke.
36
- * Scanned by the inline-secret fence like the prompt (INV-062). */
36
+ * Delivered exactly, like the prompt (INV-146). */
37
37
  instructions: z.ZodOptional<z.ZodString>;
38
38
  /** Immutable daemon resource ids; upload/finalize happens before enqueue. */
39
39
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -877,7 +877,7 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
877
877
  /** Caller-supplied system-level instructions layered onto every
878
878
  * task-producing lane (primary, candidate, planner, explorer) — never
879
879
  * reviewers, synthesis, or the auth smoke.
880
- * Scanned by the inline-secret fence like the prompt (INV-062). */
880
+ * Delivered exactly, like the prompt (INV-146). */
881
881
  instructions: z.ZodOptional<z.ZodString>;
882
882
  /** Immutable daemon resource ids; upload/finalize happens before enqueue. */
883
883
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1651,14 +1651,14 @@ export declare const RunDeliveryState: z.ZodObject<{
1651
1651
  appliedPaths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1652
1652
  discardedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1653
1653
  deliveredAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1654
- revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1654
+ revertAnchorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1655
1655
  postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1656
1656
  }, "strip", z.ZodTypeAny, {
1657
1657
  applyState: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted";
1658
1658
  appliedPaths?: string[] | undefined;
1659
1659
  discardedAt?: string | null | undefined;
1660
1660
  deliveredAt: string | null;
1661
- revertAnchorId: string | null;
1661
+ revertAnchorId?: string | null | undefined;
1662
1662
  postTurnSha: string | null;
1663
1663
  }, {
1664
1664
  applyState?: "applied" | "applied_review_blocked" | "discarded" | "not_applied" | "reverted" | undefined;
@@ -1860,6 +1860,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1860
1860
  modelMismatch: z.ZodNullable<z.ZodBoolean>;
1861
1861
  identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
1862
1862
  inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
1863
+ sourceRetirement: z.ZodOptional<z.ZodEnum<["retired", "not_confirmed"]>>;
1863
1864
  }, "strict", z.ZodTypeAny, {
1864
1865
  tryIndex: number;
1865
1866
  attemptId: string;
@@ -1881,6 +1882,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1881
1882
  modelMismatch: boolean | null;
1882
1883
  identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1883
1884
  inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1885
+ sourceRetirement?: "not_confirmed" | "retired" | undefined;
1884
1886
  }, {
1885
1887
  tryIndex: number;
1886
1888
  attemptId: string;
@@ -1902,6 +1904,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1902
1904
  modelMismatch: boolean | null;
1903
1905
  identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1904
1906
  inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1907
+ sourceRetirement?: "not_confirmed" | "retired" | undefined;
1905
1908
  }>, "many">>;
1906
1909
  retainedEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1907
1910
  root: z.ZodString;
@@ -1983,13 +1986,54 @@ export declare const ControlRunSummary: z.ZodObject<{
1983
1986
  source: "grok_init";
1984
1987
  reported_source: string;
1985
1988
  }>]>>;
1989
+ rawContextShortfall: z.ZodOptional<z.ZodObject<{
1990
+ model: z.ZodString;
1991
+ context_window: z.ZodNumber;
1992
+ packet_tokens: z.ZodNumber;
1993
+ framing_tokens: z.ZodNumber;
1994
+ output_allowance_tokens: z.ZodNumber;
1995
+ mandatory_files: z.ZodArray<z.ZodObject<{
1996
+ path: z.ZodString;
1997
+ estimated_tokens: z.ZodNumber;
1998
+ }, "strict", z.ZodTypeAny, {
1999
+ path: string;
2000
+ estimated_tokens: number;
2001
+ }, {
2002
+ path: string;
2003
+ estimated_tokens: number;
2004
+ }>, "many">;
2005
+ }, "strict", z.ZodTypeAny, {
2006
+ model: string;
2007
+ context_window: number;
2008
+ packet_tokens: number;
2009
+ framing_tokens: number;
2010
+ output_allowance_tokens: number;
2011
+ mandatory_files: {
2012
+ path: string;
2013
+ estimated_tokens: number;
2014
+ }[];
2015
+ }, {
2016
+ model: string;
2017
+ context_window: number;
2018
+ packet_tokens: number;
2019
+ framing_tokens: number;
2020
+ output_allowance_tokens: number;
2021
+ mandatory_files: {
2022
+ path: string;
2023
+ estimated_tokens: number;
2024
+ }[];
2025
+ }>>;
1986
2026
  captureFailure: z.ZodOptional<z.ZodObject<{
1987
- code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
2027
+ code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
1988
2028
  message: z.ZodString;
1989
2029
  causeCode: z.ZodOptional<z.ZodString>;
1990
2030
  bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
1991
2031
  stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
1992
2032
  drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
2033
+ requiredBytes: z.ZodOptional<z.ZodNumber>;
2034
+ availableBytes: z.ZodOptional<z.ZodNumber>;
2035
+ signal: z.ZodOptional<z.ZodString>;
2036
+ stallMs: z.ZodOptional<z.ZodNumber>;
1993
2037
  cleanup: z.ZodOptional<z.ZodObject<{
1994
2038
  code: z.ZodNullable<z.ZodString>;
1995
2039
  message: z.ZodString;
@@ -2000,32 +2044,91 @@ export declare const ControlRunSummary: z.ZodObject<{
2000
2044
  code: string | null;
2001
2045
  message: string;
2002
2046
  }>>;
2047
+ inventory: z.ZodOptional<z.ZodObject<{
2048
+ exact: z.ZodLiteral<false>;
2049
+ changedFiles: z.ZodNumber;
2050
+ largest: z.ZodArray<z.ZodObject<{
2051
+ path: z.ZodString;
2052
+ change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
2053
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ path: string;
2056
+ change: "added" | "deleted" | "modified" | "type_changed";
2057
+ sizeBytes: number | null;
2058
+ }, {
2059
+ path: string;
2060
+ change: "added" | "deleted" | "modified" | "type_changed";
2061
+ sizeBytes: number | null;
2062
+ }>, "many">;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ exact: false;
2065
+ changedFiles: number;
2066
+ largest: {
2067
+ path: string;
2068
+ change: "added" | "deleted" | "modified" | "type_changed";
2069
+ sizeBytes: number | null;
2070
+ }[];
2071
+ }, {
2072
+ exact: false;
2073
+ changedFiles: number;
2074
+ largest: {
2075
+ path: string;
2076
+ change: "added" | "deleted" | "modified" | "type_changed";
2077
+ sizeBytes: number | null;
2078
+ }[];
2079
+ }>>;
2003
2080
  }, "strip", z.ZodTypeAny, {
2004
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2081
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
2005
2082
  message: string;
2006
2083
  causeCode?: string | undefined;
2007
2084
  bufferBudgetBytes?: number | undefined;
2008
2085
  stream?: "stderr" | "stdout" | undefined;
2009
2086
  drain?: "truncated" | undefined;
2087
+ requiredBytes?: number | undefined;
2088
+ availableBytes?: number | undefined;
2089
+ signal?: string | undefined;
2090
+ stallMs?: number | undefined;
2010
2091
  cleanup?: {
2011
2092
  code: string | null;
2012
2093
  message: string;
2013
2094
  } | undefined;
2095
+ inventory?: {
2096
+ exact: false;
2097
+ changedFiles: number;
2098
+ largest: {
2099
+ path: string;
2100
+ change: "added" | "deleted" | "modified" | "type_changed";
2101
+ sizeBytes: number | null;
2102
+ }[];
2103
+ } | undefined;
2014
2104
  }, {
2015
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2105
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
2016
2106
  message: string;
2017
2107
  causeCode?: string | undefined;
2018
2108
  bufferBudgetBytes?: number | undefined;
2019
2109
  stream?: "stderr" | "stdout" | undefined;
2020
2110
  drain?: "truncated" | undefined;
2111
+ requiredBytes?: number | undefined;
2112
+ availableBytes?: number | undefined;
2113
+ signal?: string | undefined;
2114
+ stallMs?: number | undefined;
2021
2115
  cleanup?: {
2022
2116
  code: string | null;
2023
2117
  message: string;
2024
2118
  } | undefined;
2119
+ inventory?: {
2120
+ exact: false;
2121
+ changedFiles: number;
2122
+ largest: {
2123
+ path: string;
2124
+ change: "added" | "deleted" | "modified" | "type_changed";
2125
+ sizeBytes: number | null;
2126
+ }[];
2127
+ } | undefined;
2025
2128
  }>>;
2026
2129
  phase: z.ZodDefault<z.ZodString>;
2027
2130
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
2028
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
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"]>>>;
2029
2132
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2030
2133
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2031
2134
  safeMessage: z.ZodString;
@@ -2034,6 +2137,22 @@ export declare const ControlRunSummary: z.ZodObject<{
2034
2137
  eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2035
2138
  runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2036
2139
  resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2140
+ quotaRefusal: z.ZodOptional<z.ZodObject<{
2141
+ basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
2142
+ constraintId: z.ZodNullable<z.ZodString>;
2143
+ usedRatio: z.ZodNullable<z.ZodNumber>;
2144
+ threshold: z.ZodNullable<z.ZodNumber>;
2145
+ }, "strip", z.ZodTypeAny, {
2146
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
2147
+ constraintId: string | null;
2148
+ usedRatio: number | null;
2149
+ threshold: number | null;
2150
+ }, {
2151
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
2152
+ constraintId: string | null;
2153
+ usedRatio: number | null;
2154
+ threshold: number | null;
2155
+ }>>;
2037
2156
  vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2038
2157
  code: z.ZodNullable<z.ZodString>;
2039
2158
  message: z.ZodNullable<z.ZodString>;
@@ -2126,21 +2245,45 @@ export declare const ControlRunSummary: z.ZodObject<{
2126
2245
  source: "grok_init";
2127
2246
  reported_source: string;
2128
2247
  } | undefined;
2248
+ rawContextShortfall?: {
2249
+ model: string;
2250
+ context_window: number;
2251
+ packet_tokens: number;
2252
+ framing_tokens: number;
2253
+ output_allowance_tokens: number;
2254
+ mandatory_files: {
2255
+ path: string;
2256
+ estimated_tokens: number;
2257
+ }[];
2258
+ } | undefined;
2129
2259
  captureFailure?: {
2130
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2260
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
2131
2261
  message: string;
2132
2262
  causeCode?: string | undefined;
2133
2263
  bufferBudgetBytes?: number | undefined;
2134
2264
  stream?: "stderr" | "stdout" | undefined;
2135
2265
  drain?: "truncated" | undefined;
2266
+ requiredBytes?: number | undefined;
2267
+ availableBytes?: number | undefined;
2268
+ signal?: string | undefined;
2269
+ stallMs?: number | undefined;
2136
2270
  cleanup?: {
2137
2271
  code: string | null;
2138
2272
  message: string;
2139
2273
  } | undefined;
2274
+ inventory?: {
2275
+ exact: false;
2276
+ changedFiles: number;
2277
+ largest: {
2278
+ path: string;
2279
+ change: "added" | "deleted" | "modified" | "type_changed";
2280
+ sizeBytes: number | null;
2281
+ }[];
2282
+ } | undefined;
2140
2283
  } | undefined;
2141
2284
  phase: string;
2142
2285
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2143
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
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;
2144
2287
  harnessId: string | null;
2145
2288
  attemptId: string | null;
2146
2289
  safeMessage: string;
@@ -2149,6 +2292,12 @@ export declare const ControlRunSummary: z.ZodObject<{
2149
2292
  eventRefs: string[];
2150
2293
  runDir: string | null;
2151
2294
  resetsAt: string | null;
2295
+ quotaRefusal?: {
2296
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
2297
+ constraintId: string | null;
2298
+ usedRatio: number | null;
2299
+ threshold: number | null;
2300
+ } | undefined;
2152
2301
  vendorFailure: {
2153
2302
  code: string | null;
2154
2303
  message: string | null;
@@ -2193,21 +2342,45 @@ export declare const ControlRunSummary: z.ZodObject<{
2193
2342
  source: "grok_init";
2194
2343
  reported_source: string;
2195
2344
  } | undefined;
2345
+ rawContextShortfall?: {
2346
+ model: string;
2347
+ context_window: number;
2348
+ packet_tokens: number;
2349
+ framing_tokens: number;
2350
+ output_allowance_tokens: number;
2351
+ mandatory_files: {
2352
+ path: string;
2353
+ estimated_tokens: number;
2354
+ }[];
2355
+ } | undefined;
2196
2356
  captureFailure?: {
2197
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
2357
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
2198
2358
  message: string;
2199
2359
  causeCode?: string | undefined;
2200
2360
  bufferBudgetBytes?: number | undefined;
2201
2361
  stream?: "stderr" | "stdout" | undefined;
2202
2362
  drain?: "truncated" | undefined;
2363
+ requiredBytes?: number | undefined;
2364
+ availableBytes?: number | undefined;
2365
+ signal?: string | undefined;
2366
+ stallMs?: number | undefined;
2203
2367
  cleanup?: {
2204
2368
  code: string | null;
2205
2369
  message: string;
2206
2370
  } | undefined;
2371
+ inventory?: {
2372
+ exact: false;
2373
+ changedFiles: number;
2374
+ largest: {
2375
+ path: string;
2376
+ change: "added" | "deleted" | "modified" | "type_changed";
2377
+ sizeBytes: number | null;
2378
+ }[];
2379
+ } | undefined;
2207
2380
  } | undefined;
2208
2381
  phase?: string | undefined;
2209
2382
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
2210
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
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;
2211
2384
  harnessId?: string | null | undefined;
2212
2385
  attemptId?: string | null | undefined;
2213
2386
  safeMessage: string;
@@ -2216,6 +2389,12 @@ export declare const ControlRunSummary: z.ZodObject<{
2216
2389
  eventRefs?: string[] | undefined;
2217
2390
  runDir?: string | null | undefined;
2218
2391
  resetsAt?: string | null | undefined;
2392
+ quotaRefusal?: {
2393
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
2394
+ constraintId: string | null;
2395
+ usedRatio: number | null;
2396
+ threshold: number | null;
2397
+ } | undefined;
2219
2398
  vendorFailure?: {
2220
2399
  code: string | null;
2221
2400
  message: string | null;
@@ -2526,7 +2705,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2526
2705
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
2527
2706
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
2528
2707
  review_requested: z.ZodOptional<z.ZodBoolean>;
2529
- 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", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
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"]>>>;
2530
2709
  work_state: z.ZodOptional<z.ZodObject<{
2531
2710
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
2532
2711
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -2569,7 +2748,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2569
2748
  checks: "failed" | "not_configured" | "passed";
2570
2749
  review: "approved" | "blocked" | "not_run";
2571
2750
  review_requested?: boolean | undefined;
2572
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
2573
2752
  work_state?: {
2574
2753
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2575
2754
  source: "absent" | "constrained" | "validated";
@@ -2586,7 +2765,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2586
2765
  checks?: "failed" | "not_configured" | "passed" | undefined;
2587
2766
  review?: "approved" | "blocked" | "not_run" | undefined;
2588
2767
  review_requested?: boolean | undefined;
2589
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
2590
2769
  work_state?: {
2591
2770
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2592
2771
  source: "absent" | "constrained" | "validated";
@@ -2691,6 +2870,74 @@ export declare const ControlRunSummary: z.ZodObject<{
2691
2870
  eligible: boolean;
2692
2871
  }[] | undefined;
2693
2872
  }>>>;
2873
+ rawContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2874
+ model: z.ZodString;
2875
+ estimated_request_tokens: z.ZodNumber;
2876
+ budget: z.ZodObject<{
2877
+ estimator: z.ZodLiteral<"chars_div_4">;
2878
+ basis: z.ZodEnum<["model_context_window", "assumed_ceiling"]>;
2879
+ model: z.ZodNullable<z.ZodString>;
2880
+ context_window: z.ZodNullable<z.ZodNumber>;
2881
+ output_allowance_tokens: z.ZodNullable<z.ZodNumber>;
2882
+ framing_tokens: z.ZodNullable<z.ZodNumber>;
2883
+ selection_limit_tokens: z.ZodNumber;
2884
+ estimated_packet_tokens: z.ZodNumber;
2885
+ omitted_for_budget: z.ZodNumber;
2886
+ mandatory_paths: z.ZodArray<z.ZodString, "many">;
2887
+ }, "strict", z.ZodTypeAny, {
2888
+ estimator: "chars_div_4";
2889
+ basis: "assumed_ceiling" | "model_context_window";
2890
+ model: string | null;
2891
+ context_window: number | null;
2892
+ output_allowance_tokens: number | null;
2893
+ framing_tokens: number | null;
2894
+ selection_limit_tokens: number;
2895
+ estimated_packet_tokens: number;
2896
+ omitted_for_budget: number;
2897
+ mandatory_paths: string[];
2898
+ }, {
2899
+ estimator: "chars_div_4";
2900
+ basis: "assumed_ceiling" | "model_context_window";
2901
+ model: string | null;
2902
+ context_window: number | null;
2903
+ output_allowance_tokens: number | null;
2904
+ framing_tokens: number | null;
2905
+ selection_limit_tokens: number;
2906
+ estimated_packet_tokens: number;
2907
+ omitted_for_budget: number;
2908
+ mandatory_paths: string[];
2909
+ }>;
2910
+ }, "strict", z.ZodTypeAny, {
2911
+ model: string;
2912
+ estimated_request_tokens: number;
2913
+ budget: {
2914
+ estimator: "chars_div_4";
2915
+ basis: "assumed_ceiling" | "model_context_window";
2916
+ model: string | null;
2917
+ context_window: number | null;
2918
+ output_allowance_tokens: number | null;
2919
+ framing_tokens: number | null;
2920
+ selection_limit_tokens: number;
2921
+ estimated_packet_tokens: number;
2922
+ omitted_for_budget: number;
2923
+ mandatory_paths: string[];
2924
+ };
2925
+ }, {
2926
+ model: string;
2927
+ estimated_request_tokens: number;
2928
+ budget: {
2929
+ estimator: "chars_div_4";
2930
+ basis: "assumed_ceiling" | "model_context_window";
2931
+ model: string | null;
2932
+ context_window: number | null;
2933
+ output_allowance_tokens: number | null;
2934
+ framing_tokens: number | null;
2935
+ selection_limit_tokens: number;
2936
+ estimated_packet_tokens: number;
2937
+ omitted_for_budget: number;
2938
+ mandatory_paths: string[];
2939
+ };
2940
+ }>>>;
2694
2941
  tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2695
2942
  program: z.ZodString;
2696
2943
  args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -2761,6 +3008,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2761
3008
  modelMismatch: boolean | null;
2762
3009
  identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
2763
3010
  inputDelivery: "confirmed" | "not_applicable" | "uncertain";
3011
+ sourceRetirement?: "not_confirmed" | "retired" | undefined;
2764
3012
  }[] | undefined;
2765
3013
  retainedEnvelope: {
2766
3014
  root: string;
@@ -2793,21 +3041,45 @@ export declare const ControlRunSummary: z.ZodObject<{
2793
3041
  source: "grok_init";
2794
3042
  reported_source: string;
2795
3043
  } | undefined;
3044
+ rawContextShortfall?: {
3045
+ model: string;
3046
+ context_window: number;
3047
+ packet_tokens: number;
3048
+ framing_tokens: number;
3049
+ output_allowance_tokens: number;
3050
+ mandatory_files: {
3051
+ path: string;
3052
+ estimated_tokens: number;
3053
+ }[];
3054
+ } | undefined;
2796
3055
  captureFailure?: {
2797
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
3056
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
2798
3057
  message: string;
2799
3058
  causeCode?: string | undefined;
2800
3059
  bufferBudgetBytes?: number | undefined;
2801
3060
  stream?: "stderr" | "stdout" | undefined;
2802
3061
  drain?: "truncated" | undefined;
3062
+ requiredBytes?: number | undefined;
3063
+ availableBytes?: number | undefined;
3064
+ signal?: string | undefined;
3065
+ stallMs?: number | undefined;
2803
3066
  cleanup?: {
2804
3067
  code: string | null;
2805
3068
  message: string;
2806
3069
  } | undefined;
3070
+ inventory?: {
3071
+ exact: false;
3072
+ changedFiles: number;
3073
+ largest: {
3074
+ path: string;
3075
+ change: "added" | "deleted" | "modified" | "type_changed";
3076
+ sizeBytes: number | null;
3077
+ }[];
3078
+ } | undefined;
2807
3079
  } | undefined;
2808
3080
  phase: string;
2809
3081
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
2810
- code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
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;
2811
3083
  harnessId: string | null;
2812
3084
  attemptId: string | null;
2813
3085
  safeMessage: string;
@@ -2816,6 +3088,12 @@ export declare const ControlRunSummary: z.ZodObject<{
2816
3088
  eventRefs: string[];
2817
3089
  runDir: string | null;
2818
3090
  resetsAt: string | null;
3091
+ quotaRefusal?: {
3092
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
3093
+ constraintId: string | null;
3094
+ usedRatio: number | null;
3095
+ threshold: number | null;
3096
+ } | undefined;
2819
3097
  vendorFailure: {
2820
3098
  code: string | null;
2821
3099
  message: string | null;
@@ -2949,7 +3227,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2949
3227
  checks: "failed" | "not_configured" | "passed";
2950
3228
  review: "approved" | "blocked" | "not_run";
2951
3229
  review_requested?: boolean | undefined;
2952
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
2953
3231
  work_state?: {
2954
3232
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2955
3233
  source: "absent" | "constrained" | "validated";
@@ -2989,6 +3267,22 @@ export declare const ControlRunSummary: z.ZodObject<{
2989
3267
  eligible: boolean;
2990
3268
  }[];
2991
3269
  } | null;
3270
+ rawContext: {
3271
+ model: string;
3272
+ estimated_request_tokens: number;
3273
+ budget: {
3274
+ estimator: "chars_div_4";
3275
+ basis: "assumed_ceiling" | "model_context_window";
3276
+ model: string | null;
3277
+ context_window: number | null;
3278
+ output_allowance_tokens: number | null;
3279
+ framing_tokens: number | null;
3280
+ selection_limit_tokens: number;
3281
+ estimated_packet_tokens: number;
3282
+ omitted_for_budget: number;
3283
+ mandatory_paths: string[];
3284
+ };
3285
+ } | null;
2992
3286
  tests?: {
2993
3287
  program: string;
2994
3288
  args: string[];
@@ -3049,6 +3343,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3049
3343
  modelMismatch: boolean | null;
3050
3344
  identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
3051
3345
  inputDelivery: "confirmed" | "not_applicable" | "uncertain";
3346
+ sourceRetirement?: "not_confirmed" | "retired" | undefined;
3052
3347
  }[] | undefined;
3053
3348
  retainedEnvelope?: {
3054
3349
  root: string;
@@ -3081,21 +3376,45 @@ export declare const ControlRunSummary: z.ZodObject<{
3081
3376
  source: "grok_init";
3082
3377
  reported_source: string;
3083
3378
  } | undefined;
3379
+ rawContextShortfall?: {
3380
+ model: string;
3381
+ context_window: number;
3382
+ packet_tokens: number;
3383
+ framing_tokens: number;
3384
+ output_allowance_tokens: number;
3385
+ mandatory_files: {
3386
+ path: string;
3387
+ estimated_tokens: number;
3388
+ }[];
3389
+ } | undefined;
3084
3390
  captureFailure?: {
3085
- code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
3391
+ code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
3086
3392
  message: string;
3087
3393
  causeCode?: string | undefined;
3088
3394
  bufferBudgetBytes?: number | undefined;
3089
3395
  stream?: "stderr" | "stdout" | undefined;
3090
3396
  drain?: "truncated" | undefined;
3397
+ requiredBytes?: number | undefined;
3398
+ availableBytes?: number | undefined;
3399
+ signal?: string | undefined;
3400
+ stallMs?: number | undefined;
3091
3401
  cleanup?: {
3092
3402
  code: string | null;
3093
3403
  message: string;
3094
3404
  } | undefined;
3405
+ inventory?: {
3406
+ exact: false;
3407
+ changedFiles: number;
3408
+ largest: {
3409
+ path: string;
3410
+ change: "added" | "deleted" | "modified" | "type_changed";
3411
+ sizeBytes: number | null;
3412
+ }[];
3413
+ } | undefined;
3095
3414
  } | undefined;
3096
3415
  phase?: string | undefined;
3097
3416
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3098
- code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
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;
3099
3418
  harnessId?: string | null | undefined;
3100
3419
  attemptId?: string | null | undefined;
3101
3420
  safeMessage: string;
@@ -3104,6 +3423,12 @@ export declare const ControlRunSummary: z.ZodObject<{
3104
3423
  eventRefs?: string[] | undefined;
3105
3424
  runDir?: string | null | undefined;
3106
3425
  resetsAt?: string | null | undefined;
3426
+ quotaRefusal?: {
3427
+ basis: "owner_reserve" | "provider_cooldown" | "provider_window";
3428
+ constraintId: string | null;
3429
+ usedRatio: number | null;
3430
+ threshold: number | null;
3431
+ } | undefined;
3107
3432
  vendorFailure?: {
3108
3433
  code: string | null;
3109
3434
  message: string | null;
@@ -3237,7 +3562,7 @@ export declare const ControlRunSummary: z.ZodObject<{
3237
3562
  checks?: "failed" | "not_configured" | "passed" | undefined;
3238
3563
  review?: "approved" | "blocked" | "not_run" | undefined;
3239
3564
  review_requested?: boolean | undefined;
3240
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
3241
3566
  work_state?: {
3242
3567
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3243
3568
  source: "absent" | "constrained" | "validated";
@@ -3277,6 +3602,22 @@ export declare const ControlRunSummary: z.ZodObject<{
3277
3602
  eligible: boolean;
3278
3603
  }[] | undefined;
3279
3604
  } | null | undefined;
3605
+ rawContext?: {
3606
+ model: string;
3607
+ estimated_request_tokens: number;
3608
+ budget: {
3609
+ estimator: "chars_div_4";
3610
+ basis: "assumed_ceiling" | "model_context_window";
3611
+ model: string | null;
3612
+ context_window: number | null;
3613
+ output_allowance_tokens: number | null;
3614
+ framing_tokens: number | null;
3615
+ selection_limit_tokens: number;
3616
+ estimated_packet_tokens: number;
3617
+ omitted_for_budget: number;
3618
+ mandatory_paths: string[];
3619
+ };
3620
+ } | null | undefined;
3280
3621
  tests?: {
3281
3622
  program: string;
3282
3623
  args?: string[] | undefined;
@@ -3968,7 +4309,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3968
4309
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
3969
4310
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
3970
4311
  review_requested: z.ZodOptional<z.ZodBoolean>;
3971
- 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", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
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"]>>>;
3972
4313
  work_state: z.ZodOptional<z.ZodObject<{
3973
4314
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
3974
4315
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4011,7 +4352,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4011
4352
  checks: "failed" | "not_configured" | "passed";
4012
4353
  review: "approved" | "blocked" | "not_run";
4013
4354
  review_requested?: boolean | undefined;
4014
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
4015
4356
  work_state?: {
4016
4357
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4017
4358
  source: "absent" | "constrained" | "validated";
@@ -4028,7 +4369,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4028
4369
  checks?: "failed" | "not_configured" | "passed" | undefined;
4029
4370
  review?: "approved" | "blocked" | "not_run" | undefined;
4030
4371
  review_requested?: boolean | undefined;
4031
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
4032
4373
  work_state?: {
4033
4374
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4034
4375
  source: "absent" | "constrained" | "validated";
@@ -4102,7 +4443,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4102
4443
  checks: "failed" | "not_configured" | "passed";
4103
4444
  review: "approved" | "blocked" | "not_run";
4104
4445
  review_requested?: boolean | undefined;
4105
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
4106
4447
  work_state?: {
4107
4448
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4108
4449
  source: "absent" | "constrained" | "validated";
@@ -4152,7 +4493,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
4152
4493
  checks?: "failed" | "not_configured" | "passed" | undefined;
4153
4494
  review?: "approved" | "blocked" | "not_run" | undefined;
4154
4495
  review_requested?: boolean | undefined;
4155
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
4156
4497
  work_state?: {
4157
4498
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4158
4499
  source: "absent" | "constrained" | "validated";
@@ -4267,7 +4608,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4267
4608
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
4268
4609
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
4269
4610
  review_requested: z.ZodOptional<z.ZodBoolean>;
4270
- 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", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
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"]>>>;
4271
4612
  work_state: z.ZodOptional<z.ZodObject<{
4272
4613
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
4273
4614
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -4310,7 +4651,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4310
4651
  checks: "failed" | "not_configured" | "passed";
4311
4652
  review: "approved" | "blocked" | "not_run";
4312
4653
  review_requested?: boolean | undefined;
4313
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
4314
4655
  work_state?: {
4315
4656
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4316
4657
  source: "absent" | "constrained" | "validated";
@@ -4327,7 +4668,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4327
4668
  checks?: "failed" | "not_configured" | "passed" | undefined;
4328
4669
  review?: "approved" | "blocked" | "not_run" | undefined;
4329
4670
  review_requested?: boolean | undefined;
4330
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
4331
4672
  work_state?: {
4332
4673
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4333
4674
  source: "absent" | "constrained" | "validated";
@@ -4401,7 +4742,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4401
4742
  checks: "failed" | "not_configured" | "passed";
4402
4743
  review: "approved" | "blocked" | "not_run";
4403
4744
  review_requested?: boolean | undefined;
4404
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
4405
4746
  work_state?: {
4406
4747
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4407
4748
  source: "absent" | "constrained" | "validated";
@@ -4451,7 +4792,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4451
4792
  checks?: "failed" | "not_configured" | "passed" | undefined;
4452
4793
  review?: "approved" | "blocked" | "not_run" | undefined;
4453
4794
  review_requested?: boolean | undefined;
4454
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
4455
4796
  work_state?: {
4456
4797
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4457
4798
  source: "absent" | "constrained" | "validated";
@@ -4577,7 +4918,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4577
4918
  checks: "failed" | "not_configured" | "passed";
4578
4919
  review: "approved" | "blocked" | "not_run";
4579
4920
  review_requested?: boolean | undefined;
4580
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
4581
4922
  work_state?: {
4582
4923
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4583
4924
  source: "absent" | "constrained" | "validated";
@@ -4657,7 +4998,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4657
4998
  checks?: "failed" | "not_configured" | "passed" | undefined;
4658
4999
  review?: "approved" | "blocked" | "not_run" | undefined;
4659
5000
  review_requested?: boolean | undefined;
4660
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
4661
5002
  work_state?: {
4662
5003
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4663
5004
  source: "absent" | "constrained" | "validated";
@@ -5057,7 +5398,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5057
5398
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
5058
5399
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
5059
5400
  review_requested: z.ZodOptional<z.ZodBoolean>;
5060
- 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", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
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"]>>>;
5061
5402
  work_state: z.ZodOptional<z.ZodObject<{
5062
5403
  state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
5063
5404
  source: z.ZodEnum<["constrained", "validated", "absent"]>;
@@ -5100,7 +5441,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5100
5441
  checks: "failed" | "not_configured" | "passed";
5101
5442
  review: "approved" | "blocked" | "not_run";
5102
5443
  review_requested?: boolean | undefined;
5103
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
5104
5445
  work_state?: {
5105
5446
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5106
5447
  source: "absent" | "constrained" | "validated";
@@ -5117,7 +5458,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5117
5458
  checks?: "failed" | "not_configured" | "passed" | undefined;
5118
5459
  review?: "approved" | "blocked" | "not_run" | undefined;
5119
5460
  review_requested?: boolean | undefined;
5120
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
5121
5462
  work_state?: {
5122
5463
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5123
5464
  source: "absent" | "constrained" | "validated";
@@ -5191,7 +5532,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5191
5532
  checks: "failed" | "not_configured" | "passed";
5192
5533
  review: "approved" | "blocked" | "not_run";
5193
5534
  review_requested?: boolean | undefined;
5194
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
5195
5536
  work_state?: {
5196
5537
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5197
5538
  source: "absent" | "constrained" | "validated";
@@ -5241,7 +5582,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5241
5582
  checks?: "failed" | "not_configured" | "passed" | undefined;
5242
5583
  review?: "approved" | "blocked" | "not_run" | undefined;
5243
5584
  review_requested?: boolean | undefined;
5244
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
5245
5586
  work_state?: {
5246
5587
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5247
5588
  source: "absent" | "constrained" | "validated";
@@ -5367,7 +5708,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5367
5708
  checks: "failed" | "not_configured" | "passed";
5368
5709
  review: "approved" | "blocked" | "not_run";
5369
5710
  review_requested?: boolean | undefined;
5370
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
5371
5712
  work_state?: {
5372
5713
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5373
5714
  source: "absent" | "constrained" | "validated";
@@ -5447,7 +5788,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5447
5788
  checks?: "failed" | "not_configured" | "passed" | undefined;
5448
5789
  review?: "approved" | "blocked" | "not_run" | undefined;
5449
5790
  review_requested?: boolean | undefined;
5450
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
5451
5792
  work_state?: {
5452
5793
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5453
5794
  source: "absent" | "constrained" | "validated";
@@ -5560,7 +5901,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5560
5901
  checks: "failed" | "not_configured" | "passed";
5561
5902
  review: "approved" | "blocked" | "not_run";
5562
5903
  review_requested?: boolean | undefined;
5563
- reason: "budget_exhausted" | "budget_overshoot" | "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;
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;
5564
5905
  work_state?: {
5565
5906
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5566
5907
  source: "absent" | "constrained" | "validated";
@@ -5673,7 +6014,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
5673
6014
  checks?: "failed" | "not_configured" | "passed" | undefined;
5674
6015
  review?: "approved" | "blocked" | "not_run" | undefined;
5675
6016
  review_requested?: boolean | undefined;
5676
- reason?: "budget_exhausted" | "budget_overshoot" | "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;
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;
5677
6018
  work_state?: {
5678
6019
  state: "completed" | "incomplete" | "needs_input" | "unverified";
5679
6020
  source: "absent" | "constrained" | "validated";