@claudexor/schema 3.1.1 → 3.2.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 (282) hide show
  1. package/dist/agent-capabilities.d.ts +232 -116
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +8 -1
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +513 -222
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +42 -2
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/attachment.d.ts +17 -17
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +1 -1
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/auth.d.ts +475 -475
  14. package/dist/auth.d.ts.map +1 -1
  15. package/dist/auth.js +1 -1
  16. package/dist/auth.js.map +1 -1
  17. package/dist/budget.d.ts +61 -61
  18. package/dist/budget.d.ts.map +1 -1
  19. package/dist/budget.js +3 -1
  20. package/dist/budget.js.map +1 -1
  21. package/dist/config.d.ts +320 -316
  22. package/dist/config.d.ts.map +1 -1
  23. package/dist/config.js +26 -19
  24. package/dist/config.js.map +1 -1
  25. package/dist/context.d.ts +38 -38
  26. package/dist/context.d.ts.map +1 -1
  27. package/dist/context.js +1 -1
  28. package/dist/context.js.map +1 -1
  29. package/dist/control-auth-route.d.ts +46 -0
  30. package/dist/control-auth-route.d.ts.map +1 -0
  31. package/dist/control-auth-route.js +24 -0
  32. package/dist/control-auth-route.js.map +1 -0
  33. package/dist/control-gc.d.ts +15 -15
  34. package/dist/control-gc.d.ts.map +1 -1
  35. package/dist/control-gc.js +1 -1
  36. package/dist/control-gc.js.map +1 -1
  37. package/dist/control-harness-list.d.ts +896 -0
  38. package/dist/control-harness-list.d.ts.map +1 -0
  39. package/dist/control-harness-list.js +13 -0
  40. package/dist/control-harness-list.js.map +1 -0
  41. package/dist/control-operation-responses.d.ts +691 -590
  42. package/dist/control-operation-responses.d.ts.map +1 -1
  43. package/dist/control-operation-responses.js +27 -1
  44. package/dist/control-operation-responses.js.map +1 -1
  45. package/dist/control-run-detail.d.ts +2663 -920
  46. package/dist/control-run-detail.d.ts.map +1 -1
  47. package/dist/control-run-detail.js +13 -1
  48. package/dist/control-run-detail.js.map +1 -1
  49. package/dist/control-run-retry.d.ts +18 -18
  50. package/dist/control-run-retry.d.ts.map +1 -1
  51. package/dist/control-run-retry.js +1 -1
  52. package/dist/control-run-retry.js.map +1 -1
  53. package/dist/control-run-scope.d.ts +2 -2
  54. package/dist/control-run-scope.d.ts.map +1 -1
  55. package/dist/control-run-scope.js +1 -1
  56. package/dist/control-run-scope.js.map +1 -1
  57. package/dist/control-secret.d.ts +7 -7
  58. package/dist/control-secret.d.ts.map +1 -1
  59. package/dist/control-secret.js +1 -1
  60. package/dist/control-secret.js.map +1 -1
  61. package/dist/control-thread-apply.d.ts +65 -65
  62. package/dist/control-thread-apply.d.ts.map +1 -1
  63. package/dist/control-thread-apply.js +1 -1
  64. package/dist/control-thread-apply.js.map +1 -1
  65. package/dist/control-trust.d.ts +23 -23
  66. package/dist/control-trust.d.ts.map +1 -1
  67. package/dist/control-trust.js +1 -1
  68. package/dist/control-trust.js.map +1 -1
  69. package/dist/control.d.ts +1658 -2225
  70. package/dist/control.d.ts.map +1 -1
  71. package/dist/control.js +43 -73
  72. package/dist/control.js.map +1 -1
  73. package/dist/credential-profile-snapshot.d.ts +3185 -0
  74. package/dist/credential-profile-snapshot.d.ts.map +1 -0
  75. package/dist/credential-profile-snapshot.js +28 -0
  76. package/dist/credential-profile-snapshot.js.map +1 -0
  77. package/dist/credential-profile.d.ts +122 -107
  78. package/dist/credential-profile.d.ts.map +1 -1
  79. package/dist/credential-profile.js +12 -6
  80. package/dist/credential-profile.js.map +1 -1
  81. package/dist/decision.d.ts +122 -117
  82. package/dist/decision.d.ts.map +1 -1
  83. package/dist/decision.js +9 -4
  84. package/dist/decision.js.map +1 -1
  85. package/dist/deep-scan.d.ts +5 -5
  86. package/dist/deep-scan.d.ts.map +1 -1
  87. package/dist/deep-scan.js +1 -1
  88. package/dist/deep-scan.js.map +1 -1
  89. package/dist/delegation.d.ts +73 -0
  90. package/dist/delegation.d.ts.map +1 -0
  91. package/dist/delegation.js +120 -0
  92. package/dist/delegation.js.map +1 -0
  93. package/dist/delivery.d.ts +32 -32
  94. package/dist/delivery.d.ts.map +1 -1
  95. package/dist/delivery.js +1 -1
  96. package/dist/delivery.js.map +1 -1
  97. package/dist/effort.d.ts +1 -1
  98. package/dist/effort.d.ts.map +1 -1
  99. package/dist/effort.js +1 -1
  100. package/dist/effort.js.map +1 -1
  101. package/dist/events.d.ts +57 -37
  102. package/dist/events.d.ts.map +1 -1
  103. package/dist/events.js +23 -1
  104. package/dist/events.js.map +1 -1
  105. package/dist/gate.d.ts +7 -7
  106. package/dist/gate.d.ts.map +1 -1
  107. package/dist/gate.js +1 -1
  108. package/dist/gate.js.map +1 -1
  109. package/dist/git-capability.d.ts +23 -0
  110. package/dist/git-capability.d.ts.map +1 -0
  111. package/dist/git-capability.js +15 -0
  112. package/dist/git-capability.js.map +1 -0
  113. package/dist/harness.d.ts +409 -409
  114. package/dist/harness.d.ts.map +1 -1
  115. package/dist/harness.js +19 -22
  116. package/dist/harness.js.map +1 -1
  117. package/dist/index.d.ts +7 -0
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +7 -0
  120. package/dist/index.js.map +1 -1
  121. package/dist/interaction.d.ts +10 -0
  122. package/dist/interaction.d.ts.map +1 -0
  123. package/dist/interaction.js +2 -0
  124. package/dist/interaction.js.map +1 -0
  125. package/dist/operation.d.ts +113 -113
  126. package/dist/operation.d.ts.map +1 -1
  127. package/dist/operation.js +1 -1
  128. package/dist/operation.js.map +1 -1
  129. package/dist/output-schema-dialect.d.ts +1 -1
  130. package/dist/output-schema-dialect.d.ts.map +1 -1
  131. package/dist/output-schema-dialect.js +1 -1
  132. package/dist/output-schema-dialect.js.map +1 -1
  133. package/dist/output-schema.d.ts +2 -2
  134. package/dist/output-schema.js +2 -2
  135. package/dist/plan.d.ts +29 -29
  136. package/dist/plan.d.ts.map +1 -1
  137. package/dist/plan.js +1 -1
  138. package/dist/plan.js.map +1 -1
  139. package/dist/primitives.d.ts +1 -1
  140. package/dist/primitives.d.ts.map +1 -1
  141. package/dist/primitives.js +1 -1
  142. package/dist/primitives.js.map +1 -1
  143. package/dist/problem.d.ts +6 -6
  144. package/dist/problem.d.ts.map +1 -1
  145. package/dist/problem.js +1 -1
  146. package/dist/problem.js.map +1 -1
  147. package/dist/project.d.ts +87 -25
  148. package/dist/project.d.ts.map +1 -1
  149. package/dist/project.js +21 -1
  150. package/dist/project.js.map +1 -1
  151. package/dist/quota.d.ts +48 -48
  152. package/dist/quota.d.ts.map +1 -1
  153. package/dist/quota.js +1 -1
  154. package/dist/quota.js.map +1 -1
  155. package/dist/raw.d.ts +16 -16
  156. package/dist/raw.d.ts.map +1 -1
  157. package/dist/raw.js +1 -1
  158. package/dist/raw.js.map +1 -1
  159. package/dist/readiness.d.ts +264 -226
  160. package/dist/readiness.d.ts.map +1 -1
  161. package/dist/readiness.js +5 -1
  162. package/dist/readiness.js.map +1 -1
  163. package/dist/recovery.d.ts +106 -106
  164. package/dist/recovery.d.ts.map +1 -1
  165. package/dist/recovery.js +1 -1
  166. package/dist/recovery.js.map +1 -1
  167. package/dist/request-requirements.d.ts +12 -12
  168. package/dist/request-requirements.d.ts.map +1 -1
  169. package/dist/request-requirements.js +3 -2
  170. package/dist/request-requirements.js.map +1 -1
  171. package/dist/review.d.ts +29 -29
  172. package/dist/review.d.ts.map +1 -1
  173. package/dist/review.js +1 -1
  174. package/dist/review.js.map +1 -1
  175. package/dist/route.d.ts +11 -11
  176. package/dist/route.d.ts.map +1 -1
  177. package/dist/route.js +1 -1
  178. package/dist/route.js.map +1 -1
  179. package/dist/run-applicability.d.ts +764 -0
  180. package/dist/run-applicability.d.ts.map +1 -0
  181. package/dist/run-applicability.js +56 -0
  182. package/dist/run-applicability.js.map +1 -0
  183. package/dist/run-facts.d.ts +628 -0
  184. package/dist/run-facts.d.ts.map +1 -0
  185. package/dist/run-facts.js +429 -0
  186. package/dist/run-facts.js.map +1 -0
  187. package/dist/run-strategy.d.ts +40 -0
  188. package/dist/run-strategy.d.ts.map +1 -1
  189. package/dist/run-strategy.js +68 -1
  190. package/dist/run-strategy.js.map +1 -1
  191. package/dist/setup-device-code-envelope.d.ts +67 -0
  192. package/dist/setup-device-code-envelope.d.ts.map +1 -0
  193. package/dist/setup-device-code-envelope.js +25 -0
  194. package/dist/setup-device-code-envelope.js.map +1 -0
  195. package/dist/setup-login-protocol.d.ts +6 -0
  196. package/dist/setup-login-protocol.d.ts.map +1 -0
  197. package/dist/setup-login-protocol.js +12 -0
  198. package/dist/setup-login-protocol.js.map +1 -0
  199. package/dist/setup-transport.d.ts +12 -0
  200. package/dist/setup-transport.d.ts.map +1 -0
  201. package/dist/setup-transport.js +22 -0
  202. package/dist/setup-transport.js.map +1 -0
  203. package/dist/setup.d.ts +12572 -3749
  204. package/dist/setup.d.ts.map +1 -1
  205. package/dist/setup.js +34 -38
  206. package/dist/setup.js.map +1 -1
  207. package/dist/status-projection.d.ts +7 -5
  208. package/dist/status-projection.d.ts.map +1 -1
  209. package/dist/status-projection.js +11 -6
  210. package/dist/status-projection.js.map +1 -1
  211. package/dist/surface-run-controls.d.ts.map +1 -1
  212. package/dist/surface-run-controls.js +10 -1
  213. package/dist/surface-run-controls.js.map +1 -1
  214. package/dist/task.d.ts +331 -289
  215. package/dist/task.d.ts.map +1 -1
  216. package/dist/task.js +12 -1
  217. package/dist/task.js.map +1 -1
  218. package/dist/telemetry.d.ts +1189 -627
  219. package/dist/telemetry.d.ts.map +1 -1
  220. package/dist/telemetry.js +13 -13
  221. package/dist/telemetry.js.map +1 -1
  222. package/dist/thread.d.ts +128 -84
  223. package/dist/thread.d.ts.map +1 -1
  224. package/dist/thread.js +16 -2
  225. package/dist/thread.js.map +1 -1
  226. package/dist/tool-ref.d.ts +7 -7
  227. package/dist/tool-ref.d.ts.map +1 -1
  228. package/dist/tool-ref.js +1 -1
  229. package/dist/tool-ref.js.map +1 -1
  230. package/dist/work-report.d.ts +28 -28
  231. package/dist/work-report.d.ts.map +1 -1
  232. package/dist/work-report.js +3 -3
  233. package/dist/work-report.js.map +1 -1
  234. package/dist/workproduct.d.ts +6 -9
  235. package/dist/workproduct.d.ts.map +1 -1
  236. package/dist/workproduct.js +1 -2
  237. package/dist/workproduct.js.map +1 -1
  238. package/dist/workspace.d.ts +14 -14
  239. package/dist/workspace.d.ts.map +1 -1
  240. package/dist/workspace.js +8 -8
  241. package/dist/workspace.js.map +1 -1
  242. package/generated/AgentCapabilityCatalog.schema.json +80 -1
  243. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1333 -0
  244. package/generated/ControlCredentialProfilesResponse.schema.json +10 -2
  245. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1312 -0
  246. package/generated/ControlDirectoryEntry.schema.json +36 -0
  247. package/generated/ControlDirectoryListing.schema.json +77 -0
  248. package/generated/ControlHarnessListResponse.schema.json +89 -3
  249. package/generated/ControlRunAgainDraft.schema.json +7 -3
  250. package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
  251. package/generated/ControlRunControlResponse.schema.json +8 -0
  252. package/generated/ControlRunDetail.schema.json +543 -80
  253. package/generated/ControlRunListResponse.schema.json +104 -11
  254. package/generated/ControlRunStartRequest.schema.json +7 -3
  255. package/generated/ControlRunSummary.schema.json +104 -11
  256. package/generated/ControlSettingsSnapshot.schema.json +12 -3
  257. package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
  258. package/generated/ControlSetupJob.schema.json +9 -0
  259. package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
  260. package/generated/ControlSetupJobEvent.schema.json +858 -758
  261. package/generated/ControlSetupJobListResponse.schema.json +9 -0
  262. package/generated/ControlSetupJobSnapshot.schema.json +811 -736
  263. package/generated/ControlThreadDetail.schema.json +83 -1
  264. package/generated/ControlThreadTurnRequest.schema.json +2 -25
  265. package/generated/DecisionRecord.schema.json +12 -2
  266. package/generated/GitCapability.schema.json +46 -0
  267. package/generated/GlobalConfig.schema.json +13 -4
  268. package/generated/HarnessEvent.schema.json +2 -1
  269. package/generated/HarnessManifest.schema.json +3 -3
  270. package/generated/HarnessStatusDto.schema.json +49 -3
  271. package/generated/McpRunHandleResult.schema.json +237 -2
  272. package/generated/McpRunToolResult.schema.json +234 -1
  273. package/generated/OutputReadyPayload.schema.json +44 -0
  274. package/generated/RunEvent.schema.json +1 -0
  275. package/generated/RunFacts.schema.json +569 -0
  276. package/generated/RunFailure.schema.json +4 -3
  277. package/generated/RunTelemetry.schema.json +553 -4
  278. package/generated/TaskContract.schema.json +43 -3
  279. package/generated/ThreadTurn.schema.json +17 -0
  280. package/generated/WorkProduct.schema.json +0 -4
  281. package/generated/WorkspaceEnvelope.schema.json +6 -6
  282. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v3";
