@claudexor/schema 5.0.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-routing-evidence.d.ts +256 -0
- package/dist/account-routing-evidence.d.ts.map +1 -1
- package/dist/account-routing-evidence.js +27 -2
- package/dist/account-routing-evidence.js.map +1 -1
- package/dist/agent-capabilities.d.ts +3 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +6 -2
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/attachment.d.ts +103 -6
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +32 -6
- package/dist/attachment.js.map +1 -1
- package/dist/browser-evidence.d.ts +85 -0
- package/dist/browser-evidence.d.ts.map +1 -0
- package/dist/browser-evidence.js +72 -0
- package/dist/browser-evidence.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/control-gc.d.ts +30 -0
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +28 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-operation-responses.d.ts +438 -36
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +11 -2
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-process-scope.d.ts +34 -0
- package/dist/control-process-scope.d.ts.map +1 -1
- package/dist/control-process-scope.js +13 -0
- package/dist/control-process-scope.js.map +1 -1
- package/dist/control-run-detail.d.ts +785 -89
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-failure.d.ts +29 -6
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +28 -3
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control-trust.d.ts +8 -0
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +4 -0
- package/dist/control-trust.js.map +1 -1
- package/dist/control-web-evidence.d.ts +125 -0
- package/dist/control-web-evidence.d.ts.map +1 -0
- package/dist/control-web-evidence.js +109 -0
- package/dist/control-web-evidence.js.map +1 -0
- package/dist/control.d.ts +292 -98
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +43 -49
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +4 -3
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +4 -3
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +9 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -0
- package/dist/decision.js.map +1 -1
- package/dist/deferred-message.d.ts +646 -0
- package/dist/deferred-message.d.ts.map +1 -1
- package/dist/deferred-message.js +16 -2
- package/dist/deferred-message.js.map +1 -1
- package/dist/events.d.ts +6 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +1 -0
- package/dist/events.js.map +1 -1
- package/dist/harness-confinement.js +1 -1
- package/dist/harness-confinement.js.map +1 -1
- package/dist/harness-input.d.ts +12 -0
- package/dist/harness-input.d.ts.map +1 -1
- package/dist/harness-input.js +11 -1
- package/dist/harness-input.js.map +1 -1
- package/dist/harness-interaction.d.ts +20 -0
- package/dist/harness-interaction.d.ts.map +1 -1
- package/dist/harness-interaction.js +36 -0
- package/dist/harness-interaction.js.map +1 -1
- package/dist/harness.d.ts +95 -19
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +16 -15
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +363 -50
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-wait.d.ts +126 -0
- package/dist/mcp-run-wait.d.ts.map +1 -1
- package/dist/operation.d.ts +1 -1
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/process-scope.d.ts +154 -0
- package/dist/process-scope.d.ts.map +1 -1
- package/dist/process-scope.js +16 -1
- package/dist/process-scope.js.map +1 -1
- package/dist/quota.d.ts +14 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +14 -0
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +3 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +4 -0
- package/dist/rate-limit.js.map +1 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +11 -5
- package/dist/raw.js.map +1 -1
- package/dist/route-controls.d.ts +49 -0
- package/dist/route-controls.d.ts.map +1 -0
- package/dist/route-controls.js +53 -0
- package/dist/route-controls.js.map +1 -0
- package/dist/route-health.d.ts +23 -23
- package/dist/route-health.js +1 -1
- package/dist/route-health.js.map +1 -1
- package/dist/run-continuation.d.ts +6 -6
- package/dist/run-continuity.d.ts +7 -7
- package/dist/run-continuity.d.ts.map +1 -1
- package/dist/run-continuity.js +2 -1
- package/dist/run-continuity.js.map +1 -1
- package/dist/run-facts.d.ts +5 -5
- package/dist/run-facts.js +1 -1
- package/dist/run-facts.js.map +1 -1
- package/dist/status-projection.d.ts +3 -2
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +5 -2
- package/dist/status-projection.js.map +1 -1
- package/dist/task-group.d.ts +3 -0
- package/dist/task-group.d.ts.map +1 -1
- package/dist/task-group.js +11 -1
- package/dist/task-group.js.map +1 -1
- package/dist/task.d.ts +2 -2
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +4 -4
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +602 -117
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +17 -88
- package/dist/telemetry.js.map +1 -1
- package/dist/thread-export.d.ts +847 -0
- package/dist/thread-export.d.ts.map +1 -0
- package/dist/thread-export.js +238 -0
- package/dist/thread-export.js.map +1 -0
- package/dist/thread-history.d.ts +248 -132
- package/dist/thread-history.d.ts.map +1 -1
- package/dist/thread.d.ts +72 -6
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +19 -3
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +172 -21
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +114 -29
- package/dist/tool-ref.js.map +1 -1
- package/dist/web-evidence.d.ts +91 -0
- package/dist/web-evidence.d.ts.map +1 -0
- package/dist/web-evidence.js +77 -0
- package/dist/web-evidence.js.map +1 -0
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +20 -2
- package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +2 -2
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +2 -2
- package/generated/ControlGcLastResponse.schema.json +22 -0
- package/generated/ControlGcReceipt.schema.json +13 -1
- package/generated/ControlHarnessListResponse.schema.json +2 -2
- package/generated/ControlQueuedRunInfo.schema.json +1 -1
- package/generated/ControlResource.schema.json +5 -0
- package/generated/ControlResourceRelease.schema.json +44 -0
- package/generated/ControlResourceReleaseRequest.schema.json +27 -0
- package/generated/ControlRetainedEnvelope.schema.json +2 -1
- package/generated/ControlRouteHealth.schema.json +13 -1
- package/generated/ControlRunControlResponse.schema.json +41 -3
- package/generated/ControlRunDecisionRequest.schema.json +8 -2
- package/generated/ControlRunDecisionResponse.schema.json +4 -3
- package/generated/ControlRunDetail.schema.json +337 -10
- package/generated/ControlRunListResponse.schema.json +296 -7
- package/generated/ControlRunRetryResponse.schema.json +1 -1
- package/generated/ControlRunStartInfo.schema.json +1 -1
- package/generated/ControlRunStartResponse.schema.json +2 -2
- package/generated/ControlRunSummary.schema.json +296 -7
- package/generated/ControlThreadDetail.schema.json +1 -0
- package/generated/ControlThreadTurnResponse.schema.json +9 -0
- package/generated/ControlTrustListResponse.schema.json +8 -0
- package/generated/ControlTrustState.schema.json +8 -0
- package/generated/ControlUploadImport.schema.json +12 -2
- package/generated/ControlUploadImportRequest.schema.json +5 -0
- package/generated/DecisionRecord.schema.json +1 -0
- package/generated/DeferredMessageDetail.schema.json +43 -7
- package/generated/DeferredMessageProjection.schema.json +41 -3
- package/generated/DeferredMessageReadResult.schema.json +42 -4
- package/generated/DeferredMessageReceipt.schema.json +41 -3
- package/generated/EnvelopeCustody.schema.json +3 -2
- package/generated/GlobalConfig.schema.json +1 -1
- package/generated/HarnessEvent.schema.json +140 -4
- package/generated/HarnessManifest.schema.json +2 -2
- package/generated/HarnessStatusDto.schema.json +2 -2
- package/generated/McpAccountsToolResult.schema.json +62 -2
- package/generated/McpRunHandleResult.schema.json +90 -6
- package/generated/McpRunToolResult.schema.json +89 -6
- package/generated/McpRunWaitResult.schema.json +41 -3
- package/generated/McpThreadTurnResult.schema.json +9 -0
- package/generated/RawContextPacket.schema.json +6 -4
- package/generated/RawGitPatchEnvelope.schema.json +1 -1
- package/generated/RoutePoolDegradedPayload.schema.json +2 -1
- package/generated/RunContinuityReceipt.schema.json +2 -1
- package/generated/RunFacts.schema.json +1 -0
- package/generated/RunFailure.schema.json +46 -2
- package/generated/RunResumable.schema.json +2 -1
- package/generated/RunTelemetry.schema.json +288 -7
- package/generated/TaskContract.schema.json +3 -3
- package/generated/TaskGroupReceipt.schema.json +1 -1
- package/generated/Thread.schema.json +41 -0
- package/generated/ThreadExportManifest.schema.json +461 -0
- package/generated/ThreadExportReceipt.schema.json +94 -0
- package/generated/ThreadHistoryPage.schema.json +47 -2
- package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
- package/generated/ThreadRetireRequest.schema.json +41 -0
- package/generated/ThreadRetirement.schema.json +175 -0
- package/generated/ThreadTurn.schema.json +1 -1
- package/generated/WorkspaceEnvelope.schema.json +1 -1
- package/package.json +2 -2
package/dist/mcp-run-result.d.ts
CHANGED
|
@@ -143,6 +143,76 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
143
143
|
context?: Record<string, unknown> | undefined;
|
|
144
144
|
} | undefined;
|
|
145
145
|
}>>;
|
|
146
|
+
resumed: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
from: z.ZodObject<{
|
|
148
|
+
code: z.ZodEnum<["predecessor_failed", "predecessor_cancelled", "predecessor_interrupted", "predecessor_needs_input", "predecessor_incomplete", "predecessor_facts_unavailable", "predecessor_work_unverified", "predecessor_checks_failed", "predecessor_review_blocked", "predecessor_output_unavailable", "settlement_unknown", "stop_requested", "shutdown", "restart_requires_controller", "partition_retired", "admission_refused"]>;
|
|
149
|
+
problem: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
message: z.ZodString;
|
|
151
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
required_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
154
|
+
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
}, "strict", z.ZodTypeAny, {
|
|
156
|
+
message: string;
|
|
157
|
+
code: string | null;
|
|
158
|
+
retryable: boolean;
|
|
159
|
+
required_actions: string[];
|
|
160
|
+
context: Record<string, unknown>;
|
|
161
|
+
}, {
|
|
162
|
+
message: string;
|
|
163
|
+
code?: string | null | undefined;
|
|
164
|
+
retryable?: boolean | undefined;
|
|
165
|
+
required_actions?: string[] | undefined;
|
|
166
|
+
context?: Record<string, unknown> | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
}, "strict", z.ZodTypeAny, {
|
|
169
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
170
|
+
problem?: {
|
|
171
|
+
message: string;
|
|
172
|
+
code: string | null;
|
|
173
|
+
retryable: boolean;
|
|
174
|
+
required_actions: string[];
|
|
175
|
+
context: Record<string, unknown>;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
179
|
+
problem?: {
|
|
180
|
+
message: string;
|
|
181
|
+
code?: string | null | undefined;
|
|
182
|
+
retryable?: boolean | undefined;
|
|
183
|
+
required_actions?: string[] | undefined;
|
|
184
|
+
context?: Record<string, unknown> | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}>;
|
|
187
|
+
reason: z.ZodLiteral<"process_scope_settled">;
|
|
188
|
+
at: z.ZodString;
|
|
189
|
+
}, "strict", z.ZodTypeAny, {
|
|
190
|
+
from: {
|
|
191
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
192
|
+
problem?: {
|
|
193
|
+
message: string;
|
|
194
|
+
code: string | null;
|
|
195
|
+
retryable: boolean;
|
|
196
|
+
required_actions: string[];
|
|
197
|
+
context: Record<string, unknown>;
|
|
198
|
+
} | undefined;
|
|
199
|
+
};
|
|
200
|
+
reason: "process_scope_settled";
|
|
201
|
+
at: string;
|
|
202
|
+
}, {
|
|
203
|
+
from: {
|
|
204
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
205
|
+
problem?: {
|
|
206
|
+
message: string;
|
|
207
|
+
code?: string | null | undefined;
|
|
208
|
+
retryable?: boolean | undefined;
|
|
209
|
+
required_actions?: string[] | undefined;
|
|
210
|
+
context?: Record<string, unknown> | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
};
|
|
213
|
+
reason: "process_scope_settled";
|
|
214
|
+
at: string;
|
|
215
|
+
}>>;
|
|
146
216
|
dispatchedRevision: z.ZodNullable<z.ZodNumber>;
|
|
147
217
|
successorJobId: z.ZodNullable<z.ZodString>;
|
|
148
218
|
successorRunId: z.ZodNullable<z.ZodString>;
|
|
@@ -163,6 +233,20 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
163
233
|
context: Record<string, unknown>;
|
|
164
234
|
} | undefined;
|
|
165
235
|
} | null;
|
|
236
|
+
resumed?: {
|
|
237
|
+
from: {
|
|
238
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
239
|
+
problem?: {
|
|
240
|
+
message: string;
|
|
241
|
+
code: string | null;
|
|
242
|
+
retryable: boolean;
|
|
243
|
+
required_actions: string[];
|
|
244
|
+
context: Record<string, unknown>;
|
|
245
|
+
} | undefined;
|
|
246
|
+
};
|
|
247
|
+
reason: "process_scope_settled";
|
|
248
|
+
at: string;
|
|
249
|
+
} | undefined;
|
|
166
250
|
dispatchedRevision: number | null;
|
|
167
251
|
successorJobId: string | null;
|
|
168
252
|
successorRunId: string | null;
|
|
@@ -183,6 +267,20 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
183
267
|
context?: Record<string, unknown> | undefined;
|
|
184
268
|
} | undefined;
|
|
185
269
|
} | null;
|
|
270
|
+
resumed?: {
|
|
271
|
+
from: {
|
|
272
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
273
|
+
problem?: {
|
|
274
|
+
message: string;
|
|
275
|
+
code?: string | null | undefined;
|
|
276
|
+
retryable?: boolean | undefined;
|
|
277
|
+
required_actions?: string[] | undefined;
|
|
278
|
+
context?: Record<string, unknown> | undefined;
|
|
279
|
+
} | undefined;
|
|
280
|
+
};
|
|
281
|
+
reason: "process_scope_settled";
|
|
282
|
+
at: string;
|
|
283
|
+
} | undefined;
|
|
186
284
|
dispatchedRevision: number | null;
|
|
187
285
|
successorJobId: string | null;
|
|
188
286
|
successorRunId: string | null;
|
|
@@ -317,7 +415,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
317
415
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
318
416
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
319
417
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
418
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
|
|
321
419
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
322
420
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
323
421
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -360,7 +458,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
360
458
|
checks: "failed" | "not_configured" | "passed";
|
|
361
459
|
review: "approved" | "blocked" | "not_run";
|
|
362
460
|
review_requested?: boolean | undefined;
|
|
363
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
461
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
364
462
|
work_state?: {
|
|
365
463
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
366
464
|
source: "absent" | "constrained" | "validated";
|
|
@@ -377,7 +475,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
377
475
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
378
476
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
379
477
|
review_requested?: boolean | undefined;
|
|
380
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
478
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
381
479
|
work_state?: {
|
|
382
480
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
383
481
|
source: "absent" | "constrained" | "validated";
|
|
@@ -562,7 +660,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
562
660
|
checks: "failed" | "not_configured" | "passed";
|
|
563
661
|
review: "approved" | "blocked" | "not_run";
|
|
564
662
|
review_requested?: boolean | undefined;
|
|
565
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
663
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
566
664
|
work_state?: {
|
|
567
665
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
568
666
|
source: "absent" | "constrained" | "validated";
|
|
@@ -635,7 +733,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
635
733
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
636
734
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
637
735
|
review_requested?: boolean | undefined;
|
|
638
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
736
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
639
737
|
work_state?: {
|
|
640
738
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
641
739
|
source: "absent" | "constrained" | "validated";
|
|
@@ -704,7 +802,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
704
802
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
705
803
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
706
804
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
707
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
805
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
|
|
708
806
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
709
807
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
710
808
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -747,7 +845,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
747
845
|
checks: "failed" | "not_configured" | "passed";
|
|
748
846
|
review: "approved" | "blocked" | "not_run";
|
|
749
847
|
review_requested?: boolean | undefined;
|
|
750
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
848
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
751
849
|
work_state?: {
|
|
752
850
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
753
851
|
source: "absent" | "constrained" | "validated";
|
|
@@ -764,7 +862,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
764
862
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
765
863
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
766
864
|
review_requested?: boolean | undefined;
|
|
767
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
865
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
768
866
|
work_state?: {
|
|
769
867
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
770
868
|
source: "absent" | "constrained" | "validated";
|
|
@@ -835,6 +933,18 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
835
933
|
native_code: "grok_credential_source_unconfirmed";
|
|
836
934
|
source: "grok_init";
|
|
837
935
|
reported_source: string;
|
|
936
|
+
}>, z.ZodObject<{
|
|
937
|
+
kind: z.ZodLiteral<"vendor_not_retryable">;
|
|
938
|
+
source: z.ZodLiteral<"agy_stderr">;
|
|
939
|
+
error_id: z.ZodNullable<z.ZodString>;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
kind: "vendor_not_retryable";
|
|
942
|
+
source: "agy_stderr";
|
|
943
|
+
error_id: string | null;
|
|
944
|
+
}, {
|
|
945
|
+
kind: "vendor_not_retryable";
|
|
946
|
+
source: "agy_stderr";
|
|
947
|
+
error_id: string | null;
|
|
838
948
|
}>]>>;
|
|
839
949
|
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
840
950
|
model: z.ZodString;
|
|
@@ -978,7 +1088,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
978
1088
|
}>>;
|
|
979
1089
|
phase: z.ZodDefault<z.ZodString>;
|
|
980
1090
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
981
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
1091
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "model_selection_required", "raw_patch_requires_isolation", "raw_patch_missing_evidence", "raw_patch_digest_mismatch", "raw_patch_base_mismatch", "raw_patch_path_traversal", "raw_patch_outside_scope", "raw_patch_stale_preimage", "raw_patch_binary_unsupported", "raw_patch_truncated", "raw_patch_apply_failed", "vendor_cli_too_old", "credential_source_unconfirmed", "vendor_not_retryable", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
982
1092
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
983
1093
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
984
1094
|
safeMessage: z.ZodString;
|
|
@@ -1094,6 +1204,10 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1094
1204
|
native_code: "grok_credential_source_unconfirmed";
|
|
1095
1205
|
source: "grok_init";
|
|
1096
1206
|
reported_source: string;
|
|
1207
|
+
} | {
|
|
1208
|
+
kind: "vendor_not_retryable";
|
|
1209
|
+
source: "agy_stderr";
|
|
1210
|
+
error_id: string | null;
|
|
1097
1211
|
} | undefined;
|
|
1098
1212
|
rawContextShortfall?: {
|
|
1099
1213
|
model: string;
|
|
@@ -1133,7 +1247,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1133
1247
|
} | undefined;
|
|
1134
1248
|
phase: string;
|
|
1135
1249
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1136
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1250
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
|
|
1137
1251
|
harnessId: string | null;
|
|
1138
1252
|
attemptId: string | null;
|
|
1139
1253
|
safeMessage: string;
|
|
@@ -1191,6 +1305,10 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1191
1305
|
native_code: "grok_credential_source_unconfirmed";
|
|
1192
1306
|
source: "grok_init";
|
|
1193
1307
|
reported_source: string;
|
|
1308
|
+
} | {
|
|
1309
|
+
kind: "vendor_not_retryable";
|
|
1310
|
+
source: "agy_stderr";
|
|
1311
|
+
error_id: string | null;
|
|
1194
1312
|
} | undefined;
|
|
1195
1313
|
rawContextShortfall?: {
|
|
1196
1314
|
model: string;
|
|
@@ -1230,7 +1348,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1230
1348
|
} | undefined;
|
|
1231
1349
|
phase?: string | undefined;
|
|
1232
1350
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1233
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1351
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
|
|
1234
1352
|
harnessId?: string | null | undefined;
|
|
1235
1353
|
attemptId?: string | null | undefined;
|
|
1236
1354
|
safeMessage: string;
|
|
@@ -1432,6 +1550,20 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1432
1550
|
context: Record<string, unknown>;
|
|
1433
1551
|
} | undefined;
|
|
1434
1552
|
} | null;
|
|
1553
|
+
resumed?: {
|
|
1554
|
+
from: {
|
|
1555
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
1556
|
+
problem?: {
|
|
1557
|
+
message: string;
|
|
1558
|
+
code: string | null;
|
|
1559
|
+
retryable: boolean;
|
|
1560
|
+
required_actions: string[];
|
|
1561
|
+
context: Record<string, unknown>;
|
|
1562
|
+
} | undefined;
|
|
1563
|
+
};
|
|
1564
|
+
reason: "process_scope_settled";
|
|
1565
|
+
at: string;
|
|
1566
|
+
} | undefined;
|
|
1435
1567
|
dispatchedRevision: number | null;
|
|
1436
1568
|
successorJobId: string | null;
|
|
1437
1569
|
successorRunId: string | null;
|
|
@@ -1478,7 +1610,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1478
1610
|
checks: "failed" | "not_configured" | "passed";
|
|
1479
1611
|
review: "approved" | "blocked" | "not_run";
|
|
1480
1612
|
review_requested?: boolean | undefined;
|
|
1481
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1613
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1482
1614
|
work_state?: {
|
|
1483
1615
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1484
1616
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1547,7 +1679,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1547
1679
|
checks: "failed" | "not_configured" | "passed";
|
|
1548
1680
|
review: "approved" | "blocked" | "not_run";
|
|
1549
1681
|
review_requested?: boolean | undefined;
|
|
1550
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1682
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1551
1683
|
work_state?: {
|
|
1552
1684
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1553
1685
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1579,6 +1711,10 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1579
1711
|
native_code: "grok_credential_source_unconfirmed";
|
|
1580
1712
|
source: "grok_init";
|
|
1581
1713
|
reported_source: string;
|
|
1714
|
+
} | {
|
|
1715
|
+
kind: "vendor_not_retryable";
|
|
1716
|
+
source: "agy_stderr";
|
|
1717
|
+
error_id: string | null;
|
|
1582
1718
|
} | undefined;
|
|
1583
1719
|
rawContextShortfall?: {
|
|
1584
1720
|
model: string;
|
|
@@ -1618,7 +1754,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1618
1754
|
} | undefined;
|
|
1619
1755
|
phase: string;
|
|
1620
1756
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1621
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1757
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
|
|
1622
1758
|
harnessId: string | null;
|
|
1623
1759
|
attemptId: string | null;
|
|
1624
1760
|
safeMessage: string;
|
|
@@ -1721,6 +1857,20 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1721
1857
|
context?: Record<string, unknown> | undefined;
|
|
1722
1858
|
} | undefined;
|
|
1723
1859
|
} | null;
|
|
1860
|
+
resumed?: {
|
|
1861
|
+
from: {
|
|
1862
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
1863
|
+
problem?: {
|
|
1864
|
+
message: string;
|
|
1865
|
+
code?: string | null | undefined;
|
|
1866
|
+
retryable?: boolean | undefined;
|
|
1867
|
+
required_actions?: string[] | undefined;
|
|
1868
|
+
context?: Record<string, unknown> | undefined;
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
};
|
|
1871
|
+
reason: "process_scope_settled";
|
|
1872
|
+
at: string;
|
|
1873
|
+
} | undefined;
|
|
1724
1874
|
dispatchedRevision: number | null;
|
|
1725
1875
|
successorJobId: string | null;
|
|
1726
1876
|
successorRunId: string | null;
|
|
@@ -1767,7 +1917,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1767
1917
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1768
1918
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1769
1919
|
review_requested?: boolean | undefined;
|
|
1770
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1920
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1771
1921
|
work_state?: {
|
|
1772
1922
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1773
1923
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1836,7 +1986,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1836
1986
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1837
1987
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1838
1988
|
review_requested?: boolean | undefined;
|
|
1839
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1989
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1840
1990
|
work_state?: {
|
|
1841
1991
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1842
1992
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1868,6 +2018,10 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1868
2018
|
native_code: "grok_credential_source_unconfirmed";
|
|
1869
2019
|
source: "grok_init";
|
|
1870
2020
|
reported_source: string;
|
|
2021
|
+
} | {
|
|
2022
|
+
kind: "vendor_not_retryable";
|
|
2023
|
+
source: "agy_stderr";
|
|
2024
|
+
error_id: string | null;
|
|
1871
2025
|
} | undefined;
|
|
1872
2026
|
rawContextShortfall?: {
|
|
1873
2027
|
model: string;
|
|
@@ -1907,7 +2061,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
1907
2061
|
} | undefined;
|
|
1908
2062
|
phase?: string | undefined;
|
|
1909
2063
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1910
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
2064
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
|
|
1911
2065
|
harnessId?: string | null | undefined;
|
|
1912
2066
|
attemptId?: string | null | undefined;
|
|
1913
2067
|
safeMessage: string;
|
|
@@ -2047,6 +2201,76 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2047
2201
|
context?: Record<string, unknown> | undefined;
|
|
2048
2202
|
} | undefined;
|
|
2049
2203
|
}>>;
|
|
2204
|
+
resumed: z.ZodOptional<z.ZodObject<{
|
|
2205
|
+
from: z.ZodObject<{
|
|
2206
|
+
code: z.ZodEnum<["predecessor_failed", "predecessor_cancelled", "predecessor_interrupted", "predecessor_needs_input", "predecessor_incomplete", "predecessor_facts_unavailable", "predecessor_work_unverified", "predecessor_checks_failed", "predecessor_review_blocked", "predecessor_output_unavailable", "settlement_unknown", "stop_requested", "shutdown", "restart_requires_controller", "partition_retired", "admission_refused"]>;
|
|
2207
|
+
problem: z.ZodOptional<z.ZodObject<{
|
|
2208
|
+
message: z.ZodString;
|
|
2209
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2210
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
2211
|
+
required_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2212
|
+
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2213
|
+
}, "strict", z.ZodTypeAny, {
|
|
2214
|
+
message: string;
|
|
2215
|
+
code: string | null;
|
|
2216
|
+
retryable: boolean;
|
|
2217
|
+
required_actions: string[];
|
|
2218
|
+
context: Record<string, unknown>;
|
|
2219
|
+
}, {
|
|
2220
|
+
message: string;
|
|
2221
|
+
code?: string | null | undefined;
|
|
2222
|
+
retryable?: boolean | undefined;
|
|
2223
|
+
required_actions?: string[] | undefined;
|
|
2224
|
+
context?: Record<string, unknown> | undefined;
|
|
2225
|
+
}>>;
|
|
2226
|
+
}, "strict", z.ZodTypeAny, {
|
|
2227
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2228
|
+
problem?: {
|
|
2229
|
+
message: string;
|
|
2230
|
+
code: string | null;
|
|
2231
|
+
retryable: boolean;
|
|
2232
|
+
required_actions: string[];
|
|
2233
|
+
context: Record<string, unknown>;
|
|
2234
|
+
} | undefined;
|
|
2235
|
+
}, {
|
|
2236
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2237
|
+
problem?: {
|
|
2238
|
+
message: string;
|
|
2239
|
+
code?: string | null | undefined;
|
|
2240
|
+
retryable?: boolean | undefined;
|
|
2241
|
+
required_actions?: string[] | undefined;
|
|
2242
|
+
context?: Record<string, unknown> | undefined;
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
}>;
|
|
2245
|
+
reason: z.ZodLiteral<"process_scope_settled">;
|
|
2246
|
+
at: z.ZodString;
|
|
2247
|
+
}, "strict", z.ZodTypeAny, {
|
|
2248
|
+
from: {
|
|
2249
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2250
|
+
problem?: {
|
|
2251
|
+
message: string;
|
|
2252
|
+
code: string | null;
|
|
2253
|
+
retryable: boolean;
|
|
2254
|
+
required_actions: string[];
|
|
2255
|
+
context: Record<string, unknown>;
|
|
2256
|
+
} | undefined;
|
|
2257
|
+
};
|
|
2258
|
+
reason: "process_scope_settled";
|
|
2259
|
+
at: string;
|
|
2260
|
+
}, {
|
|
2261
|
+
from: {
|
|
2262
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2263
|
+
problem?: {
|
|
2264
|
+
message: string;
|
|
2265
|
+
code?: string | null | undefined;
|
|
2266
|
+
retryable?: boolean | undefined;
|
|
2267
|
+
required_actions?: string[] | undefined;
|
|
2268
|
+
context?: Record<string, unknown> | undefined;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
};
|
|
2271
|
+
reason: "process_scope_settled";
|
|
2272
|
+
at: string;
|
|
2273
|
+
}>>;
|
|
2050
2274
|
dispatchedRevision: z.ZodNullable<z.ZodNumber>;
|
|
2051
2275
|
successorJobId: z.ZodNullable<z.ZodString>;
|
|
2052
2276
|
successorRunId: z.ZodNullable<z.ZodString>;
|
|
@@ -2067,6 +2291,20 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2067
2291
|
context: Record<string, unknown>;
|
|
2068
2292
|
} | undefined;
|
|
2069
2293
|
} | null;
|
|
2294
|
+
resumed?: {
|
|
2295
|
+
from: {
|
|
2296
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2297
|
+
problem?: {
|
|
2298
|
+
message: string;
|
|
2299
|
+
code: string | null;
|
|
2300
|
+
retryable: boolean;
|
|
2301
|
+
required_actions: string[];
|
|
2302
|
+
context: Record<string, unknown>;
|
|
2303
|
+
} | undefined;
|
|
2304
|
+
};
|
|
2305
|
+
reason: "process_scope_settled";
|
|
2306
|
+
at: string;
|
|
2307
|
+
} | undefined;
|
|
2070
2308
|
dispatchedRevision: number | null;
|
|
2071
2309
|
successorJobId: string | null;
|
|
2072
2310
|
successorRunId: string | null;
|
|
@@ -2087,6 +2325,20 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2087
2325
|
context?: Record<string, unknown> | undefined;
|
|
2088
2326
|
} | undefined;
|
|
2089
2327
|
} | null;
|
|
2328
|
+
resumed?: {
|
|
2329
|
+
from: {
|
|
2330
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
2331
|
+
problem?: {
|
|
2332
|
+
message: string;
|
|
2333
|
+
code?: string | null | undefined;
|
|
2334
|
+
retryable?: boolean | undefined;
|
|
2335
|
+
required_actions?: string[] | undefined;
|
|
2336
|
+
context?: Record<string, unknown> | undefined;
|
|
2337
|
+
} | undefined;
|
|
2338
|
+
};
|
|
2339
|
+
reason: "process_scope_settled";
|
|
2340
|
+
at: string;
|
|
2341
|
+
} | undefined;
|
|
2090
2342
|
dispatchedRevision: number | null;
|
|
2091
2343
|
successorJobId: string | null;
|
|
2092
2344
|
successorRunId: string | null;
|
|
@@ -2220,7 +2472,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2220
2472
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2221
2473
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2222
2474
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2223
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2475
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
|
|
2224
2476
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2225
2477
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2226
2478
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2263,7 +2515,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2263
2515
|
checks: "failed" | "not_configured" | "passed";
|
|
2264
2516
|
review: "approved" | "blocked" | "not_run";
|
|
2265
2517
|
review_requested?: boolean | undefined;
|
|
2266
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2518
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2267
2519
|
work_state?: {
|
|
2268
2520
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2269
2521
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2280,7 +2532,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2280
2532
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2281
2533
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2282
2534
|
review_requested?: boolean | undefined;
|
|
2283
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2535
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2284
2536
|
work_state?: {
|
|
2285
2537
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2286
2538
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2465,7 +2717,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2465
2717
|
checks: "failed" | "not_configured" | "passed";
|
|
2466
2718
|
review: "approved" | "blocked" | "not_run";
|
|
2467
2719
|
review_requested?: boolean | undefined;
|
|
2468
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2720
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2469
2721
|
work_state?: {
|
|
2470
2722
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2471
2723
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2538,7 +2790,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2538
2790
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2539
2791
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2540
2792
|
review_requested?: boolean | undefined;
|
|
2541
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2793
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2542
2794
|
work_state?: {
|
|
2543
2795
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2544
2796
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2609,7 +2861,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2609
2861
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2610
2862
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2611
2863
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2612
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2864
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "turn_limit_reached", "work_report_contract"]>>>;
|
|
2613
2865
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2614
2866
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2615
2867
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2652,7 +2904,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2652
2904
|
checks: "failed" | "not_configured" | "passed";
|
|
2653
2905
|
review: "approved" | "blocked" | "not_run";
|
|
2654
2906
|
review_requested?: boolean | undefined;
|
|
2655
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2907
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2656
2908
|
work_state?: {
|
|
2657
2909
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2658
2910
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2669,7 +2921,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2669
2921
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2670
2922
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2671
2923
|
review_requested?: boolean | undefined;
|
|
2672
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2924
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2673
2925
|
work_state?: {
|
|
2674
2926
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2675
2927
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2740,6 +2992,18 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2740
2992
|
native_code: "grok_credential_source_unconfirmed";
|
|
2741
2993
|
source: "grok_init";
|
|
2742
2994
|
reported_source: string;
|
|
2995
|
+
}>, z.ZodObject<{
|
|
2996
|
+
kind: z.ZodLiteral<"vendor_not_retryable">;
|
|
2997
|
+
source: z.ZodLiteral<"agy_stderr">;
|
|
2998
|
+
error_id: z.ZodNullable<z.ZodString>;
|
|
2999
|
+
}, "strip", z.ZodTypeAny, {
|
|
3000
|
+
kind: "vendor_not_retryable";
|
|
3001
|
+
source: "agy_stderr";
|
|
3002
|
+
error_id: string | null;
|
|
3003
|
+
}, {
|
|
3004
|
+
kind: "vendor_not_retryable";
|
|
3005
|
+
source: "agy_stderr";
|
|
3006
|
+
error_id: string | null;
|
|
2743
3007
|
}>]>>;
|
|
2744
3008
|
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
2745
3009
|
model: z.ZodString;
|
|
@@ -2883,7 +3147,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2883
3147
|
}>>;
|
|
2884
3148
|
phase: z.ZodDefault<z.ZodString>;
|
|
2885
3149
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
2886
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
3150
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "raw_context_mandatory_unavailable", "raw_context_exceeds_window", "model_catalog_unavailable", "model_selection_required", "raw_patch_requires_isolation", "raw_patch_missing_evidence", "raw_patch_digest_mismatch", "raw_patch_base_mismatch", "raw_patch_path_traversal", "raw_patch_outside_scope", "raw_patch_stale_preimage", "raw_patch_binary_unsupported", "raw_patch_truncated", "raw_patch_apply_failed", "vendor_cli_too_old", "credential_source_unconfirmed", "vendor_not_retryable", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
2887
3151
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2888
3152
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2889
3153
|
safeMessage: z.ZodString;
|
|
@@ -2999,6 +3263,10 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
2999
3263
|
native_code: "grok_credential_source_unconfirmed";
|
|
3000
3264
|
source: "grok_init";
|
|
3001
3265
|
reported_source: string;
|
|
3266
|
+
} | {
|
|
3267
|
+
kind: "vendor_not_retryable";
|
|
3268
|
+
source: "agy_stderr";
|
|
3269
|
+
error_id: string | null;
|
|
3002
3270
|
} | undefined;
|
|
3003
3271
|
rawContextShortfall?: {
|
|
3004
3272
|
model: string;
|
|
@@ -3038,7 +3306,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3038
3306
|
} | undefined;
|
|
3039
3307
|
phase: string;
|
|
3040
3308
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
3041
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
3309
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
|
|
3042
3310
|
harnessId: string | null;
|
|
3043
3311
|
attemptId: string | null;
|
|
3044
3312
|
safeMessage: string;
|
|
@@ -3096,6 +3364,10 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3096
3364
|
native_code: "grok_credential_source_unconfirmed";
|
|
3097
3365
|
source: "grok_init";
|
|
3098
3366
|
reported_source: string;
|
|
3367
|
+
} | {
|
|
3368
|
+
kind: "vendor_not_retryable";
|
|
3369
|
+
source: "agy_stderr";
|
|
3370
|
+
error_id: string | null;
|
|
3099
3371
|
} | undefined;
|
|
3100
3372
|
rawContextShortfall?: {
|
|
3101
3373
|
model: string;
|
|
@@ -3135,7 +3407,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3135
3407
|
} | undefined;
|
|
3136
3408
|
phase?: string | undefined;
|
|
3137
3409
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
3138
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
3410
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
|
|
3139
3411
|
harnessId?: string | null | undefined;
|
|
3140
3412
|
attemptId?: string | null | undefined;
|
|
3141
3413
|
safeMessage: string;
|
|
@@ -3345,7 +3617,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3345
3617
|
}>>>;
|
|
3346
3618
|
continueFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3347
3619
|
resumable: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3348
|
-
cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
|
|
3620
|
+
cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
|
|
3349
3621
|
resetsAt: z.ZodNullable<z.ZodString>;
|
|
3350
3622
|
limitWindow: z.ZodNullable<z.ZodString>;
|
|
3351
3623
|
limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
|
|
@@ -3375,7 +3647,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3375
3647
|
root: string | null;
|
|
3376
3648
|
}>;
|
|
3377
3649
|
}, "strict", z.ZodTypeAny, {
|
|
3378
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
3650
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3379
3651
|
resetsAt: string | null;
|
|
3380
3652
|
limitWindow: string | null;
|
|
3381
3653
|
limitEvidence: "unspecified" | "window" | null;
|
|
@@ -3391,7 +3663,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3391
3663
|
root: string | null;
|
|
3392
3664
|
};
|
|
3393
3665
|
}, {
|
|
3394
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
3666
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3395
3667
|
resetsAt: string | null;
|
|
3396
3668
|
limitWindow: string | null;
|
|
3397
3669
|
limitEvidence: "unspecified" | "window" | null;
|
|
@@ -3411,7 +3683,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3411
3683
|
tryIndex: z.ZodNumber;
|
|
3412
3684
|
attemptId: z.ZodString;
|
|
3413
3685
|
carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
|
|
3414
|
-
cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
|
|
3686
|
+
cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
|
|
3415
3687
|
from: z.ZodObject<{
|
|
3416
3688
|
runId: z.ZodString;
|
|
3417
3689
|
attemptId: z.ZodString;
|
|
@@ -3445,7 +3717,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3445
3717
|
tryIndex: number;
|
|
3446
3718
|
attemptId: string;
|
|
3447
3719
|
carrier: "fresh" | "native" | "native_moved" | "packet";
|
|
3448
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
3720
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3449
3721
|
from: {
|
|
3450
3722
|
runId: string;
|
|
3451
3723
|
attemptId: string;
|
|
@@ -3467,7 +3739,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3467
3739
|
tryIndex: number;
|
|
3468
3740
|
attemptId: string;
|
|
3469
3741
|
carrier: "fresh" | "native" | "native_moved" | "packet";
|
|
3470
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
3742
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3471
3743
|
from: {
|
|
3472
3744
|
runId: string;
|
|
3473
3745
|
attemptId: string;
|
|
@@ -3490,17 +3762,17 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3490
3762
|
root: z.ZodString;
|
|
3491
3763
|
bytes: z.ZodNullable<z.ZodNumber>;
|
|
3492
3764
|
retainedAt: z.ZodString;
|
|
3493
|
-
cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
|
|
3765
|
+
cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "permission_denied", "context_exhausted", "turn_limit", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
|
|
3494
3766
|
}, "strict", z.ZodTypeAny, {
|
|
3495
3767
|
root: string;
|
|
3496
3768
|
bytes: number | null;
|
|
3497
3769
|
retainedAt: string;
|
|
3498
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
|
|
3770
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
|
|
3499
3771
|
}, {
|
|
3500
3772
|
root: string;
|
|
3501
3773
|
bytes: number | null;
|
|
3502
3774
|
retainedAt: string;
|
|
3503
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
|
|
3775
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
|
|
3504
3776
|
}>>>;
|
|
3505
3777
|
detailProblem: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3506
3778
|
code: z.ZodNullable<z.ZodString>;
|
|
@@ -3598,6 +3870,20 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3598
3870
|
context: Record<string, unknown>;
|
|
3599
3871
|
} | undefined;
|
|
3600
3872
|
} | null;
|
|
3873
|
+
resumed?: {
|
|
3874
|
+
from: {
|
|
3875
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
3876
|
+
problem?: {
|
|
3877
|
+
message: string;
|
|
3878
|
+
code: string | null;
|
|
3879
|
+
retryable: boolean;
|
|
3880
|
+
required_actions: string[];
|
|
3881
|
+
context: Record<string, unknown>;
|
|
3882
|
+
} | undefined;
|
|
3883
|
+
};
|
|
3884
|
+
reason: "process_scope_settled";
|
|
3885
|
+
at: string;
|
|
3886
|
+
} | undefined;
|
|
3601
3887
|
dispatchedRevision: number | null;
|
|
3602
3888
|
successorJobId: string | null;
|
|
3603
3889
|
successorRunId: string | null;
|
|
@@ -3643,7 +3929,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3643
3929
|
checks: "failed" | "not_configured" | "passed";
|
|
3644
3930
|
review: "approved" | "blocked" | "not_run";
|
|
3645
3931
|
review_requested?: boolean | undefined;
|
|
3646
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3932
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3647
3933
|
work_state?: {
|
|
3648
3934
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3649
3935
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3714,7 +4000,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3714
4000
|
checks: "failed" | "not_configured" | "passed";
|
|
3715
4001
|
review: "approved" | "blocked" | "not_run";
|
|
3716
4002
|
review_requested?: boolean | undefined;
|
|
3717
|
-
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
4003
|
+
reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3718
4004
|
work_state?: {
|
|
3719
4005
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3720
4006
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3746,6 +4032,10 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3746
4032
|
native_code: "grok_credential_source_unconfirmed";
|
|
3747
4033
|
source: "grok_init";
|
|
3748
4034
|
reported_source: string;
|
|
4035
|
+
} | {
|
|
4036
|
+
kind: "vendor_not_retryable";
|
|
4037
|
+
source: "agy_stderr";
|
|
4038
|
+
error_id: string | null;
|
|
3749
4039
|
} | undefined;
|
|
3750
4040
|
rawContextShortfall?: {
|
|
3751
4041
|
model: string;
|
|
@@ -3785,7 +4075,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3785
4075
|
} | undefined;
|
|
3786
4076
|
phase: string;
|
|
3787
4077
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
3788
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
4078
|
+
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null;
|
|
3789
4079
|
harnessId: string | null;
|
|
3790
4080
|
attemptId: string | null;
|
|
3791
4081
|
safeMessage: string;
|
|
@@ -3875,7 +4165,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3875
4165
|
} | null;
|
|
3876
4166
|
continueFrom?: string | null | undefined;
|
|
3877
4167
|
resumable?: {
|
|
3878
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
4168
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3879
4169
|
resetsAt: string | null;
|
|
3880
4170
|
limitWindow: string | null;
|
|
3881
4171
|
limitEvidence: "unspecified" | "window" | null;
|
|
@@ -3895,7 +4185,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3895
4185
|
tryIndex: number;
|
|
3896
4186
|
attemptId: string;
|
|
3897
4187
|
carrier: "fresh" | "native" | "native_moved" | "packet";
|
|
3898
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
4188
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
3899
4189
|
from: {
|
|
3900
4190
|
runId: string;
|
|
3901
4191
|
attemptId: string;
|
|
@@ -3918,7 +4208,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3918
4208
|
root: string;
|
|
3919
4209
|
bytes: number | null;
|
|
3920
4210
|
retainedAt: string;
|
|
3921
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
|
|
4211
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
|
|
3922
4212
|
} | null | undefined;
|
|
3923
4213
|
detailProblem: {
|
|
3924
4214
|
code: string | null;
|
|
@@ -3963,6 +4253,20 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
3963
4253
|
context?: Record<string, unknown> | undefined;
|
|
3964
4254
|
} | undefined;
|
|
3965
4255
|
} | null;
|
|
4256
|
+
resumed?: {
|
|
4257
|
+
from: {
|
|
4258
|
+
code: "admission_refused" | "partition_retired" | "predecessor_cancelled" | "predecessor_checks_failed" | "predecessor_facts_unavailable" | "predecessor_failed" | "predecessor_incomplete" | "predecessor_interrupted" | "predecessor_needs_input" | "predecessor_output_unavailable" | "predecessor_review_blocked" | "predecessor_work_unverified" | "restart_requires_controller" | "settlement_unknown" | "shutdown" | "stop_requested";
|
|
4259
|
+
problem?: {
|
|
4260
|
+
message: string;
|
|
4261
|
+
code?: string | null | undefined;
|
|
4262
|
+
retryable?: boolean | undefined;
|
|
4263
|
+
required_actions?: string[] | undefined;
|
|
4264
|
+
context?: Record<string, unknown> | undefined;
|
|
4265
|
+
} | undefined;
|
|
4266
|
+
};
|
|
4267
|
+
reason: "process_scope_settled";
|
|
4268
|
+
at: string;
|
|
4269
|
+
} | undefined;
|
|
3966
4270
|
dispatchedRevision: number | null;
|
|
3967
4271
|
successorJobId: string | null;
|
|
3968
4272
|
successorRunId: string | null;
|
|
@@ -4008,7 +4312,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4008
4312
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4009
4313
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4010
4314
|
review_requested?: boolean | undefined;
|
|
4011
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4315
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4012
4316
|
work_state?: {
|
|
4013
4317
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4014
4318
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4079,7 +4383,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4079
4383
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4080
4384
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4081
4385
|
review_requested?: boolean | undefined;
|
|
4082
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4386
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "turn_limit_reached" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4083
4387
|
work_state?: {
|
|
4084
4388
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4085
4389
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4111,6 +4415,10 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4111
4415
|
native_code: "grok_credential_source_unconfirmed";
|
|
4112
4416
|
source: "grok_init";
|
|
4113
4417
|
reported_source: string;
|
|
4418
|
+
} | {
|
|
4419
|
+
kind: "vendor_not_retryable";
|
|
4420
|
+
source: "agy_stderr";
|
|
4421
|
+
error_id: string | null;
|
|
4114
4422
|
} | undefined;
|
|
4115
4423
|
rawContextShortfall?: {
|
|
4116
4424
|
model: string;
|
|
@@ -4150,7 +4458,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4150
4458
|
} | undefined;
|
|
4151
4459
|
phase?: string | undefined;
|
|
4152
4460
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
4153
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
4461
|
+
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "model_catalog_unavailable" | "model_selection_required" | "raw_context_exceeds_window" | "raw_context_mandatory_unavailable" | "raw_patch_apply_failed" | "raw_patch_base_mismatch" | "raw_patch_binary_unsupported" | "raw_patch_digest_mismatch" | "raw_patch_missing_evidence" | "raw_patch_outside_scope" | "raw_patch_path_traversal" | "raw_patch_requires_isolation" | "raw_patch_stale_preimage" | "raw_patch_truncated" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | "vendor_not_retryable" | null | undefined;
|
|
4154
4462
|
harnessId?: string | null | undefined;
|
|
4155
4463
|
attemptId?: string | null | undefined;
|
|
4156
4464
|
safeMessage: string;
|
|
@@ -4240,7 +4548,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4240
4548
|
} | null | undefined;
|
|
4241
4549
|
continueFrom?: string | null | undefined;
|
|
4242
4550
|
resumable?: {
|
|
4243
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
4551
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
4244
4552
|
resetsAt: string | null;
|
|
4245
4553
|
limitWindow: string | null;
|
|
4246
4554
|
limitEvidence: "unspecified" | "window" | null;
|
|
@@ -4260,7 +4568,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4260
4568
|
tryIndex: number;
|
|
4261
4569
|
attemptId: string;
|
|
4262
4570
|
carrier: "fresh" | "native" | "native_moved" | "packet";
|
|
4263
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
|
|
4571
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock";
|
|
4264
4572
|
from: {
|
|
4265
4573
|
runId: string;
|
|
4266
4574
|
attemptId: string;
|
|
@@ -4283,7 +4591,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
4283
4591
|
root: string;
|
|
4284
4592
|
bytes: number | null;
|
|
4285
4593
|
retainedAt: string;
|
|
4286
|
-
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
|
|
4594
|
+
cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "permission_denied" | "pinned_limit" | "pool_exhausted" | "transport" | "turn_limit" | "vendor_limit" | "wall_clock" | null;
|
|
4287
4595
|
} | null | undefined;
|
|
4288
4596
|
detailProblem?: {
|
|
4289
4597
|
code: string | null;
|
|
@@ -4324,12 +4632,13 @@ export declare const McpThreadTurnResult: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
4324
4632
|
runId: z.ZodString;
|
|
4325
4633
|
taskId: z.ZodOptional<z.ZodString>;
|
|
4326
4634
|
runDir: z.ZodString;
|
|
4327
|
-
}, "
|
|
4635
|
+
}, "taskGroupId"> & {
|
|
4328
4636
|
threadId: z.ZodString;
|
|
4329
4637
|
turnId: z.ZodString;
|
|
4330
4638
|
} & {
|
|
4331
4639
|
summary: z.ZodString;
|
|
4332
4640
|
}, "strip", z.ZodTypeAny, {
|
|
4641
|
+
storeId?: string | undefined;
|
|
4333
4642
|
jobId?: string | undefined;
|
|
4334
4643
|
runId: string;
|
|
4335
4644
|
taskId?: string | undefined;
|
|
@@ -4338,6 +4647,7 @@ export declare const McpThreadTurnResult: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
4338
4647
|
turnId: string;
|
|
4339
4648
|
summary: string;
|
|
4340
4649
|
}, {
|
|
4650
|
+
storeId?: string | undefined;
|
|
4341
4651
|
jobId?: string | undefined;
|
|
4342
4652
|
runId: string;
|
|
4343
4653
|
taskId?: string | undefined;
|
|
@@ -4346,6 +4656,7 @@ export declare const McpThreadTurnResult: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
4346
4656
|
turnId: string;
|
|
4347
4657
|
summary: string;
|
|
4348
4658
|
}>, z.ZodObject<{
|
|
4659
|
+
storeId: z.ZodOptional<z.ZodString>;
|
|
4349
4660
|
jobId: z.ZodString;
|
|
4350
4661
|
threadId: z.ZodString;
|
|
4351
4662
|
turnId: z.ZodString;
|
|
@@ -4353,12 +4664,14 @@ export declare const McpThreadTurnResult: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
4353
4664
|
} & {
|
|
4354
4665
|
summary: z.ZodString;
|
|
4355
4666
|
}, "strict", z.ZodTypeAny, {
|
|
4667
|
+
storeId?: string | undefined;
|
|
4356
4668
|
jobId: string;
|
|
4357
4669
|
threadId: string;
|
|
4358
4670
|
turnId: string;
|
|
4359
4671
|
state: string;
|
|
4360
4672
|
summary: string;
|
|
4361
4673
|
}, {
|
|
4674
|
+
storeId?: string | undefined;
|
|
4362
4675
|
jobId: string;
|
|
4363
4676
|
threadId: string;
|
|
4364
4677
|
turnId: string;
|