@claudexor/schema 3.1.2 → 3.3.7-rc.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 (291) hide show
  1. package/dist/agent-capabilities.d.ts +157 -129
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +3 -1
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +472 -273
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +25 -1
  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 +59 -59
  18. package/dist/budget.d.ts.map +1 -1
  19. package/dist/budget.js +1 -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 +644 -629
  42. package/dist/control-operation-responses.d.ts.map +1 -1
  43. package/dist/control-operation-responses.js +5 -1
  44. package/dist/control-operation-responses.js.map +1 -1
  45. package/dist/control-run-detail.d.ts +2229 -1569
  46. package/dist/control-run-detail.d.ts.map +1 -1
  47. package/dist/control-run-detail.js +46 -2
  48. package/dist/control-run-detail.js.map +1 -1
  49. package/dist/control-run-failure.d.ts +57 -0
  50. package/dist/control-run-failure.d.ts.map +1 -0
  51. package/dist/control-run-failure.js +89 -0
  52. package/dist/control-run-failure.js.map +1 -0
  53. package/dist/control-run-retry.d.ts +16 -16
  54. package/dist/control-run-retry.d.ts.map +1 -1
  55. package/dist/control-run-retry.js +1 -1
  56. package/dist/control-run-retry.js.map +1 -1
  57. package/dist/control-run-scope.d.ts +19 -2
  58. package/dist/control-run-scope.d.ts.map +1 -1
  59. package/dist/control-run-scope.js +22 -1
  60. package/dist/control-run-scope.js.map +1 -1
  61. package/dist/control-secret.d.ts +7 -7
  62. package/dist/control-secret.d.ts.map +1 -1
  63. package/dist/control-secret.js +1 -1
  64. package/dist/control-secret.js.map +1 -1
  65. package/dist/control-thread-apply.d.ts +65 -65
  66. package/dist/control-thread-apply.d.ts.map +1 -1
  67. package/dist/control-thread-apply.js +1 -1
  68. package/dist/control-thread-apply.js.map +1 -1
  69. package/dist/control-trust.d.ts +23 -23
  70. package/dist/control-trust.d.ts.map +1 -1
  71. package/dist/control-trust.js +1 -1
  72. package/dist/control-trust.js.map +1 -1
  73. package/dist/control.d.ts +1551 -2385
  74. package/dist/control.d.ts.map +1 -1
  75. package/dist/control.js +29 -107
  76. package/dist/control.js.map +1 -1
  77. package/dist/credential-profile-snapshot.d.ts +3206 -0
  78. package/dist/credential-profile-snapshot.d.ts.map +1 -0
  79. package/dist/credential-profile-snapshot.js +28 -0
  80. package/dist/credential-profile-snapshot.js.map +1 -0
  81. package/dist/credential-profile.d.ts +170 -107
  82. package/dist/credential-profile.d.ts.map +1 -1
  83. package/dist/credential-profile.js +24 -7
  84. package/dist/credential-profile.js.map +1 -1
  85. package/dist/decision.d.ts +121 -121
  86. package/dist/decision.d.ts.map +1 -1
  87. package/dist/decision.js +2 -1
  88. package/dist/decision.js.map +1 -1
  89. package/dist/deep-scan.d.ts +5 -5
  90. package/dist/deep-scan.d.ts.map +1 -1
  91. package/dist/deep-scan.js +1 -1
  92. package/dist/deep-scan.js.map +1 -1
  93. package/dist/delegation.d.ts +13 -13
  94. package/dist/delegation.d.ts.map +1 -1
  95. package/dist/delegation.js +1 -1
  96. package/dist/delegation.js.map +1 -1
  97. package/dist/delivery.d.ts +32 -32
  98. package/dist/delivery.d.ts.map +1 -1
  99. package/dist/delivery.js +1 -1
  100. package/dist/delivery.js.map +1 -1
  101. package/dist/effort.d.ts +1 -1
  102. package/dist/effort.d.ts.map +1 -1
  103. package/dist/effort.js +1 -1
  104. package/dist/effort.js.map +1 -1
  105. package/dist/events.d.ts +55 -35
  106. package/dist/events.d.ts.map +1 -1
  107. package/dist/events.js +20 -1
  108. package/dist/events.js.map +1 -1
  109. package/dist/gate.d.ts +7 -7
  110. package/dist/gate.d.ts.map +1 -1
  111. package/dist/gate.js +1 -1
  112. package/dist/gate.js.map +1 -1
  113. package/dist/git-capability.d.ts +23 -0
  114. package/dist/git-capability.d.ts.map +1 -0
  115. package/dist/git-capability.js +15 -0
  116. package/dist/git-capability.js.map +1 -0
  117. package/dist/harness-confinement.d.ts +64 -0
  118. package/dist/harness-confinement.d.ts.map +1 -0
  119. package/dist/harness-confinement.js +64 -0
  120. package/dist/harness-confinement.js.map +1 -0
  121. package/dist/harness.d.ts +428 -408
  122. package/dist/harness.d.ts.map +1 -1
  123. package/dist/harness.js +15 -26
  124. package/dist/harness.js.map +1 -1
  125. package/dist/index.d.ts +8 -0
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +8 -0
  128. package/dist/index.js.map +1 -1
  129. package/dist/interaction.d.ts +10 -0
  130. package/dist/interaction.d.ts.map +1 -0
  131. package/dist/interaction.js +2 -0
  132. package/dist/interaction.js.map +1 -0
  133. package/dist/operation.d.ts +113 -113
  134. package/dist/operation.d.ts.map +1 -1
  135. package/dist/operation.js +1 -1
  136. package/dist/operation.js.map +1 -1
  137. package/dist/output-schema-dialect.d.ts +1 -1
  138. package/dist/output-schema-dialect.d.ts.map +1 -1
  139. package/dist/output-schema-dialect.js +1 -1
  140. package/dist/output-schema-dialect.js.map +1 -1
  141. package/dist/output-schema.d.ts +2 -2
  142. package/dist/output-schema.js +2 -2
  143. package/dist/plan.d.ts +29 -29
  144. package/dist/plan.d.ts.map +1 -1
  145. package/dist/plan.js +2 -2
  146. package/dist/plan.js.map +1 -1
  147. package/dist/primitives.d.ts +1 -1
  148. package/dist/primitives.d.ts.map +1 -1
  149. package/dist/primitives.js +1 -1
  150. package/dist/primitives.js.map +1 -1
  151. package/dist/problem.d.ts +6 -6
  152. package/dist/problem.d.ts.map +1 -1
  153. package/dist/problem.js +1 -1
  154. package/dist/problem.js.map +1 -1
  155. package/dist/project.d.ts +87 -25
  156. package/dist/project.d.ts.map +1 -1
  157. package/dist/project.js +21 -1
  158. package/dist/project.js.map +1 -1
  159. package/dist/quota.d.ts +51 -51
  160. package/dist/quota.d.ts.map +1 -1
  161. package/dist/quota.js +6 -1
  162. package/dist/quota.js.map +1 -1
  163. package/dist/raw.d.ts +16 -16
  164. package/dist/raw.d.ts.map +1 -1
  165. package/dist/raw.js +1 -1
  166. package/dist/raw.js.map +1 -1
  167. package/dist/readiness.d.ts +242 -242
  168. package/dist/readiness.d.ts.map +1 -1
  169. package/dist/readiness.js +1 -1
  170. package/dist/readiness.js.map +1 -1
  171. package/dist/recovery.d.ts +106 -106
  172. package/dist/recovery.d.ts.map +1 -1
  173. package/dist/recovery.js +1 -1
  174. package/dist/recovery.js.map +1 -1
  175. package/dist/request-requirements.d.ts +9 -9
  176. package/dist/request-requirements.d.ts.map +1 -1
  177. package/dist/request-requirements.js +1 -1
  178. package/dist/request-requirements.js.map +1 -1
  179. package/dist/review.d.ts +29 -29
  180. package/dist/review.d.ts.map +1 -1
  181. package/dist/review.js +1 -1
  182. package/dist/review.js.map +1 -1
  183. package/dist/route.d.ts +11 -11
  184. package/dist/route.d.ts.map +1 -1
  185. package/dist/route.js +1 -1
  186. package/dist/route.js.map +1 -1
  187. package/dist/run-applicability.d.ts +764 -0
  188. package/dist/run-applicability.d.ts.map +1 -0
  189. package/dist/run-applicability.js +56 -0
  190. package/dist/run-applicability.js.map +1 -0
  191. package/dist/run-facts.d.ts +628 -0
  192. package/dist/run-facts.d.ts.map +1 -0
  193. package/dist/run-facts.js +429 -0
  194. package/dist/run-facts.js.map +1 -0
  195. package/dist/run-strategy.d.ts +40 -0
  196. package/dist/run-strategy.d.ts.map +1 -1
  197. package/dist/run-strategy.js +68 -1
  198. package/dist/run-strategy.js.map +1 -1
  199. package/dist/setup-device-code-envelope.d.ts +67 -0
  200. package/dist/setup-device-code-envelope.d.ts.map +1 -0
  201. package/dist/setup-device-code-envelope.js +25 -0
  202. package/dist/setup-device-code-envelope.js.map +1 -0
  203. package/dist/setup-login-protocol.d.ts +6 -0
  204. package/dist/setup-login-protocol.d.ts.map +1 -0
  205. package/dist/setup-login-protocol.js +12 -0
  206. package/dist/setup-login-protocol.js.map +1 -0
  207. package/dist/setup-transport.d.ts +12 -0
  208. package/dist/setup-transport.d.ts.map +1 -0
  209. package/dist/setup-transport.js +22 -0
  210. package/dist/setup-transport.js.map +1 -0
  211. package/dist/setup.d.ts +12572 -3749
  212. package/dist/setup.d.ts.map +1 -1
  213. package/dist/setup.js +34 -38
  214. package/dist/setup.js.map +1 -1
  215. package/dist/status-projection.d.ts +7 -5
  216. package/dist/status-projection.d.ts.map +1 -1
  217. package/dist/status-projection.js +11 -6
  218. package/dist/status-projection.js.map +1 -1
  219. package/dist/surface-run-controls.d.ts.map +1 -1
  220. package/dist/surface-run-controls.js +10 -1
  221. package/dist/surface-run-controls.js.map +1 -1
  222. package/dist/task.d.ts +303 -303
  223. package/dist/task.d.ts.map +1 -1
  224. package/dist/task.js +1 -1
  225. package/dist/task.js.map +1 -1
  226. package/dist/telemetry.d.ts +1157 -633
  227. package/dist/telemetry.d.ts.map +1 -1
  228. package/dist/telemetry.js +7 -4
  229. package/dist/telemetry.js.map +1 -1
  230. package/dist/thread.d.ts +133 -84
  231. package/dist/thread.d.ts.map +1 -1
  232. package/dist/thread.js +21 -2
  233. package/dist/thread.js.map +1 -1
  234. package/dist/tool-ref.d.ts +7 -7
  235. package/dist/tool-ref.d.ts.map +1 -1
  236. package/dist/tool-ref.js +1 -1
  237. package/dist/tool-ref.js.map +1 -1
  238. package/dist/work-report.d.ts +28 -28
  239. package/dist/work-report.d.ts.map +1 -1
  240. package/dist/work-report.js +3 -3
  241. package/dist/work-report.js.map +1 -1
  242. package/dist/workproduct.d.ts +6 -9
  243. package/dist/workproduct.d.ts.map +1 -1
  244. package/dist/workproduct.js +1 -2
  245. package/dist/workproduct.js.map +1 -1
  246. package/dist/workspace.d.ts +13 -13
  247. package/dist/workspace.d.ts.map +1 -1
  248. package/dist/workspace.js +1 -1
  249. package/dist/workspace.js.map +1 -1
  250. package/generated/AgentCapabilityCatalog.schema.json +41 -0
  251. package/generated/ControlCredentialProfileCreateResponse.schema.json +10 -1
  252. package/generated/ControlCredentialProfileUpdateResponse.schema.json +10 -1
  253. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1343 -0
  254. package/generated/ControlCredentialProfilesResponse.schema.json +20 -3
  255. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1322 -0
  256. package/generated/ControlDirectoryEntry.schema.json +36 -0
  257. package/generated/ControlDirectoryListing.schema.json +77 -0
  258. package/generated/ControlHarnessListResponse.schema.json +41 -1
  259. package/generated/ControlQuotaResponse.schema.json +2 -1
  260. package/generated/ControlRunAgainDraft.schema.json +12 -2
  261. package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
  262. package/generated/ControlRunDetail.schema.json +494 -69
  263. package/generated/ControlRunListResponse.schema.json +30 -4
  264. package/generated/ControlRunStartRequest.schema.json +12 -2
  265. package/generated/ControlRunSummary.schema.json +30 -4
  266. package/generated/ControlSettingsSnapshot.schema.json +12 -3
  267. package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
  268. package/generated/ControlSetupJob.schema.json +9 -0
  269. package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
  270. package/generated/ControlSetupJobEvent.schema.json +858 -758
  271. package/generated/ControlSetupJobListResponse.schema.json +9 -0
  272. package/generated/ControlSetupJobSnapshot.schema.json +811 -736
  273. package/generated/ControlThreadCreateRequest.schema.json +5 -0
  274. package/generated/ControlThreadDetail.schema.json +31 -1
  275. package/generated/ControlThreadTurnRequest.schema.json +5 -24
  276. package/generated/CredentialProfileStatus.schema.json +10 -1
  277. package/generated/DecisionRecord.schema.json +2 -1
  278. package/generated/GitCapability.schema.json +46 -0
  279. package/generated/GlobalConfig.schema.json +13 -4
  280. package/generated/HarnessEvent.schema.json +2 -1
  281. package/generated/HarnessManifest.schema.json +1 -1
  282. package/generated/HarnessStatusDto.schema.json +1 -1
  283. package/generated/McpRunHandleResult.schema.json +182 -1
  284. package/generated/McpRunToolResult.schema.json +182 -1
  285. package/generated/OutputReadyPayload.schema.json +44 -0
  286. package/generated/RunFacts.schema.json +569 -0
  287. package/generated/RunFailure.schema.json +19 -2
  288. package/generated/RunTelemetry.schema.json +492 -2
  289. package/generated/ThreadTurn.schema.json +29 -0
  290. package/generated/WorkProduct.schema.json +0 -4
  291. 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<{
@@ -65,17 +65,17 @@ export declare const ToolErrorRecord: z.ZodObject<{
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>;
@@ -361,20 +361,20 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
361
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" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
368
- evidence_refs: string[];
369
366
  eligible: boolean;
370
- capability: "browser" | "delegation" | "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" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
376
374
  eligible: boolean;
377
- capability: "browser" | "delegation" | "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<{
@@ -433,17 +433,17 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
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" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "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" | "delegation" | "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" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
760
733
  eligible: boolean;
761
- capability: "browser" | "delegation" | "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,39 +761,52 @@ 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;
802
- } | undefined;
803
- delegation_belt?: {
804
- ready?: boolean | undefined;
805
- failed?: boolean | 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;
789
+ } | undefined;
790
+ delegation_belt?: {
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;
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
810
  }>;
811
811
  export type AttemptTelemetryRecord = z.infer<typeof AttemptTelemetryRecord>;
812
812
  export declare const RunTelemetry: z.ZodObject<{
@@ -844,27 +844,27 @@ export declare const RunTelemetry: z.ZodObject<{
844
844
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
845
845
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
846
846
  }, "strip", z.ZodTypeAny, {
847
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
848
- verification: "none" | "verified" | "dispatched";
849
- target: string | null;
850
- error_summary: string | null;
851
847
  required: boolean;
852
- tool: string | null;
848
+ policy: "auto" | "cached" | "live" | "off";
849
+ effective_mode: "auto" | "cached" | "live" | "off";
853
850
  attempted: boolean;
854
- policy: "off" | "auto" | "cached" | "live";
855
- effective_mode: "off" | "auto" | "cached" | "live";
856
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;
857
857
  }, {
858
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
859
- verification?: "none" | "verified" | "dispatched" | undefined;
860
- target?: string | null | undefined;
861
- error_summary?: string | null | undefined;
862
858
  required?: boolean | undefined;
863
- tool?: string | null | undefined;
859
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
860
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
864
861
  attempted?: boolean | undefined;
865
- policy?: "off" | "auto" | "cached" | "live" | undefined;
866
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
867
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;
868
868
  }>;
869
869
  attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
870
870
  attempt_id: z.ZodString;
@@ -904,20 +904,20 @@ export declare const RunTelemetry: z.ZodObject<{
904
904
  reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
905
905
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
906
906
  }, "strip", z.ZodTypeAny, {
907
- requested: boolean;
908
- effective: boolean;
907
+ capability: "browser" | "delegation" | "path_deny";
909
908
  harness_id: string;
910
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
911
- evidence_refs: string[];
912
909
  eligible: boolean;
913
- capability: "browser" | "delegation" | "path_deny";
914
- }, {
915
910
  requested: boolean;
916
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";
917
916
  harness_id: string;
918
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
919
917
  eligible: boolean;
920
- capability: "browser" | "delegation" | "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";
921
921
  evidence_refs?: string[] | undefined;
922
922
  }>, "many">>;
923
923
  web: z.ZodObject<{
@@ -944,27 +944,27 @@ export declare const RunTelemetry: z.ZodObject<{
944
944
  target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
945
945
  error_summary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
946
946
  }, "strip", z.ZodTypeAny, {
947
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
948
- verification: "none" | "verified" | "dispatched";
949
- target: string | null;
950
- error_summary: string | null;
951
947
  required: boolean;
952
- tool: string | null;
948
+ policy: "auto" | "cached" | "live" | "off";
949
+ effective_mode: "auto" | "cached" | "live" | "off";
953
950
  attempted: boolean;
954
- policy: "off" | "auto" | "cached" | "live";
955
- effective_mode: "off" | "auto" | "cached" | "live";
956
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;
957
957
  }, {
958
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
959
- verification?: "none" | "verified" | "dispatched" | undefined;
960
- target?: string | null | undefined;
961
- error_summary?: string | null | undefined;
962
958
  required?: boolean | undefined;
963
- tool?: string | null | undefined;
959
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
960
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
964
961
  attempted?: boolean | undefined;
965
- policy?: "off" | "auto" | "cached" | "live" | undefined;
966
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
967
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;
968
968
  }>;
969
969
  /** Bounded by the writer (most recent first when truncated; `tool_errors_total` keeps the true count). */
970
970
  tool_errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -976,17 +976,17 @@ export declare const RunTelemetry: z.ZodObject<{
976
976
  recovered: z.ZodDefault<z.ZodBoolean>;
977
977
  tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
978
978
  }, "strip", z.ZodTypeAny, {
979
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
979
+ tool: string;
980
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
980
981
  target: string | null;
981
982
  summary: string;
982
- tool: string;
983
983
  recovered: boolean;
984
984
  tool_use_id: string | null;
985
985
  }, {
986
- summary: string;
987
986
  tool: string;
988
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
987
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
989
988
  target?: string | null | undefined;
989
+ summary: string;
990
990
  recovered?: boolean | undefined;
991
991
  tool_use_id?: string | null | undefined;
992
992
  }>, "many">>;
@@ -1012,18 +1012,18 @@ export declare const RunTelemetry: z.ZodObject<{
1012
1012
  /** Vendor/adapter error-category code passed verbatim as evidence, when any. */
1013
1013
  adapter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1014
1014
  }, "strip", z.ZodTypeAny, {
1015
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1016
- 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";
1017
1017
  retryable: boolean;
1018
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1018
+ retry_delay_ms: number | null;
1019
1019
  http_status: number | null;
1020
1020
  signal: string | null;
1021
1021
  adapter_code: string | null;
1022
1022
  }, {
1023
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1024
- 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;
1025
1025
  retryable?: boolean | undefined;
1026
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
1026
+ retry_delay_ms?: number | null | undefined;
1027
1027
  http_status?: number | null | undefined;
1028
1028
  signal?: string | null | undefined;
1029
1029
  adapter_code?: string | null | undefined;
@@ -1055,65 +1055,65 @@ export declare const RunTelemetry: z.ZodObject<{
1055
1055
  locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1056
1056
  description: z.ZodString;
1057
1057
  }, "strip", z.ZodTypeAny, {
1058
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1059
- description: string;
1058
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1060
1059
  locator: string | null;
1061
- }, {
1062
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1063
1060
  description: string;
1061
+ }, {
1062
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1064
1063
  locator?: string | null | undefined;
1064
+ description: string;
1065
1065
  }>, "many">>;
1066
1066
  }, "strip", z.ZodTypeAny, {
1067
- source: "constrained" | "validated" | "absent";
1068
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1067
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1068
+ source: "absent" | "constrained" | "validated";
1069
1069
  required_inputs?: {
1070
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1071
- description: string;
1070
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1072
1071
  locator: string | null;
1072
+ description: string;
1073
1073
  }[] | undefined;
1074
1074
  }, {
1075
- source: "constrained" | "validated" | "absent";
1076
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1075
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1076
+ source: "absent" | "constrained" | "validated";
1077
1077
  required_inputs?: {
1078
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1079
- description: string;
1078
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1080
1079
  locator?: string | null | undefined;
1080
+ description: string;
1081
1081
  }[] | undefined;
1082
1082
  }>>;
1083
1083
  }, "strip", z.ZodTypeAny, {
1084
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1085
- gates_passed: boolean | null;
1086
1084
  deliverable_present: boolean;
1085
+ gates_passed: boolean | null;
1087
1086
  harness_errored: boolean;
1088
1087
  web_required_unsatisfied: boolean;
1089
1088
  delegation_belt_unavailable: boolean;
1090
1089
  tool_warnings_count: number;
1090
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1091
1091
  work_state?: {
1092
- source: "constrained" | "validated" | "absent";
1093
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1092
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1093
+ source: "absent" | "constrained" | "validated";
1094
1094
  required_inputs?: {
1095
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1096
- description: string;
1095
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1097
1096
  locator: string | null;
1098
- }[] | undefined;
1099
- } | undefined;
1100
- }, {
1101
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1102
- work_state?: {
1103
- source: "constrained" | "validated" | "absent";
1104
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1105
- required_inputs?: {
1106
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1107
1097
  description: string;
1108
- locator?: string | null | undefined;
1109
1098
  }[] | undefined;
1110
1099
  } | undefined;
1111
- gates_passed?: boolean | null | undefined;
1100
+ }, {
1112
1101
  deliverable_present?: boolean | undefined;
1102
+ gates_passed?: boolean | null | undefined;
1113
1103
  harness_errored?: boolean | undefined;
1114
1104
  web_required_unsatisfied?: boolean | undefined;
1115
1105
  delegation_belt_unavailable?: boolean | undefined;
1116
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;
1117
1117
  }>>;
1118
1118
  /** Delegation-belt runtime readiness (QA-024); present only when a belt was
1119
1119
  * injected into this attempt. Absent on non-delegate attempts. */
@@ -1124,16 +1124,16 @@ export declare const RunTelemetry: z.ZodObject<{
1124
1124
  failed: z.ZodDefault<z.ZodBoolean>;
1125
1125
  tool_evidence: z.ZodDefault<z.ZodBoolean>;
1126
1126
  }, "strip", z.ZodTypeAny, {
1127
- ready: boolean;
1128
- failed: boolean;
1129
1127
  requested: boolean;
1130
1128
  server_name: string | null;
1129
+ ready: boolean;
1130
+ failed: boolean;
1131
1131
  tool_evidence: boolean;
1132
1132
  }, {
1133
- ready?: boolean | undefined;
1134
- failed?: boolean | undefined;
1135
1133
  requested?: boolean | undefined;
1136
1134
  server_name?: string | null | undefined;
1135
+ ready?: boolean | undefined;
1136
+ failed?: boolean | undefined;
1137
1137
  tool_evidence?: boolean | undefined;
1138
1138
  }>>;
1139
1139
  /** Browser-MCP runtime evidence (QA-040); present only when the browser was
@@ -1146,18 +1146,18 @@ export declare const RunTelemetry: z.ZodObject<{
1146
1146
  failed: z.ZodDefault<z.ZodBoolean>;
1147
1147
  unused: z.ZodDefault<z.ZodBoolean>;
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
- failed: boolean;
1150
1149
  requested: boolean;
1150
+ server_name: string | null;
1151
1151
  attempted: boolean;
1152
1152
  satisfied: boolean;
1153
- server_name: string | null;
1153
+ failed: boolean;
1154
1154
  unused: boolean;
1155
1155
  }, {
1156
- failed?: boolean | undefined;
1157
1156
  requested?: boolean | undefined;
1157
+ server_name?: string | null | undefined;
1158
1158
  attempted?: boolean | undefined;
1159
1159
  satisfied?: boolean | undefined;
1160
- server_name?: string | null | undefined;
1160
+ failed?: boolean | undefined;
1161
1161
  unused?: boolean | undefined;
1162
1162
  }>>;
1163
1163
  /** Token usage summed across this attempt's usage events. */
@@ -1175,44 +1175,39 @@ export declare const RunTelemetry: z.ZodObject<{
1175
1175
  cached_input_tokens?: number | null | undefined;
1176
1176
  }>>;
1177
1177
  }, "strip", z.ZodTypeAny, {
1178
- profile_id: string | null;
1178
+ attempt_id: string;
1179
1179
  harness_id: string;
1180
- web: {
1181
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1182
- verification: "none" | "verified" | "dispatched";
1183
- target: string | null;
1184
- error_summary: string | null;
1185
- required: boolean;
1186
- tool: string | null;
1187
- attempted: boolean;
1188
- policy: "off" | "auto" | "cached" | "live";
1189
- effective_mode: "off" | "auto" | "cached" | "live";
1190
- satisfied: boolean;
1191
- };
1192
- usage: {
1193
- input_tokens: number | null;
1194
- output_tokens: number | null;
1195
- cached_input_tokens: number | null;
1196
- };
1197
1180
  observed_model: string | null;
1198
- 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;
1199
1184
  requested_model: string | null;
1200
- auth_mode: "unknown" | "api_key" | "local_session" | null;
1201
- auth_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1202
1185
  request_requirements: {
1186
+ capability: "browser" | "delegation" | "path_deny";
1187
+ harness_id: string;
1188
+ eligible: boolean;
1203
1189
  requested: boolean;
1204
1190
  effective: boolean;
1205
- harness_id: string;
1206
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1191
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1207
1192
  evidence_refs: string[];
1208
- eligible: boolean;
1209
- capability: "browser" | "delegation" | "path_deny";
1210
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
+ };
1211
1206
  tool_errors: {
1212
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
1207
+ tool: string;
1208
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
1213
1209
  target: string | null;
1214
1210
  summary: string;
1215
- tool: string;
1216
1211
  recovered: boolean;
1217
1212
  tool_use_id: string | null;
1218
1213
  }[];
@@ -1221,94 +1216,86 @@ export declare const RunTelemetry: z.ZodObject<{
1221
1216
  statusless_tool_results: number;
1222
1217
  dropped_events: number;
1223
1218
  transient_failures: {
1224
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1225
- 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";
1226
1221
  retryable: boolean;
1227
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1222
+ retry_delay_ms: number | null;
1228
1223
  http_status: number | null;
1229
1224
  signal: string | null;
1230
1225
  adapter_code: string | null;
1231
1226
  }[];
1232
1227
  outcome: {
1233
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1234
- gates_passed: boolean | null;
1235
1228
  deliverable_present: boolean;
1229
+ gates_passed: boolean | null;
1236
1230
  harness_errored: boolean;
1237
1231
  web_required_unsatisfied: boolean;
1238
1232
  delegation_belt_unavailable: boolean;
1239
1233
  tool_warnings_count: number;
1234
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1240
1235
  work_state?: {
1241
- source: "constrained" | "validated" | "absent";
1242
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1236
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
1237
+ source: "absent" | "constrained" | "validated";
1243
1238
  required_inputs?: {
1244
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1245
- description: string;
1239
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1246
1240
  locator: string | null;
1241
+ description: string;
1247
1242
  }[] | undefined;
1248
1243
  } | undefined;
1249
1244
  };
1250
- browser?: {
1251
- failed: boolean;
1245
+ delegation_belt?: {
1252
1246
  requested: boolean;
1253
- attempted: boolean;
1254
- satisfied: boolean;
1255
1247
  server_name: string | null;
1256
- unused: boolean;
1257
- } | undefined;
1258
- delegation_belt?: {
1259
1248
  ready: boolean;
1260
1249
  failed: boolean;
1250
+ tool_evidence: boolean;
1251
+ } | undefined;
1252
+ browser?: {
1261
1253
  requested: boolean;
1262
1254
  server_name: string | null;
1263
- tool_evidence: boolean;
1255
+ attempted: boolean;
1256
+ satisfied: boolean;
1257
+ failed: boolean;
1258
+ unused: boolean;
1264
1259
  } | undefined;
1265
- }, {
1266
- harness_id: string;
1267
- web: {
1268
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1269
- verification?: "none" | "verified" | "dispatched" | undefined;
1270
- target?: string | null | undefined;
1271
- error_summary?: string | null | undefined;
1272
- required?: boolean | undefined;
1273
- tool?: string | null | undefined;
1274
- attempted?: boolean | undefined;
1275
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1276
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1277
- satisfied?: boolean | undefined;
1260
+ usage: {
1261
+ input_tokens: number | null;
1262
+ output_tokens: number | null;
1263
+ cached_input_tokens: number | null;
1278
1264
  };
1265
+ }, {
1279
1266
  attempt_id: string;
1280
- profile_id?: string | null | undefined;
1281
- browser?: {
1282
- failed?: boolean | undefined;
1283
- requested?: boolean | undefined;
1284
- attempted?: boolean | undefined;
1285
- satisfied?: boolean | undefined;
1286
- server_name?: string | null | undefined;
1287
- unused?: boolean | undefined;
1288
- } | undefined;
1289
- usage?: {
1290
- input_tokens?: number | null | undefined;
1291
- output_tokens?: number | null | undefined;
1292
- cached_input_tokens?: number | null | undefined;
1293
- } | undefined;
1267
+ harness_id: string;
1294
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;
1295
1272
  requested_model?: string | null | undefined;
1296
- auth_mode?: "unknown" | "api_key" | "local_session" | null | undefined;
1297
- auth_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1298
1273
  request_requirements?: {
1299
- requested: boolean;
1300
- effective: boolean;
1274
+ capability: "browser" | "delegation" | "path_deny";
1301
1275
  harness_id: string;
1302
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1303
1276
  eligible: boolean;
1304
- capability: "browser" | "delegation" | "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";
1305
1280
  evidence_refs?: string[] | undefined;
1306
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
+ };
1307
1294
  tool_errors?: {
1308
- summary: string;
1309
1295
  tool: string;
1310
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
1296
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
1311
1297
  target?: string | null | undefined;
1298
+ summary: string;
1312
1299
  recovered?: boolean | undefined;
1313
1300
  tool_use_id?: string | null | undefined;
1314
1301
  }[] | undefined;
@@ -1317,38 +1304,51 @@ export declare const RunTelemetry: z.ZodObject<{
1317
1304
  statusless_tool_results?: number | undefined;
1318
1305
  dropped_events?: number | undefined;
1319
1306
  transient_failures?: {
1320
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1321
- 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;
1322
1309
  retryable?: boolean | undefined;
1323
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
1310
+ retry_delay_ms?: number | null | undefined;
1324
1311
  http_status?: number | null | undefined;
1325
1312
  signal?: string | null | undefined;
1326
1313
  adapter_code?: string | null | undefined;
1327
1314
  }[] | undefined;
1328
1315
  outcome?: {
1329
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1330
- work_state?: {
1331
- source: "constrained" | "validated" | "absent";
1332
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1333
- required_inputs?: {
1334
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1335
- description: string;
1336
- locator?: string | null | undefined;
1337
- }[] | undefined;
1338
- } | undefined;
1339
- gates_passed?: boolean | null | undefined;
1340
1316
  deliverable_present?: boolean | undefined;
1317
+ gates_passed?: boolean | null | undefined;
1341
1318
  harness_errored?: boolean | undefined;
1342
1319
  web_required_unsatisfied?: boolean | undefined;
1343
1320
  delegation_belt_unavailable?: boolean | undefined;
1344
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;
1345
1332
  } | undefined;
1346
1333
  delegation_belt?: {
1334
+ requested?: boolean | undefined;
1335
+ server_name?: string | null | undefined;
1347
1336
  ready?: boolean | undefined;
1348
1337
  failed?: boolean | undefined;
1338
+ tool_evidence?: boolean | undefined;
1339
+ } | undefined;
1340
+ browser?: {
1349
1341
  requested?: boolean | undefined;
1350
1342
  server_name?: string | null | undefined;
1351
- 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;
1352
1352
  } | undefined;
1353
1353
  }>, "many">>;
1354
1354
  request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1360,20 +1360,20 @@ export declare const RunTelemetry: z.ZodObject<{
1360
1360
  reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
1361
1361
  evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1362
1362
  }, "strip", z.ZodTypeAny, {
1363
- requested: boolean;
1364
- effective: boolean;
1363
+ capability: "browser" | "delegation" | "path_deny";
1365
1364
  harness_id: string;
1366
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1367
- evidence_refs: string[];
1368
1365
  eligible: boolean;
1369
- capability: "browser" | "delegation" | "path_deny";
1370
- }, {
1371
1366
  requested: boolean;
1372
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";
1373
1372
  harness_id: string;
1374
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1375
1373
  eligible: boolean;
1376
- capability: "browser" | "delegation" | "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";
1377
1377
  evidence_refs?: string[] | undefined;
1378
1378
  }>, "many">>;
1379
1379
  delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
@@ -1385,27 +1385,27 @@ export declare const RunTelemetry: z.ZodObject<{
1385
1385
  }, "strict", z.ZodTypeAny, {
1386
1386
  requested: boolean;
1387
1387
  effective: boolean;
1388
- reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
1389
- remediation: string | null;
1390
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
1391
  }, {
1392
1392
  requested?: boolean | undefined;
1393
1393
  effective?: boolean | undefined;
1394
- reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
1395
- remediation?: string | null | undefined;
1396
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
1397
  }>, {
1398
1398
  requested: boolean;
1399
1399
  effective: boolean;
1400
- reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
1401
- remediation: string | null;
1402
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
1403
  }, {
1404
1404
  requested?: boolean | undefined;
1405
1405
  effective?: boolean | undefined;
1406
- reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
1407
- remediation?: string | null | undefined;
1408
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
1409
  }>>>;
1410
1410
  tool_warnings_total: z.ZodDefault<z.ZodNumber>;
1411
1411
  usage_totals: z.ZodDefault<z.ZodObject<{
@@ -1450,25 +1450,25 @@ export declare const RunTelemetry: z.ZodObject<{
1450
1450
  observed: string;
1451
1451
  }>>>;
1452
1452
  }, "strip", z.ZodTypeAny, {
1453
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1454
- requested: "auto" | "subscription" | "api_key";
1455
- effective: "unknown" | "api_key" | "local_session" | null;
1456
- profile_id: string | null;
1457
- 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;
1458
1456
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1457
+ harness_id: string | null;
1459
1458
  attempt_id: string | null;
1459
+ profile_id: string | null;
1460
1460
  model_mismatch: {
1461
1461
  requested: string;
1462
1462
  observed: string;
1463
1463
  } | null;
1464
1464
  }, {
1465
- 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;
1466
1468
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1467
- source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1468
- effective?: "unknown" | "api_key" | "local_session" | null | undefined;
1469
- profile_id?: string | null | undefined;
1470
1469
  harness_id?: string | null | undefined;
1471
1470
  attempt_id?: string | null | undefined;
1471
+ profile_id?: string | null | undefined;
1472
1472
  model_mismatch?: {
1473
1473
  requested: string;
1474
1474
  observed: string;
@@ -1491,119 +1491,491 @@ export declare const RunTelemetry: z.ZodObject<{
1491
1491
  eligible: z.ZodBoolean;
1492
1492
  }, "strip", z.ZodTypeAny, {
1493
1493
  harness_id: string;
1494
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1494
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1495
1495
  incremental_cost_usd: number | null;
1496
1496
  eligible: boolean;
1497
1497
  }, {
1498
1498
  harness_id: string;
1499
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1500
- eligible: boolean;
1499
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1501
1500
  incremental_cost_usd?: number | null | undefined;
1501
+ eligible: boolean;
1502
1502
  }>, "many">>;
1503
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";
1504
1509
  entries: {
1505
1510
  harness_id: string;
1506
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1511
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1507
1512
  incremental_cost_usd: number | null;
1508
1513
  eligible: boolean;
1509
1514
  }[];
1510
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
1511
- goal: "auto" | "quality" | "economy";
1512
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
1513
- order: string[];
1514
- dropped: string[];
1515
1515
  }, {
1516
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
1517
- goal: "auto" | "quality" | "economy";
1518
- 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";
1519
1521
  entries?: {
1520
1522
  harness_id: string;
1521
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1522
- eligible: boolean;
1523
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1523
1524
  incremental_cost_usd?: number | null | undefined;
1525
+ eligible: boolean;
1524
1526
  }[] | undefined;
1525
- order?: string[] | undefined;
1526
- dropped?: string[] | undefined;
1527
1527
  }>>>;
1528
1528
  deep_scan_synthesis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1529
1529
  status: z.ZodEnum<["succeeded", "failed", "skipped"]>;
1530
1530
  reducer_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1531
1531
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1532
1532
  }, "strip", z.ZodTypeAny, {
1533
- status: "failed" | "succeeded" | "skipped";
1534
- reason: string | null;
1533
+ status: "failed" | "skipped" | "succeeded";
1535
1534
  reducer_attempt_id: string | null;
1535
+ reason: string | null;
1536
1536
  }, {
1537
- status: "failed" | "succeeded" | "skipped";
1538
- reason?: string | null | undefined;
1537
+ status: "failed" | "skipped" | "succeeded";
1539
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;
1540
1920
  }>>>;
1541
1921
  generated_at: z.ZodString;
1542
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;
1543
1933
  web: {
1544
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1545
- verification: "none" | "verified" | "dispatched";
1546
- target: string | null;
1547
- error_summary: string | null;
1548
1934
  required: boolean;
1549
- tool: string | null;
1935
+ policy: "auto" | "cached" | "live" | "off";
1936
+ effective_mode: "auto" | "cached" | "live" | "off";
1550
1937
  attempted: boolean;
1551
- policy: "off" | "auto" | "cached" | "live";
1552
- effective_mode: "off" | "auto" | "cached" | "live";
1553
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;
1554
1944
  };
1555
- mode: "ask" | "plan" | "agent";
1556
- schema_version: 2;
1557
- external_context_policy: "off" | "auto" | "cached" | "live";
1558
- run_id: string;
1559
- delegation: {
1560
- requested: boolean;
1561
- effective: boolean;
1562
- reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
1563
- remediation: string | null;
1564
- used: boolean;
1565
- } | null;
1566
- task_id: string;
1567
- web_required: boolean;
1568
1945
  attempts: {
1569
- profile_id: string | null;
1946
+ attempt_id: string;
1570
1947
  harness_id: string;
1571
- web: {
1572
- status: "failed" | "none" | "unverified" | "attempted" | "satisfied";
1573
- verification: "none" | "verified" | "dispatched";
1574
- target: string | null;
1575
- error_summary: string | null;
1576
- required: boolean;
1577
- tool: string | null;
1578
- attempted: boolean;
1579
- policy: "off" | "auto" | "cached" | "live";
1580
- effective_mode: "off" | "auto" | "cached" | "live";
1581
- satisfied: boolean;
1582
- };
1583
- usage: {
1584
- input_tokens: number | null;
1585
- output_tokens: number | null;
1586
- cached_input_tokens: number | null;
1587
- };
1588
1948
  observed_model: string | null;
1589
- 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;
1590
1952
  requested_model: string | null;
1591
- auth_mode: "unknown" | "api_key" | "local_session" | null;
1592
- auth_source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1593
1953
  request_requirements: {
1954
+ capability: "browser" | "delegation" | "path_deny";
1955
+ harness_id: string;
1956
+ eligible: boolean;
1594
1957
  requested: boolean;
1595
1958
  effective: boolean;
1596
- harness_id: string;
1597
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1959
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1598
1960
  evidence_refs: string[];
1599
- eligible: boolean;
1600
- capability: "browser" | "delegation" | "path_deny";
1601
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
+ };
1602
1974
  tool_errors: {
1603
- kind: "web" | "file" | "command" | "mcp" | "search" | "other";
1975
+ tool: string;
1976
+ kind: "command" | "file" | "mcp" | "other" | "search" | "web";
1604
1977
  target: string | null;
1605
1978
  summary: string;
1606
- tool: string;
1607
1979
  recovered: boolean;
1608
1980
  tool_use_id: string | null;
1609
1981
  }[];
@@ -1612,62 +1984,69 @@ export declare const RunTelemetry: z.ZodObject<{
1612
1984
  statusless_tool_results: number;
1613
1985
  dropped_events: number;
1614
1986
  transient_failures: {
1615
- kind: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout";
1616
- 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";
1617
1989
  retryable: boolean;
1618
- category: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error";
1990
+ retry_delay_ms: number | null;
1619
1991
  http_status: number | null;
1620
1992
  signal: string | null;
1621
1993
  adapter_code: string | null;
1622
1994
  }[];
1623
1995
  outcome: {
1624
- status: "failed" | "blocked" | "success" | "success_with_warnings";
1625
- gates_passed: boolean | null;
1626
1996
  deliverable_present: boolean;
1997
+ gates_passed: boolean | null;
1627
1998
  harness_errored: boolean;
1628
1999
  web_required_unsatisfied: boolean;
1629
2000
  delegation_belt_unavailable: boolean;
1630
2001
  tool_warnings_count: number;
2002
+ status: "blocked" | "failed" | "success" | "success_with_warnings";
1631
2003
  work_state?: {
1632
- source: "constrained" | "validated" | "absent";
1633
- state: "completed" | "needs_input" | "incomplete" | "unverified";
2004
+ state: "completed" | "incomplete" | "needs_input" | "unverified";
2005
+ source: "absent" | "constrained" | "validated";
1634
2006
  required_inputs?: {
1635
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1636
- description: string;
2007
+ kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
1637
2008
  locator: string | null;
2009
+ description: string;
1638
2010
  }[] | undefined;
1639
2011
  } | undefined;
1640
2012
  };
1641
- browser?: {
1642
- failed: boolean;
2013
+ delegation_belt?: {
1643
2014
  requested: boolean;
1644
- attempted: boolean;
1645
- satisfied: boolean;
1646
2015
  server_name: string | null;
1647
- unused: boolean;
1648
- } | undefined;
1649
- delegation_belt?: {
1650
2016
  ready: boolean;
1651
2017
  failed: boolean;
2018
+ tool_evidence: boolean;
2019
+ } | undefined;
2020
+ browser?: {
1652
2021
  requested: boolean;
1653
2022
  server_name: string | null;
1654
- tool_evidence: boolean;
2023
+ attempted: boolean;
2024
+ satisfied: boolean;
2025
+ failed: boolean;
2026
+ unused: boolean;
1655
2027
  } | undefined;
2028
+ usage: {
2029
+ input_tokens: number | null;
2030
+ output_tokens: number | null;
2031
+ cached_input_tokens: number | null;
2032
+ };
1656
2033
  }[];
1657
- generated_at: string;
1658
2034
  request_requirements: {
2035
+ capability: "browser" | "delegation" | "path_deny";
2036
+ harness_id: string;
2037
+ eligible: boolean;
1659
2038
  requested: boolean;
1660
2039
  effective: boolean;
1661
- harness_id: string;
1662
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
2040
+ reason: "access_profile_incompatible" | "effective" | "manifest_unsupported" | "not_requested" | "postdiff_only" | "runtime_unavailable" | "web_policy_off";
1663
2041
  evidence_refs: string[];
1664
- eligible: boolean;
1665
- capability: "browser" | "delegation" | "path_deny";
1666
2042
  }[];
1667
- requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1668
- effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1669
- effective_web_mode: "off" | "auto" | "cached" | "live";
1670
- 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;
1671
2050
  tool_warnings_total: number;
1672
2051
  usage_totals: {
1673
2052
  input_tokens: number | null;
@@ -1675,113 +2054,166 @@ export declare const RunTelemetry: z.ZodObject<{
1675
2054
  cached_input_tokens: number | null;
1676
2055
  };
1677
2056
  auth_route: {
1678
- source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
1679
- requested: "auto" | "subscription" | "api_key";
1680
- effective: "unknown" | "api_key" | "local_session" | null;
1681
- profile_id: string | null;
1682
- 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;
1683
2060
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
2061
+ harness_id: string | null;
1684
2062
  attempt_id: string | null;
2063
+ profile_id: string | null;
1685
2064
  model_mismatch: {
1686
2065
  requested: string;
1687
2066
  observed: string;
1688
2067
  } | null;
1689
2068
  } | null;
1690
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";
1691
2075
  entries: {
1692
2076
  harness_id: string;
1693
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
2077
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1694
2078
  incremental_cost_usd: number | null;
1695
2079
  eligible: boolean;
1696
2080
  }[];
1697
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
1698
- goal: "auto" | "quality" | "economy";
1699
- paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
1700
- order: string[];
1701
- dropped: string[];
1702
2081
  } | null;
1703
2082
  deep_scan_synthesis: {
1704
- status: "failed" | "succeeded" | "skipped";
1705
- reason: string | null;
2083
+ status: "failed" | "skipped" | "succeeded";
1706
2084
  reducer_attempt_id: string | null;
2085
+ reason: string | null;
1707
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;
1708
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;
1709
2171
  web: {
1710
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1711
- verification?: "none" | "verified" | "dispatched" | undefined;
1712
- target?: string | null | undefined;
1713
- error_summary?: string | null | undefined;
1714
2172
  required?: boolean | undefined;
1715
- tool?: string | null | undefined;
2173
+ policy?: "auto" | "cached" | "live" | "off" | undefined;
2174
+ effective_mode?: "auto" | "cached" | "live" | "off" | undefined;
1716
2175
  attempted?: boolean | undefined;
1717
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1718
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1719
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;
1720
2182
  };
1721
- mode: "ask" | "plan" | "agent";
1722
- schema_version: 2;
1723
- external_context_policy: "off" | "auto" | "cached" | "live";
1724
- run_id: string;
1725
- task_id: string;
1726
- generated_at: string;
1727
- requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1728
- effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1729
- effective_web_mode: "off" | "auto" | "cached" | "live";
1730
- delegation?: {
1731
- requested?: boolean | undefined;
1732
- effective?: boolean | undefined;
1733
- reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
1734
- remediation?: string | null | undefined;
1735
- used?: boolean | undefined;
1736
- } | null | undefined;
1737
- web_required?: boolean | undefined;
1738
2183
  attempts?: {
1739
- harness_id: string;
1740
- web: {
1741
- status?: "failed" | "none" | "unverified" | "attempted" | "satisfied" | undefined;
1742
- verification?: "none" | "verified" | "dispatched" | undefined;
1743
- target?: string | null | undefined;
1744
- error_summary?: string | null | undefined;
1745
- required?: boolean | undefined;
1746
- tool?: string | null | undefined;
1747
- attempted?: boolean | undefined;
1748
- policy?: "off" | "auto" | "cached" | "live" | undefined;
1749
- effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1750
- satisfied?: boolean | undefined;
1751
- };
1752
2184
  attempt_id: string;
1753
- profile_id?: string | null | undefined;
1754
- browser?: {
1755
- failed?: boolean | undefined;
1756
- requested?: boolean | undefined;
1757
- attempted?: boolean | undefined;
1758
- satisfied?: boolean | undefined;
1759
- server_name?: string | null | undefined;
1760
- unused?: boolean | undefined;
1761
- } | undefined;
1762
- usage?: {
1763
- input_tokens?: number | null | undefined;
1764
- output_tokens?: number | null | undefined;
1765
- cached_input_tokens?: number | null | undefined;
1766
- } | undefined;
2185
+ harness_id: string;
1767
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;
1768
2190
  requested_model?: string | null | undefined;
1769
- auth_mode?: "unknown" | "api_key" | "local_session" | null | undefined;
1770
- auth_source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1771
2191
  request_requirements?: {
1772
- requested: boolean;
1773
- effective: boolean;
2192
+ capability: "browser" | "delegation" | "path_deny";
1774
2193
  harness_id: string;
1775
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1776
2194
  eligible: boolean;
1777
- capability: "browser" | "delegation" | "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";
1778
2198
  evidence_refs?: string[] | undefined;
1779
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
+ };
1780
2212
  tool_errors?: {
1781
- summary: string;
1782
2213
  tool: string;
1783
- kind?: "web" | "file" | "command" | "mcp" | "search" | "other" | undefined;
2214
+ kind?: "command" | "file" | "mcp" | "other" | "search" | "web" | undefined;
1784
2215
  target?: string | null | undefined;
2216
+ summary: string;
1785
2217
  recovered?: boolean | undefined;
1786
2218
  tool_use_id?: string | null | undefined;
1787
2219
  }[] | undefined;
@@ -1790,50 +2222,69 @@ export declare const RunTelemetry: z.ZodObject<{
1790
2222
  statusless_tool_results?: number | undefined;
1791
2223
  dropped_events?: number | undefined;
1792
2224
  transient_failures?: {
1793
- kind?: "unknown" | "network" | "stream_disconnect" | "service_unavailable" | "timeout" | undefined;
1794
- 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;
1795
2227
  retryable?: boolean | undefined;
1796
- category?: "rate_limited" | "timeout" | "config_error" | "auth_failed" | "capability_refused" | "process_crash" | "unknown_harness_error" | undefined;
2228
+ retry_delay_ms?: number | null | undefined;
1797
2229
  http_status?: number | null | undefined;
1798
2230
  signal?: string | null | undefined;
1799
2231
  adapter_code?: string | null | undefined;
1800
2232
  }[] | undefined;
1801
2233
  outcome?: {
1802
- status?: "failed" | "blocked" | "success" | "success_with_warnings" | undefined;
1803
- work_state?: {
1804
- source: "constrained" | "validated" | "absent";
1805
- state: "completed" | "needs_input" | "incomplete" | "unverified";
1806
- required_inputs?: {
1807
- kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
1808
- description: string;
1809
- locator?: string | null | undefined;
1810
- }[] | undefined;
1811
- } | undefined;
1812
- gates_passed?: boolean | null | undefined;
1813
2234
  deliverable_present?: boolean | undefined;
2235
+ gates_passed?: boolean | null | undefined;
1814
2236
  harness_errored?: boolean | undefined;
1815
2237
  web_required_unsatisfied?: boolean | undefined;
1816
2238
  delegation_belt_unavailable?: boolean | undefined;
1817
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;
1818
2250
  } | undefined;
1819
2251
  delegation_belt?: {
2252
+ requested?: boolean | undefined;
2253
+ server_name?: string | null | undefined;
1820
2254
  ready?: boolean | undefined;
1821
2255
  failed?: boolean | undefined;
2256
+ tool_evidence?: boolean | undefined;
2257
+ } | undefined;
2258
+ browser?: {
1822
2259
  requested?: boolean | undefined;
1823
2260
  server_name?: string | null | undefined;
1824
- 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;
1825
2270
  } | undefined;
1826
2271
  }[] | undefined;
1827
2272
  request_requirements?: {
1828
- requested: boolean;
1829
- effective: boolean;
2273
+ capability: "browser" | "delegation" | "path_deny";
1830
2274
  harness_id: string;
1831
- reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
1832
2275
  eligible: boolean;
1833
- capability: "browser" | "delegation" | "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";
1834
2279
  evidence_refs?: string[] | undefined;
1835
2280
  }[] | undefined;
1836
- 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;
1837
2288
  tool_warnings_total?: number | undefined;
1838
2289
  usage_totals?: {
1839
2290
  input_tokens?: number | null | undefined;
@@ -1841,36 +2292,109 @@ export declare const RunTelemetry: z.ZodObject<{
1841
2292
  cached_input_tokens?: number | null | undefined;
1842
2293
  } | undefined;
1843
2294
  auth_route?: {
1844
- 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;
1845
2298
  reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
1846
- source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
1847
- effective?: "unknown" | "api_key" | "local_session" | null | undefined;
1848
- profile_id?: string | null | undefined;
1849
2299
  harness_id?: string | null | undefined;
1850
2300
  attempt_id?: string | null | undefined;
2301
+ profile_id?: string | null | undefined;
1851
2302
  model_mismatch?: {
1852
2303
  requested: string;
1853
2304
  observed: string;
1854
2305
  } | null | undefined;
1855
2306
  } | null | undefined;
1856
2307
  routing_rationale?: {
1857
- reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
1858
- goal: "auto" | "quality" | "economy";
1859
- 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";
1860
2313
  entries?: {
1861
2314
  harness_id: string;
1862
- billing_knowledge: "unknown" | "proven_zero" | "subscription_entitlement" | "metered";
1863
- eligible: boolean;
2315
+ billing_knowledge: "metered" | "proven_zero" | "subscription_entitlement" | "unknown";
1864
2316
  incremental_cost_usd?: number | null | undefined;
2317
+ eligible: boolean;
1865
2318
  }[] | undefined;
1866
- order?: string[] | undefined;
1867
- dropped?: string[] | undefined;
1868
2319
  } | null | undefined;
1869
2320
  deep_scan_synthesis?: {
1870
- status: "failed" | "succeeded" | "skipped";
1871
- reason?: string | null | undefined;
2321
+ status: "failed" | "skipped" | "succeeded";
1872
2322
  reducer_attempt_id?: string | null | undefined;
2323
+ reason?: string | null | undefined;
1873
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;
2396
+ } | null | undefined;
2397
+ generated_at: string;
1874
2398
  }>;
1875
2399
  export type RunTelemetry = z.infer<typeof RunTelemetry>;
1876
2400
  //# sourceMappingURL=telemetry.d.ts.map