2
2
  /**
3
3
  * Run telemetry artifact (`final/telemetry.yaml`).
4
4
  *
@@ -33,27 +33,27 @@ export declare const WebEvidenceRecord: z.ZodObject<{
33
33
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
34
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
37
- verification: "none" | "verified" | "dispatched";
38
- target: string | null;
39
- error_summary: string | null;
40
36
  required: boolean;
41
- tool: string | null;
37
+ policy: "auto" | "cached" | "live" | "off";
38
+ effective_mode: "auto" | "cached" | "live" | "off";
42
39
  attempted: boolean;
43
- policy: "off" | "auto" | "cached" | "live";
44
- effective_mode: "off" | "auto" | "cached" | "live";
45
40
  satisfied: boolean;
41
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
42
+ verification: "dispatched" | "none" | "verified";
43
+ tool: string | null;
44
+ target: string | null;
45
+ error_summary: string | null;
46
46
  }, {
47
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
48
- verification?: "none" | "verified" | "dispatched" | undefined;
49
- target?: string | null | undefined;
50
- error_summary?: string | null | undefined;
51
47
  required?: boolean | undefined;
52
- tool?: string | null | undefined;
48
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
49
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
53
50
  attempted?: boolean | undefined;
54
- policy?: "off" | "auto" | "cached" | "live" | undefined;
55
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
56
51
  satisfied?: boolean | undefined;
52
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
53
+ verification?: "dispatched" | "none" | "verified" | undefined;
54
+ tool?: string | null | undefined;
55
+ target?: string | null | undefined;
56
+ error_summary?: string | null | undefined;
57
57
  }>;
58
58
  export type WebEvidenceRecord = z.infer<typeof WebEvidenceRecord>;
59
59
  export declare const ToolErrorRecord: z.ZodObject<{
@@ -61,21 +61,21 @@ export declare const ToolErrorRecord: z.ZodObject<{
61
61
  kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
62
62
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
63
63
  summary: z.ZodString;
64
- /** True when a later successful result of the same tool exists in the same attempt. */
64
+ /** True when a later successful result is attributable to this failed invocation. */
65
65
  recovered: z.ZodDefault<z.ZodBoolean>;
66
66
  tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
68
+ tool: string;
69
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
69
70
  target: string | null;
70
71
  summary: string;
71
- tool: string;
72
72
  recovered: boolean;
73
73
  tool_use_id: string | null;
74
74
  }, {
75
- summary: string;
76
75
  tool: string;
77
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
76
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
78
77
  target?: string | null | undefined;
78
+ summary: string;
79
79
  recovered?: boolean | undefined;
80
80
  tool_use_id?: string | null | undefined;
81
81
  }>;
@@ -104,18 +104,18 @@ export declare const TransientFailureRecord: z.ZodObject<{
104
104
  /** Vendor/adapter error-category code passed verbatim as evidence, when any. */
105
105
  adapter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
106
  }, "strip", z.ZodTypeAny, {
107
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
108
- retry_delay_ms: number | null;
107
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
108
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
109
109
  retryable: boolean;
110
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
110
+ retry_delay_ms: number | null;
111
111
  http_status: number | null;
112
112
  signal: string | null;
113
113
  adapter_code: string | null;
114
114
  }, {
115
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
116
- retry_delay_ms?: number | null | undefined;
115
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
116
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
117
117
  retryable?: boolean | undefined;
118
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
118
+ retry_delay_ms?: number | null | undefined;
119
119
  http_status?: number | null | undefined;
120
120
  signal?: string | null | undefined;
121
121
  adapter_code?: string | null | undefined;
@@ -153,65 +153,65 @@ export declare const AttemptOutcome: z.ZodObject<{
153
153
  locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
154
154
  description: z.ZodString;
155
155
  }, "strip", z.ZodTypeAny, {
156
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
157
- description: string;
156
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
158
157
  locator: string | null;
159
- }, {
160
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
161
158
  description: string;
159
+ }, {
160
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
162
161
  locator?: string | null | undefined;
162
+ description: string;
163
163
  }>, "many">>;
164
164
  }, "strip", z.ZodTypeAny, {
165
- source: "constrained" | "validated" | "absent";
166
- state: "completed" | "needs_input" | "incomplete" | "unverified";
165
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
166
+ source: "absent" | "constrained" | "validated";
167
167
  required_inputs?: {
168
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
169
- description: string;
168
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
170
169
  locator: string | null;
170
+ description: string;
171
171
  }[] | undefined;
172
172
  }, {
173
- source: "constrained" | "validated" | "absent";
174
- state: "completed" | "needs_input" | "incomplete" | "unverified";
173
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
174
+ source: "absent" | "constrained" | "validated";
175
175
  required_inputs?: {
176
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
177
- description: string;
176
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
178
177
  locator?: string | null | undefined;
178
+ description: string;
179
179
  }[] | undefined;
180
180
  }>>;
181
181
  }, "strip", z.ZodTypeAny, {
182
- status: "failed" | "blocked" | "success" | "success_with_warnings";
183
- gates_passed: boolean | null;
184
182
  deliverable_present: boolean;
183
+ gates_passed: boolean | null;
185
184
  harness_errored: boolean;
186
185
  web_required_unsatisfied: boolean;
187
186
  delegation_belt_unavailable: boolean;
188
187
  tool_warnings_count: number;
188
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
189
189
  work_state?: {
190
- source: "constrained" | "validated" | "absent";
191
- state: "completed" | "needs_input" | "incomplete" | "unverified";
190
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
191
+ source: "absent" | "constrained" | "validated";
192
192
  required_inputs?: {
193
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
194
- description: string;
193
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
195
194
  locator: string | null;
196
- }[] | undefined;
197
- } | undefined;
198
- }, {
199
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
200
- work_state?: {
201
- source: "constrained" | "validated" | "absent";
202
- state: "completed" | "needs_input" | "incomplete" | "unverified";
203
- required_inputs?: {
204
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
205
195
  description: string;
206
- locator?: string | null | undefined;
207
196
  }[] | undefined;
208
197
  } | undefined;
209
- gates_passed?: boolean | null | undefined;
198
+ }, {
210
199
  deliverable_present?: boolean | undefined;
200
+ gates_passed?: boolean | null | undefined;
211
201
  harness_errored?: boolean | undefined;
212
202
  web_required_unsatisfied?: boolean | undefined;
213
203
  delegation_belt_unavailable?: boolean | undefined;
214
204
  tool_warnings_count?: number | undefined;
205
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
206
+ work_state?: {
207
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
208
+ source: "absent" | "constrained" | "validated";
209
+ required_inputs?: {
210
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
211
+ locator?: string | null | undefined;
212
+ description: string;
213
+ }[] | undefined;
214
+ } | undefined;
215
215
  }>;
216
216
  export type AttemptOutcome = z.infer<typeof AttemptOutcome>;
217
217
  /**
@@ -230,21 +230,21 @@ export declare const StructuredOutputConformance: z.ZodObject<{
230
230
  output_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
231
231
  generated_at: z.ZodString;
232
232
  }, "strip", z.ZodTypeAny, {
233
- status: "passed" | "failed";
234
- reason: string | null;
235
233
  schema_version: 2;
236
234
  schema_dialect: "draft-07" | "draft-2020-12" | null;
237
235
  schema_hash: string | null;
236
+ status: "failed" | "passed";
237
+ reason: string | null;
238
238
  output_path: string | null;
239
239
  generated_at: string;
240
240
  }, {
241
- status: "passed" | "failed";
242
241
  schema_version: 2;
243
- generated_at: string;
244
- reason?: string | null | undefined;
245
242
  schema_dialect?: "draft-07" | "draft-2020-12" | null | undefined;
246
243
  schema_hash?: string | null | undefined;
244
+ status: "failed" | "passed";
245
+ reason?: string | null | undefined;
247
246
  output_path?: string | null | undefined;
247
+ generated_at: string;
248
248
  }>;
249
249
  export type StructuredOutputConformance = z.infer<typeof StructuredOutputConformance>;
250
250
  export declare const TokenUsage: z.ZodObject<{
@@ -277,16 +277,16 @@ export declare const DelegationBeltEvidence: z.ZodObject<{
277
277
  failed: z.ZodDefault<z.ZodBoolean>;
278
278
  tool_evidence: z.ZodDefault<z.ZodBoolean>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- ready: boolean;
281
- failed: boolean;
282
280
  requested: boolean;
283
281
  server_name: string | null;
282
+ ready: boolean;
283
+ failed: boolean;
284
284
  tool_evidence: boolean;
285
285
  }, {
286
- ready?: boolean | undefined;
287
- failed?: boolean | undefined;
288
286
  requested?: boolean | undefined;
289
287
  server_name?: string | null | undefined;
288
+ ready?: boolean | undefined;
289
+ failed?: boolean | undefined;
290
290
  tool_evidence?: boolean | undefined;
291
291
  }>;
292
292
  export type DelegationBeltEvidence = z.infer<typeof DelegationBeltEvidence>;
@@ -308,18 +308,18 @@ export declare const BrowserEvidenceRecord: z.ZodObject<{
308
308
  failed: z.ZodDefault<z.ZodBoolean>;
309
309
  unused: z.ZodDefault<z.ZodBoolean>;
310
310
  }, "strip", z.ZodTypeAny, {
311
- failed: boolean;
312
311
  requested: boolean;
312
+ server_name: string | null;
313
313
  attempted: boolean;
314
314
  satisfied: boolean;
315
- server_name: string | null;
315
+ failed: boolean;
316
316
  unused: boolean;
317
317
  }, {
318
- failed?: boolean | undefined;
319
318
  requested?: boolean | undefined;
319
+ server_name?: string | null | undefined;
320
320
  attempted?: boolean | undefined;
321
321
  satisfied?: boolean | undefined;
322
- server_name?: string | null | undefined;
322
+ failed?: boolean | undefined;
323
323
  unused?: boolean | undefined;
324
324
  }>;
325
325
  export type BrowserEvidenceRecord = z.infer<typeof BrowserEvidenceRecord>;
@@ -353,28 +353,28 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
353
353
  * model x route truth; observed_model is the disclosed side). */
354
354
  requested_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
355
355
  request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
356
- capability: z.ZodEnum<["browser", "path_deny"]>;
356
+ capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
357
357
  harness_id: z.ZodString;
358
358
  eligible: z.ZodBoolean;
359
359
  requested: z.ZodBoolean;
360
360
  effective: z.ZodBoolean;
361
- reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
361
+ reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
362
362
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
363
363
  }, "strip", z.ZodTypeAny, {
364
- requested: boolean;
365
- effective: boolean;
364
+ capability: "browser" | "delegation" | "path_deny";
366
365
  harness_id: string;
367
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
368
- evidence_refs: string[];
369
366
  eligible: boolean;
370
- capability: "browser" | "path_deny";
371
- }, {
372
367
  requested: boolean;
373
368
  effective: boolean;
369
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
370
+ evidence_refs: string[];
371
+ }, {
372
+ capability: "browser" | "delegation" | "path_deny";
374
373
  harness_id: string;
375
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
376
374
  eligible: boolean;
377
- capability: "browser" | "path_deny";
375
+ requested: boolean;
376
+ effective: boolean;
377
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
378
378
  evidence_refs?: string[] | undefined;
379
379
  }>, "many">>;
380
380
  web: z.ZodObject<{
@@ -401,27 +401,27 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
401
401
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
402
402
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
403
403
  }, "strip", z.ZodTypeAny, {
404
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
405
- verification: "none" | "verified" | "dispatched";
406
- target: string | null;
407
- error_summary: string | null;
408
404
  required: boolean;
409
- tool: string | null;
405
+ policy: "auto" | "cached" | "live" | "off";
406
+ effective_mode: "auto" | "cached" | "live" | "off";
410
407
  attempted: boolean;
411
- policy: "off" | "auto" | "cached" | "live";
412
- effective_mode: "off" | "auto" | "cached" | "live";
413
408
  satisfied: boolean;
409
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
410
+ verification: "dispatched" | "none" | "verified";
411
+ tool: string | null;
412
+ target: string | null;
413
+ error_summary: string | null;
414
414
  }, {
415
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
416
- verification?: "none" | "verified" | "dispatched" | undefined;
417
- target?: string | null | undefined;
418
- error_summary?: string | null | undefined;
419
415
  required?: boolean | undefined;
420
- tool?: string | null | undefined;
416
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
417
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
421
418
  attempted?: boolean | undefined;
422
- policy?: "off" | "auto" | "cached" | "live" | undefined;
423
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
424
419
  satisfied?: boolean | undefined;
420
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
421
+ verification?: "dispatched" | "none" | "verified" | undefined;
422
+ tool?: string | null | undefined;
423
+ target?: string | null | undefined;
424
+ error_summary?: string | null | undefined;
425
425
  }>;
426
426
  /** Bounded by the writer (most recent first when truncated; `tool_errors_total` keeps the true count). */
427
427
  tool_errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -429,21 +429,21 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
429
429
  kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
430
430
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
431
431
  summary: z.ZodString;
432
- /** True when a later successful result of the same tool exists in the same attempt. */
432
+ /** True when a later successful result is attributable to this failed invocation. */
433
433
  recovered: z.ZodDefault<z.ZodBoolean>;
434
434
  tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
435
435
  }, "strip", z.ZodTypeAny, {
436
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
436
+ tool: string;
437
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
437
438
  target: string | null;
438
439
  summary: string;
439
- tool: string;
440
440
  recovered: boolean;
441
441
  tool_use_id: string | null;
442
442
  }, {
443
- summary: string;
444
443
  tool: string;
445
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
444
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
446
445
  target?: string | null | undefined;
446
+ summary: string;
447
447
  recovered?: boolean | undefined;
448
448
  tool_use_id?: string | null | undefined;
449
449
  }>, "many">>;
@@ -469,18 +469,18 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
469
469
  /** Vendor/adapter error-category code passed verbatim as evidence, when any. */
470
470
  adapter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
471
471
  }, "strip", z.ZodTypeAny, {
472
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
473
- retry_delay_ms: number | null;
472
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
473
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
474
474
  retryable: boolean;
475
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
475
+ retry_delay_ms: number | null;
476
476
  http_status: number | null;
477
477
  signal: string | null;
478
478
  adapter_code: string | null;
479
479
  }, {
480
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
481
- retry_delay_ms?: number | null | undefined;
480
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
481
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
482
482
  retryable?: boolean | undefined;
483
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
483
+ retry_delay_ms?: number | null | undefined;
484
484
  http_status?: number | null | undefined;
485
485
  signal?: string | null | undefined;
486
486
  adapter_code?: string | null | undefined;
@@ -512,65 +512,65 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
512
512
  locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
513
513
  description: z.ZodString;
514
514
  }, "strip", z.ZodTypeAny, {
515
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
516
- description: string;
515
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
517
516
  locator: string | null;
518
- }, {
519
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
520
517
  description: string;
518
+ }, {
519
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
521
520
  locator?: string | null | undefined;
521
+ description: string;
522
522
  }>, "many">>;
523
523
  }, "strip", z.ZodTypeAny, {
524
- source: "constrained" | "validated" | "absent";
525
- state: "completed" | "needs_input" | "incomplete" | "unverified";
524
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
525
+ source: "absent" | "constrained" | "validated";
526
526
  required_inputs?: {
527
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
528
- description: string;
527
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
529
528
  locator: string | null;
529
+ description: string;
530
530
  }[] | undefined;
531
531
  }, {
532
- source: "constrained" | "validated" | "absent";
533
- state: "completed" | "needs_input" | "incomplete" | "unverified";
532
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
533
+ source: "absent" | "constrained" | "validated";
534
534
  required_inputs?: {
535
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
536
- description: string;
535
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
537
536
  locator?: string | null | undefined;
537
+ description: string;
538
538
  }[] | undefined;
539
539
  }>>;
540
540
  }, "strip", z.ZodTypeAny, {
541
- status: "failed" | "blocked" | "success" | "success_with_warnings";
542
- gates_passed: boolean | null;
543
541
  deliverable_present: boolean;
542
+ gates_passed: boolean | null;
544
543
  harness_errored: boolean;
545
544
  web_required_unsatisfied: boolean;
546
545
  delegation_belt_unavailable: boolean;
547
546
  tool_warnings_count: number;
547
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
548
548
  work_state?: {
549
- source: "constrained" | "validated" | "absent";
550
- state: "completed" | "needs_input" | "incomplete" | "unverified";
549
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
550
+ source: "absent" | "constrained" | "validated";
551
551
  required_inputs?: {
552
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
553
- description: string;
552
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
554
553
  locator: string | null;
555
- }[] | undefined;
556
- } | undefined;
557
- }, {
558
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
559
- work_state?: {
560
- source: "constrained" | "validated" | "absent";
561
- state: "completed" | "needs_input" | "incomplete" | "unverified";
562
- required_inputs?: {
563
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
564
554
  description: string;
565
- locator?: string | null | undefined;
566
555
  }[] | undefined;
567
556
  } | undefined;
568
- gates_passed?: boolean | null | undefined;
557
+ }, {
569
558
  deliverable_present?: boolean | undefined;
559
+ gates_passed?: boolean | null | undefined;
570
560
  harness_errored?: boolean | undefined;
571
561
  web_required_unsatisfied?: boolean | undefined;
572
562
  delegation_belt_unavailable?: boolean | undefined;
573
563
  tool_warnings_count?: number | undefined;
564
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
565
+ work_state?: {
566
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
567
+ source: "absent" | "constrained" | "validated";
568
+ required_inputs?: {
569
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
570
+ locator?: string | null | undefined;
571
+ description: string;
572
+ }[] | undefined;
573
+ } | undefined;
574
574
  }>>;
575
575
  /** Delegation-belt runtime readiness (QA-024); present only when a belt was
576
576
  * injected into this attempt. Absent on non-delegate attempts. */
@@ -581,16 +581,16 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
581
581
  failed: z.ZodDefault<z.ZodBoolean>;
582
582
  tool_evidence: z.ZodDefault<z.ZodBoolean>;
583
583
  }, "strip", z.ZodTypeAny, {
584
- ready: boolean;
585
- failed: boolean;
586
584
  requested: boolean;
587
585
  server_name: string | null;
586
+ ready: boolean;
587
+ failed: boolean;
588
588
  tool_evidence: boolean;
589
589
  }, {
590
- ready?: boolean | undefined;
591
- failed?: boolean | undefined;
592
590
  requested?: boolean | undefined;
593
591
  server_name?: string | null | undefined;
592
+ ready?: boolean | undefined;
593
+ failed?: boolean | undefined;
594
594
  tool_evidence?: boolean | undefined;
595
595
  }>>;
596
596
  /** Browser-MCP runtime evidence (QA-040); present only when the browser was
@@ -603,18 +603,18 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
603
603
  failed: z.ZodDefault<z.ZodBoolean>;
604
604
  unused: z.ZodDefault<z.ZodBoolean>;
605
605
  }, "strip", z.ZodTypeAny, {
606
- failed: boolean;
607
606
  requested: boolean;
607
+ server_name: string | null;
608
608
  attempted: boolean;
609
609
  satisfied: boolean;
610
- server_name: string | null;
610
+ failed: boolean;
611
611
  unused: boolean;
612
612
  }, {
613
- failed?: boolean | undefined;
614
613
  requested?: boolean | undefined;
614
+ server_name?: string | null | undefined;
615
615
  attempted?: boolean | undefined;
616
616
  satisfied?: boolean | undefined;
617
- server_name?: string | null | undefined;
617
+ failed?: boolean | undefined;
618
618
  unused?: boolean | undefined;
619
619
  }>>;
620
620
  /** Token usage summed across this attempt's usage events. */
@@ -632,44 +632,39 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
632
632
  cached_input_tokens?: number | null | undefined;
633
633
  }>>;
634
634
  }, "strip", z.ZodTypeAny, {
635
- profile_id: string | null;
635
+ attempt_id: string;
636
636
  harness_id: string;
637
- web: {
638
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
639
- verification: "none" | "verified" | "dispatched";
640
- target: string | null;
641
- error_summary: string | null;
642
- required: boolean;
643
- tool: string | null;
644
- attempted: boolean;
645
- policy: "off" | "auto" | "cached" | "live";
646
- effective_mode: "off" | "auto" | "cached" | "live";
647
- satisfied: boolean;
648
- };
649
- usage: {
650
- input_tokens: number | null;
651
- output_tokens: number | null;
652
- cached_input_tokens: number | null;
653
- };
654
637
  observed_model: string | null;
655
- attempt_id: string;
638
+ auth_mode: "api_key" | "local_session" | "unknown" | null;
639
+ auth_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
640
+ profile_id: string | null;
656
641
  requested_model: string | null;
657
- auth_mode: "unknown" | "api_key" | "local_session" | null;
658
- auth_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
659
642
  request_requirements: {
643
+ capability: "browser" | "delegation" | "path_deny";
644
+ harness_id: string;
645
+ eligible: boolean;
660
646
  requested: boolean;
661
647
  effective: boolean;
662
- harness_id: string;
663
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
648
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
664
649
  evidence_refs: string[];
665
- eligible: boolean;
666
- capability: "browser" | "path_deny";
667
650
  }[];
651
+ web: {
652
+ required: boolean;
653
+ policy: "auto" | "cached" | "live" | "off";
654
+ effective_mode: "auto" | "cached" | "live" | "off";
655
+ attempted: boolean;
656
+ satisfied: boolean;
657
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
658
+ verification: "dispatched" | "none" | "verified";
659
+ tool: string | null;
660
+ target: string | null;
661
+ error_summary: string | null;
662
+ };
668
663
  tool_errors: {
669
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
664
+ tool: string;
665
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
670
666
  target: string | null;
671
667
  summary: string;
672
- tool: string;
673
668
  recovered: boolean;
674
669
  tool_use_id: string | null;
675
670
  }[];
@@ -678,94 +673,86 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
678
673
  statusless_tool_results: number;
679
674
  dropped_events: number;
680
675
  transient_failures: {
681
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
682
- retry_delay_ms: number | null;
676
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
677
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
683
678
  retryable: boolean;
684
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
679
+ retry_delay_ms: number | null;
685
680
  http_status: number | null;
686
681
  signal: string | null;
687
682
  adapter_code: string | null;
688
683
  }[];
689
684
  outcome: {
690
- status: "failed" | "blocked" | "success" | "success_with_warnings";
691
- gates_passed: boolean | null;
692
685
  deliverable_present: boolean;
686
+ gates_passed: boolean | null;
693
687
  harness_errored: boolean;
694
688
  web_required_unsatisfied: boolean;
695
689
  delegation_belt_unavailable: boolean;
696
690
  tool_warnings_count: number;
691
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
697
692
  work_state?: {
698
- source: "constrained" | "validated" | "absent";
699
- state: "completed" | "needs_input" | "incomplete" | "unverified";
693
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
694
+ source: "absent" | "constrained" | "validated";
700
695
  required_inputs?: {
701
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
702
- description: string;
696
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
703
697
  locator: string | null;
698
+ description: string;
704
699
  }[] | undefined;
705
700
  } | undefined;
706
701
  };
707
- browser?: {
708
- failed: boolean;
702
+ delegation_belt?: {
709
703
  requested: boolean;
710
- attempted: boolean;
711
- satisfied: boolean;
712
704
  server_name: string | null;
713
- unused: boolean;
714
- } | undefined;
715
- delegation_belt?: {
716
705
  ready: boolean;
717
706
  failed: boolean;
707
+ tool_evidence: boolean;
708
+ } | undefined;
709
+ browser?: {
718
710
  requested: boolean;
719
711
  server_name: string | null;
720
- tool_evidence: boolean;
712
+ attempted: boolean;
713
+ satisfied: boolean;
714
+ failed: boolean;
715
+ unused: boolean;
721
716
  } | undefined;
722
- }, {
723
- harness_id: string;
724
- web: {
725
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
726
- verification?: "none" | "verified" | "dispatched" | undefined;
727
- target?: string | null | undefined;
728
- error_summary?: string | null | undefined;
729
- required?: boolean | undefined;
730
- tool?: string | null | undefined;
731
- attempted?: boolean | undefined;
732
- policy?: "off" | "auto" | "cached" | "live" | undefined;
733
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
734
- satisfied?: boolean | undefined;
717
+ usage: {
718
+ input_tokens: number | null;
719
+ output_tokens: number | null;
720
+ cached_input_tokens: number | null;
735
721
  };
722
+ }, {
736
723
  attempt_id: string;
737
- profile_id?: string | null | undefined;
738
- browser?: {
739
- failed?: boolean | undefined;
740
- requested?: boolean | undefined;
741
- attempted?: boolean | undefined;
742
- satisfied?: boolean | undefined;
743
- server_name?: string | null | undefined;
744
- unused?: boolean | undefined;
745
- } | undefined;
746
- usage?: {
747
- input_tokens?: number | null | undefined;
748
- output_tokens?: number | null | undefined;
749
- cached_input_tokens?: number | null | undefined;
750
- } | undefined;
724
+ harness_id: string;
751
725
  observed_model?: string | null | undefined;
726
+ auth_mode?: "api_key" | "local_session" | "unknown" | null | undefined;
727
+ auth_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
728
+ profile_id?: string | null | undefined;
752
729
  requested_model?: string | null | undefined;
753
- auth_mode?: "unknown" | "api_key" | "local_session" | null | undefined;
754
- auth_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
755
730
  request_requirements?: {
756
- requested: boolean;
757
- effective: boolean;
731
+ capability: "browser" | "delegation" | "path_deny";
758
732
  harness_id: string;
759
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
760
733
  eligible: boolean;
761
- capability: "browser" | "path_deny";
734
+ requested: boolean;
735
+ effective: boolean;
736
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
762
737
  evidence_refs?: string[] | undefined;
763
738
  }[] | undefined;
739
+ web: {
740
+ required?: boolean | undefined;
741
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
742
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
743
+ attempted?: boolean | undefined;
744
+ satisfied?: boolean | undefined;
745
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
746
+ verification?: "dispatched" | "none" | "verified" | undefined;
747
+ tool?: string | null | undefined;
748
+ target?: string | null | undefined;
749
+ error_summary?: string | null | undefined;
750
+ };
764
751
  tool_errors?: {
765
- summary: string;
766
752
  tool: string;
767
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
753
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
768
754
  target?: string | null | undefined;
755
+ summary: string;
769
756
  recovered?: boolean | undefined;
770
757
  tool_use_id?: string | null | undefined;
771
758
  }[] | undefined;
@@ -774,40 +761,53 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
774
761
  statusless_tool_results?: number | undefined;
775
762
  dropped_events?: number | undefined;
776
763
  transient_failures?: {
777
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
778
- retry_delay_ms?: number | null | undefined;
764
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
765
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
779
766
  retryable?: boolean | undefined;
780
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
767
+ retry_delay_ms?: number | null | undefined;
781
768
  http_status?: number | null | undefined;
782
769
  signal?: string | null | undefined;
783
770
  adapter_code?: string | null | undefined;
784
771
  }[] | undefined;
785
772
  outcome?: {
786
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
787
- work_state?: {
788
- source: "constrained" | "validated" | "absent";
789
- state: "completed" | "needs_input" | "incomplete" | "unverified";
790
- required_inputs?: {
791
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
792
- description: string;
793
- locator?: string | null | undefined;
794
- }[] | undefined;
795
- } | undefined;
796
- gates_passed?: boolean | null | undefined;
797
773
  deliverable_present?: boolean | undefined;
774
+ gates_passed?: boolean | null | undefined;
798
775
  harness_errored?: boolean | undefined;
799
776
  web_required_unsatisfied?: boolean | undefined;
800
777
  delegation_belt_unavailable?: boolean | undefined;
801
778
  tool_warnings_count?: number | undefined;
779
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
780
+ work_state?: {
781
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
782
+ source: "absent" | "constrained" | "validated";
783
+ required_inputs?: {
784
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
785
+ locator?: string | null | undefined;
786
+ description: string;
787
+ }[] | undefined;
788
+ } | undefined;
802
789
  } | undefined;
803
790
  delegation_belt?: {
804
- ready?: boolean | undefined;
805
- failed?: boolean | undefined;
806
791
  requested?: boolean | undefined;
807
792
  server_name?: string | null | undefined;
793
+ ready?: boolean | undefined;
794
+ failed?: boolean | undefined;
808
795
  tool_evidence?: boolean | undefined;
809
796
  } | undefined;
810
- }>;
797
+ browser?: {
798
+ requested?: boolean | undefined;
799
+ server_name?: string | null | undefined;
800
+ attempted?: boolean | undefined;
801
+ satisfied?: boolean | undefined;
802
+ failed?: boolean | undefined;
803
+ unused?: boolean | undefined;
804
+ } | undefined;
805
+ usage?: {
806
+ input_tokens?: number | null | undefined;
807
+ output_tokens?: number | null | undefined;
808
+ cached_input_tokens?: number | null | undefined;
809
+ } | undefined;
810
+ }>;
811
811
  export type AttemptTelemetryRecord = z.infer<typeof AttemptTelemetryRecord>;
812
812
  export declare const RunTelemetry: z.ZodObject<{
813
813
  schema_version: z.ZodLiteral<2>;
@@ -819,9 +819,7 @@ export declare const RunTelemetry: z.ZodObject<{
819
819
  external_context_policy: z.ZodEnum<["off", "auto", "cached", "live"]>;
820
820
  effective_web_mode: z.ZodEnum<["off", "auto", "cached", "live"]>;
821
821
  web_required: z.ZodDefault<z.ZodBoolean>;
822
- /** Attempt whose output became the final answer/patch; null when no attempt succeeded. */
823
822
  final_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
824
- /** Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence. */
825
823
  web: z.ZodObject<{
826
824
  required: z.ZodDefault<z.ZodBoolean>;
827
825
  /** Requested policy for the run. */
@@ -846,27 +844,27 @@ export declare const RunTelemetry: z.ZodObject<{
846
844
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
847
845
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
848
846
  }, "strip", z.ZodTypeAny, {
849
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
850
- verification: "none" | "verified" | "dispatched";
851
- target: string | null;
852
- error_summary: string | null;
853
847
  required: boolean;
854
- tool: string | null;
848
+ policy: "auto" | "cached" | "live" | "off";
849
+ effective_mode: "auto" | "cached" | "live" | "off";
855
850
  attempted: boolean;
856
- policy: "off" | "auto" | "cached" | "live";
857
- effective_mode: "off" | "auto" | "cached" | "live";
858
851
  satisfied: boolean;
852
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
853
+ verification: "dispatched" | "none" | "verified";
854
+ tool: string | null;
855
+ target: string | null;
856
+ error_summary: string | null;
859
857
  }, {
860
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
861
- verification?: "none" | "verified" | "dispatched" | undefined;
862
- target?: string | null | undefined;
863
- error_summary?: string | null | undefined;
864
858
  required?: boolean | undefined;
865
- tool?: string | null | undefined;
859
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
860
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
866
861
  attempted?: boolean | undefined;
867
- policy?: "off" | "auto" | "cached" | "live" | undefined;
868
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
869
862
  satisfied?: boolean | undefined;
863
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
864
+ verification?: "dispatched" | "none" | "verified" | undefined;
865
+ tool?: string | null | undefined;
866
+ target?: string | null | undefined;
867
+ error_summary?: string | null | undefined;
870
868
  }>;
871
869
  attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
872
870
  attempt_id: z.ZodString;
@@ -898,28 +896,28 @@ export declare const RunTelemetry: z.ZodObject<{
898
896
  * model x route truth; observed_model is the disclosed side). */
899
897
  requested_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
900
898
  request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
901
- capability: z.ZodEnum<["browser", "path_deny"]>;
899
+ capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
902
900
  harness_id: z.ZodString;
903
901
  eligible: z.ZodBoolean;
904
902
  requested: z.ZodBoolean;
905
903
  effective: z.ZodBoolean;
906
- reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
904
+ reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
907
905
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
908
906
  }, "strip", z.ZodTypeAny, {
909
- requested: boolean;
910
- effective: boolean;
907
+ capability: "browser" | "delegation" | "path_deny";
911
908
  harness_id: string;
912
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
913
- evidence_refs: string[];
914
909
  eligible: boolean;
915
- capability: "browser" | "path_deny";
916
- }, {
917
910
  requested: boolean;
918
911
  effective: boolean;
912
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
913
+ evidence_refs: string[];
914
+ }, {
915
+ capability: "browser" | "delegation" | "path_deny";
919
916
  harness_id: string;
920
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
921
917
  eligible: boolean;
922
- capability: "browser" | "path_deny";
918
+ requested: boolean;
919
+ effective: boolean;
920
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
923
921
  evidence_refs?: string[] | undefined;
924
922
  }>, "many">>;
925
923
  web: z.ZodObject<{
@@ -946,27 +944,27 @@ export declare const RunTelemetry: z.ZodObject<{
946
944
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
947
945
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
948
946
  }, "strip", z.ZodTypeAny, {
949
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
950
- verification: "none" | "verified" | "dispatched";
951
- target: string | null;
952
- error_summary: string | null;
953
947
  required: boolean;
954
- tool: string | null;
948
+ policy: "auto" | "cached" | "live" | "off";
949
+ effective_mode: "auto" | "cached" | "live" | "off";
955
950
  attempted: boolean;
956
- policy: "off" | "auto" | "cached" | "live";
957
- effective_mode: "off" | "auto" | "cached" | "live";
958
951
  satisfied: boolean;
952
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
953
+ verification: "dispatched" | "none" | "verified";
954
+ tool: string | null;
955
+ target: string | null;
956
+ error_summary: string | null;
959
957
  }, {
960
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
961
- verification?: "none" | "verified" | "dispatched" | undefined;
962
- target?: string | null | undefined;
963
- error_summary?: string | null | undefined;
964
958
  required?: boolean | undefined;
965
- tool?: string | null | undefined;
959
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
960
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
966
961
  attempted?: boolean | undefined;
967
- policy?: "off" | "auto" | "cached" | "live" | undefined;
968
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
969
962
  satisfied?: boolean | undefined;
963
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
964
+ verification?: "dispatched" | "none" | "verified" | undefined;
965
+ tool?: string | null | undefined;
966
+ target?: string | null | undefined;
967
+ error_summary?: string | null | undefined;
970
968
  }>;
971
969
  /** Bounded by the writer (most recent first when truncated; `tool_errors_total` keeps the true count). */
972
970
  tool_errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -974,21 +972,21 @@ export declare const RunTelemetry: z.ZodObject<{
974
972
  kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
975
973
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
976
974
  summary: z.ZodString;
977
- /** True when a later successful result of the same tool exists in the same attempt. */
975
+ /** True when a later successful result is attributable to this failed invocation. */
978
976
  recovered: z.ZodDefault<z.ZodBoolean>;
979
977
  tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
980
978
  }, "strip", z.ZodTypeAny, {
981
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
979
+ tool: string;
980
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
982
981
  target: string | null;
983
982
  summary: string;
984
- tool: string;
985
983
  recovered: boolean;
986
984
  tool_use_id: string | null;
987
985
  }, {
988
- summary: string;
989
986
  tool: string;
990
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
987
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
991
988
  target?: string | null | undefined;
989
+ summary: string;
992
990
  recovered?: boolean | undefined;
993
991
  tool_use_id?: string | null | undefined;
994
992
  }>, "many">>;
@@ -1014,18 +1012,18 @@ export declare const RunTelemetry: z.ZodObject<{
1014
1012
  /** Vendor/adapter error-category code passed verbatim as evidence, when any. */
1015
1013
  adapter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1016
1014
  }, "strip", z.ZodTypeAny, {
1017
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1018
- retry_delay_ms: number | null;
1015
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
1016
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1019
1017
  retryable: boolean;
1020
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1018
+ retry_delay_ms: number | null;
1021
1019
  http_status: number | null;
1022
1020
  signal: string | null;
1023
1021
  adapter_code: string | null;
1024
1022
  }, {
1025
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1026
- retry_delay_ms?: number | null | undefined;
1023
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
1024
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
1027
1025
  retryable?: boolean | undefined;
1028
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
1026
+ retry_delay_ms?: number | null | undefined;
1029
1027
  http_status?: number | null | undefined;
1030
1028
  signal?: string | null | undefined;
1031
1029
  adapter_code?: string | null | undefined;
@@ -1057,65 +1055,65 @@ export declare const RunTelemetry: z.ZodObject<{
1057
1055
  locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1058
1056
  description: z.ZodString;
1059
1057
  }, "strip", z.ZodTypeAny, {
1060
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1061
- description: string;
1058
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1062
1059
  locator: string | null;
1063
- }, {
1064
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1065
1060
  description: string;
1061
+ }, {
1062
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1066
1063
  locator?: string | null | undefined;
1064
+ description: string;
1067
1065
  }>, "many">>;
1068
1066
  }, "strip", z.ZodTypeAny, {
1069
- source: "constrained" | "validated" | "absent";
1070
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1067
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1068
+ source: "absent" | "constrained" | "validated";
1071
1069
  required_inputs?: {
1072
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1073
- description: string;
1070
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1074
1071
  locator: string | null;
1072
+ description: string;
1075
1073
  }[] | undefined;
1076
1074
  }, {
1077
- source: "constrained" | "validated" | "absent";
1078
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1075
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1076
+ source: "absent" | "constrained" | "validated";
1079
1077
  required_inputs?: {
1080
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1081
- description: string;
1078
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1082
1079
  locator?: string | null | undefined;
1080
+ description: string;
1083
1081
  }[] | undefined;
1084
1082
  }>>;
1085
1083
  }, "strip", z.ZodTypeAny, {
1086
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1087
- gates_passed: boolean | null;
1088
1084
  deliverable_present: boolean;
1085
+ gates_passed: boolean | null;
1089
1086
  harness_errored: boolean;
1090
1087
  web_required_unsatisfied: boolean;
1091
1088
  delegation_belt_unavailable: boolean;
1092
1089
  tool_warnings_count: number;
1090
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1093
1091
  work_state?: {
1094
- source: "constrained" | "validated" | "absent";
1095
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1092
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1093
+ source: "absent" | "constrained" | "validated";
1096
1094
  required_inputs?: {
1097
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1098
- description: string;
1095
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1099
1096
  locator: string | null;
1100
- }[] | undefined;
1101
- } | undefined;
1102
- }, {
1103
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1104
- work_state?: {
1105
- source: "constrained" | "validated" | "absent";
1106
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1107
- required_inputs?: {
1108
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1109
1097
  description: string;
1110
- locator?: string | null | undefined;
1111
1098
  }[] | undefined;
1112
1099
  } | undefined;
1113
- gates_passed?: boolean | null | undefined;
1100
+ }, {
1114
1101
  deliverable_present?: boolean | undefined;
1102
+ gates_passed?: boolean | null | undefined;
1115
1103
  harness_errored?: boolean | undefined;
1116
1104
  web_required_unsatisfied?: boolean | undefined;
1117
1105
  delegation_belt_unavailable?: boolean | undefined;
1118
1106
  tool_warnings_count?: number | undefined;
1107
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
1108
+ work_state?: {
1109
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1110
+ source: "absent" | "constrained" | "validated";
1111
+ required_inputs?: {
1112
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1113
+ locator?: string | null | undefined;
1114
+ description: string;
1115
+ }[] | undefined;
1116
+ } | undefined;
1119
1117
  }>>;
1120
1118
  /** Delegation-belt runtime readiness (QA-024); present only when a belt was
1121
1119
  * injected into this attempt. Absent on non-delegate attempts. */
@@ -1126,16 +1124,16 @@ export declare const RunTelemetry: z.ZodObject<{
1126
1124
  failed: z.ZodDefault<z.ZodBoolean>;
1127
1125
  tool_evidence: z.ZodDefault<z.ZodBoolean>;
1128
1126
  }, "strip", z.ZodTypeAny, {
1129
- ready: boolean;
1130
- failed: boolean;
1131
1127
  requested: boolean;
1132
1128
  server_name: string | null;
1129
+ ready: boolean;
1130
+ failed: boolean;
1133
1131
  tool_evidence: boolean;
1134
1132
  }, {
1135
- ready?: boolean | undefined;
1136
- failed?: boolean | undefined;
1137
1133
  requested?: boolean | undefined;
1138
1134
  server_name?: string | null | undefined;
1135
+ ready?: boolean | undefined;
1136
+ failed?: boolean | undefined;
1139
1137
  tool_evidence?: boolean | undefined;
1140
1138
  }>>;
1141
1139
  /** Browser-MCP runtime evidence (QA-040); present only when the browser was
@@ -1148,18 +1146,18 @@ export declare const RunTelemetry: z.ZodObject<{
1148
1146
  failed: z.ZodDefault<z.ZodBoolean>;
1149
1147
  unused: z.ZodDefault<z.ZodBoolean>;
1150
1148
  }, "strip", z.ZodTypeAny, {
1151
- failed: boolean;
1152
1149
  requested: boolean;
1150
+ server_name: string | null;
1153
1151
  attempted: boolean;
1154
1152
  satisfied: boolean;
1155
- server_name: string | null;
1153
+ failed: boolean;
1156
1154
  unused: boolean;
1157
1155
  }, {
1158
- failed?: boolean | undefined;
1159
1156
  requested?: boolean | undefined;
1157
+ server_name?: string | null | undefined;
1160
1158
  attempted?: boolean | undefined;
1161
1159
  satisfied?: boolean | undefined;
1162
- server_name?: string | null | undefined;
1160
+ failed?: boolean | undefined;
1163
1161
  unused?: boolean | undefined;
1164
1162
  }>>;
1165
1163
  /** Token usage summed across this attempt's usage events. */
@@ -1177,44 +1175,39 @@ export declare const RunTelemetry: z.ZodObject<{
1177
1175
  cached_input_tokens?: number | null | undefined;
1178
1176
  }>>;
1179
1177
  }, "strip", z.ZodTypeAny, {
1180
- profile_id: string | null;
1178
+ attempt_id: string;
1181
1179
  harness_id: string;
1182
- web: {
1183
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1184
- verification: "none" | "verified" | "dispatched";
1185
- target: string | null;
1186
- error_summary: string | null;
1187
- required: boolean;
1188
- tool: string | null;
1189
- attempted: boolean;
1190
- policy: "off" | "auto" | "cached" | "live";
1191
- effective_mode: "off" | "auto" | "cached" | "live";
1192
- satisfied: boolean;
1193
- };
1194
- usage: {
1195
- input_tokens: number | null;
1196
- output_tokens: number | null;
1197
- cached_input_tokens: number | null;
1198
- };
1199
1180
  observed_model: string | null;
1200
- attempt_id: string;
1181
+ auth_mode: "api_key" | "local_session" | "unknown" | null;
1182
+ auth_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1183
+ profile_id: string | null;
1201
1184
  requested_model: string | null;
1202
- auth_mode: "unknown" | "api_key" | "local_session" | null;
1203
- auth_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1204
1185
  request_requirements: {
1186
+ capability: "browser" | "delegation" | "path_deny";
1187
+ harness_id: string;
1188
+ eligible: boolean;
1205
1189
  requested: boolean;
1206
1190
  effective: boolean;
1207
- harness_id: string;
1208
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1191
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1209
1192
  evidence_refs: string[];
1210
- eligible: boolean;
1211
- capability: "browser" | "path_deny";
1212
1193
  }[];
1194
+ web: {
1195
+ required: boolean;
1196
+ policy: "auto" | "cached" | "live" | "off";
1197
+ effective_mode: "auto" | "cached" | "live" | "off";
1198
+ attempted: boolean;
1199
+ satisfied: boolean;
1200
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1201
+ verification: "dispatched" | "none" | "verified";
1202
+ tool: string | null;
1203
+ target: string | null;
1204
+ error_summary: string | null;
1205
+ };
1213
1206
  tool_errors: {
1214
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
1207
+ tool: string;
1208
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
1215
1209
  target: string | null;
1216
1210
  summary: string;
1217
- tool: string;
1218
1211
  recovered: boolean;
1219
1212
  tool_use_id: string | null;
1220
1213
  }[];
@@ -1223,94 +1216,86 @@ export declare const RunTelemetry: z.ZodObject<{
1223
1216
  statusless_tool_results: number;
1224
1217
  dropped_events: number;
1225
1218
  transient_failures: {
1226
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1227
- retry_delay_ms: number | null;
1219
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
1220
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1228
1221
  retryable: boolean;
1229
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1222
+ retry_delay_ms: number | null;
1230
1223
  http_status: number | null;
1231
1224
  signal: string | null;
1232
1225
  adapter_code: string | null;
1233
1226
  }[];
1234
1227
  outcome: {
1235
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1236
- gates_passed: boolean | null;
1237
1228
  deliverable_present: boolean;
1229
+ gates_passed: boolean | null;
1238
1230
  harness_errored: boolean;
1239
1231
  web_required_unsatisfied: boolean;
1240
1232
  delegation_belt_unavailable: boolean;
1241
1233
  tool_warnings_count: number;
1234
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1242
1235
  work_state?: {
1243
- source: "constrained" | "validated" | "absent";
1244
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1236
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1237
+ source: "absent" | "constrained" | "validated";
1245
1238
  required_inputs?: {
1246
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1247
- description: string;
1239
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1248
1240
  locator: string | null;
1241
+ description: string;
1249
1242
  }[] | undefined;
1250
1243
  } | undefined;
1251
1244
  };
1252
- browser?: {
1253
- failed: boolean;
1245
+ delegation_belt?: {
1254
1246
  requested: boolean;
1255
- attempted: boolean;
1256
- satisfied: boolean;
1257
1247
  server_name: string | null;
1258
- unused: boolean;
1259
- } | undefined;
1260
- delegation_belt?: {
1261
1248
  ready: boolean;
1262
1249
  failed: boolean;
1250
+ tool_evidence: boolean;
1251
+ } | undefined;
1252
+ browser?: {
1263
1253
  requested: boolean;
1264
1254
  server_name: string | null;
1265
- tool_evidence: boolean;
1255
+ attempted: boolean;
1256
+ satisfied: boolean;
1257
+ failed: boolean;
1258
+ unused: boolean;
1266
1259
  } | undefined;
1267
- }, {
1268
- harness_id: string;
1269
- web: {
1270
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1271
- verification?: "none" | "verified" | "dispatched" | undefined;
1272
- target?: string | null | undefined;
1273
- error_summary?: string | null | undefined;
1274
- required?: boolean | undefined;
1275
- tool?: string | null | undefined;
1276
- attempted?: boolean | undefined;
1277
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1278
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1279
- satisfied?: boolean | undefined;
1260
+ usage: {
1261
+ input_tokens: number | null;
1262
+ output_tokens: number | null;
1263
+ cached_input_tokens: number | null;
1280
1264
  };
1265
+ }, {
1281
1266
  attempt_id: string;
1282
- profile_id?: string | null | undefined;
1283
- browser?: {
1284
- failed?: boolean | undefined;
1285
- requested?: boolean | undefined;
1286
- attempted?: boolean | undefined;
1287
- satisfied?: boolean | undefined;
1288
- server_name?: string | null | undefined;
1289
- unused?: boolean | undefined;
1290
- } | undefined;
1291
- usage?: {
1292
- input_tokens?: number | null | undefined;
1293
- output_tokens?: number | null | undefined;
1294
- cached_input_tokens?: number | null | undefined;
1295
- } | undefined;
1267
+ harness_id: string;
1296
1268
  observed_model?: string | null | undefined;
1269
+ auth_mode?: "api_key" | "local_session" | "unknown" | null | undefined;
1270
+ auth_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
1271
+ profile_id?: string | null | undefined;
1297
1272
  requested_model?: string | null | undefined;
1298
- auth_mode?: "unknown" | "api_key" | "local_session" | null | undefined;
1299
- auth_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1300
1273
  request_requirements?: {
1301
- requested: boolean;
1302
- effective: boolean;
1274
+ capability: "browser" | "delegation" | "path_deny";
1303
1275
  harness_id: string;
1304
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1305
1276
  eligible: boolean;
1306
- capability: "browser" | "path_deny";
1277
+ requested: boolean;
1278
+ effective: boolean;
1279
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1307
1280
  evidence_refs?: string[] | undefined;
1308
1281
  }[] | undefined;
1282
+ web: {
1283
+ required?: boolean | undefined;
1284
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
1285
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
1286
+ attempted?: boolean | undefined;
1287
+ satisfied?: boolean | undefined;
1288
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
1289
+ verification?: "dispatched" | "none" | "verified" | undefined;
1290
+ tool?: string | null | undefined;
1291
+ target?: string | null | undefined;
1292
+ error_summary?: string | null | undefined;
1293
+ };
1309
1294
  tool_errors?: {
1310
- summary: string;
1311
1295
  tool: string;
1312
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
1296
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
1313
1297
  target?: string | null | undefined;
1298
+ summary: string;
1314
1299
  recovered?: boolean | undefined;
1315
1300
  tool_use_id?: string | null | undefined;
1316
1301
  }[] | undefined;
@@ -1319,70 +1304,110 @@ export declare const RunTelemetry: z.ZodObject<{
1319
1304
  statusless_tool_results?: number | undefined;
1320
1305
  dropped_events?: number | undefined;
1321
1306
  transient_failures?: {
1322
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1323
- retry_delay_ms?: number | null | undefined;
1307
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
1308
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
1324
1309
  retryable?: boolean | undefined;
1325
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
1310
+ retry_delay_ms?: number | null | undefined;
1326
1311
  http_status?: number | null | undefined;
1327
1312
  signal?: string | null | undefined;
1328
1313
  adapter_code?: string | null | undefined;
1329
1314
  }[] | undefined;
1330
1315
  outcome?: {
1331
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1332
- work_state?: {
1333
- source: "constrained" | "validated" | "absent";
1334
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1335
- required_inputs?: {
1336
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1337
- description: string;
1338
- locator?: string | null | undefined;
1339
- }[] | undefined;
1340
- } | undefined;
1341
- gates_passed?: boolean | null | undefined;
1342
1316
  deliverable_present?: boolean | undefined;
1317
+ gates_passed?: boolean | null | undefined;
1343
1318
  harness_errored?: boolean | undefined;
1344
1319
  web_required_unsatisfied?: boolean | undefined;
1345
1320
  delegation_belt_unavailable?: boolean | undefined;
1346
1321
  tool_warnings_count?: number | undefined;
1322
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
1323
+ work_state?: {
1324
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1325
+ source: "absent" | "constrained" | "validated";
1326
+ required_inputs?: {
1327
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1328
+ locator?: string | null | undefined;
1329
+ description: string;
1330
+ }[] | undefined;
1331
+ } | undefined;
1347
1332
  } | undefined;
1348
1333
  delegation_belt?: {
1334
+ requested?: boolean | undefined;
1335
+ server_name?: string | null | undefined;
1349
1336
  ready?: boolean | undefined;
1350
1337
  failed?: boolean | undefined;
1338
+ tool_evidence?: boolean | undefined;
1339
+ } | undefined;
1340
+ browser?: {
1351
1341
  requested?: boolean | undefined;
1352
1342
  server_name?: string | null | undefined;
1353
- tool_evidence?: boolean | undefined;
1343
+ attempted?: boolean | undefined;
1344
+ satisfied?: boolean | undefined;
1345
+ failed?: boolean | undefined;
1346
+ unused?: boolean | undefined;
1347
+ } | undefined;
1348
+ usage?: {
1349
+ input_tokens?: number | null | undefined;
1350
+ output_tokens?: number | null | undefined;
1351
+ cached_input_tokens?: number | null | undefined;
1354
1352
  } | undefined;
1355
1353
  }>, "many">>;
1356
1354
  request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
1357
- capability: z.ZodEnum<["browser", "path_deny"]>;
1355
+ capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
1358
1356
  harness_id: z.ZodString;
1359
1357
  eligible: z.ZodBoolean;
1360
1358
  requested: z.ZodBoolean;
1361
1359
  effective: z.ZodBoolean;
1362
- reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
1360
+ reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
1363
1361
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1364
1362
  }, "strip", z.ZodTypeAny, {
1365
- requested: boolean;
1366
- effective: boolean;
1363
+ capability: "browser" | "delegation" | "path_deny";
1367
1364
  harness_id: string;
1368
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1369
- evidence_refs: string[];
1370
1365
  eligible: boolean;
1371
- capability: "browser" | "path_deny";
1372
- }, {
1373
1366
  requested: boolean;
1374
1367
  effective: boolean;
1368
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1369
+ evidence_refs: string[];
1370
+ }, {
1371
+ capability: "browser" | "delegation" | "path_deny";
1375
1372
  harness_id: string;
1376
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1377
1373
  eligible: boolean;
1378
- capability: "browser" | "path_deny";
1374
+ requested: boolean;
1375
+ effective: boolean;
1376
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1379
1377
  evidence_refs?: string[] | undefined;
1380
1378
  }>, "many">>;
1381
- /** Sum of attempt outcome warnings; surfaces render this separately from terminal state. */
1379
+ delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
1380
+ requested: z.ZodDefault<z.ZodBoolean>;
1381
+ effective: z.ZodDefault<z.ZodBoolean>;
1382
+ used: z.ZodDefault<z.ZodBoolean>;
1383
+ reason: z.ZodDefault<z.ZodEnum<["pending", "not_requested", "injected_unused", "used", "runtime_unavailable", "manifest_unsupported", "access_profile_incompatible", "partially_degraded", "startup_failed"]>>;
1384
+ remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1385
+ }, "strict", z.ZodTypeAny, {
1386
+ requested: boolean;
1387
+ effective: boolean;
1388
+ used: boolean;
1389
+ reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
1390
+ remediation: string | null;
1391
+ }, {
1392
+ requested?: boolean | undefined;
1393
+ effective?: boolean | undefined;
1394
+ used?: boolean | undefined;
1395
+ reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1396
+ remediation?: string | null | undefined;
1397
+ }>, {
1398
+ requested: boolean;
1399
+ effective: boolean;
1400
+ used: boolean;
1401
+ reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
1402
+ remediation: string | null;
1403
+ }, {
1404
+ requested?: boolean | undefined;
1405
+ effective?: boolean | undefined;
1406
+ used?: boolean | undefined;
1407
+ reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1408
+ remediation?: string | null | undefined;
1409
+ }>>>;
1382
1410
  tool_warnings_total: z.ZodDefault<z.ZodNumber>;
1383
- /** Token usage summed across every attempt (candidates + synthesis), the
1384
- * same accounting scope as spendUsd. Each field null until some attempt
1385
- * reports it. Not a grand total (see TokenUsage). */
1386
1411
  usage_totals: z.ZodDefault<z.ZodObject<{
1387
1412
  input_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1388
1413
  output_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
@@ -1425,25 +1450,25 @@ export declare const RunTelemetry: z.ZodObject<{
1425
1450
  observed: string;
1426
1451
  }>>>;
1427
1452
  }, "strip", z.ZodTypeAny, {
1428
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1429
- requested: "auto" | "subscription" | "api_key";
1430
- effective: "unknown" | "api_key" | "local_session" | null;
1431
- profile_id: string | null;
1432
- harness_id: string | null;
1453
+ requested: "api_key" | "auto" | "subscription";
1454
+ effective: "api_key" | "local_session" | "unknown" | null;
1455
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1433
1456
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1457
+ harness_id: string | null;
1434
1458
  attempt_id: string | null;
1459
+ profile_id: string | null;
1435
1460
  model_mismatch: {
1436
1461
  requested: string;
1437
1462
  observed: string;
1438
1463
  } | null;
1439
1464
  }, {
1440
- requested: "auto" | "subscription" | "api_key";
1465
+ requested: "api_key" | "auto" | "subscription";
1466
+ effective?: "api_key" | "local_session" | "unknown" | null | undefined;
1467
+ source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
1441
1468
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1442
- source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1443
- effective?: "unknown" | "api_key" | "local_session" | null | undefined;
1444
- profile_id?: string | null | undefined;
1445
1469
  harness_id?: string | null | undefined;
1446
1470
  attempt_id?: string | null | undefined;
1471
+ profile_id?: string | null | undefined;
1447
1472
  model_mismatch?: {
1448
1473
  requested: string;
1449
1474
  observed: string;
@@ -1458,7 +1483,7 @@ export declare const RunTelemetry: z.ZodObject<{
1458
1483
  paid_fallback: z.ZodEnum<["never", "when_unavailable", "allowed_within_cap"]>;
1459
1484
  order: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1460
1485
  dropped: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1461
- reason: z.ZodEnum<["subscription_entitlement_first", "lowest_incremental_cash", "quality_tier", "expiring_quota_slack", "all_incremental_cash_unknown", "declared_order"]>;
1486
+ reason: z.ZodEnum<["subscription_entitlement_first", "lowest_incremental_cash", "quality_tier", "expiring_quota_slack", "all_incremental_cash_unknown", "delegate_effective_first", "explicit_primary", "declared_order"]>;
1462
1487
  entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1463
1488
  harness_id: z.ZodString;
1464
1489
  billing_knowledge: z.ZodEnum<["proven_zero", "subscription_entitlement", "metered", "unknown"]>;
@@ -1466,113 +1491,491 @@ export declare const RunTelemetry: z.ZodObject<{
1466
1491
  eligible: z.ZodBoolean;
1467
1492
  }, "strip", z.ZodTypeAny, {
1468
1493
  harness_id: string;
1469
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1494
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1470
1495
  incremental_cost_usd: number | null;
1471
1496
  eligible: boolean;
1472
1497
  }, {
1473
1498
  harness_id: string;
1474
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1475
- eligible: boolean;
1499
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1476
1500
  incremental_cost_usd?: number | null | undefined;
1501
+ eligible: boolean;
1477
1502
  }>, "many">>;
1478
1503
  }, "strip", z.ZodTypeAny, {
1504
+ goal: "auto" | "economy" | "quality";
1505
+ paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
1506
+ order: string[];
1507
+ dropped: string[];
1508
+ reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
1479
1509
  entries: {
1480
1510
  harness_id: string;
1481
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1511
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1482
1512
  incremental_cost_usd: number | null;
1483
1513
  eligible: boolean;
1484
1514
  }[];
1485
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
1486
- goal: "auto" | "quality" | "economy";
1487
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
1488
- order: string[];
1489
- dropped: string[];
1490
1515
  }, {
1491
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
1492
- goal: "auto" | "quality" | "economy";
1493
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
1516
+ goal: "auto" | "economy" | "quality";
1517
+ paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
1518
+ order?: string[] | undefined;
1519
+ dropped?: string[] | undefined;
1520
+ reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
1494
1521
  entries?: {
1495
1522
  harness_id: string;
1496
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1497
- eligible: boolean;
1523
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1498
1524
  incremental_cost_usd?: number | null | undefined;
1525
+ eligible: boolean;
1499
1526
  }[] | undefined;
1500
- order?: string[] | undefined;
1501
- dropped?: string[] | undefined;
1502
1527
  }>>>;
1503
- /** Deep-scan reducer outcome (#27 / D-6); null on non-deep-scan/legacy runs. */
1504
1528
  deep_scan_synthesis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1505
1529
  status: z.ZodEnum<["succeeded", "failed", "skipped"]>;
1506
1530
  reducer_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1507
1531
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1508
1532
  }, "strip", z.ZodTypeAny, {
1509
- status: "failed" | "succeeded" | "skipped";
1510
- reason: string | null;
1533
+ status: "failed" | "skipped" | "succeeded";
1511
1534
  reducer_attempt_id: string | null;
1535
+ reason: string | null;
1512
1536
  }, {
1513
- status: "failed" | "succeeded" | "skipped";
1514
- reason?: string | null | undefined;
1537
+ status: "failed" | "skipped" | "succeeded";
1515
1538
  reducer_attempt_id?: string | null | undefined;
1539
+ reason?: string | null | undefined;
1540
+ }>>>;
1541
+ run_facts: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1542
+ schema_version: z.ZodLiteral<2>;
1543
+ run_id: z.ZodString;
1544
+ task_id: z.ZodString;
1545
+ mode: z.ZodEnum<["ask", "plan", "agent"]>;
1546
+ outcome: z.ZodObject<{
1547
+ lifecycle: z.ZodEnum<["succeeded", "failed", "cancelled", "interrupted"]>;
1548
+ noChanges: z.ZodDefault<z.ZodBoolean>;
1549
+ checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
1550
+ review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
1551
+ 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", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
1552
+ work_state: z.ZodOptional<z.ZodObject<{
1553
+ state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
1554
+ source: z.ZodEnum<["constrained", "validated", "absent"]>;
1555
+ required_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1556
+ kind: z.ZodEnum<["file", "context", "credential", "permission", "decision", "external_dependency"]>;
1557
+ locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1558
+ description: z.ZodString;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1561
+ locator: string | null;
1562
+ description: string;
1563
+ }, {
1564
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1565
+ locator?: string | null | undefined;
1566
+ description: string;
1567
+ }>, "many">>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1570
+ source: "absent" | "constrained" | "validated";
1571
+ required_inputs?: {
1572
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1573
+ locator: string | null;
1574
+ description: string;
1575
+ }[] | undefined;
1576
+ }, {
1577
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1578
+ source: "absent" | "constrained" | "validated";
1579
+ required_inputs?: {
1580
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1581
+ locator?: string | null | undefined;
1582
+ description: string;
1583
+ }[] | undefined;
1584
+ }>>;
1585
+ }, "strict", z.ZodTypeAny, {
1586
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
1587
+ noChanges: boolean;
1588
+ checks: "failed" | "not_configured" | "passed";
1589
+ review: "approved" | "blocked" | "not_run";
1590
+ reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1591
+ work_state?: {
1592
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1593
+ source: "absent" | "constrained" | "validated";
1594
+ required_inputs?: {
1595
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1596
+ locator: string | null;
1597
+ description: string;
1598
+ }[] | undefined;
1599
+ } | undefined;
1600
+ }, {
1601
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
1602
+ noChanges?: boolean | undefined;
1603
+ checks?: "failed" | "not_configured" | "passed" | undefined;
1604
+ review?: "approved" | "blocked" | "not_run" | undefined;
1605
+ reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
1606
+ work_state?: {
1607
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1608
+ source: "absent" | "constrained" | "validated";
1609
+ required_inputs?: {
1610
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1611
+ locator?: string | null | undefined;
1612
+ description: string;
1613
+ }[] | undefined;
1614
+ } | undefined;
1615
+ }>;
1616
+ deliverable: z.ZodObject<{
1617
+ present: z.ZodBoolean;
1618
+ kind: z.ZodNullable<z.ZodEnum<["answer", "report", "plan", "patch", "structured_output"]>>;
1619
+ path: z.ZodNullable<z.ZodString>;
1620
+ producer_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1621
+ }, "strict", z.ZodTypeAny, {
1622
+ present: boolean;
1623
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
1624
+ path: string | null;
1625
+ producer_attempt_id: string | null;
1626
+ }, {
1627
+ present: boolean;
1628
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
1629
+ path: string | null;
1630
+ producer_attempt_id?: string | null | undefined;
1631
+ }>;
1632
+ presentation: z.ZodOptional<z.ZodObject<{
1633
+ state: z.ZodEnum<["ready", "diagnostic"]>;
1634
+ primary: z.ZodNullable<z.ZodObject<{
1635
+ kind: z.ZodEnum<["answer", "report", "plan", "patch", "structured_output", "diagnostic"]>;
1636
+ path: z.ZodEffects<z.ZodString, string, string>;
1637
+ }, "strict", z.ZodTypeAny, {
1638
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1639
+ path: string;
1640
+ }, {
1641
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1642
+ path: string;
1643
+ }>>;
1644
+ }, "strict", z.ZodTypeAny, {
1645
+ state: "diagnostic" | "ready";
1646
+ primary: {
1647
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1648
+ path: string;
1649
+ } | null;
1650
+ }, {
1651
+ state: "diagnostic" | "ready";
1652
+ primary: {
1653
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1654
+ path: string;
1655
+ } | null;
1656
+ }>>;
1657
+ participants: z.ZodObject<{
1658
+ planners: z.ZodNumber;
1659
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1660
+ attempt_id: z.ZodNullable<z.ZodString>;
1661
+ harness_id: z.ZodString;
1662
+ role: z.ZodEnum<["planner", "merge", "candidate", "scout", "reducer", "reviewer"]>;
1663
+ deliverable_present: z.ZodDefault<z.ZodBoolean>;
1664
+ status: z.ZodDefault<z.ZodNullable<z.ZodEnum<["success", "success_with_warnings", "blocked", "failed"]>>>;
1665
+ }, "strict", z.ZodTypeAny, {
1666
+ attempt_id: string | null;
1667
+ harness_id: string;
1668
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1669
+ deliverable_present: boolean;
1670
+ status: "blocked" | "failed" | "success" | "success_with_warnings" | null;
1671
+ }, {
1672
+ attempt_id: string | null;
1673
+ harness_id: string;
1674
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1675
+ deliverable_present?: boolean | undefined;
1676
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | null | undefined;
1677
+ }>, "many">>;
1678
+ }, "strict", z.ZodTypeAny, {
1679
+ planners: number;
1680
+ attempts: {
1681
+ attempt_id: string | null;
1682
+ harness_id: string;
1683
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1684
+ deliverable_present: boolean;
1685
+ status: "blocked" | "failed" | "success" | "success_with_warnings" | null;
1686
+ }[];
1687
+ }, {
1688
+ planners: number;
1689
+ attempts?: {
1690
+ attempt_id: string | null;
1691
+ harness_id: string;
1692
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1693
+ deliverable_present?: boolean | undefined;
1694
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | null | undefined;
1695
+ }[] | undefined;
1696
+ }>;
1697
+ gates: z.ZodObject<{
1698
+ configured: z.ZodBoolean;
1699
+ required: z.ZodNumber;
1700
+ total: z.ZodNumber;
1701
+ executed: z.ZodBoolean;
1702
+ state: z.ZodEnum<["not_configured", "passed", "failed", "skipped"]>;
1703
+ receipt_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1704
+ }, "strict", z.ZodTypeAny, {
1705
+ configured: boolean;
1706
+ required: number;
1707
+ total: number;
1708
+ executed: boolean;
1709
+ state: "failed" | "not_configured" | "passed" | "skipped";
1710
+ receipt_attempt_id: string | null;
1711
+ }, {
1712
+ configured: boolean;
1713
+ required: number;
1714
+ total: number;
1715
+ executed: boolean;
1716
+ state: "failed" | "not_configured" | "passed" | "skipped";
1717
+ receipt_attempt_id?: string | null | undefined;
1718
+ }>;
1719
+ review: z.ZodObject<{
1720
+ state: z.ZodEnum<["approved", "blocked", "not_run"]>;
1721
+ blocker_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1722
+ blockers: z.ZodNumber;
1723
+ }, "strict", z.ZodTypeAny, {
1724
+ state: "approved" | "blocked" | "not_run";
1725
+ blocker_ids: string[];
1726
+ blockers: number;
1727
+ }, {
1728
+ state: "approved" | "blocked" | "not_run";
1729
+ blocker_ids?: string[] | undefined;
1730
+ blockers: number;
1731
+ }>;
1732
+ apply: z.ZodObject<{
1733
+ eligibility: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1734
+ eligible: z.ZodBoolean;
1735
+ state: z.ZodNullable<z.ZodString>;
1736
+ reason: z.ZodNullable<z.ZodString>;
1737
+ requiredAction: z.ZodNullable<z.ZodString>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ eligible: boolean;
1740
+ state: string | null;
1741
+ reason: string | null;
1742
+ requiredAction: string | null;
1743
+ }, {
1744
+ eligible: boolean;
1745
+ state: string | null;
1746
+ reason: string | null;
1747
+ requiredAction: string | null;
1748
+ }>>>;
1749
+ operator_decision_present: z.ZodDefault<z.ZodBoolean>;
1750
+ }, "strict", z.ZodTypeAny, {
1751
+ eligibility: {
1752
+ eligible: boolean;
1753
+ state: string | null;
1754
+ reason: string | null;
1755
+ requiredAction: string | null;
1756
+ } | null;
1757
+ operator_decision_present: boolean;
1758
+ }, {
1759
+ eligibility?: {
1760
+ eligible: boolean;
1761
+ state: string | null;
1762
+ reason: string | null;
1763
+ requiredAction: string | null;
1764
+ } | null | undefined;
1765
+ operator_decision_present?: boolean | undefined;
1766
+ }>;
1767
+ required_actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1768
+ id: z.ZodEnum<["provide_required_input", "complete_incomplete_work", "resolve_review_block", "fix_failed_checks", "record_operator_decision"]>;
1769
+ detail: z.ZodString;
1770
+ }, "strict", z.ZodTypeAny, {
1771
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
1772
+ detail: string;
1773
+ }, {
1774
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
1775
+ detail: string;
1776
+ }>, "many">>;
1777
+ generated_at: z.ZodString;
1778
+ }, "strict", z.ZodTypeAny, {
1779
+ schema_version: 2;
1780
+ run_id: string;
1781
+ task_id: string;
1782
+ mode: "agent" | "ask" | "plan";
1783
+ outcome: {
1784
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
1785
+ noChanges: boolean;
1786
+ checks: "failed" | "not_configured" | "passed";
1787
+ review: "approved" | "blocked" | "not_run";
1788
+ reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
1789
+ work_state?: {
1790
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1791
+ source: "absent" | "constrained" | "validated";
1792
+ required_inputs?: {
1793
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1794
+ locator: string | null;
1795
+ description: string;
1796
+ }[] | undefined;
1797
+ } | undefined;
1798
+ };
1799
+ deliverable: {
1800
+ present: boolean;
1801
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
1802
+ path: string | null;
1803
+ producer_attempt_id: string | null;
1804
+ };
1805
+ presentation?: {
1806
+ state: "diagnostic" | "ready";
1807
+ primary: {
1808
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1809
+ path: string;
1810
+ } | null;
1811
+ } | undefined;
1812
+ participants: {
1813
+ planners: number;
1814
+ attempts: {
1815
+ attempt_id: string | null;
1816
+ harness_id: string;
1817
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1818
+ deliverable_present: boolean;
1819
+ status: "blocked" | "failed" | "success" | "success_with_warnings" | null;
1820
+ }[];
1821
+ };
1822
+ gates: {
1823
+ configured: boolean;
1824
+ required: number;
1825
+ total: number;
1826
+ executed: boolean;
1827
+ state: "failed" | "not_configured" | "passed" | "skipped";
1828
+ receipt_attempt_id: string | null;
1829
+ };
1830
+ review: {
1831
+ state: "approved" | "blocked" | "not_run";
1832
+ blocker_ids: string[];
1833
+ blockers: number;
1834
+ };
1835
+ apply: {
1836
+ eligibility: {
1837
+ eligible: boolean;
1838
+ state: string | null;
1839
+ reason: string | null;
1840
+ requiredAction: string | null;
1841
+ } | null;
1842
+ operator_decision_present: boolean;
1843
+ };
1844
+ required_actions: {
1845
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
1846
+ detail: string;
1847
+ }[];
1848
+ generated_at: string;
1849
+ }, {
1850
+ schema_version: 2;
1851
+ run_id: string;
1852
+ task_id: string;
1853
+ mode: "agent" | "ask" | "plan";
1854
+ outcome: {
1855
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
1856
+ noChanges?: boolean | undefined;
1857
+ checks?: "failed" | "not_configured" | "passed" | undefined;
1858
+ review?: "approved" | "blocked" | "not_run" | undefined;
1859
+ reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
1860
+ work_state?: {
1861
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1862
+ source: "absent" | "constrained" | "validated";
1863
+ required_inputs?: {
1864
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1865
+ locator?: string | null | undefined;
1866
+ description: string;
1867
+ }[] | undefined;
1868
+ } | undefined;
1869
+ };
1870
+ deliverable: {
1871
+ present: boolean;
1872
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
1873
+ path: string | null;
1874
+ producer_attempt_id?: string | null | undefined;
1875
+ };
1876
+ presentation?: {
1877
+ state: "diagnostic" | "ready";
1878
+ primary: {
1879
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
1880
+ path: string;
1881
+ } | null;
1882
+ } | undefined;
1883
+ participants: {
1884
+ planners: number;
1885
+ attempts?: {
1886
+ attempt_id: string | null;
1887
+ harness_id: string;
1888
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
1889
+ deliverable_present?: boolean | undefined;
1890
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | null | undefined;
1891
+ }[] | undefined;
1892
+ };
1893
+ gates: {
1894
+ configured: boolean;
1895
+ required: number;
1896
+ total: number;
1897
+ executed: boolean;
1898
+ state: "failed" | "not_configured" | "passed" | "skipped";
1899
+ receipt_attempt_id?: string | null | undefined;
1900
+ };
1901
+ review: {
1902
+ state: "approved" | "blocked" | "not_run";
1903
+ blocker_ids?: string[] | undefined;
1904
+ blockers: number;
1905
+ };
1906
+ apply: {
1907
+ eligibility?: {
1908
+ eligible: boolean;
1909
+ state: string | null;
1910
+ reason: string | null;
1911
+ requiredAction: string | null;
1912
+ } | null | undefined;
1913
+ operator_decision_present?: boolean | undefined;
1914
+ };
1915
+ required_actions?: {
1916
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
1917
+ detail: string;
1918
+ }[] | undefined;
1919
+ generated_at: string;
1516
1920
  }>>>;
1517
1921
  generated_at: z.ZodString;
1518
1922
  }, "strip", z.ZodTypeAny, {
1923
+ schema_version: 2;
1924
+ run_id: string;
1925
+ task_id: string;
1926
+ mode: "agent" | "ask" | "plan";
1927
+ requested_access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
1928
+ effective_access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
1929
+ external_context_policy: "auto" | "cached" | "live" | "off";
1930
+ effective_web_mode: "auto" | "cached" | "live" | "off";
1931
+ web_required: boolean;
1932
+ final_attempt_id: string | null;
1519
1933
  web: {
1520
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1521
- verification: "none" | "verified" | "dispatched";
1522
- target: string | null;
1523
- error_summary: string | null;
1524
1934
  required: boolean;
1525
- tool: string | null;
1935
+ policy: "auto" | "cached" | "live" | "off";
1936
+ effective_mode: "auto" | "cached" | "live" | "off";
1526
1937
  attempted: boolean;
1527
- policy: "off" | "auto" | "cached" | "live";
1528
- effective_mode: "off" | "auto" | "cached" | "live";
1529
1938
  satisfied: boolean;
1939
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1940
+ verification: "dispatched" | "none" | "verified";
1941
+ tool: string | null;
1942
+ target: string | null;
1943
+ error_summary: string | null;
1530
1944
  };
1531
- mode: "ask" | "plan" | "agent";
1532
- schema_version: 2;
1533
- external_context_policy: "off" | "auto" | "cached" | "live";
1534
- run_id: string;
1535
- task_id: string;
1536
- web_required: boolean;
1537
1945
  attempts: {
1538
- profile_id: string | null;
1946
+ attempt_id: string;
1539
1947
  harness_id: string;
1540
- web: {
1541
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1542
- verification: "none" | "verified" | "dispatched";
1543
- target: string | null;
1544
- error_summary: string | null;
1545
- required: boolean;
1546
- tool: string | null;
1547
- attempted: boolean;
1548
- policy: "off" | "auto" | "cached" | "live";
1549
- effective_mode: "off" | "auto" | "cached" | "live";
1550
- satisfied: boolean;
1551
- };
1552
- usage: {
1553
- input_tokens: number | null;
1554
- output_tokens: number | null;
1555
- cached_input_tokens: number | null;
1556
- };
1557
1948
  observed_model: string | null;
1558
- attempt_id: string;
1949
+ auth_mode: "api_key" | "local_session" | "unknown" | null;
1950
+ auth_source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1951
+ profile_id: string | null;
1559
1952
  requested_model: string | null;
1560
- auth_mode: "unknown" | "api_key" | "local_session" | null;
1561
- auth_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1562
1953
  request_requirements: {
1954
+ capability: "browser" | "delegation" | "path_deny";
1955
+ harness_id: string;
1956
+ eligible: boolean;
1563
1957
  requested: boolean;
1564
1958
  effective: boolean;
1565
- harness_id: string;
1566
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1959
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1567
1960
  evidence_refs: string[];
1568
- eligible: boolean;
1569
- capability: "browser" | "path_deny";
1570
1961
  }[];
1962
+ web: {
1963
+ required: boolean;
1964
+ policy: "auto" | "cached" | "live" | "off";
1965
+ effective_mode: "auto" | "cached" | "live" | "off";
1966
+ attempted: boolean;
1967
+ satisfied: boolean;
1968
+ status: "attempted" | "failed" | "none" | "satisfied" | "unverified";
1969
+ verification: "dispatched" | "none" | "verified";
1970
+ tool: string | null;
1971
+ target: string | null;
1972
+ error_summary: string | null;
1973
+ };
1571
1974
  tool_errors: {
1572
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
1975
+ tool: string;
1976
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
1573
1977
  target: string | null;
1574
1978
  summary: string;
1575
- tool: string;
1576
1979
  recovered: boolean;
1577
1980
  tool_use_id: string | null;
1578
1981
  }[];
@@ -1581,62 +1984,69 @@ export declare const RunTelemetry: z.ZodObject<{
1581
1984
  statusless_tool_results: number;
1582
1985
  dropped_events: number;
1583
1986
  transient_failures: {
1584
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1585
- retry_delay_ms: number | null;
1987
+ kind: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown";
1988
+ category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
1586
1989
  retryable: boolean;
1587
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1990
+ retry_delay_ms: number | null;
1588
1991
  http_status: number | null;
1589
1992
  signal: string | null;
1590
1993
  adapter_code: string | null;
1591
1994
  }[];
1592
1995
  outcome: {
1593
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1594
- gates_passed: boolean | null;
1595
1996
  deliverable_present: boolean;
1997
+ gates_passed: boolean | null;
1596
1998
  harness_errored: boolean;
1597
1999
  web_required_unsatisfied: boolean;
1598
2000
  delegation_belt_unavailable: boolean;
1599
2001
  tool_warnings_count: number;
2002
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1600
2003
  work_state?: {
1601
- source: "constrained" | "validated" | "absent";
1602
- state: "completed" | "needs_input" | "incomplete" | "unverified";
2004
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
2005
+ source: "absent" | "constrained" | "validated";
1603
2006
  required_inputs?: {
1604
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1605
- description: string;
2007
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1606
2008
  locator: string | null;
2009
+ description: string;
1607
2010
  }[] | undefined;
1608
2011
  } | undefined;
1609
2012
  };
1610
- browser?: {
1611
- failed: boolean;
2013
+ delegation_belt?: {
1612
2014
  requested: boolean;
1613
- attempted: boolean;
1614
- satisfied: boolean;
1615
2015
  server_name: string | null;
1616
- unused: boolean;
1617
- } | undefined;
1618
- delegation_belt?: {
1619
2016
  ready: boolean;
1620
2017
  failed: boolean;
2018
+ tool_evidence: boolean;
2019
+ } | undefined;
2020
+ browser?: {
1621
2021
  requested: boolean;
1622
2022
  server_name: string | null;
1623
- tool_evidence: boolean;
2023
+ attempted: boolean;
2024
+ satisfied: boolean;
2025
+ failed: boolean;
2026
+ unused: boolean;
1624
2027
  } | undefined;
2028
+ usage: {
2029
+ input_tokens: number | null;
2030
+ output_tokens: number | null;
2031
+ cached_input_tokens: number | null;
2032
+ };
1625
2033
  }[];
1626
- generated_at: string;
1627
2034
  request_requirements: {
2035
+ capability: "browser" | "delegation" | "path_deny";
2036
+ harness_id: string;
2037
+ eligible: boolean;
1628
2038
  requested: boolean;
1629
2039
  effective: boolean;
1630
- harness_id: string;
1631
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
2040
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1632
2041
  evidence_refs: string[];
1633
- eligible: boolean;
1634
- capability: "browser" | "path_deny";
1635
2042
  }[];
1636
- requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1637
- effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1638
- effective_web_mode: "off" | "auto" | "cached" | "live";
1639
- final_attempt_id: string | null;
2043
+ delegation: {
2044
+ requested: boolean;
2045
+ effective: boolean;
2046
+ used: boolean;
2047
+ reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
2048
+ remediation: string | null;
2049
+ } | null;
1640
2050
  tool_warnings_total: number;
1641
2051
  usage_totals: {
1642
2052
  input_tokens: number | null;
@@ -1644,106 +2054,166 @@ export declare const RunTelemetry: z.ZodObject<{
1644
2054
  cached_input_tokens: number | null;
1645
2055
  };
1646
2056
  auth_route: {
1647
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1648
- requested: "auto" | "subscription" | "api_key";
1649
- effective: "unknown" | "api_key" | "local_session" | null;
1650
- profile_id: string | null;
1651
- harness_id: string | null;
2057
+ requested: "api_key" | "auto" | "subscription";
2058
+ effective: "api_key" | "local_session" | "unknown" | null;
2059
+ source: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null;
1652
2060
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
2061
+ harness_id: string | null;
1653
2062
  attempt_id: string | null;
2063
+ profile_id: string | null;
1654
2064
  model_mismatch: {
1655
2065
  requested: string;
1656
2066
  observed: string;
1657
2067
  } | null;
1658
2068
  } | null;
1659
2069
  routing_rationale: {
2070
+ goal: "auto" | "economy" | "quality";
2071
+ paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
2072
+ order: string[];
2073
+ dropped: string[];
2074
+ reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
1660
2075
  entries: {
1661
2076
  harness_id: string;
1662
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
2077
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1663
2078
  incremental_cost_usd: number | null;
1664
2079
  eligible: boolean;
1665
2080
  }[];
1666
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
1667
- goal: "auto" | "quality" | "economy";
1668
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
1669
- order: string[];
1670
- dropped: string[];
1671
2081
  } | null;
1672
2082
  deep_scan_synthesis: {
1673
- status: "failed" | "succeeded" | "skipped";
1674
- reason: string | null;
2083
+ status: "failed" | "skipped" | "succeeded";
1675
2084
  reducer_attempt_id: string | null;
2085
+ reason: string | null;
1676
2086
  } | null;
2087
+ run_facts: {
2088
+ schema_version: 2;
2089
+ run_id: string;
2090
+ task_id: string;
2091
+ mode: "agent" | "ask" | "plan";
2092
+ outcome: {
2093
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
2094
+ noChanges: boolean;
2095
+ checks: "failed" | "not_configured" | "passed";
2096
+ review: "approved" | "blocked" | "not_run";
2097
+ reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
2098
+ work_state?: {
2099
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
2100
+ source: "absent" | "constrained" | "validated";
2101
+ required_inputs?: {
2102
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
2103
+ locator: string | null;
2104
+ description: string;
2105
+ }[] | undefined;
2106
+ } | undefined;
2107
+ };
2108
+ deliverable: {
2109
+ present: boolean;
2110
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
2111
+ path: string | null;
2112
+ producer_attempt_id: string | null;
2113
+ };
2114
+ presentation?: {
2115
+ state: "diagnostic" | "ready";
2116
+ primary: {
2117
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
2118
+ path: string;
2119
+ } | null;
2120
+ } | undefined;
2121
+ participants: {
2122
+ planners: number;
2123
+ attempts: {
2124
+ attempt_id: string | null;
2125
+ harness_id: string;
2126
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
2127
+ deliverable_present: boolean;
2128
+ status: "blocked" | "failed" | "success" | "success_with_warnings" | null;
2129
+ }[];
2130
+ };
2131
+ gates: {
2132
+ configured: boolean;
2133
+ required: number;
2134
+ total: number;
2135
+ executed: boolean;
2136
+ state: "failed" | "not_configured" | "passed" | "skipped";
2137
+ receipt_attempt_id: string | null;
2138
+ };
2139
+ review: {
2140
+ state: "approved" | "blocked" | "not_run";
2141
+ blocker_ids: string[];
2142
+ blockers: number;
2143
+ };
2144
+ apply: {
2145
+ eligibility: {
2146
+ eligible: boolean;
2147
+ state: string | null;
2148
+ reason: string | null;
2149
+ requiredAction: string | null;
2150
+ } | null;
2151
+ operator_decision_present: boolean;
2152
+ };
2153
+ required_actions: {
2154
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
2155
+ detail: string;
2156
+ }[];
2157
+ generated_at: string;
2158
+ } | null;
2159
+ generated_at: string;
1677
2160
  }, {
2161
+ schema_version: 2;
2162
+ run_id: string;
2163
+ task_id: string;
2164
+ mode: "agent" | "ask" | "plan";
2165
+ requested_access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
2166
+ effective_access: "external_sandbox_full" | "full" | "inherit_native" | "readonly" | "workspace_write";
2167
+ external_context_policy: "auto" | "cached" | "live" | "off";
2168
+ effective_web_mode: "auto" | "cached" | "live" | "off";
2169
+ web_required?: boolean | undefined;
2170
+ final_attempt_id?: string | null | undefined;
1678
2171
  web: {
1679
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1680
- verification?: "none" | "verified" | "dispatched" | undefined;
1681
- target?: string | null | undefined;
1682
- error_summary?: string | null | undefined;
1683
2172
  required?: boolean | undefined;
1684
- tool?: string | null | undefined;
2173
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
2174
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
1685
2175
  attempted?: boolean | undefined;
1686
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1687
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1688
2176
  satisfied?: boolean | undefined;
2177
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
2178
+ verification?: "dispatched" | "none" | "verified" | undefined;
2179
+ tool?: string | null | undefined;
2180
+ target?: string | null | undefined;
2181
+ error_summary?: string | null | undefined;
1689
2182
  };
1690
- mode: "ask" | "plan" | "agent";
1691
- schema_version: 2;
1692
- external_context_policy: "off" | "auto" | "cached" | "live";
1693
- run_id: string;
1694
- task_id: string;
1695
- generated_at: string;
1696
- requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1697
- effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1698
- effective_web_mode: "off" | "auto" | "cached" | "live";
1699
- web_required?: boolean | undefined;
1700
2183
  attempts?: {
1701
- harness_id: string;
1702
- web: {
1703
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1704
- verification?: "none" | "verified" | "dispatched" | undefined;
1705
- target?: string | null | undefined;
1706
- error_summary?: string | null | undefined;
1707
- required?: boolean | undefined;
1708
- tool?: string | null | undefined;
1709
- attempted?: boolean | undefined;
1710
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1711
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1712
- satisfied?: boolean | undefined;
1713
- };
1714
2184
  attempt_id: string;
1715
- profile_id?: string | null | undefined;
1716
- browser?: {
1717
- failed?: boolean | undefined;
1718
- requested?: boolean | undefined;
1719
- attempted?: boolean | undefined;
1720
- satisfied?: boolean | undefined;
1721
- server_name?: string | null | undefined;
1722
- unused?: boolean | undefined;
1723
- } | undefined;
1724
- usage?: {
1725
- input_tokens?: number | null | undefined;
1726
- output_tokens?: number | null | undefined;
1727
- cached_input_tokens?: number | null | undefined;
1728
- } | undefined;
2185
+ harness_id: string;
1729
2186
  observed_model?: string | null | undefined;
2187
+ auth_mode?: "api_key" | "local_session" | "unknown" | null | undefined;
2188
+ auth_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
2189
+ profile_id?: string | null | undefined;
1730
2190
  requested_model?: string | null | undefined;
1731
- auth_mode?: "unknown" | "api_key" | "local_session" | null | undefined;
1732
- auth_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1733
2191
  request_requirements?: {
1734
- requested: boolean;
1735
- effective: boolean;
2192
+ capability: "browser" | "delegation" | "path_deny";
1736
2193
  harness_id: string;
1737
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1738
2194
  eligible: boolean;
1739
- capability: "browser" | "path_deny";
2195
+ requested: boolean;
2196
+ effective: boolean;
2197
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1740
2198
  evidence_refs?: string[] | undefined;
1741
2199
  }[] | undefined;
2200
+ web: {
2201
+ required?: boolean | undefined;
2202
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
2203
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
2204
+ attempted?: boolean | undefined;
2205
+ satisfied?: boolean | undefined;
2206
+ status?: "attempted" | "failed" | "none" | "satisfied" | "unverified" | undefined;
2207
+ verification?: "dispatched" | "none" | "verified" | undefined;
2208
+ tool?: string | null | undefined;
2209
+ target?: string | null | undefined;
2210
+ error_summary?: string | null | undefined;
2211
+ };
1742
2212
  tool_errors?: {
1743
- summary: string;
1744
2213
  tool: string;
1745
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
2214
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
1746
2215
  target?: string | null | undefined;
2216
+ summary: string;
1747
2217
  recovered?: boolean | undefined;
1748
2218
  tool_use_id?: string | null | undefined;
1749
2219
  }[] | undefined;
@@ -1752,50 +2222,69 @@ export declare const RunTelemetry: z.ZodObject<{
1752
2222
  statusless_tool_results?: number | undefined;
1753
2223
  dropped_events?: number | undefined;
1754
2224
  transient_failures?: {
1755
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1756
- retry_delay_ms?: number | null | undefined;
2225
+ kind?: "network" | "service_unavailable" | "stream_disconnect" | "timeout" | "unknown" | undefined;
2226
+ category?: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error" | undefined;
1757
2227
  retryable?: boolean | undefined;
1758
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
2228
+ retry_delay_ms?: number | null | undefined;
1759
2229
  http_status?: number | null | undefined;
1760
2230
  signal?: string | null | undefined;
1761
2231
  adapter_code?: string | null | undefined;
1762
2232
  }[] | undefined;
1763
2233
  outcome?: {
1764
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1765
- work_state?: {
1766
- source: "constrained" | "validated" | "absent";
1767
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1768
- required_inputs?: {
1769
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1770
- description: string;
1771
- locator?: string | null | undefined;
1772
- }[] | undefined;
1773
- } | undefined;
1774
- gates_passed?: boolean | null | undefined;
1775
2234
  deliverable_present?: boolean | undefined;
2235
+ gates_passed?: boolean | null | undefined;
1776
2236
  harness_errored?: boolean | undefined;
1777
2237
  web_required_unsatisfied?: boolean | undefined;
1778
2238
  delegation_belt_unavailable?: boolean | undefined;
1779
2239
  tool_warnings_count?: number | undefined;
2240
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | undefined;
2241
+ work_state?: {
2242
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
2243
+ source: "absent" | "constrained" | "validated";
2244
+ required_inputs?: {
2245
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
2246
+ locator?: string | null | undefined;
2247
+ description: string;
2248
+ }[] | undefined;
2249
+ } | undefined;
1780
2250
  } | undefined;
1781
2251
  delegation_belt?: {
2252
+ requested?: boolean | undefined;
2253
+ server_name?: string | null | undefined;
1782
2254
  ready?: boolean | undefined;
1783
2255
  failed?: boolean | undefined;
2256
+ tool_evidence?: boolean | undefined;
2257
+ } | undefined;
2258
+ browser?: {
1784
2259
  requested?: boolean | undefined;
1785
2260
  server_name?: string | null | undefined;
1786
- tool_evidence?: boolean | undefined;
2261
+ attempted?: boolean | undefined;
2262
+ satisfied?: boolean | undefined;
2263
+ failed?: boolean | undefined;
2264
+ unused?: boolean | undefined;
2265
+ } | undefined;
2266
+ usage?: {
2267
+ input_tokens?: number | null | undefined;
2268
+ output_tokens?: number | null | undefined;
2269
+ cached_input_tokens?: number | null | undefined;
1787
2270
  } | undefined;
1788
2271
  }[] | undefined;
1789
2272
  request_requirements?: {
1790
- requested: boolean;
1791
- effective: boolean;
2273
+ capability: "browser" | "delegation" | "path_deny";
1792
2274
  harness_id: string;
1793
- reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
1794
2275
  eligible: boolean;
1795
- capability: "browser" | "path_deny";
2276
+ requested: boolean;
2277
+ effective: boolean;
2278
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1796
2279
  evidence_refs?: string[] | undefined;
1797
2280
  }[] | undefined;
1798
- final_attempt_id?: string | null | undefined;
2281
+ delegation?: {
2282
+ requested?: boolean | undefined;
2283
+ effective?: boolean | undefined;
2284
+ used?: boolean | undefined;
2285
+ reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
2286
+ remediation?: string | null | undefined;
2287
+ } | null | undefined;
1799
2288
  tool_warnings_total?: number | undefined;
1800
2289
  usage_totals?: {
1801
2290
  input_tokens?: number | null | undefined;
@@ -1803,36 +2292,109 @@ export declare const RunTelemetry: z.ZodObject<{
1803
2292
  cached_input_tokens?: number | null | undefined;
1804
2293
  } | undefined;
1805
2294
  auth_route?: {
1806
- requested: "auto" | "subscription" | "api_key";
2295
+ requested: "api_key" | "auto" | "subscription";
2296
+ effective?: "api_key" | "local_session" | "unknown" | null | undefined;
2297
+ source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | null | undefined;
1807
2298
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1808
- source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1809
- effective?: "unknown" | "api_key" | "local_session" | null | undefined;
1810
- profile_id?: string | null | undefined;
1811
2299
  harness_id?: string | null | undefined;
1812
2300
  attempt_id?: string | null | undefined;
2301
+ profile_id?: string | null | undefined;
1813
2302
  model_mismatch?: {
1814
2303
  requested: string;
1815
2304
  observed: string;
1816
2305
  } | null | undefined;
1817
2306
  } | null | undefined;
1818
2307
  routing_rationale?: {
1819
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
1820
- goal: "auto" | "quality" | "economy";
1821
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
2308
+ goal: "auto" | "economy" | "quality";
2309
+ paid_fallback: "allowed_within_cap" | "never" | "when_unavailable";
2310
+ order?: string[] | undefined;
2311
+ dropped?: string[] | undefined;
2312
+ reason: "all_incremental_cash_unknown" | "declared_order" | "delegate_effective_first" | "expiring_quota_slack" | "explicit_primary" | "lowest_incremental_cash" | "quality_tier" | "subscription_entitlement_first";
1822
2313
  entries?: {
1823
2314
  harness_id: string;
1824
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1825
- eligible: boolean;
2315
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1826
2316
  incremental_cost_usd?: number | null | undefined;
2317
+ eligible: boolean;
1827
2318
  }[] | undefined;
1828
- order?: string[] | undefined;
1829
- dropped?: string[] | undefined;
1830
2319
  } | null | undefined;
1831
2320
  deep_scan_synthesis?: {
1832
- status: "failed" | "succeeded" | "skipped";
1833
- reason?: string | null | undefined;
2321
+ status: "failed" | "skipped" | "succeeded";
1834
2322
  reducer_attempt_id?: string | null | undefined;
2323
+ reason?: string | null | undefined;
2324
+ } | null | undefined;
2325
+ run_facts?: {
2326
+ schema_version: 2;
2327
+ run_id: string;
2328
+ task_id: string;
2329
+ mode: "agent" | "ask" | "plan";
2330
+ outcome: {
2331
+ lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
2332
+ noChanges?: boolean | undefined;
2333
+ checks?: "failed" | "not_configured" | "passed" | undefined;
2334
+ review?: "approved" | "blocked" | "not_run" | undefined;
2335
+ reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
2336
+ work_state?: {
2337
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
2338
+ source: "absent" | "constrained" | "validated";
2339
+ required_inputs?: {
2340
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
2341
+ locator?: string | null | undefined;
2342
+ description: string;
2343
+ }[] | undefined;
2344
+ } | undefined;
2345
+ };
2346
+ deliverable: {
2347
+ present: boolean;
2348
+ kind: "answer" | "patch" | "plan" | "report" | "structured_output" | null;
2349
+ path: string | null;
2350
+ producer_attempt_id?: string | null | undefined;
2351
+ };
2352
+ presentation?: {
2353
+ state: "diagnostic" | "ready";
2354
+ primary: {
2355
+ kind: "answer" | "diagnostic" | "patch" | "plan" | "report" | "structured_output";
2356
+ path: string;
2357
+ } | null;
2358
+ } | undefined;
2359
+ participants: {
2360
+ planners: number;
2361
+ attempts?: {
2362
+ attempt_id: string | null;
2363
+ harness_id: string;
2364
+ role: "candidate" | "merge" | "planner" | "reducer" | "reviewer" | "scout";
2365
+ deliverable_present?: boolean | undefined;
2366
+ status?: "blocked" | "failed" | "success" | "success_with_warnings" | null | undefined;
2367
+ }[] | undefined;
2368
+ };
2369
+ gates: {
2370
+ configured: boolean;
2371
+ required: number;
2372
+ total: number;
2373
+ executed: boolean;
2374
+ state: "failed" | "not_configured" | "passed" | "skipped";
2375
+ receipt_attempt_id?: string | null | undefined;
2376
+ };
2377
+ review: {
2378
+ state: "approved" | "blocked" | "not_run";
2379
+ blocker_ids?: string[] | undefined;
2380
+ blockers: number;
2381
+ };
2382
+ apply: {
2383
+ eligibility?: {
2384
+ eligible: boolean;
2385
+ state: string | null;
2386
+ reason: string | null;
2387
+ requiredAction: string | null;
2388
+ } | null | undefined;
2389
+ operator_decision_present?: boolean | undefined;
2390
+ };
2391
+ required_actions?: {
2392
+ id: "complete_incomplete_work" | "fix_failed_checks" | "provide_required_input" | "record_operator_decision" | "resolve_review_block";
2393
+ detail: string;
2394
+ }[] | undefined;
2395
+ generated_at: string;
1835
2396
  } | null | undefined;
2397
+ generated_at: string;
1836
2398
  }>;
1837
2399
  export type RunTelemetry = z.infer<typeof RunTelemetry>;
1838
2400
  //# sourceMappingURL=telemetry.d.ts.map