@claudexor/schema 4.8.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-resources.d.ts +325 -56
- package/dist/account-resources.d.ts.map +1 -1
- package/dist/account-resources.js +35 -5
- package/dist/account-resources.js.map +1 -1
- package/dist/account-routing-evidence.d.ts +253 -45
- package/dist/account-routing-evidence.d.ts.map +1 -1
- package/dist/account-target.d.ts +19 -5
- package/dist/account-target.d.ts.map +1 -1
- package/dist/account-target.js +14 -1
- package/dist/account-target.js.map +1 -1
- package/dist/agent-capabilities.d.ts +183 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +2 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/budget.d.ts +3 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +5 -1
- package/dist/budget.js.map +1 -1
- package/dist/capture-inventory.d.ts +60 -0
- package/dist/capture-inventory.d.ts.map +1 -0
- package/dist/capture-inventory.js +57 -0
- package/dist/capture-inventory.js.map +1 -0
- package/dist/control-harness-list.d.ts +102 -18
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-harness-models.d.ts +299 -6
- package/dist/control-harness-models.d.ts.map +1 -1
- package/dist/control-harness-models.js +12 -3
- package/dist/control-harness-models.js.map +1 -1
- package/dist/control-operation-responses.d.ts +606 -23
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +3 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +1178 -72
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-event-part.d.ts +3 -3
- package/dist/control-run-event-part.js +1 -1
- package/dist/control-run-event-part.js.map +1 -1
- package/dist/control-run-failure.d.ts +276 -12
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +54 -16
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control-run-message.js +1 -1
- package/dist/control-run-message.js.map +1 -1
- package/dist/control-thread-apply.d.ts +165 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-timeline.d.ts.map +1 -1
- package/dist/control-timeline.js +7 -3
- package/dist/control-timeline.js.map +1 -1
- package/dist/control.d.ts +383 -42
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +9 -5
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +506 -90
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/decision.d.ts +9 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +4 -0
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +162 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +32 -0
- package/dist/delivery.js.map +1 -1
- package/dist/events.d.ts +7 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +10 -8
- package/dist/events.js.map +1 -1
- package/dist/git-result.d.ts +99 -0
- package/dist/git-result.d.ts.map +1 -0
- package/dist/git-result.js +80 -0
- package/dist/git-result.js.map +1 -0
- package/dist/harness-model.d.ts +89 -0
- package/dist/harness-model.d.ts.map +1 -1
- package/dist/harness-model.js +83 -0
- package/dist/harness-model.js.map +1 -1
- package/dist/harness.d.ts +353 -35
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +4 -19
- 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 +620 -51
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +45 -5
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/mcp-run-wait.d.ts +7 -7
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +3 -2
- package/dist/primitives.js.map +1 -1
- package/dist/project.d.ts +45 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +26 -1
- package/dist/project.js.map +1 -1
- package/dist/quota-read.d.ts +6 -3
- package/dist/quota-read.d.ts.map +1 -1
- package/dist/quota-read.js +7 -1
- package/dist/quota-read.js.map +1 -1
- package/dist/quota-scope.d.ts +29 -0
- package/dist/quota-scope.d.ts.map +1 -0
- package/dist/quota-scope.js +95 -0
- package/dist/quota-scope.js.map +1 -0
- package/dist/rate-limit.d.ts +3 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +5 -1
- package/dist/rate-limit.js.map +1 -1
- package/dist/raw.d.ts +223 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +86 -0
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +87 -18
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +7 -6
- package/dist/readiness.js.map +1 -1
- package/dist/route-health.d.ts +303 -0
- package/dist/route-health.d.ts.map +1 -0
- package/dist/route-health.js +71 -0
- package/dist/route-health.js.map +1 -0
- package/dist/run-continuity.d.ts +3 -0
- package/dist/run-continuity.d.ts.map +1 -1
- package/dist/run-continuity.js +4 -0
- package/dist/run-continuity.js.map +1 -1
- package/dist/run-facts.d.ts +5 -5
- package/dist/run-facts.d.ts.map +1 -1
- package/dist/run-facts.js +1 -0
- package/dist/run-facts.js.map +1 -1
- package/dist/setup-login.d.ts +1 -1
- package/dist/setup-login.js +1 -1
- package/dist/setup.d.ts +1 -1
- package/dist/setup.js +1 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +3 -0
- package/dist/status-projection.js.map +1 -1
- package/dist/telemetry.d.ts +239 -7
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +4 -2
- package/dist/telemetry.js.map +1 -1
- package/dist/thread-history.d.ts +1109 -161
- package/dist/thread-history.d.ts.map +1 -1
- package/dist/thread-history.js +1 -1
- package/dist/thread-history.js.map +1 -1
- package/dist/tool-ref.d.ts +94 -3
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +98 -6
- package/dist/tool-ref.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +54 -0
- package/generated/BudgetObservation.schema.json +8 -1
- package/generated/ControlAccountResetResponse.schema.json +60 -1
- package/generated/ControlAccountResourcesFreshnessResponse.schema.json +46 -2
- package/generated/ControlAccountResourcesResponse.schema.json +46 -2
- package/generated/ControlApplyCheckResponse.schema.json +47 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +105 -4
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +105 -4
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +59 -2
- package/generated/ControlDeliveryResponse.schema.json +154 -0
- package/generated/ControlHarnessAccountCatalog.schema.json +13 -0
- package/generated/ControlHarnessAccountModelsResponse.schema.json +13 -0
- package/generated/ControlHarnessListResponse.schema.json +59 -2
- package/generated/ControlHarnessModelsQueryResponse.schema.json +97 -51
- package/generated/ControlHarnessModelsResponse.schema.json +96 -0
- package/generated/ControlProjectRemoveReceipt.schema.json +36 -0
- package/generated/ControlQuotaQueryResponse.schema.json +46 -2
- package/generated/ControlQuotaReadRequest.schema.json +4 -0
- package/generated/ControlQuotaRefreshRequest.schema.json +12 -3
- package/generated/ControlRouteHealth.schema.json +202 -0
- package/generated/ControlRunDetail.schema.json +344 -5
- package/generated/ControlRunEventPart.schema.json +3 -2
- package/generated/ControlRunListResponse.schema.json +341 -2
- package/generated/ControlRunMessageRequest.schema.json +1 -1
- package/generated/ControlRunSummary.schema.json +341 -2
- package/generated/ControlThreadApplyResponse.schema.json +154 -0
- package/generated/ControlThreadDetail.schema.json +1 -0
- package/generated/DecisionRecord.schema.json +1 -0
- package/generated/HarnessEvent.schema.json +189 -5
- package/generated/HarnessManifest.schema.json +57 -0
- package/generated/HarnessModel.schema.json +13 -0
- package/generated/HarnessStatusDto.schema.json +59 -2
- package/generated/JournaledRunCreatedPayload.schema.json +2 -2
- package/generated/McpAccountsToolResult.schema.json +105 -4
- package/generated/McpRunHandleResult.schema.json +279 -2
- package/generated/McpRunToolResult.schema.json +269 -0
- package/generated/McpRunWaitResult.schema.json +2 -1
- package/generated/RawContextPacket.schema.json +98 -0
- package/generated/RunContinuityReceipt.schema.json +8 -0
- package/generated/RunEvent.schema.json +2 -1
- package/generated/RunFacts.schema.json +1 -0
- package/generated/RunFailure.schema.json +201 -0
- package/generated/RunTelemetry.schema.json +123 -2
- package/generated/ThreadHistoryPage.schema.json +203 -1
- package/package.json +2 -2
package/dist/thread-history.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
165
165
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
166
166
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
167
167
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
168
|
+
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"]>>>;
|
|
169
169
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
170
170
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
171
171
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -208,7 +208,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
208
208
|
checks: "failed" | "not_configured" | "passed";
|
|
209
209
|
review: "approved" | "blocked" | "not_run";
|
|
210
210
|
review_requested?: boolean | undefined;
|
|
211
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
211
|
+
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;
|
|
212
212
|
work_state?: {
|
|
213
213
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
214
214
|
source: "absent" | "constrained" | "validated";
|
|
@@ -225,7 +225,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
225
225
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
226
226
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
227
227
|
review_requested?: boolean | undefined;
|
|
228
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
228
|
+
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;
|
|
229
229
|
work_state?: {
|
|
230
230
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
231
231
|
source: "absent" | "constrained" | "validated";
|
|
@@ -350,7 +350,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
350
350
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
351
351
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
352
352
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
353
|
+
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"]>>>;
|
|
354
354
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
355
355
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
356
356
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -393,7 +393,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
393
393
|
checks: "failed" | "not_configured" | "passed";
|
|
394
394
|
review: "approved" | "blocked" | "not_run";
|
|
395
395
|
review_requested?: boolean | undefined;
|
|
396
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
396
|
+
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;
|
|
397
397
|
work_state?: {
|
|
398
398
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
399
399
|
source: "absent" | "constrained" | "validated";
|
|
@@ -410,7 +410,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
410
410
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
411
411
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
412
412
|
review_requested?: boolean | undefined;
|
|
413
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
413
|
+
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;
|
|
414
414
|
work_state?: {
|
|
415
415
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
416
416
|
source: "absent" | "constrained" | "validated";
|
|
@@ -595,7 +595,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
595
595
|
checks: "failed" | "not_configured" | "passed";
|
|
596
596
|
review: "approved" | "blocked" | "not_run";
|
|
597
597
|
review_requested?: boolean | undefined;
|
|
598
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
598
|
+
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;
|
|
599
599
|
work_state?: {
|
|
600
600
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
601
601
|
source: "absent" | "constrained" | "validated";
|
|
@@ -668,7 +668,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
668
668
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
669
669
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
670
670
|
review_requested?: boolean | undefined;
|
|
671
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
671
|
+
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;
|
|
672
672
|
work_state?: {
|
|
673
673
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
674
674
|
source: "absent" | "constrained" | "validated";
|
|
@@ -921,13 +921,54 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
921
921
|
source: "grok_init";
|
|
922
922
|
reported_source: string;
|
|
923
923
|
}>]>>;
|
|
924
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
925
|
+
model: z.ZodString;
|
|
926
|
+
context_window: z.ZodNumber;
|
|
927
|
+
packet_tokens: z.ZodNumber;
|
|
928
|
+
framing_tokens: z.ZodNumber;
|
|
929
|
+
output_allowance_tokens: z.ZodNumber;
|
|
930
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
931
|
+
path: z.ZodString;
|
|
932
|
+
estimated_tokens: z.ZodNumber;
|
|
933
|
+
}, "strict", z.ZodTypeAny, {
|
|
934
|
+
path: string;
|
|
935
|
+
estimated_tokens: number;
|
|
936
|
+
}, {
|
|
937
|
+
path: string;
|
|
938
|
+
estimated_tokens: number;
|
|
939
|
+
}>, "many">;
|
|
940
|
+
}, "strict", z.ZodTypeAny, {
|
|
941
|
+
model: string;
|
|
942
|
+
context_window: number;
|
|
943
|
+
packet_tokens: number;
|
|
944
|
+
framing_tokens: number;
|
|
945
|
+
output_allowance_tokens: number;
|
|
946
|
+
mandatory_files: {
|
|
947
|
+
path: string;
|
|
948
|
+
estimated_tokens: number;
|
|
949
|
+
}[];
|
|
950
|
+
}, {
|
|
951
|
+
model: string;
|
|
952
|
+
context_window: number;
|
|
953
|
+
packet_tokens: number;
|
|
954
|
+
framing_tokens: number;
|
|
955
|
+
output_allowance_tokens: number;
|
|
956
|
+
mandatory_files: {
|
|
957
|
+
path: string;
|
|
958
|
+
estimated_tokens: number;
|
|
959
|
+
}[];
|
|
960
|
+
}>>;
|
|
924
961
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
925
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
962
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
|
|
926
963
|
message: z.ZodString;
|
|
927
964
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
928
965
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
929
966
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
930
967
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
968
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
969
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
970
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
971
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
931
972
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
932
973
|
code: z.ZodNullable<z.ZodString>;
|
|
933
974
|
message: z.ZodString;
|
|
@@ -938,32 +979,91 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
938
979
|
code: string | null;
|
|
939
980
|
message: string;
|
|
940
981
|
}>>;
|
|
982
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
983
|
+
exact: z.ZodLiteral<false>;
|
|
984
|
+
changedFiles: z.ZodNumber;
|
|
985
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
986
|
+
path: z.ZodString;
|
|
987
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
988
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
989
|
+
}, "strip", z.ZodTypeAny, {
|
|
990
|
+
path: string;
|
|
991
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
992
|
+
sizeBytes: number | null;
|
|
993
|
+
}, {
|
|
994
|
+
path: string;
|
|
995
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
996
|
+
sizeBytes: number | null;
|
|
997
|
+
}>, "many">;
|
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
|
999
|
+
exact: false;
|
|
1000
|
+
changedFiles: number;
|
|
1001
|
+
largest: {
|
|
1002
|
+
path: string;
|
|
1003
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1004
|
+
sizeBytes: number | null;
|
|
1005
|
+
}[];
|
|
1006
|
+
}, {
|
|
1007
|
+
exact: false;
|
|
1008
|
+
changedFiles: number;
|
|
1009
|
+
largest: {
|
|
1010
|
+
path: string;
|
|
1011
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1012
|
+
sizeBytes: number | null;
|
|
1013
|
+
}[];
|
|
1014
|
+
}>>;
|
|
941
1015
|
}, "strip", z.ZodTypeAny, {
|
|
942
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1016
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
943
1017
|
message: string;
|
|
944
1018
|
causeCode?: string | undefined;
|
|
945
1019
|
bufferBudgetBytes?: number | undefined;
|
|
946
1020
|
stream?: "stderr" | "stdout" | undefined;
|
|
947
1021
|
drain?: "truncated" | undefined;
|
|
1022
|
+
requiredBytes?: number | undefined;
|
|
1023
|
+
availableBytes?: number | undefined;
|
|
1024
|
+
signal?: string | undefined;
|
|
1025
|
+
stallMs?: number | undefined;
|
|
948
1026
|
cleanup?: {
|
|
949
1027
|
code: string | null;
|
|
950
1028
|
message: string;
|
|
951
1029
|
} | undefined;
|
|
1030
|
+
inventory?: {
|
|
1031
|
+
exact: false;
|
|
1032
|
+
changedFiles: number;
|
|
1033
|
+
largest: {
|
|
1034
|
+
path: string;
|
|
1035
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1036
|
+
sizeBytes: number | null;
|
|
1037
|
+
}[];
|
|
1038
|
+
} | undefined;
|
|
952
1039
|
}, {
|
|
953
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1040
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
954
1041
|
message: string;
|
|
955
1042
|
causeCode?: string | undefined;
|
|
956
1043
|
bufferBudgetBytes?: number | undefined;
|
|
957
1044
|
stream?: "stderr" | "stdout" | undefined;
|
|
958
1045
|
drain?: "truncated" | undefined;
|
|
1046
|
+
requiredBytes?: number | undefined;
|
|
1047
|
+
availableBytes?: number | undefined;
|
|
1048
|
+
signal?: string | undefined;
|
|
1049
|
+
stallMs?: number | undefined;
|
|
959
1050
|
cleanup?: {
|
|
960
1051
|
code: string | null;
|
|
961
1052
|
message: string;
|
|
962
1053
|
} | undefined;
|
|
1054
|
+
inventory?: {
|
|
1055
|
+
exact: false;
|
|
1056
|
+
changedFiles: number;
|
|
1057
|
+
largest: {
|
|
1058
|
+
path: string;
|
|
1059
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1060
|
+
sizeBytes: number | null;
|
|
1061
|
+
}[];
|
|
1062
|
+
} | undefined;
|
|
963
1063
|
}>>;
|
|
964
1064
|
phase: z.ZodDefault<z.ZodString>;
|
|
965
1065
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
966
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
1066
|
+
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"]>>>;
|
|
967
1067
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
968
1068
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
969
1069
|
safeMessage: z.ZodString;
|
|
@@ -972,6 +1072,22 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
972
1072
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
973
1073
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
974
1074
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1075
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
1076
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
1077
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
1078
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
1079
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
1080
|
+
}, "strip", z.ZodTypeAny, {
|
|
1081
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1082
|
+
constraintId: string | null;
|
|
1083
|
+
usedRatio: number | null;
|
|
1084
|
+
threshold: number | null;
|
|
1085
|
+
}, {
|
|
1086
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1087
|
+
constraintId: string | null;
|
|
1088
|
+
usedRatio: number | null;
|
|
1089
|
+
threshold: number | null;
|
|
1090
|
+
}>>;
|
|
975
1091
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
976
1092
|
code: z.ZodNullable<z.ZodString>;
|
|
977
1093
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -1064,21 +1180,45 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1064
1180
|
source: "grok_init";
|
|
1065
1181
|
reported_source: string;
|
|
1066
1182
|
} | undefined;
|
|
1183
|
+
rawContextShortfall?: {
|
|
1184
|
+
model: string;
|
|
1185
|
+
context_window: number;
|
|
1186
|
+
packet_tokens: number;
|
|
1187
|
+
framing_tokens: number;
|
|
1188
|
+
output_allowance_tokens: number;
|
|
1189
|
+
mandatory_files: {
|
|
1190
|
+
path: string;
|
|
1191
|
+
estimated_tokens: number;
|
|
1192
|
+
}[];
|
|
1193
|
+
} | undefined;
|
|
1067
1194
|
captureFailure?: {
|
|
1068
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1195
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1069
1196
|
message: string;
|
|
1070
1197
|
causeCode?: string | undefined;
|
|
1071
1198
|
bufferBudgetBytes?: number | undefined;
|
|
1072
1199
|
stream?: "stderr" | "stdout" | undefined;
|
|
1073
1200
|
drain?: "truncated" | undefined;
|
|
1201
|
+
requiredBytes?: number | undefined;
|
|
1202
|
+
availableBytes?: number | undefined;
|
|
1203
|
+
signal?: string | undefined;
|
|
1204
|
+
stallMs?: number | undefined;
|
|
1074
1205
|
cleanup?: {
|
|
1075
1206
|
code: string | null;
|
|
1076
1207
|
message: string;
|
|
1077
1208
|
} | undefined;
|
|
1209
|
+
inventory?: {
|
|
1210
|
+
exact: false;
|
|
1211
|
+
changedFiles: number;
|
|
1212
|
+
largest: {
|
|
1213
|
+
path: string;
|
|
1214
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1215
|
+
sizeBytes: number | null;
|
|
1216
|
+
}[];
|
|
1217
|
+
} | undefined;
|
|
1078
1218
|
} | undefined;
|
|
1079
1219
|
phase: string;
|
|
1080
1220
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1081
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1221
|
+
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;
|
|
1082
1222
|
harnessId: string | null;
|
|
1083
1223
|
attemptId: string | null;
|
|
1084
1224
|
safeMessage: string;
|
|
@@ -1087,6 +1227,12 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1087
1227
|
eventRefs: string[];
|
|
1088
1228
|
runDir: string | null;
|
|
1089
1229
|
resetsAt: string | null;
|
|
1230
|
+
quotaRefusal?: {
|
|
1231
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1232
|
+
constraintId: string | null;
|
|
1233
|
+
usedRatio: number | null;
|
|
1234
|
+
threshold: number | null;
|
|
1235
|
+
} | undefined;
|
|
1090
1236
|
vendorFailure: {
|
|
1091
1237
|
code: string | null;
|
|
1092
1238
|
message: string | null;
|
|
@@ -1131,21 +1277,45 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1131
1277
|
source: "grok_init";
|
|
1132
1278
|
reported_source: string;
|
|
1133
1279
|
} | undefined;
|
|
1280
|
+
rawContextShortfall?: {
|
|
1281
|
+
model: string;
|
|
1282
|
+
context_window: number;
|
|
1283
|
+
packet_tokens: number;
|
|
1284
|
+
framing_tokens: number;
|
|
1285
|
+
output_allowance_tokens: number;
|
|
1286
|
+
mandatory_files: {
|
|
1287
|
+
path: string;
|
|
1288
|
+
estimated_tokens: number;
|
|
1289
|
+
}[];
|
|
1290
|
+
} | undefined;
|
|
1134
1291
|
captureFailure?: {
|
|
1135
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1292
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1136
1293
|
message: string;
|
|
1137
1294
|
causeCode?: string | undefined;
|
|
1138
1295
|
bufferBudgetBytes?: number | undefined;
|
|
1139
1296
|
stream?: "stderr" | "stdout" | undefined;
|
|
1140
1297
|
drain?: "truncated" | undefined;
|
|
1298
|
+
requiredBytes?: number | undefined;
|
|
1299
|
+
availableBytes?: number | undefined;
|
|
1300
|
+
signal?: string | undefined;
|
|
1301
|
+
stallMs?: number | undefined;
|
|
1141
1302
|
cleanup?: {
|
|
1142
1303
|
code: string | null;
|
|
1143
1304
|
message: string;
|
|
1144
1305
|
} | undefined;
|
|
1306
|
+
inventory?: {
|
|
1307
|
+
exact: false;
|
|
1308
|
+
changedFiles: number;
|
|
1309
|
+
largest: {
|
|
1310
|
+
path: string;
|
|
1311
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1312
|
+
sizeBytes: number | null;
|
|
1313
|
+
}[];
|
|
1314
|
+
} | undefined;
|
|
1145
1315
|
} | undefined;
|
|
1146
1316
|
phase?: string | undefined;
|
|
1147
1317
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1148
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1318
|
+
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;
|
|
1149
1319
|
harnessId?: string | null | undefined;
|
|
1150
1320
|
attemptId?: string | null | undefined;
|
|
1151
1321
|
safeMessage: string;
|
|
@@ -1154,6 +1324,12 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1154
1324
|
eventRefs?: string[] | undefined;
|
|
1155
1325
|
runDir?: string | null | undefined;
|
|
1156
1326
|
resetsAt?: string | null | undefined;
|
|
1327
|
+
quotaRefusal?: {
|
|
1328
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1329
|
+
constraintId: string | null;
|
|
1330
|
+
usedRatio: number | null;
|
|
1331
|
+
threshold: number | null;
|
|
1332
|
+
} | undefined;
|
|
1157
1333
|
vendorFailure?: {
|
|
1158
1334
|
code: string | null;
|
|
1159
1335
|
message: string | null;
|
|
@@ -1284,7 +1460,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1284
1460
|
checks: "failed" | "not_configured" | "passed";
|
|
1285
1461
|
review: "approved" | "blocked" | "not_run";
|
|
1286
1462
|
review_requested?: boolean | undefined;
|
|
1287
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1463
|
+
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;
|
|
1288
1464
|
work_state?: {
|
|
1289
1465
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1290
1466
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1319,7 +1495,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1319
1495
|
checks: "failed" | "not_configured" | "passed";
|
|
1320
1496
|
review: "approved" | "blocked" | "not_run";
|
|
1321
1497
|
review_requested?: boolean | undefined;
|
|
1322
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
1498
|
+
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;
|
|
1323
1499
|
work_state?: {
|
|
1324
1500
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1325
1501
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1445,21 +1621,45 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1445
1621
|
source: "grok_init";
|
|
1446
1622
|
reported_source: string;
|
|
1447
1623
|
} | undefined;
|
|
1624
|
+
rawContextShortfall?: {
|
|
1625
|
+
model: string;
|
|
1626
|
+
context_window: number;
|
|
1627
|
+
packet_tokens: number;
|
|
1628
|
+
framing_tokens: number;
|
|
1629
|
+
output_allowance_tokens: number;
|
|
1630
|
+
mandatory_files: {
|
|
1631
|
+
path: string;
|
|
1632
|
+
estimated_tokens: number;
|
|
1633
|
+
}[];
|
|
1634
|
+
} | undefined;
|
|
1448
1635
|
captureFailure?: {
|
|
1449
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1636
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1450
1637
|
message: string;
|
|
1451
1638
|
causeCode?: string | undefined;
|
|
1452
1639
|
bufferBudgetBytes?: number | undefined;
|
|
1453
1640
|
stream?: "stderr" | "stdout" | undefined;
|
|
1454
1641
|
drain?: "truncated" | undefined;
|
|
1642
|
+
requiredBytes?: number | undefined;
|
|
1643
|
+
availableBytes?: number | undefined;
|
|
1644
|
+
signal?: string | undefined;
|
|
1645
|
+
stallMs?: number | undefined;
|
|
1455
1646
|
cleanup?: {
|
|
1456
1647
|
code: string | null;
|
|
1457
1648
|
message: string;
|
|
1458
1649
|
} | undefined;
|
|
1650
|
+
inventory?: {
|
|
1651
|
+
exact: false;
|
|
1652
|
+
changedFiles: number;
|
|
1653
|
+
largest: {
|
|
1654
|
+
path: string;
|
|
1655
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1656
|
+
sizeBytes: number | null;
|
|
1657
|
+
}[];
|
|
1658
|
+
} | undefined;
|
|
1459
1659
|
} | undefined;
|
|
1460
1660
|
phase: string;
|
|
1461
1661
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1462
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
1662
|
+
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;
|
|
1463
1663
|
harnessId: string | null;
|
|
1464
1664
|
attemptId: string | null;
|
|
1465
1665
|
safeMessage: string;
|
|
@@ -1468,6 +1668,12 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1468
1668
|
eventRefs: string[];
|
|
1469
1669
|
runDir: string | null;
|
|
1470
1670
|
resetsAt: string | null;
|
|
1671
|
+
quotaRefusal?: {
|
|
1672
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1673
|
+
constraintId: string | null;
|
|
1674
|
+
usedRatio: number | null;
|
|
1675
|
+
threshold: number | null;
|
|
1676
|
+
} | undefined;
|
|
1471
1677
|
vendorFailure: {
|
|
1472
1678
|
code: string | null;
|
|
1473
1679
|
message: string | null;
|
|
@@ -1566,7 +1772,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1566
1772
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1567
1773
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1568
1774
|
review_requested?: boolean | undefined;
|
|
1569
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1775
|
+
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;
|
|
1570
1776
|
work_state?: {
|
|
1571
1777
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1572
1778
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1601,7 +1807,7 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1601
1807
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1602
1808
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1603
1809
|
review_requested?: boolean | undefined;
|
|
1604
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
1810
|
+
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;
|
|
1605
1811
|
work_state?: {
|
|
1606
1812
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1607
1813
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1727,21 +1933,45 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1727
1933
|
source: "grok_init";
|
|
1728
1934
|
reported_source: string;
|
|
1729
1935
|
} | undefined;
|
|
1936
|
+
rawContextShortfall?: {
|
|
1937
|
+
model: string;
|
|
1938
|
+
context_window: number;
|
|
1939
|
+
packet_tokens: number;
|
|
1940
|
+
framing_tokens: number;
|
|
1941
|
+
output_allowance_tokens: number;
|
|
1942
|
+
mandatory_files: {
|
|
1943
|
+
path: string;
|
|
1944
|
+
estimated_tokens: number;
|
|
1945
|
+
}[];
|
|
1946
|
+
} | undefined;
|
|
1730
1947
|
captureFailure?: {
|
|
1731
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1948
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
1732
1949
|
message: string;
|
|
1733
1950
|
causeCode?: string | undefined;
|
|
1734
1951
|
bufferBudgetBytes?: number | undefined;
|
|
1735
1952
|
stream?: "stderr" | "stdout" | undefined;
|
|
1736
1953
|
drain?: "truncated" | undefined;
|
|
1954
|
+
requiredBytes?: number | undefined;
|
|
1955
|
+
availableBytes?: number | undefined;
|
|
1956
|
+
signal?: string | undefined;
|
|
1957
|
+
stallMs?: number | undefined;
|
|
1737
1958
|
cleanup?: {
|
|
1738
1959
|
code: string | null;
|
|
1739
1960
|
message: string;
|
|
1740
1961
|
} | undefined;
|
|
1962
|
+
inventory?: {
|
|
1963
|
+
exact: false;
|
|
1964
|
+
changedFiles: number;
|
|
1965
|
+
largest: {
|
|
1966
|
+
path: string;
|
|
1967
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1968
|
+
sizeBytes: number | null;
|
|
1969
|
+
}[];
|
|
1970
|
+
} | undefined;
|
|
1741
1971
|
} | undefined;
|
|
1742
1972
|
phase?: string | undefined;
|
|
1743
1973
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1744
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
1974
|
+
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;
|
|
1745
1975
|
harnessId?: string | null | undefined;
|
|
1746
1976
|
attemptId?: string | null | undefined;
|
|
1747
1977
|
safeMessage: string;
|
|
@@ -1750,6 +1980,12 @@ export declare const ThreadHistoryRun: z.ZodObject<{
|
|
|
1750
1980
|
eventRefs?: string[] | undefined;
|
|
1751
1981
|
runDir?: string | null | undefined;
|
|
1752
1982
|
resetsAt?: string | null | undefined;
|
|
1983
|
+
quotaRefusal?: {
|
|
1984
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1985
|
+
constraintId: string | null;
|
|
1986
|
+
usedRatio: number | null;
|
|
1987
|
+
threshold: number | null;
|
|
1988
|
+
} | undefined;
|
|
1753
1989
|
vendorFailure?: {
|
|
1754
1990
|
code: string | null;
|
|
1755
1991
|
message: string | null;
|
|
@@ -1872,7 +2108,7 @@ export declare const ThreadHistoryPlanAnswer: z.ZodObject<Pick<{
|
|
|
1872
2108
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
1873
2109
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
1874
2110
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
1875
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2111
|
+
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"]>>>;
|
|
1876
2112
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
1877
2113
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
1878
2114
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -1915,7 +2151,7 @@ export declare const ThreadHistoryPlanAnswer: z.ZodObject<Pick<{
|
|
|
1915
2151
|
checks: "failed" | "not_configured" | "passed";
|
|
1916
2152
|
review: "approved" | "blocked" | "not_run";
|
|
1917
2153
|
review_requested?: boolean | undefined;
|
|
1918
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2154
|
+
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;
|
|
1919
2155
|
work_state?: {
|
|
1920
2156
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1921
2157
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1932,7 +2168,7 @@ export declare const ThreadHistoryPlanAnswer: z.ZodObject<Pick<{
|
|
|
1932
2168
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1933
2169
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1934
2170
|
review_requested?: boolean | undefined;
|
|
1935
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2171
|
+
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;
|
|
1936
2172
|
work_state?: {
|
|
1937
2173
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1938
2174
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2006,7 +2242,7 @@ export declare const ThreadHistoryPlanAnswer: z.ZodObject<Pick<{
|
|
|
2006
2242
|
checks: "failed" | "not_configured" | "passed";
|
|
2007
2243
|
review: "approved" | "blocked" | "not_run";
|
|
2008
2244
|
review_requested?: boolean | undefined;
|
|
2009
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2245
|
+
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;
|
|
2010
2246
|
work_state?: {
|
|
2011
2247
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2012
2248
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2056,7 +2292,7 @@ export declare const ThreadHistoryPlanAnswer: z.ZodObject<Pick<{
|
|
|
2056
2292
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2057
2293
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2058
2294
|
review_requested?: boolean | undefined;
|
|
2059
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2295
|
+
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;
|
|
2060
2296
|
work_state?: {
|
|
2061
2297
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2062
2298
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2239,7 +2475,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2239
2475
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2240
2476
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2241
2477
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2242
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2478
|
+
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"]>>>;
|
|
2243
2479
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2244
2480
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2245
2481
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2282,7 +2518,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2282
2518
|
checks: "failed" | "not_configured" | "passed";
|
|
2283
2519
|
review: "approved" | "blocked" | "not_run";
|
|
2284
2520
|
review_requested?: boolean | undefined;
|
|
2285
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2521
|
+
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;
|
|
2286
2522
|
work_state?: {
|
|
2287
2523
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2288
2524
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2299,7 +2535,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2299
2535
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2300
2536
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2301
2537
|
review_requested?: boolean | undefined;
|
|
2302
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2538
|
+
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;
|
|
2303
2539
|
work_state?: {
|
|
2304
2540
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2305
2541
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2373,7 +2609,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2373
2609
|
checks: "failed" | "not_configured" | "passed";
|
|
2374
2610
|
review: "approved" | "blocked" | "not_run";
|
|
2375
2611
|
review_requested?: boolean | undefined;
|
|
2376
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2612
|
+
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;
|
|
2377
2613
|
work_state?: {
|
|
2378
2614
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2379
2615
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2423,7 +2659,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2423
2659
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2424
2660
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2425
2661
|
review_requested?: boolean | undefined;
|
|
2426
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2662
|
+
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;
|
|
2427
2663
|
work_state?: {
|
|
2428
2664
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2429
2665
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2589,7 +2825,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2589
2825
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2590
2826
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2591
2827
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2592
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
2828
|
+
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"]>>>;
|
|
2593
2829
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2594
2830
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2595
2831
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2632,7 +2868,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2632
2868
|
checks: "failed" | "not_configured" | "passed";
|
|
2633
2869
|
review: "approved" | "blocked" | "not_run";
|
|
2634
2870
|
review_requested?: boolean | undefined;
|
|
2635
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
2871
|
+
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;
|
|
2636
2872
|
work_state?: {
|
|
2637
2873
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2638
2874
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2649,7 +2885,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2649
2885
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2650
2886
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2651
2887
|
review_requested?: boolean | undefined;
|
|
2652
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
2888
|
+
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;
|
|
2653
2889
|
work_state?: {
|
|
2654
2890
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2655
2891
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2774,7 +3010,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2774
3010
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
2775
3011
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
2776
3012
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
2777
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
3013
|
+
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"]>>>;
|
|
2778
3014
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
2779
3015
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
2780
3016
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -2817,7 +3053,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2817
3053
|
checks: "failed" | "not_configured" | "passed";
|
|
2818
3054
|
review: "approved" | "blocked" | "not_run";
|
|
2819
3055
|
review_requested?: boolean | undefined;
|
|
2820
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3056
|
+
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;
|
|
2821
3057
|
work_state?: {
|
|
2822
3058
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2823
3059
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2834,7 +3070,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
2834
3070
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2835
3071
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2836
3072
|
review_requested?: boolean | undefined;
|
|
2837
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
3073
|
+
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;
|
|
2838
3074
|
work_state?: {
|
|
2839
3075
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2840
3076
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3019,7 +3255,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3019
3255
|
checks: "failed" | "not_configured" | "passed";
|
|
3020
3256
|
review: "approved" | "blocked" | "not_run";
|
|
3021
3257
|
review_requested?: boolean | undefined;
|
|
3022
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
3258
|
+
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;
|
|
3023
3259
|
work_state?: {
|
|
3024
3260
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3025
3261
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3092,7 +3328,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3092
3328
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3093
3329
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3094
3330
|
review_requested?: boolean | undefined;
|
|
3095
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
3331
|
+
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;
|
|
3096
3332
|
work_state?: {
|
|
3097
3333
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3098
3334
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3345,13 +3581,54 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3345
3581
|
source: "grok_init";
|
|
3346
3582
|
reported_source: string;
|
|
3347
3583
|
}>]>>;
|
|
3584
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
3585
|
+
model: z.ZodString;
|
|
3586
|
+
context_window: z.ZodNumber;
|
|
3587
|
+
packet_tokens: z.ZodNumber;
|
|
3588
|
+
framing_tokens: z.ZodNumber;
|
|
3589
|
+
output_allowance_tokens: z.ZodNumber;
|
|
3590
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
3591
|
+
path: z.ZodString;
|
|
3592
|
+
estimated_tokens: z.ZodNumber;
|
|
3593
|
+
}, "strict", z.ZodTypeAny, {
|
|
3594
|
+
path: string;
|
|
3595
|
+
estimated_tokens: number;
|
|
3596
|
+
}, {
|
|
3597
|
+
path: string;
|
|
3598
|
+
estimated_tokens: number;
|
|
3599
|
+
}>, "many">;
|
|
3600
|
+
}, "strict", z.ZodTypeAny, {
|
|
3601
|
+
model: string;
|
|
3602
|
+
context_window: number;
|
|
3603
|
+
packet_tokens: number;
|
|
3604
|
+
framing_tokens: number;
|
|
3605
|
+
output_allowance_tokens: number;
|
|
3606
|
+
mandatory_files: {
|
|
3607
|
+
path: string;
|
|
3608
|
+
estimated_tokens: number;
|
|
3609
|
+
}[];
|
|
3610
|
+
}, {
|
|
3611
|
+
model: string;
|
|
3612
|
+
context_window: number;
|
|
3613
|
+
packet_tokens: number;
|
|
3614
|
+
framing_tokens: number;
|
|
3615
|
+
output_allowance_tokens: number;
|
|
3616
|
+
mandatory_files: {
|
|
3617
|
+
path: string;
|
|
3618
|
+
estimated_tokens: number;
|
|
3619
|
+
}[];
|
|
3620
|
+
}>>;
|
|
3348
3621
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
3349
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
3622
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
|
|
3350
3623
|
message: z.ZodString;
|
|
3351
3624
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
3352
3625
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
3353
3626
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
3354
3627
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
3628
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
3629
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
3630
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
3631
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
3355
3632
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
3356
3633
|
code: z.ZodNullable<z.ZodString>;
|
|
3357
3634
|
message: z.ZodString;
|
|
@@ -3362,32 +3639,91 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3362
3639
|
code: string | null;
|
|
3363
3640
|
message: string;
|
|
3364
3641
|
}>>;
|
|
3642
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
3643
|
+
exact: z.ZodLiteral<false>;
|
|
3644
|
+
changedFiles: z.ZodNumber;
|
|
3645
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
3646
|
+
path: z.ZodString;
|
|
3647
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
3648
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
3649
|
+
}, "strip", z.ZodTypeAny, {
|
|
3650
|
+
path: string;
|
|
3651
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3652
|
+
sizeBytes: number | null;
|
|
3653
|
+
}, {
|
|
3654
|
+
path: string;
|
|
3655
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3656
|
+
sizeBytes: number | null;
|
|
3657
|
+
}>, "many">;
|
|
3658
|
+
}, "strip", z.ZodTypeAny, {
|
|
3659
|
+
exact: false;
|
|
3660
|
+
changedFiles: number;
|
|
3661
|
+
largest: {
|
|
3662
|
+
path: string;
|
|
3663
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3664
|
+
sizeBytes: number | null;
|
|
3665
|
+
}[];
|
|
3666
|
+
}, {
|
|
3667
|
+
exact: false;
|
|
3668
|
+
changedFiles: number;
|
|
3669
|
+
largest: {
|
|
3670
|
+
path: string;
|
|
3671
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3672
|
+
sizeBytes: number | null;
|
|
3673
|
+
}[];
|
|
3674
|
+
}>>;
|
|
3365
3675
|
}, "strip", z.ZodTypeAny, {
|
|
3366
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3676
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3367
3677
|
message: string;
|
|
3368
3678
|
causeCode?: string | undefined;
|
|
3369
3679
|
bufferBudgetBytes?: number | undefined;
|
|
3370
3680
|
stream?: "stderr" | "stdout" | undefined;
|
|
3371
3681
|
drain?: "truncated" | undefined;
|
|
3682
|
+
requiredBytes?: number | undefined;
|
|
3683
|
+
availableBytes?: number | undefined;
|
|
3684
|
+
signal?: string | undefined;
|
|
3685
|
+
stallMs?: number | undefined;
|
|
3372
3686
|
cleanup?: {
|
|
3373
3687
|
code: string | null;
|
|
3374
3688
|
message: string;
|
|
3375
3689
|
} | undefined;
|
|
3690
|
+
inventory?: {
|
|
3691
|
+
exact: false;
|
|
3692
|
+
changedFiles: number;
|
|
3693
|
+
largest: {
|
|
3694
|
+
path: string;
|
|
3695
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3696
|
+
sizeBytes: number | null;
|
|
3697
|
+
}[];
|
|
3698
|
+
} | undefined;
|
|
3376
3699
|
}, {
|
|
3377
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3700
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3378
3701
|
message: string;
|
|
3379
3702
|
causeCode?: string | undefined;
|
|
3380
3703
|
bufferBudgetBytes?: number | undefined;
|
|
3381
3704
|
stream?: "stderr" | "stdout" | undefined;
|
|
3382
3705
|
drain?: "truncated" | undefined;
|
|
3706
|
+
requiredBytes?: number | undefined;
|
|
3707
|
+
availableBytes?: number | undefined;
|
|
3708
|
+
signal?: string | undefined;
|
|
3709
|
+
stallMs?: number | undefined;
|
|
3383
3710
|
cleanup?: {
|
|
3384
3711
|
code: string | null;
|
|
3385
3712
|
message: string;
|
|
3386
3713
|
} | undefined;
|
|
3714
|
+
inventory?: {
|
|
3715
|
+
exact: false;
|
|
3716
|
+
changedFiles: number;
|
|
3717
|
+
largest: {
|
|
3718
|
+
path: string;
|
|
3719
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3720
|
+
sizeBytes: number | null;
|
|
3721
|
+
}[];
|
|
3722
|
+
} | undefined;
|
|
3387
3723
|
}>>;
|
|
3388
3724
|
phase: z.ZodDefault<z.ZodString>;
|
|
3389
3725
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
3390
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
3726
|
+
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"]>>>;
|
|
3391
3727
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3392
3728
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3393
3729
|
safeMessage: z.ZodString;
|
|
@@ -3396,6 +3732,22 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3396
3732
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3397
3733
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3398
3734
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3735
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
3736
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
3737
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
3738
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
3739
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
3740
|
+
}, "strip", z.ZodTypeAny, {
|
|
3741
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3742
|
+
constraintId: string | null;
|
|
3743
|
+
usedRatio: number | null;
|
|
3744
|
+
threshold: number | null;
|
|
3745
|
+
}, {
|
|
3746
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3747
|
+
constraintId: string | null;
|
|
3748
|
+
usedRatio: number | null;
|
|
3749
|
+
threshold: number | null;
|
|
3750
|
+
}>>;
|
|
3399
3751
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3400
3752
|
code: z.ZodNullable<z.ZodString>;
|
|
3401
3753
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -3488,21 +3840,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3488
3840
|
source: "grok_init";
|
|
3489
3841
|
reported_source: string;
|
|
3490
3842
|
} | undefined;
|
|
3843
|
+
rawContextShortfall?: {
|
|
3844
|
+
model: string;
|
|
3845
|
+
context_window: number;
|
|
3846
|
+
packet_tokens: number;
|
|
3847
|
+
framing_tokens: number;
|
|
3848
|
+
output_allowance_tokens: number;
|
|
3849
|
+
mandatory_files: {
|
|
3850
|
+
path: string;
|
|
3851
|
+
estimated_tokens: number;
|
|
3852
|
+
}[];
|
|
3853
|
+
} | undefined;
|
|
3491
3854
|
captureFailure?: {
|
|
3492
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3855
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3493
3856
|
message: string;
|
|
3494
3857
|
causeCode?: string | undefined;
|
|
3495
3858
|
bufferBudgetBytes?: number | undefined;
|
|
3496
3859
|
stream?: "stderr" | "stdout" | undefined;
|
|
3497
3860
|
drain?: "truncated" | undefined;
|
|
3861
|
+
requiredBytes?: number | undefined;
|
|
3862
|
+
availableBytes?: number | undefined;
|
|
3863
|
+
signal?: string | undefined;
|
|
3864
|
+
stallMs?: number | undefined;
|
|
3498
3865
|
cleanup?: {
|
|
3499
3866
|
code: string | null;
|
|
3500
3867
|
message: string;
|
|
3501
3868
|
} | undefined;
|
|
3869
|
+
inventory?: {
|
|
3870
|
+
exact: false;
|
|
3871
|
+
changedFiles: number;
|
|
3872
|
+
largest: {
|
|
3873
|
+
path: string;
|
|
3874
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3875
|
+
sizeBytes: number | null;
|
|
3876
|
+
}[];
|
|
3877
|
+
} | undefined;
|
|
3502
3878
|
} | undefined;
|
|
3503
3879
|
phase: string;
|
|
3504
3880
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
3505
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
3881
|
+
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;
|
|
3506
3882
|
harnessId: string | null;
|
|
3507
3883
|
attemptId: string | null;
|
|
3508
3884
|
safeMessage: string;
|
|
@@ -3511,6 +3887,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3511
3887
|
eventRefs: string[];
|
|
3512
3888
|
runDir: string | null;
|
|
3513
3889
|
resetsAt: string | null;
|
|
3890
|
+
quotaRefusal?: {
|
|
3891
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3892
|
+
constraintId: string | null;
|
|
3893
|
+
usedRatio: number | null;
|
|
3894
|
+
threshold: number | null;
|
|
3895
|
+
} | undefined;
|
|
3514
3896
|
vendorFailure: {
|
|
3515
3897
|
code: string | null;
|
|
3516
3898
|
message: string | null;
|
|
@@ -3555,21 +3937,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3555
3937
|
source: "grok_init";
|
|
3556
3938
|
reported_source: string;
|
|
3557
3939
|
} | undefined;
|
|
3940
|
+
rawContextShortfall?: {
|
|
3941
|
+
model: string;
|
|
3942
|
+
context_window: number;
|
|
3943
|
+
packet_tokens: number;
|
|
3944
|
+
framing_tokens: number;
|
|
3945
|
+
output_allowance_tokens: number;
|
|
3946
|
+
mandatory_files: {
|
|
3947
|
+
path: string;
|
|
3948
|
+
estimated_tokens: number;
|
|
3949
|
+
}[];
|
|
3950
|
+
} | undefined;
|
|
3558
3951
|
captureFailure?: {
|
|
3559
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
3952
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3560
3953
|
message: string;
|
|
3561
3954
|
causeCode?: string | undefined;
|
|
3562
3955
|
bufferBudgetBytes?: number | undefined;
|
|
3563
3956
|
stream?: "stderr" | "stdout" | undefined;
|
|
3564
3957
|
drain?: "truncated" | undefined;
|
|
3958
|
+
requiredBytes?: number | undefined;
|
|
3959
|
+
availableBytes?: number | undefined;
|
|
3960
|
+
signal?: string | undefined;
|
|
3961
|
+
stallMs?: number | undefined;
|
|
3565
3962
|
cleanup?: {
|
|
3566
3963
|
code: string | null;
|
|
3567
3964
|
message: string;
|
|
3568
3965
|
} | undefined;
|
|
3966
|
+
inventory?: {
|
|
3967
|
+
exact: false;
|
|
3968
|
+
changedFiles: number;
|
|
3969
|
+
largest: {
|
|
3970
|
+
path: string;
|
|
3971
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
3972
|
+
sizeBytes: number | null;
|
|
3973
|
+
}[];
|
|
3974
|
+
} | undefined;
|
|
3569
3975
|
} | undefined;
|
|
3570
3976
|
phase?: string | undefined;
|
|
3571
3977
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
3572
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
3978
|
+
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;
|
|
3573
3979
|
harnessId?: string | null | undefined;
|
|
3574
3980
|
attemptId?: string | null | undefined;
|
|
3575
3981
|
safeMessage: string;
|
|
@@ -3578,6 +3984,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3578
3984
|
eventRefs?: string[] | undefined;
|
|
3579
3985
|
runDir?: string | null | undefined;
|
|
3580
3986
|
resetsAt?: string | null | undefined;
|
|
3987
|
+
quotaRefusal?: {
|
|
3988
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
3989
|
+
constraintId: string | null;
|
|
3990
|
+
usedRatio: number | null;
|
|
3991
|
+
threshold: number | null;
|
|
3992
|
+
} | undefined;
|
|
3581
3993
|
vendorFailure?: {
|
|
3582
3994
|
code: string | null;
|
|
3583
3995
|
message: string | null;
|
|
@@ -3708,7 +4120,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3708
4120
|
checks: "failed" | "not_configured" | "passed";
|
|
3709
4121
|
review: "approved" | "blocked" | "not_run";
|
|
3710
4122
|
review_requested?: boolean | undefined;
|
|
3711
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
4123
|
+
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;
|
|
3712
4124
|
work_state?: {
|
|
3713
4125
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3714
4126
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3743,7 +4155,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3743
4155
|
checks: "failed" | "not_configured" | "passed";
|
|
3744
4156
|
review: "approved" | "blocked" | "not_run";
|
|
3745
4157
|
review_requested?: boolean | undefined;
|
|
3746
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
4158
|
+
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;
|
|
3747
4159
|
work_state?: {
|
|
3748
4160
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3749
4161
|
source: "absent" | "constrained" | "validated";
|
|
@@ -3869,21 +4281,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3869
4281
|
source: "grok_init";
|
|
3870
4282
|
reported_source: string;
|
|
3871
4283
|
} | undefined;
|
|
4284
|
+
rawContextShortfall?: {
|
|
4285
|
+
model: string;
|
|
4286
|
+
context_window: number;
|
|
4287
|
+
packet_tokens: number;
|
|
4288
|
+
framing_tokens: number;
|
|
4289
|
+
output_allowance_tokens: number;
|
|
4290
|
+
mandatory_files: {
|
|
4291
|
+
path: string;
|
|
4292
|
+
estimated_tokens: number;
|
|
4293
|
+
}[];
|
|
4294
|
+
} | undefined;
|
|
3872
4295
|
captureFailure?: {
|
|
3873
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
4296
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
3874
4297
|
message: string;
|
|
3875
4298
|
causeCode?: string | undefined;
|
|
3876
4299
|
bufferBudgetBytes?: number | undefined;
|
|
3877
4300
|
stream?: "stderr" | "stdout" | undefined;
|
|
3878
4301
|
drain?: "truncated" | undefined;
|
|
4302
|
+
requiredBytes?: number | undefined;
|
|
4303
|
+
availableBytes?: number | undefined;
|
|
4304
|
+
signal?: string | undefined;
|
|
4305
|
+
stallMs?: number | undefined;
|
|
3879
4306
|
cleanup?: {
|
|
3880
4307
|
code: string | null;
|
|
3881
4308
|
message: string;
|
|
3882
4309
|
} | undefined;
|
|
4310
|
+
inventory?: {
|
|
4311
|
+
exact: false;
|
|
4312
|
+
changedFiles: number;
|
|
4313
|
+
largest: {
|
|
4314
|
+
path: string;
|
|
4315
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
4316
|
+
sizeBytes: number | null;
|
|
4317
|
+
}[];
|
|
4318
|
+
} | undefined;
|
|
3883
4319
|
} | undefined;
|
|
3884
4320
|
phase: string;
|
|
3885
4321
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
3886
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
4322
|
+
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;
|
|
3887
4323
|
harnessId: string | null;
|
|
3888
4324
|
attemptId: string | null;
|
|
3889
4325
|
safeMessage: string;
|
|
@@ -3892,6 +4328,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3892
4328
|
eventRefs: string[];
|
|
3893
4329
|
runDir: string | null;
|
|
3894
4330
|
resetsAt: string | null;
|
|
4331
|
+
quotaRefusal?: {
|
|
4332
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
4333
|
+
constraintId: string | null;
|
|
4334
|
+
usedRatio: number | null;
|
|
4335
|
+
threshold: number | null;
|
|
4336
|
+
} | undefined;
|
|
3895
4337
|
vendorFailure: {
|
|
3896
4338
|
code: string | null;
|
|
3897
4339
|
message: string | null;
|
|
@@ -3990,7 +4432,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
3990
4432
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
3991
4433
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
3992
4434
|
review_requested?: boolean | undefined;
|
|
3993
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4435
|
+
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;
|
|
3994
4436
|
work_state?: {
|
|
3995
4437
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
3996
4438
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4025,7 +4467,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4025
4467
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4026
4468
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4027
4469
|
review_requested?: boolean | undefined;
|
|
4028
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4470
|
+
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;
|
|
4029
4471
|
work_state?: {
|
|
4030
4472
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4031
4473
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4151,21 +4593,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4151
4593
|
source: "grok_init";
|
|
4152
4594
|
reported_source: string;
|
|
4153
4595
|
} | undefined;
|
|
4596
|
+
rawContextShortfall?: {
|
|
4597
|
+
model: string;
|
|
4598
|
+
context_window: number;
|
|
4599
|
+
packet_tokens: number;
|
|
4600
|
+
framing_tokens: number;
|
|
4601
|
+
output_allowance_tokens: number;
|
|
4602
|
+
mandatory_files: {
|
|
4603
|
+
path: string;
|
|
4604
|
+
estimated_tokens: number;
|
|
4605
|
+
}[];
|
|
4606
|
+
} | undefined;
|
|
4154
4607
|
captureFailure?: {
|
|
4155
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
4608
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
4156
4609
|
message: string;
|
|
4157
4610
|
causeCode?: string | undefined;
|
|
4158
4611
|
bufferBudgetBytes?: number | undefined;
|
|
4159
4612
|
stream?: "stderr" | "stdout" | undefined;
|
|
4160
4613
|
drain?: "truncated" | undefined;
|
|
4614
|
+
requiredBytes?: number | undefined;
|
|
4615
|
+
availableBytes?: number | undefined;
|
|
4616
|
+
signal?: string | undefined;
|
|
4617
|
+
stallMs?: number | undefined;
|
|
4161
4618
|
cleanup?: {
|
|
4162
4619
|
code: string | null;
|
|
4163
4620
|
message: string;
|
|
4164
4621
|
} | undefined;
|
|
4622
|
+
inventory?: {
|
|
4623
|
+
exact: false;
|
|
4624
|
+
changedFiles: number;
|
|
4625
|
+
largest: {
|
|
4626
|
+
path: string;
|
|
4627
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
4628
|
+
sizeBytes: number | null;
|
|
4629
|
+
}[];
|
|
4630
|
+
} | undefined;
|
|
4165
4631
|
} | undefined;
|
|
4166
4632
|
phase?: string | undefined;
|
|
4167
4633
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
4168
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
4634
|
+
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;
|
|
4169
4635
|
harnessId?: string | null | undefined;
|
|
4170
4636
|
attemptId?: string | null | undefined;
|
|
4171
4637
|
safeMessage: string;
|
|
@@ -4174,6 +4640,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4174
4640
|
eventRefs?: string[] | undefined;
|
|
4175
4641
|
runDir?: string | null | undefined;
|
|
4176
4642
|
resetsAt?: string | null | undefined;
|
|
4643
|
+
quotaRefusal?: {
|
|
4644
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
4645
|
+
constraintId: string | null;
|
|
4646
|
+
usedRatio: number | null;
|
|
4647
|
+
threshold: number | null;
|
|
4648
|
+
} | undefined;
|
|
4177
4649
|
vendorFailure?: {
|
|
4178
4650
|
code: string | null;
|
|
4179
4651
|
message: string | null;
|
|
@@ -4324,7 +4796,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4324
4796
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
4325
4797
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
4326
4798
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
4327
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
4799
|
+
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"]>>>;
|
|
4328
4800
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
4329
4801
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
4330
4802
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -4367,7 +4839,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4367
4839
|
checks: "failed" | "not_configured" | "passed";
|
|
4368
4840
|
review: "approved" | "blocked" | "not_run";
|
|
4369
4841
|
review_requested?: boolean | undefined;
|
|
4370
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
4842
|
+
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;
|
|
4371
4843
|
work_state?: {
|
|
4372
4844
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4373
4845
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4384,7 +4856,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4384
4856
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4385
4857
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4386
4858
|
review_requested?: boolean | undefined;
|
|
4387
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4859
|
+
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;
|
|
4388
4860
|
work_state?: {
|
|
4389
4861
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4390
4862
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4458,7 +4930,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4458
4930
|
checks: "failed" | "not_configured" | "passed";
|
|
4459
4931
|
review: "approved" | "blocked" | "not_run";
|
|
4460
4932
|
review_requested?: boolean | undefined;
|
|
4461
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
4933
|
+
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;
|
|
4462
4934
|
work_state?: {
|
|
4463
4935
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4464
4936
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4508,7 +4980,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4508
4980
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
4509
4981
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
4510
4982
|
review_requested?: boolean | undefined;
|
|
4511
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
4983
|
+
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;
|
|
4512
4984
|
work_state?: {
|
|
4513
4985
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4514
4986
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4709,7 +5181,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4709
5181
|
checks: "failed" | "not_configured" | "passed";
|
|
4710
5182
|
review: "approved" | "blocked" | "not_run";
|
|
4711
5183
|
review_requested?: boolean | undefined;
|
|
4712
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
5184
|
+
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;
|
|
4713
5185
|
work_state?: {
|
|
4714
5186
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4715
5187
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4744,7 +5216,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4744
5216
|
checks: "failed" | "not_configured" | "passed";
|
|
4745
5217
|
review: "approved" | "blocked" | "not_run";
|
|
4746
5218
|
review_requested?: boolean | undefined;
|
|
4747
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
5219
|
+
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;
|
|
4748
5220
|
work_state?: {
|
|
4749
5221
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
4750
5222
|
source: "absent" | "constrained" | "validated";
|
|
@@ -4870,21 +5342,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4870
5342
|
source: "grok_init";
|
|
4871
5343
|
reported_source: string;
|
|
4872
5344
|
} | undefined;
|
|
5345
|
+
rawContextShortfall?: {
|
|
5346
|
+
model: string;
|
|
5347
|
+
context_window: number;
|
|
5348
|
+
packet_tokens: number;
|
|
5349
|
+
framing_tokens: number;
|
|
5350
|
+
output_allowance_tokens: number;
|
|
5351
|
+
mandatory_files: {
|
|
5352
|
+
path: string;
|
|
5353
|
+
estimated_tokens: number;
|
|
5354
|
+
}[];
|
|
5355
|
+
} | undefined;
|
|
4873
5356
|
captureFailure?: {
|
|
4874
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
5357
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
4875
5358
|
message: string;
|
|
4876
5359
|
causeCode?: string | undefined;
|
|
4877
5360
|
bufferBudgetBytes?: number | undefined;
|
|
4878
5361
|
stream?: "stderr" | "stdout" | undefined;
|
|
4879
5362
|
drain?: "truncated" | undefined;
|
|
5363
|
+
requiredBytes?: number | undefined;
|
|
5364
|
+
availableBytes?: number | undefined;
|
|
5365
|
+
signal?: string | undefined;
|
|
5366
|
+
stallMs?: number | undefined;
|
|
4880
5367
|
cleanup?: {
|
|
4881
5368
|
code: string | null;
|
|
4882
5369
|
message: string;
|
|
4883
5370
|
} | undefined;
|
|
5371
|
+
inventory?: {
|
|
5372
|
+
exact: false;
|
|
5373
|
+
changedFiles: number;
|
|
5374
|
+
largest: {
|
|
5375
|
+
path: string;
|
|
5376
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
5377
|
+
sizeBytes: number | null;
|
|
5378
|
+
}[];
|
|
5379
|
+
} | undefined;
|
|
4884
5380
|
} | undefined;
|
|
4885
5381
|
phase: string;
|
|
4886
5382
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
4887
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
5383
|
+
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;
|
|
4888
5384
|
harnessId: string | null;
|
|
4889
5385
|
attemptId: string | null;
|
|
4890
5386
|
safeMessage: string;
|
|
@@ -4893,6 +5389,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
4893
5389
|
eventRefs: string[];
|
|
4894
5390
|
runDir: string | null;
|
|
4895
5391
|
resetsAt: string | null;
|
|
5392
|
+
quotaRefusal?: {
|
|
5393
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
5394
|
+
constraintId: string | null;
|
|
5395
|
+
usedRatio: number | null;
|
|
5396
|
+
threshold: number | null;
|
|
5397
|
+
} | undefined;
|
|
4896
5398
|
vendorFailure: {
|
|
4897
5399
|
code: string | null;
|
|
4898
5400
|
message: string | null;
|
|
@@ -5053,7 +5555,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
5053
5555
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5054
5556
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5055
5557
|
review_requested?: boolean | undefined;
|
|
5056
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
5558
|
+
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;
|
|
5057
5559
|
work_state?: {
|
|
5058
5560
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5059
5561
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5088,7 +5590,7 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
5088
5590
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5089
5591
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5090
5592
|
review_requested?: boolean | undefined;
|
|
5091
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
5593
|
+
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;
|
|
5092
5594
|
work_state?: {
|
|
5093
5595
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5094
5596
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5214,21 +5716,45 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
5214
5716
|
source: "grok_init";
|
|
5215
5717
|
reported_source: string;
|
|
5216
5718
|
} | undefined;
|
|
5719
|
+
rawContextShortfall?: {
|
|
5720
|
+
model: string;
|
|
5721
|
+
context_window: number;
|
|
5722
|
+
packet_tokens: number;
|
|
5723
|
+
framing_tokens: number;
|
|
5724
|
+
output_allowance_tokens: number;
|
|
5725
|
+
mandatory_files: {
|
|
5726
|
+
path: string;
|
|
5727
|
+
estimated_tokens: number;
|
|
5728
|
+
}[];
|
|
5729
|
+
} | undefined;
|
|
5217
5730
|
captureFailure?: {
|
|
5218
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
5731
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
5219
5732
|
message: string;
|
|
5220
5733
|
causeCode?: string | undefined;
|
|
5221
5734
|
bufferBudgetBytes?: number | undefined;
|
|
5222
5735
|
stream?: "stderr" | "stdout" | undefined;
|
|
5223
5736
|
drain?: "truncated" | undefined;
|
|
5737
|
+
requiredBytes?: number | undefined;
|
|
5738
|
+
availableBytes?: number | undefined;
|
|
5739
|
+
signal?: string | undefined;
|
|
5740
|
+
stallMs?: number | undefined;
|
|
5224
5741
|
cleanup?: {
|
|
5225
5742
|
code: string | null;
|
|
5226
5743
|
message: string;
|
|
5227
5744
|
} | undefined;
|
|
5745
|
+
inventory?: {
|
|
5746
|
+
exact: false;
|
|
5747
|
+
changedFiles: number;
|
|
5748
|
+
largest: {
|
|
5749
|
+
path: string;
|
|
5750
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
5751
|
+
sizeBytes: number | null;
|
|
5752
|
+
}[];
|
|
5753
|
+
} | undefined;
|
|
5228
5754
|
} | undefined;
|
|
5229
5755
|
phase?: string | undefined;
|
|
5230
5756
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
5231
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
5757
|
+
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;
|
|
5232
5758
|
harnessId?: string | null | undefined;
|
|
5233
5759
|
attemptId?: string | null | undefined;
|
|
5234
5760
|
safeMessage: string;
|
|
@@ -5237,6 +5763,12 @@ export declare const ThreadHistoryTurn: z.ZodObject<Omit<{
|
|
|
5237
5763
|
eventRefs?: string[] | undefined;
|
|
5238
5764
|
runDir?: string | null | undefined;
|
|
5239
5765
|
resetsAt?: string | null | undefined;
|
|
5766
|
+
quotaRefusal?: {
|
|
5767
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
5768
|
+
constraintId: string | null;
|
|
5769
|
+
usedRatio: number | null;
|
|
5770
|
+
threshold: number | null;
|
|
5771
|
+
} | undefined;
|
|
5240
5772
|
vendorFailure?: {
|
|
5241
5773
|
code: string | null;
|
|
5242
5774
|
message: string | null;
|
|
@@ -5447,7 +5979,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5447
5979
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
5448
5980
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
5449
5981
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
5450
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
5982
|
+
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"]>>>;
|
|
5451
5983
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
5452
5984
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
5453
5985
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -5490,7 +6022,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5490
6022
|
checks: "failed" | "not_configured" | "passed";
|
|
5491
6023
|
review: "approved" | "blocked" | "not_run";
|
|
5492
6024
|
review_requested?: boolean | undefined;
|
|
5493
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6025
|
+
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;
|
|
5494
6026
|
work_state?: {
|
|
5495
6027
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5496
6028
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5507,7 +6039,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5507
6039
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5508
6040
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5509
6041
|
review_requested?: boolean | undefined;
|
|
5510
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6042
|
+
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;
|
|
5511
6043
|
work_state?: {
|
|
5512
6044
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5513
6045
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5581,7 +6113,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5581
6113
|
checks: "failed" | "not_configured" | "passed";
|
|
5582
6114
|
review: "approved" | "blocked" | "not_run";
|
|
5583
6115
|
review_requested?: boolean | undefined;
|
|
5584
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6116
|
+
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;
|
|
5585
6117
|
work_state?: {
|
|
5586
6118
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5587
6119
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5631,7 +6163,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5631
6163
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5632
6164
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5633
6165
|
review_requested?: boolean | undefined;
|
|
5634
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6166
|
+
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;
|
|
5635
6167
|
work_state?: {
|
|
5636
6168
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5637
6169
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5804,7 +6336,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5804
6336
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
5805
6337
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
5806
6338
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
5807
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
6339
|
+
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"]>>>;
|
|
5808
6340
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
5809
6341
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
5810
6342
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -5847,7 +6379,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5847
6379
|
checks: "failed" | "not_configured" | "passed";
|
|
5848
6380
|
review: "approved" | "blocked" | "not_run";
|
|
5849
6381
|
review_requested?: boolean | undefined;
|
|
5850
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6382
|
+
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;
|
|
5851
6383
|
work_state?: {
|
|
5852
6384
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5853
6385
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5864,7 +6396,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5864
6396
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5865
6397
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5866
6398
|
review_requested?: boolean | undefined;
|
|
5867
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6399
|
+
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;
|
|
5868
6400
|
work_state?: {
|
|
5869
6401
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5870
6402
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5938,7 +6470,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5938
6470
|
checks: "failed" | "not_configured" | "passed";
|
|
5939
6471
|
review: "approved" | "blocked" | "not_run";
|
|
5940
6472
|
review_requested?: boolean | undefined;
|
|
5941
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6473
|
+
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;
|
|
5942
6474
|
work_state?: {
|
|
5943
6475
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5944
6476
|
source: "absent" | "constrained" | "validated";
|
|
@@ -5988,7 +6520,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
5988
6520
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
5989
6521
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
5990
6522
|
review_requested?: boolean | undefined;
|
|
5991
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6523
|
+
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;
|
|
5992
6524
|
work_state?: {
|
|
5993
6525
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
5994
6526
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6041,7 +6573,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
6041
6573
|
checks: "failed" | "not_configured" | "passed";
|
|
6042
6574
|
review: "approved" | "blocked" | "not_run";
|
|
6043
6575
|
review_requested?: boolean | undefined;
|
|
6044
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6576
|
+
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;
|
|
6045
6577
|
work_state?: {
|
|
6046
6578
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6047
6579
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6094,7 +6626,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
6094
6626
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
6095
6627
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
6096
6628
|
review_requested?: boolean | undefined;
|
|
6097
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6629
|
+
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;
|
|
6098
6630
|
work_state?: {
|
|
6099
6631
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6100
6632
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6213,7 +6745,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
6213
6745
|
checks: "failed" | "not_configured" | "passed";
|
|
6214
6746
|
review: "approved" | "blocked" | "not_run";
|
|
6215
6747
|
review_requested?: boolean | undefined;
|
|
6216
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
6748
|
+
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;
|
|
6217
6749
|
work_state?: {
|
|
6218
6750
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6219
6751
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6316,7 +6848,7 @@ export declare const ThreadHistoryHeader: z.ZodObject<{
|
|
|
6316
6848
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
6317
6849
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
6318
6850
|
review_requested?: boolean | undefined;
|
|
6319
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
6851
|
+
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;
|
|
6320
6852
|
work_state?: {
|
|
6321
6853
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6322
6854
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6507,7 +7039,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6507
7039
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
6508
7040
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
6509
7041
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
6510
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
7042
|
+
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"]>>>;
|
|
6511
7043
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
6512
7044
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
6513
7045
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -6550,7 +7082,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6550
7082
|
checks: "failed" | "not_configured" | "passed";
|
|
6551
7083
|
review: "approved" | "blocked" | "not_run";
|
|
6552
7084
|
review_requested?: boolean | undefined;
|
|
6553
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7085
|
+
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;
|
|
6554
7086
|
work_state?: {
|
|
6555
7087
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6556
7088
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6567,7 +7099,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6567
7099
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
6568
7100
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
6569
7101
|
review_requested?: boolean | undefined;
|
|
6570
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7102
|
+
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;
|
|
6571
7103
|
work_state?: {
|
|
6572
7104
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6573
7105
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6641,7 +7173,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6641
7173
|
checks: "failed" | "not_configured" | "passed";
|
|
6642
7174
|
review: "approved" | "blocked" | "not_run";
|
|
6643
7175
|
review_requested?: boolean | undefined;
|
|
6644
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7176
|
+
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;
|
|
6645
7177
|
work_state?: {
|
|
6646
7178
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6647
7179
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6691,7 +7223,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6691
7223
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
6692
7224
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
6693
7225
|
review_requested?: boolean | undefined;
|
|
6694
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7226
|
+
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;
|
|
6695
7227
|
work_state?: {
|
|
6696
7228
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6697
7229
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6864,7 +7396,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6864
7396
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
6865
7397
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
6866
7398
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
6867
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
7399
|
+
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"]>>>;
|
|
6868
7400
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
6869
7401
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
6870
7402
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -6907,7 +7439,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6907
7439
|
checks: "failed" | "not_configured" | "passed";
|
|
6908
7440
|
review: "approved" | "blocked" | "not_run";
|
|
6909
7441
|
review_requested?: boolean | undefined;
|
|
6910
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7442
|
+
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;
|
|
6911
7443
|
work_state?: {
|
|
6912
7444
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6913
7445
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6924,7 +7456,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6924
7456
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
6925
7457
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
6926
7458
|
review_requested?: boolean | undefined;
|
|
6927
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7459
|
+
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;
|
|
6928
7460
|
work_state?: {
|
|
6929
7461
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
6930
7462
|
source: "absent" | "constrained" | "validated";
|
|
@@ -6998,7 +7530,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
6998
7530
|
checks: "failed" | "not_configured" | "passed";
|
|
6999
7531
|
review: "approved" | "blocked" | "not_run";
|
|
7000
7532
|
review_requested?: boolean | undefined;
|
|
7001
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7533
|
+
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;
|
|
7002
7534
|
work_state?: {
|
|
7003
7535
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7004
7536
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7048,7 +7580,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7048
7580
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7049
7581
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7050
7582
|
review_requested?: boolean | undefined;
|
|
7051
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7583
|
+
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;
|
|
7052
7584
|
work_state?: {
|
|
7053
7585
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7054
7586
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7101,7 +7633,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7101
7633
|
checks: "failed" | "not_configured" | "passed";
|
|
7102
7634
|
review: "approved" | "blocked" | "not_run";
|
|
7103
7635
|
review_requested?: boolean | undefined;
|
|
7104
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7636
|
+
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;
|
|
7105
7637
|
work_state?: {
|
|
7106
7638
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7107
7639
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7154,7 +7686,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7154
7686
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7155
7687
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7156
7688
|
review_requested?: boolean | undefined;
|
|
7157
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7689
|
+
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;
|
|
7158
7690
|
work_state?: {
|
|
7159
7691
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7160
7692
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7273,7 +7805,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7273
7805
|
checks: "failed" | "not_configured" | "passed";
|
|
7274
7806
|
review: "approved" | "blocked" | "not_run";
|
|
7275
7807
|
review_requested?: boolean | undefined;
|
|
7276
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
7808
|
+
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;
|
|
7277
7809
|
work_state?: {
|
|
7278
7810
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7279
7811
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7376,7 +7908,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7376
7908
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7377
7909
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7378
7910
|
review_requested?: boolean | undefined;
|
|
7379
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
7911
|
+
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;
|
|
7380
7912
|
work_state?: {
|
|
7381
7913
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7382
7914
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7487,7 +8019,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7487
8019
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
7488
8020
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
7489
8021
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
7490
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
8022
|
+
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"]>>>;
|
|
7491
8023
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
7492
8024
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
7493
8025
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -7530,7 +8062,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7530
8062
|
checks: "failed" | "not_configured" | "passed";
|
|
7531
8063
|
review: "approved" | "blocked" | "not_run";
|
|
7532
8064
|
review_requested?: boolean | undefined;
|
|
7533
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
8065
|
+
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;
|
|
7534
8066
|
work_state?: {
|
|
7535
8067
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7536
8068
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7547,7 +8079,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7547
8079
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7548
8080
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7549
8081
|
review_requested?: boolean | undefined;
|
|
7550
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
8082
|
+
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;
|
|
7551
8083
|
work_state?: {
|
|
7552
8084
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7553
8085
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7621,7 +8153,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7621
8153
|
checks: "failed" | "not_configured" | "passed";
|
|
7622
8154
|
review: "approved" | "blocked" | "not_run";
|
|
7623
8155
|
review_requested?: boolean | undefined;
|
|
7624
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
8156
|
+
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;
|
|
7625
8157
|
work_state?: {
|
|
7626
8158
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7627
8159
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7671,7 +8203,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7671
8203
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7672
8204
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7673
8205
|
review_requested?: boolean | undefined;
|
|
7674
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
8206
|
+
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;
|
|
7675
8207
|
work_state?: {
|
|
7676
8208
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7677
8209
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7837,7 +8369,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7837
8369
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
7838
8370
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
7839
8371
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
7840
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
8372
|
+
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"]>>>;
|
|
7841
8373
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
7842
8374
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
7843
8375
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -7880,7 +8412,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7880
8412
|
checks: "failed" | "not_configured" | "passed";
|
|
7881
8413
|
review: "approved" | "blocked" | "not_run";
|
|
7882
8414
|
review_requested?: boolean | undefined;
|
|
7883
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
8415
|
+
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;
|
|
7884
8416
|
work_state?: {
|
|
7885
8417
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7886
8418
|
source: "absent" | "constrained" | "validated";
|
|
@@ -7897,7 +8429,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
7897
8429
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
7898
8430
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
7899
8431
|
review_requested?: boolean | undefined;
|
|
7900
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
8432
|
+
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;
|
|
7901
8433
|
work_state?: {
|
|
7902
8434
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
7903
8435
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8022,7 +8554,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8022
8554
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
8023
8555
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
8024
8556
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
8025
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
8557
|
+
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"]>>>;
|
|
8026
8558
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
8027
8559
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
8028
8560
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -8065,7 +8597,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8065
8597
|
checks: "failed" | "not_configured" | "passed";
|
|
8066
8598
|
review: "approved" | "blocked" | "not_run";
|
|
8067
8599
|
review_requested?: boolean | undefined;
|
|
8068
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
8600
|
+
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;
|
|
8069
8601
|
work_state?: {
|
|
8070
8602
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8071
8603
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8082,7 +8614,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8082
8614
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
8083
8615
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
8084
8616
|
review_requested?: boolean | undefined;
|
|
8085
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
8617
|
+
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;
|
|
8086
8618
|
work_state?: {
|
|
8087
8619
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8088
8620
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8267,7 +8799,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8267
8799
|
checks: "failed" | "not_configured" | "passed";
|
|
8268
8800
|
review: "approved" | "blocked" | "not_run";
|
|
8269
8801
|
review_requested?: boolean | undefined;
|
|
8270
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
8802
|
+
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;
|
|
8271
8803
|
work_state?: {
|
|
8272
8804
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8273
8805
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8340,7 +8872,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8340
8872
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
8341
8873
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
8342
8874
|
review_requested?: boolean | undefined;
|
|
8343
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
8875
|
+
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;
|
|
8344
8876
|
work_state?: {
|
|
8345
8877
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8346
8878
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8593,13 +9125,54 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8593
9125
|
source: "grok_init";
|
|
8594
9126
|
reported_source: string;
|
|
8595
9127
|
}>]>>;
|
|
9128
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
9129
|
+
model: z.ZodString;
|
|
9130
|
+
context_window: z.ZodNumber;
|
|
9131
|
+
packet_tokens: z.ZodNumber;
|
|
9132
|
+
framing_tokens: z.ZodNumber;
|
|
9133
|
+
output_allowance_tokens: z.ZodNumber;
|
|
9134
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
9135
|
+
path: z.ZodString;
|
|
9136
|
+
estimated_tokens: z.ZodNumber;
|
|
9137
|
+
}, "strict", z.ZodTypeAny, {
|
|
9138
|
+
path: string;
|
|
9139
|
+
estimated_tokens: number;
|
|
9140
|
+
}, {
|
|
9141
|
+
path: string;
|
|
9142
|
+
estimated_tokens: number;
|
|
9143
|
+
}>, "many">;
|
|
9144
|
+
}, "strict", z.ZodTypeAny, {
|
|
9145
|
+
model: string;
|
|
9146
|
+
context_window: number;
|
|
9147
|
+
packet_tokens: number;
|
|
9148
|
+
framing_tokens: number;
|
|
9149
|
+
output_allowance_tokens: number;
|
|
9150
|
+
mandatory_files: {
|
|
9151
|
+
path: string;
|
|
9152
|
+
estimated_tokens: number;
|
|
9153
|
+
}[];
|
|
9154
|
+
}, {
|
|
9155
|
+
model: string;
|
|
9156
|
+
context_window: number;
|
|
9157
|
+
packet_tokens: number;
|
|
9158
|
+
framing_tokens: number;
|
|
9159
|
+
output_allowance_tokens: number;
|
|
9160
|
+
mandatory_files: {
|
|
9161
|
+
path: string;
|
|
9162
|
+
estimated_tokens: number;
|
|
9163
|
+
}[];
|
|
9164
|
+
}>>;
|
|
8596
9165
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
8597
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
9166
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_space_insufficient", "capture_git_stalled", "capture_git_signal", "capture_read_failed", "capture_object_missing", "capture_failed"]>;
|
|
8598
9167
|
message: z.ZodString;
|
|
8599
9168
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
8600
9169
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
8601
9170
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
8602
9171
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
9172
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
9173
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
9174
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
9175
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
8603
9176
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
8604
9177
|
code: z.ZodNullable<z.ZodString>;
|
|
8605
9178
|
message: z.ZodString;
|
|
@@ -8610,32 +9183,91 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8610
9183
|
code: string | null;
|
|
8611
9184
|
message: string;
|
|
8612
9185
|
}>>;
|
|
9186
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
9187
|
+
exact: z.ZodLiteral<false>;
|
|
9188
|
+
changedFiles: z.ZodNumber;
|
|
9189
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
9190
|
+
path: z.ZodString;
|
|
9191
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
9192
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
9193
|
+
}, "strip", z.ZodTypeAny, {
|
|
9194
|
+
path: string;
|
|
9195
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9196
|
+
sizeBytes: number | null;
|
|
9197
|
+
}, {
|
|
9198
|
+
path: string;
|
|
9199
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9200
|
+
sizeBytes: number | null;
|
|
9201
|
+
}>, "many">;
|
|
9202
|
+
}, "strip", z.ZodTypeAny, {
|
|
9203
|
+
exact: false;
|
|
9204
|
+
changedFiles: number;
|
|
9205
|
+
largest: {
|
|
9206
|
+
path: string;
|
|
9207
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9208
|
+
sizeBytes: number | null;
|
|
9209
|
+
}[];
|
|
9210
|
+
}, {
|
|
9211
|
+
exact: false;
|
|
9212
|
+
changedFiles: number;
|
|
9213
|
+
largest: {
|
|
9214
|
+
path: string;
|
|
9215
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9216
|
+
sizeBytes: number | null;
|
|
9217
|
+
}[];
|
|
9218
|
+
}>>;
|
|
8613
9219
|
}, "strip", z.ZodTypeAny, {
|
|
8614
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
9220
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
8615
9221
|
message: string;
|
|
8616
9222
|
causeCode?: string | undefined;
|
|
8617
9223
|
bufferBudgetBytes?: number | undefined;
|
|
8618
9224
|
stream?: "stderr" | "stdout" | undefined;
|
|
8619
9225
|
drain?: "truncated" | undefined;
|
|
9226
|
+
requiredBytes?: number | undefined;
|
|
9227
|
+
availableBytes?: number | undefined;
|
|
9228
|
+
signal?: string | undefined;
|
|
9229
|
+
stallMs?: number | undefined;
|
|
8620
9230
|
cleanup?: {
|
|
8621
9231
|
code: string | null;
|
|
8622
9232
|
message: string;
|
|
8623
9233
|
} | undefined;
|
|
9234
|
+
inventory?: {
|
|
9235
|
+
exact: false;
|
|
9236
|
+
changedFiles: number;
|
|
9237
|
+
largest: {
|
|
9238
|
+
path: string;
|
|
9239
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9240
|
+
sizeBytes: number | null;
|
|
9241
|
+
}[];
|
|
9242
|
+
} | undefined;
|
|
8624
9243
|
}, {
|
|
8625
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
9244
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
8626
9245
|
message: string;
|
|
8627
9246
|
causeCode?: string | undefined;
|
|
8628
9247
|
bufferBudgetBytes?: number | undefined;
|
|
8629
9248
|
stream?: "stderr" | "stdout" | undefined;
|
|
8630
9249
|
drain?: "truncated" | undefined;
|
|
9250
|
+
requiredBytes?: number | undefined;
|
|
9251
|
+
availableBytes?: number | undefined;
|
|
9252
|
+
signal?: string | undefined;
|
|
9253
|
+
stallMs?: number | undefined;
|
|
8631
9254
|
cleanup?: {
|
|
8632
9255
|
code: string | null;
|
|
8633
9256
|
message: string;
|
|
8634
9257
|
} | undefined;
|
|
9258
|
+
inventory?: {
|
|
9259
|
+
exact: false;
|
|
9260
|
+
changedFiles: number;
|
|
9261
|
+
largest: {
|
|
9262
|
+
path: string;
|
|
9263
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9264
|
+
sizeBytes: number | null;
|
|
9265
|
+
}[];
|
|
9266
|
+
} | undefined;
|
|
8635
9267
|
}>>;
|
|
8636
9268
|
phase: z.ZodDefault<z.ZodString>;
|
|
8637
9269
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
8638
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "credential_source_unconfirmed", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "auxiliary_writable_roots_unsupported", "retired_access_profile"]>>>;
|
|
9270
|
+
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"]>>>;
|
|
8639
9271
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8640
9272
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8641
9273
|
safeMessage: z.ZodString;
|
|
@@ -8644,6 +9276,22 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8644
9276
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8645
9277
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8646
9278
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9279
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
9280
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
9281
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
9282
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
9283
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
9284
|
+
}, "strip", z.ZodTypeAny, {
|
|
9285
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
9286
|
+
constraintId: string | null;
|
|
9287
|
+
usedRatio: number | null;
|
|
9288
|
+
threshold: number | null;
|
|
9289
|
+
}, {
|
|
9290
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
9291
|
+
constraintId: string | null;
|
|
9292
|
+
usedRatio: number | null;
|
|
9293
|
+
threshold: number | null;
|
|
9294
|
+
}>>;
|
|
8647
9295
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
8648
9296
|
code: z.ZodNullable<z.ZodString>;
|
|
8649
9297
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -8736,21 +9384,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8736
9384
|
source: "grok_init";
|
|
8737
9385
|
reported_source: string;
|
|
8738
9386
|
} | undefined;
|
|
9387
|
+
rawContextShortfall?: {
|
|
9388
|
+
model: string;
|
|
9389
|
+
context_window: number;
|
|
9390
|
+
packet_tokens: number;
|
|
9391
|
+
framing_tokens: number;
|
|
9392
|
+
output_allowance_tokens: number;
|
|
9393
|
+
mandatory_files: {
|
|
9394
|
+
path: string;
|
|
9395
|
+
estimated_tokens: number;
|
|
9396
|
+
}[];
|
|
9397
|
+
} | undefined;
|
|
8739
9398
|
captureFailure?: {
|
|
8740
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
9399
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
8741
9400
|
message: string;
|
|
8742
9401
|
causeCode?: string | undefined;
|
|
8743
9402
|
bufferBudgetBytes?: number | undefined;
|
|
8744
9403
|
stream?: "stderr" | "stdout" | undefined;
|
|
8745
9404
|
drain?: "truncated" | undefined;
|
|
9405
|
+
requiredBytes?: number | undefined;
|
|
9406
|
+
availableBytes?: number | undefined;
|
|
9407
|
+
signal?: string | undefined;
|
|
9408
|
+
stallMs?: number | undefined;
|
|
8746
9409
|
cleanup?: {
|
|
8747
9410
|
code: string | null;
|
|
8748
9411
|
message: string;
|
|
8749
9412
|
} | undefined;
|
|
9413
|
+
inventory?: {
|
|
9414
|
+
exact: false;
|
|
9415
|
+
changedFiles: number;
|
|
9416
|
+
largest: {
|
|
9417
|
+
path: string;
|
|
9418
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9419
|
+
sizeBytes: number | null;
|
|
9420
|
+
}[];
|
|
9421
|
+
} | undefined;
|
|
8750
9422
|
} | undefined;
|
|
8751
9423
|
phase: string;
|
|
8752
9424
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
8753
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
9425
|
+
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;
|
|
8754
9426
|
harnessId: string | null;
|
|
8755
9427
|
attemptId: string | null;
|
|
8756
9428
|
safeMessage: string;
|
|
@@ -8759,6 +9431,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8759
9431
|
eventRefs: string[];
|
|
8760
9432
|
runDir: string | null;
|
|
8761
9433
|
resetsAt: string | null;
|
|
9434
|
+
quotaRefusal?: {
|
|
9435
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
9436
|
+
constraintId: string | null;
|
|
9437
|
+
usedRatio: number | null;
|
|
9438
|
+
threshold: number | null;
|
|
9439
|
+
} | undefined;
|
|
8762
9440
|
vendorFailure: {
|
|
8763
9441
|
code: string | null;
|
|
8764
9442
|
message: string | null;
|
|
@@ -8803,21 +9481,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8803
9481
|
source: "grok_init";
|
|
8804
9482
|
reported_source: string;
|
|
8805
9483
|
} | undefined;
|
|
9484
|
+
rawContextShortfall?: {
|
|
9485
|
+
model: string;
|
|
9486
|
+
context_window: number;
|
|
9487
|
+
packet_tokens: number;
|
|
9488
|
+
framing_tokens: number;
|
|
9489
|
+
output_allowance_tokens: number;
|
|
9490
|
+
mandatory_files: {
|
|
9491
|
+
path: string;
|
|
9492
|
+
estimated_tokens: number;
|
|
9493
|
+
}[];
|
|
9494
|
+
} | undefined;
|
|
8806
9495
|
captureFailure?: {
|
|
8807
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
9496
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
8808
9497
|
message: string;
|
|
8809
9498
|
causeCode?: string | undefined;
|
|
8810
9499
|
bufferBudgetBytes?: number | undefined;
|
|
8811
9500
|
stream?: "stderr" | "stdout" | undefined;
|
|
8812
9501
|
drain?: "truncated" | undefined;
|
|
9502
|
+
requiredBytes?: number | undefined;
|
|
9503
|
+
availableBytes?: number | undefined;
|
|
9504
|
+
signal?: string | undefined;
|
|
9505
|
+
stallMs?: number | undefined;
|
|
8813
9506
|
cleanup?: {
|
|
8814
9507
|
code: string | null;
|
|
8815
9508
|
message: string;
|
|
8816
9509
|
} | undefined;
|
|
9510
|
+
inventory?: {
|
|
9511
|
+
exact: false;
|
|
9512
|
+
changedFiles: number;
|
|
9513
|
+
largest: {
|
|
9514
|
+
path: string;
|
|
9515
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9516
|
+
sizeBytes: number | null;
|
|
9517
|
+
}[];
|
|
9518
|
+
} | undefined;
|
|
8817
9519
|
} | undefined;
|
|
8818
9520
|
phase?: string | undefined;
|
|
8819
9521
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
8820
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
9522
|
+
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;
|
|
8821
9523
|
harnessId?: string | null | undefined;
|
|
8822
9524
|
attemptId?: string | null | undefined;
|
|
8823
9525
|
safeMessage: string;
|
|
@@ -8826,6 +9528,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8826
9528
|
eventRefs?: string[] | undefined;
|
|
8827
9529
|
runDir?: string | null | undefined;
|
|
8828
9530
|
resetsAt?: string | null | undefined;
|
|
9531
|
+
quotaRefusal?: {
|
|
9532
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
9533
|
+
constraintId: string | null;
|
|
9534
|
+
usedRatio: number | null;
|
|
9535
|
+
threshold: number | null;
|
|
9536
|
+
} | undefined;
|
|
8829
9537
|
vendorFailure?: {
|
|
8830
9538
|
code: string | null;
|
|
8831
9539
|
message: string | null;
|
|
@@ -8956,7 +9664,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8956
9664
|
checks: "failed" | "not_configured" | "passed";
|
|
8957
9665
|
review: "approved" | "blocked" | "not_run";
|
|
8958
9666
|
review_requested?: boolean | undefined;
|
|
8959
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
9667
|
+
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;
|
|
8960
9668
|
work_state?: {
|
|
8961
9669
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8962
9670
|
source: "absent" | "constrained" | "validated";
|
|
@@ -8991,7 +9699,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
8991
9699
|
checks: "failed" | "not_configured" | "passed";
|
|
8992
9700
|
review: "approved" | "blocked" | "not_run";
|
|
8993
9701
|
review_requested?: boolean | undefined;
|
|
8994
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
9702
|
+
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;
|
|
8995
9703
|
work_state?: {
|
|
8996
9704
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
8997
9705
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9117,21 +9825,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9117
9825
|
source: "grok_init";
|
|
9118
9826
|
reported_source: string;
|
|
9119
9827
|
} | undefined;
|
|
9828
|
+
rawContextShortfall?: {
|
|
9829
|
+
model: string;
|
|
9830
|
+
context_window: number;
|
|
9831
|
+
packet_tokens: number;
|
|
9832
|
+
framing_tokens: number;
|
|
9833
|
+
output_allowance_tokens: number;
|
|
9834
|
+
mandatory_files: {
|
|
9835
|
+
path: string;
|
|
9836
|
+
estimated_tokens: number;
|
|
9837
|
+
}[];
|
|
9838
|
+
} | undefined;
|
|
9120
9839
|
captureFailure?: {
|
|
9121
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
9840
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
9122
9841
|
message: string;
|
|
9123
9842
|
causeCode?: string | undefined;
|
|
9124
9843
|
bufferBudgetBytes?: number | undefined;
|
|
9125
9844
|
stream?: "stderr" | "stdout" | undefined;
|
|
9126
9845
|
drain?: "truncated" | undefined;
|
|
9846
|
+
requiredBytes?: number | undefined;
|
|
9847
|
+
availableBytes?: number | undefined;
|
|
9848
|
+
signal?: string | undefined;
|
|
9849
|
+
stallMs?: number | undefined;
|
|
9127
9850
|
cleanup?: {
|
|
9128
9851
|
code: string | null;
|
|
9129
9852
|
message: string;
|
|
9130
9853
|
} | undefined;
|
|
9854
|
+
inventory?: {
|
|
9855
|
+
exact: false;
|
|
9856
|
+
changedFiles: number;
|
|
9857
|
+
largest: {
|
|
9858
|
+
path: string;
|
|
9859
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
9860
|
+
sizeBytes: number | null;
|
|
9861
|
+
}[];
|
|
9862
|
+
} | undefined;
|
|
9131
9863
|
} | undefined;
|
|
9132
9864
|
phase: string;
|
|
9133
9865
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
9134
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
9866
|
+
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;
|
|
9135
9867
|
harnessId: string | null;
|
|
9136
9868
|
attemptId: string | null;
|
|
9137
9869
|
safeMessage: string;
|
|
@@ -9140,6 +9872,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9140
9872
|
eventRefs: string[];
|
|
9141
9873
|
runDir: string | null;
|
|
9142
9874
|
resetsAt: string | null;
|
|
9875
|
+
quotaRefusal?: {
|
|
9876
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
9877
|
+
constraintId: string | null;
|
|
9878
|
+
usedRatio: number | null;
|
|
9879
|
+
threshold: number | null;
|
|
9880
|
+
} | undefined;
|
|
9143
9881
|
vendorFailure: {
|
|
9144
9882
|
code: string | null;
|
|
9145
9883
|
message: string | null;
|
|
@@ -9238,7 +9976,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9238
9976
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
9239
9977
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
9240
9978
|
review_requested?: boolean | undefined;
|
|
9241
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
9979
|
+
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;
|
|
9242
9980
|
work_state?: {
|
|
9243
9981
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9244
9982
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9273,7 +10011,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9273
10011
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
9274
10012
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
9275
10013
|
review_requested?: boolean | undefined;
|
|
9276
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
10014
|
+
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;
|
|
9277
10015
|
work_state?: {
|
|
9278
10016
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9279
10017
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9399,21 +10137,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9399
10137
|
source: "grok_init";
|
|
9400
10138
|
reported_source: string;
|
|
9401
10139
|
} | undefined;
|
|
10140
|
+
rawContextShortfall?: {
|
|
10141
|
+
model: string;
|
|
10142
|
+
context_window: number;
|
|
10143
|
+
packet_tokens: number;
|
|
10144
|
+
framing_tokens: number;
|
|
10145
|
+
output_allowance_tokens: number;
|
|
10146
|
+
mandatory_files: {
|
|
10147
|
+
path: string;
|
|
10148
|
+
estimated_tokens: number;
|
|
10149
|
+
}[];
|
|
10150
|
+
} | undefined;
|
|
9402
10151
|
captureFailure?: {
|
|
9403
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
10152
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
9404
10153
|
message: string;
|
|
9405
10154
|
causeCode?: string | undefined;
|
|
9406
10155
|
bufferBudgetBytes?: number | undefined;
|
|
9407
10156
|
stream?: "stderr" | "stdout" | undefined;
|
|
9408
10157
|
drain?: "truncated" | undefined;
|
|
10158
|
+
requiredBytes?: number | undefined;
|
|
10159
|
+
availableBytes?: number | undefined;
|
|
10160
|
+
signal?: string | undefined;
|
|
10161
|
+
stallMs?: number | undefined;
|
|
9409
10162
|
cleanup?: {
|
|
9410
10163
|
code: string | null;
|
|
9411
10164
|
message: string;
|
|
9412
10165
|
} | undefined;
|
|
10166
|
+
inventory?: {
|
|
10167
|
+
exact: false;
|
|
10168
|
+
changedFiles: number;
|
|
10169
|
+
largest: {
|
|
10170
|
+
path: string;
|
|
10171
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
10172
|
+
sizeBytes: number | null;
|
|
10173
|
+
}[];
|
|
10174
|
+
} | undefined;
|
|
9413
10175
|
} | undefined;
|
|
9414
10176
|
phase?: string | undefined;
|
|
9415
10177
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
9416
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
10178
|
+
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;
|
|
9417
10179
|
harnessId?: string | null | undefined;
|
|
9418
10180
|
attemptId?: string | null | undefined;
|
|
9419
10181
|
safeMessage: string;
|
|
@@ -9422,6 +10184,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9422
10184
|
eventRefs?: string[] | undefined;
|
|
9423
10185
|
runDir?: string | null | undefined;
|
|
9424
10186
|
resetsAt?: string | null | undefined;
|
|
10187
|
+
quotaRefusal?: {
|
|
10188
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
10189
|
+
constraintId: string | null;
|
|
10190
|
+
usedRatio: number | null;
|
|
10191
|
+
threshold: number | null;
|
|
10192
|
+
} | undefined;
|
|
9425
10193
|
vendorFailure?: {
|
|
9426
10194
|
code: string | null;
|
|
9427
10195
|
message: string | null;
|
|
@@ -9572,7 +10340,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9572
10340
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
9573
10341
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
9574
10342
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
9575
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
10343
|
+
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"]>>>;
|
|
9576
10344
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
9577
10345
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
9578
10346
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -9615,7 +10383,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9615
10383
|
checks: "failed" | "not_configured" | "passed";
|
|
9616
10384
|
review: "approved" | "blocked" | "not_run";
|
|
9617
10385
|
review_requested?: boolean | undefined;
|
|
9618
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
10386
|
+
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;
|
|
9619
10387
|
work_state?: {
|
|
9620
10388
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9621
10389
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9632,7 +10400,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9632
10400
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
9633
10401
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
9634
10402
|
review_requested?: boolean | undefined;
|
|
9635
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
10403
|
+
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;
|
|
9636
10404
|
work_state?: {
|
|
9637
10405
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9638
10406
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9706,7 +10474,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9706
10474
|
checks: "failed" | "not_configured" | "passed";
|
|
9707
10475
|
review: "approved" | "blocked" | "not_run";
|
|
9708
10476
|
review_requested?: boolean | undefined;
|
|
9709
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
10477
|
+
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;
|
|
9710
10478
|
work_state?: {
|
|
9711
10479
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9712
10480
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9756,7 +10524,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9756
10524
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
9757
10525
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
9758
10526
|
review_requested?: boolean | undefined;
|
|
9759
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
10527
|
+
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;
|
|
9760
10528
|
work_state?: {
|
|
9761
10529
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9762
10530
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9957,7 +10725,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9957
10725
|
checks: "failed" | "not_configured" | "passed";
|
|
9958
10726
|
review: "approved" | "blocked" | "not_run";
|
|
9959
10727
|
review_requested?: boolean | undefined;
|
|
9960
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
10728
|
+
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;
|
|
9961
10729
|
work_state?: {
|
|
9962
10730
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9963
10731
|
source: "absent" | "constrained" | "validated";
|
|
@@ -9992,7 +10760,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
9992
10760
|
checks: "failed" | "not_configured" | "passed";
|
|
9993
10761
|
review: "approved" | "blocked" | "not_run";
|
|
9994
10762
|
review_requested?: boolean | undefined;
|
|
9995
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
10763
|
+
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;
|
|
9996
10764
|
work_state?: {
|
|
9997
10765
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
9998
10766
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10118,21 +10886,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10118
10886
|
source: "grok_init";
|
|
10119
10887
|
reported_source: string;
|
|
10120
10888
|
} | undefined;
|
|
10889
|
+
rawContextShortfall?: {
|
|
10890
|
+
model: string;
|
|
10891
|
+
context_window: number;
|
|
10892
|
+
packet_tokens: number;
|
|
10893
|
+
framing_tokens: number;
|
|
10894
|
+
output_allowance_tokens: number;
|
|
10895
|
+
mandatory_files: {
|
|
10896
|
+
path: string;
|
|
10897
|
+
estimated_tokens: number;
|
|
10898
|
+
}[];
|
|
10899
|
+
} | undefined;
|
|
10121
10900
|
captureFailure?: {
|
|
10122
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
10901
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
10123
10902
|
message: string;
|
|
10124
10903
|
causeCode?: string | undefined;
|
|
10125
10904
|
bufferBudgetBytes?: number | undefined;
|
|
10126
10905
|
stream?: "stderr" | "stdout" | undefined;
|
|
10127
10906
|
drain?: "truncated" | undefined;
|
|
10907
|
+
requiredBytes?: number | undefined;
|
|
10908
|
+
availableBytes?: number | undefined;
|
|
10909
|
+
signal?: string | undefined;
|
|
10910
|
+
stallMs?: number | undefined;
|
|
10128
10911
|
cleanup?: {
|
|
10129
10912
|
code: string | null;
|
|
10130
10913
|
message: string;
|
|
10131
10914
|
} | undefined;
|
|
10915
|
+
inventory?: {
|
|
10916
|
+
exact: false;
|
|
10917
|
+
changedFiles: number;
|
|
10918
|
+
largest: {
|
|
10919
|
+
path: string;
|
|
10920
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
10921
|
+
sizeBytes: number | null;
|
|
10922
|
+
}[];
|
|
10923
|
+
} | undefined;
|
|
10132
10924
|
} | undefined;
|
|
10133
10925
|
phase: string;
|
|
10134
10926
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
10135
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
10927
|
+
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;
|
|
10136
10928
|
harnessId: string | null;
|
|
10137
10929
|
attemptId: string | null;
|
|
10138
10930
|
safeMessage: string;
|
|
@@ -10141,6 +10933,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10141
10933
|
eventRefs: string[];
|
|
10142
10934
|
runDir: string | null;
|
|
10143
10935
|
resetsAt: string | null;
|
|
10936
|
+
quotaRefusal?: {
|
|
10937
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
10938
|
+
constraintId: string | null;
|
|
10939
|
+
usedRatio: number | null;
|
|
10940
|
+
threshold: number | null;
|
|
10941
|
+
} | undefined;
|
|
10144
10942
|
vendorFailure: {
|
|
10145
10943
|
code: string | null;
|
|
10146
10944
|
message: string | null;
|
|
@@ -10301,7 +11099,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10301
11099
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
10302
11100
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
10303
11101
|
review_requested?: boolean | undefined;
|
|
10304
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
11102
|
+
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;
|
|
10305
11103
|
work_state?: {
|
|
10306
11104
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
10307
11105
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10336,7 +11134,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10336
11134
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
10337
11135
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
10338
11136
|
review_requested?: boolean | undefined;
|
|
10339
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
11137
|
+
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;
|
|
10340
11138
|
work_state?: {
|
|
10341
11139
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
10342
11140
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10462,21 +11260,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10462
11260
|
source: "grok_init";
|
|
10463
11261
|
reported_source: string;
|
|
10464
11262
|
} | undefined;
|
|
11263
|
+
rawContextShortfall?: {
|
|
11264
|
+
model: string;
|
|
11265
|
+
context_window: number;
|
|
11266
|
+
packet_tokens: number;
|
|
11267
|
+
framing_tokens: number;
|
|
11268
|
+
output_allowance_tokens: number;
|
|
11269
|
+
mandatory_files: {
|
|
11270
|
+
path: string;
|
|
11271
|
+
estimated_tokens: number;
|
|
11272
|
+
}[];
|
|
11273
|
+
} | undefined;
|
|
10465
11274
|
captureFailure?: {
|
|
10466
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
11275
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
10467
11276
|
message: string;
|
|
10468
11277
|
causeCode?: string | undefined;
|
|
10469
11278
|
bufferBudgetBytes?: number | undefined;
|
|
10470
11279
|
stream?: "stderr" | "stdout" | undefined;
|
|
10471
11280
|
drain?: "truncated" | undefined;
|
|
11281
|
+
requiredBytes?: number | undefined;
|
|
11282
|
+
availableBytes?: number | undefined;
|
|
11283
|
+
signal?: string | undefined;
|
|
11284
|
+
stallMs?: number | undefined;
|
|
10472
11285
|
cleanup?: {
|
|
10473
11286
|
code: string | null;
|
|
10474
11287
|
message: string;
|
|
10475
11288
|
} | undefined;
|
|
11289
|
+
inventory?: {
|
|
11290
|
+
exact: false;
|
|
11291
|
+
changedFiles: number;
|
|
11292
|
+
largest: {
|
|
11293
|
+
path: string;
|
|
11294
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
11295
|
+
sizeBytes: number | null;
|
|
11296
|
+
}[];
|
|
11297
|
+
} | undefined;
|
|
10476
11298
|
} | undefined;
|
|
10477
11299
|
phase?: string | undefined;
|
|
10478
11300
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
10479
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
11301
|
+
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;
|
|
10480
11302
|
harnessId?: string | null | undefined;
|
|
10481
11303
|
attemptId?: string | null | undefined;
|
|
10482
11304
|
safeMessage: string;
|
|
@@ -10485,6 +11307,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10485
11307
|
eventRefs?: string[] | undefined;
|
|
10486
11308
|
runDir?: string | null | undefined;
|
|
10487
11309
|
resetsAt?: string | null | undefined;
|
|
11310
|
+
quotaRefusal?: {
|
|
11311
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
11312
|
+
constraintId: string | null;
|
|
11313
|
+
usedRatio: number | null;
|
|
11314
|
+
threshold: number | null;
|
|
11315
|
+
} | undefined;
|
|
10488
11316
|
vendorFailure?: {
|
|
10489
11317
|
code: string | null;
|
|
10490
11318
|
message: string | null;
|
|
@@ -10637,7 +11465,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10637
11465
|
checks: "failed" | "not_configured" | "passed";
|
|
10638
11466
|
review: "approved" | "blocked" | "not_run";
|
|
10639
11467
|
review_requested?: boolean | undefined;
|
|
10640
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
11468
|
+
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;
|
|
10641
11469
|
work_state?: {
|
|
10642
11470
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
10643
11471
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10765,7 +11593,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10765
11593
|
checks: "failed" | "not_configured" | "passed";
|
|
10766
11594
|
review: "approved" | "blocked" | "not_run";
|
|
10767
11595
|
review_requested?: boolean | undefined;
|
|
10768
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
11596
|
+
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;
|
|
10769
11597
|
work_state?: {
|
|
10770
11598
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
10771
11599
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10800,7 +11628,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10800
11628
|
checks: "failed" | "not_configured" | "passed";
|
|
10801
11629
|
review: "approved" | "blocked" | "not_run";
|
|
10802
11630
|
review_requested?: boolean | undefined;
|
|
10803
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
11631
|
+
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;
|
|
10804
11632
|
work_state?: {
|
|
10805
11633
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
10806
11634
|
source: "absent" | "constrained" | "validated";
|
|
@@ -10926,21 +11754,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10926
11754
|
source: "grok_init";
|
|
10927
11755
|
reported_source: string;
|
|
10928
11756
|
} | undefined;
|
|
11757
|
+
rawContextShortfall?: {
|
|
11758
|
+
model: string;
|
|
11759
|
+
context_window: number;
|
|
11760
|
+
packet_tokens: number;
|
|
11761
|
+
framing_tokens: number;
|
|
11762
|
+
output_allowance_tokens: number;
|
|
11763
|
+
mandatory_files: {
|
|
11764
|
+
path: string;
|
|
11765
|
+
estimated_tokens: number;
|
|
11766
|
+
}[];
|
|
11767
|
+
} | undefined;
|
|
10929
11768
|
captureFailure?: {
|
|
10930
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
11769
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
10931
11770
|
message: string;
|
|
10932
11771
|
causeCode?: string | undefined;
|
|
10933
11772
|
bufferBudgetBytes?: number | undefined;
|
|
10934
11773
|
stream?: "stderr" | "stdout" | undefined;
|
|
10935
11774
|
drain?: "truncated" | undefined;
|
|
11775
|
+
requiredBytes?: number | undefined;
|
|
11776
|
+
availableBytes?: number | undefined;
|
|
11777
|
+
signal?: string | undefined;
|
|
11778
|
+
stallMs?: number | undefined;
|
|
10936
11779
|
cleanup?: {
|
|
10937
11780
|
code: string | null;
|
|
10938
11781
|
message: string;
|
|
10939
11782
|
} | undefined;
|
|
11783
|
+
inventory?: {
|
|
11784
|
+
exact: false;
|
|
11785
|
+
changedFiles: number;
|
|
11786
|
+
largest: {
|
|
11787
|
+
path: string;
|
|
11788
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
11789
|
+
sizeBytes: number | null;
|
|
11790
|
+
}[];
|
|
11791
|
+
} | undefined;
|
|
10940
11792
|
} | undefined;
|
|
10941
11793
|
phase: string;
|
|
10942
11794
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
10943
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
11795
|
+
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;
|
|
10944
11796
|
harnessId: string | null;
|
|
10945
11797
|
attemptId: string | null;
|
|
10946
11798
|
safeMessage: string;
|
|
@@ -10949,6 +11801,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
10949
11801
|
eventRefs: string[];
|
|
10950
11802
|
runDir: string | null;
|
|
10951
11803
|
resetsAt: string | null;
|
|
11804
|
+
quotaRefusal?: {
|
|
11805
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
11806
|
+
constraintId: string | null;
|
|
11807
|
+
usedRatio: number | null;
|
|
11808
|
+
threshold: number | null;
|
|
11809
|
+
} | undefined;
|
|
10952
11810
|
vendorFailure: {
|
|
10953
11811
|
code: string | null;
|
|
10954
11812
|
message: string | null;
|
|
@@ -11101,7 +11959,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11101
11959
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
11102
11960
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
11103
11961
|
review_requested?: boolean | undefined;
|
|
11104
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
11962
|
+
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;
|
|
11105
11963
|
work_state?: {
|
|
11106
11964
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11107
11965
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11229,7 +12087,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11229
12087
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
11230
12088
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
11231
12089
|
review_requested?: boolean | undefined;
|
|
11232
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
12090
|
+
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;
|
|
11233
12091
|
work_state?: {
|
|
11234
12092
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11235
12093
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11264,7 +12122,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11264
12122
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
11265
12123
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
11266
12124
|
review_requested?: boolean | undefined;
|
|
11267
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
12125
|
+
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;
|
|
11268
12126
|
work_state?: {
|
|
11269
12127
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11270
12128
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11390,21 +12248,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11390
12248
|
source: "grok_init";
|
|
11391
12249
|
reported_source: string;
|
|
11392
12250
|
} | undefined;
|
|
12251
|
+
rawContextShortfall?: {
|
|
12252
|
+
model: string;
|
|
12253
|
+
context_window: number;
|
|
12254
|
+
packet_tokens: number;
|
|
12255
|
+
framing_tokens: number;
|
|
12256
|
+
output_allowance_tokens: number;
|
|
12257
|
+
mandatory_files: {
|
|
12258
|
+
path: string;
|
|
12259
|
+
estimated_tokens: number;
|
|
12260
|
+
}[];
|
|
12261
|
+
} | undefined;
|
|
11393
12262
|
captureFailure?: {
|
|
11394
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
12263
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
11395
12264
|
message: string;
|
|
11396
12265
|
causeCode?: string | undefined;
|
|
11397
12266
|
bufferBudgetBytes?: number | undefined;
|
|
11398
12267
|
stream?: "stderr" | "stdout" | undefined;
|
|
11399
12268
|
drain?: "truncated" | undefined;
|
|
12269
|
+
requiredBytes?: number | undefined;
|
|
12270
|
+
availableBytes?: number | undefined;
|
|
12271
|
+
signal?: string | undefined;
|
|
12272
|
+
stallMs?: number | undefined;
|
|
11400
12273
|
cleanup?: {
|
|
11401
12274
|
code: string | null;
|
|
11402
12275
|
message: string;
|
|
11403
12276
|
} | undefined;
|
|
12277
|
+
inventory?: {
|
|
12278
|
+
exact: false;
|
|
12279
|
+
changedFiles: number;
|
|
12280
|
+
largest: {
|
|
12281
|
+
path: string;
|
|
12282
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
12283
|
+
sizeBytes: number | null;
|
|
12284
|
+
}[];
|
|
12285
|
+
} | undefined;
|
|
11404
12286
|
} | undefined;
|
|
11405
12287
|
phase?: string | undefined;
|
|
11406
12288
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
11407
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
12289
|
+
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;
|
|
11408
12290
|
harnessId?: string | null | undefined;
|
|
11409
12291
|
attemptId?: string | null | undefined;
|
|
11410
12292
|
safeMessage: string;
|
|
@@ -11413,6 +12295,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11413
12295
|
eventRefs?: string[] | undefined;
|
|
11414
12296
|
runDir?: string | null | undefined;
|
|
11415
12297
|
resetsAt?: string | null | undefined;
|
|
12298
|
+
quotaRefusal?: {
|
|
12299
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
12300
|
+
constraintId: string | null;
|
|
12301
|
+
usedRatio: number | null;
|
|
12302
|
+
threshold: number | null;
|
|
12303
|
+
} | undefined;
|
|
11416
12304
|
vendorFailure?: {
|
|
11417
12305
|
code: string | null;
|
|
11418
12306
|
message: string | null;
|
|
@@ -11565,7 +12453,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11565
12453
|
checks: "failed" | "not_configured" | "passed";
|
|
11566
12454
|
review: "approved" | "blocked" | "not_run";
|
|
11567
12455
|
review_requested?: boolean | undefined;
|
|
11568
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
12456
|
+
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;
|
|
11569
12457
|
work_state?: {
|
|
11570
12458
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11571
12459
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11693,7 +12581,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11693
12581
|
checks: "failed" | "not_configured" | "passed";
|
|
11694
12582
|
review: "approved" | "blocked" | "not_run";
|
|
11695
12583
|
review_requested?: boolean | undefined;
|
|
11696
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
12584
|
+
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;
|
|
11697
12585
|
work_state?: {
|
|
11698
12586
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11699
12587
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11728,7 +12616,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11728
12616
|
checks: "failed" | "not_configured" | "passed";
|
|
11729
12617
|
review: "approved" | "blocked" | "not_run";
|
|
11730
12618
|
review_requested?: boolean | undefined;
|
|
11731
|
-
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
12619
|
+
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;
|
|
11732
12620
|
work_state?: {
|
|
11733
12621
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
11734
12622
|
source: "absent" | "constrained" | "validated";
|
|
@@ -11854,21 +12742,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11854
12742
|
source: "grok_init";
|
|
11855
12743
|
reported_source: string;
|
|
11856
12744
|
} | undefined;
|
|
12745
|
+
rawContextShortfall?: {
|
|
12746
|
+
model: string;
|
|
12747
|
+
context_window: number;
|
|
12748
|
+
packet_tokens: number;
|
|
12749
|
+
framing_tokens: number;
|
|
12750
|
+
output_allowance_tokens: number;
|
|
12751
|
+
mandatory_files: {
|
|
12752
|
+
path: string;
|
|
12753
|
+
estimated_tokens: number;
|
|
12754
|
+
}[];
|
|
12755
|
+
} | undefined;
|
|
11857
12756
|
captureFailure?: {
|
|
11858
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
12757
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
11859
12758
|
message: string;
|
|
11860
12759
|
causeCode?: string | undefined;
|
|
11861
12760
|
bufferBudgetBytes?: number | undefined;
|
|
11862
12761
|
stream?: "stderr" | "stdout" | undefined;
|
|
11863
12762
|
drain?: "truncated" | undefined;
|
|
12763
|
+
requiredBytes?: number | undefined;
|
|
12764
|
+
availableBytes?: number | undefined;
|
|
12765
|
+
signal?: string | undefined;
|
|
12766
|
+
stallMs?: number | undefined;
|
|
11864
12767
|
cleanup?: {
|
|
11865
12768
|
code: string | null;
|
|
11866
12769
|
message: string;
|
|
11867
12770
|
} | undefined;
|
|
12771
|
+
inventory?: {
|
|
12772
|
+
exact: false;
|
|
12773
|
+
changedFiles: number;
|
|
12774
|
+
largest: {
|
|
12775
|
+
path: string;
|
|
12776
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
12777
|
+
sizeBytes: number | null;
|
|
12778
|
+
}[];
|
|
12779
|
+
} | undefined;
|
|
11868
12780
|
} | undefined;
|
|
11869
12781
|
phase: string;
|
|
11870
12782
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
11871
|
-
code: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
12783
|
+
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;
|
|
11872
12784
|
harnessId: string | null;
|
|
11873
12785
|
attemptId: string | null;
|
|
11874
12786
|
safeMessage: string;
|
|
@@ -11877,6 +12789,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
11877
12789
|
eventRefs: string[];
|
|
11878
12790
|
runDir: string | null;
|
|
11879
12791
|
resetsAt: string | null;
|
|
12792
|
+
quotaRefusal?: {
|
|
12793
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
12794
|
+
constraintId: string | null;
|
|
12795
|
+
usedRatio: number | null;
|
|
12796
|
+
threshold: number | null;
|
|
12797
|
+
} | undefined;
|
|
11880
12798
|
vendorFailure: {
|
|
11881
12799
|
code: string | null;
|
|
11882
12800
|
message: string | null;
|
|
@@ -12029,7 +12947,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
12029
12947
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
12030
12948
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
12031
12949
|
review_requested?: boolean | undefined;
|
|
12032
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
12950
|
+
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;
|
|
12033
12951
|
work_state?: {
|
|
12034
12952
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
12035
12953
|
source: "absent" | "constrained" | "validated";
|
|
@@ -12157,7 +13075,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
12157
13075
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
12158
13076
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
12159
13077
|
review_requested?: boolean | undefined;
|
|
12160
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
13078
|
+
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;
|
|
12161
13079
|
work_state?: {
|
|
12162
13080
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
12163
13081
|
source: "absent" | "constrained" | "validated";
|
|
@@ -12192,7 +13110,7 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
12192
13110
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
12193
13111
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
12194
13112
|
review_requested?: boolean | undefined;
|
|
12195
|
-
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
13113
|
+
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;
|
|
12196
13114
|
work_state?: {
|
|
12197
13115
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
12198
13116
|
source: "absent" | "constrained" | "validated";
|
|
@@ -12318,21 +13236,45 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
12318
13236
|
source: "grok_init";
|
|
12319
13237
|
reported_source: string;
|
|
12320
13238
|
} | undefined;
|
|
13239
|
+
rawContextShortfall?: {
|
|
13240
|
+
model: string;
|
|
13241
|
+
context_window: number;
|
|
13242
|
+
packet_tokens: number;
|
|
13243
|
+
framing_tokens: number;
|
|
13244
|
+
output_allowance_tokens: number;
|
|
13245
|
+
mandatory_files: {
|
|
13246
|
+
path: string;
|
|
13247
|
+
estimated_tokens: number;
|
|
13248
|
+
}[];
|
|
13249
|
+
} | undefined;
|
|
12321
13250
|
captureFailure?: {
|
|
12322
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
13251
|
+
code: "capture_failed" | "capture_git_signal" | "capture_git_stalled" | "capture_object_missing" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated" | "capture_read_failed" | "capture_space_insufficient";
|
|
12323
13252
|
message: string;
|
|
12324
13253
|
causeCode?: string | undefined;
|
|
12325
13254
|
bufferBudgetBytes?: number | undefined;
|
|
12326
13255
|
stream?: "stderr" | "stdout" | undefined;
|
|
12327
13256
|
drain?: "truncated" | undefined;
|
|
13257
|
+
requiredBytes?: number | undefined;
|
|
13258
|
+
availableBytes?: number | undefined;
|
|
13259
|
+
signal?: string | undefined;
|
|
13260
|
+
stallMs?: number | undefined;
|
|
12328
13261
|
cleanup?: {
|
|
12329
13262
|
code: string | null;
|
|
12330
13263
|
message: string;
|
|
12331
13264
|
} | undefined;
|
|
13265
|
+
inventory?: {
|
|
13266
|
+
exact: false;
|
|
13267
|
+
changedFiles: number;
|
|
13268
|
+
largest: {
|
|
13269
|
+
path: string;
|
|
13270
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
13271
|
+
sizeBytes: number | null;
|
|
13272
|
+
}[];
|
|
13273
|
+
} | undefined;
|
|
12332
13274
|
} | undefined;
|
|
12333
13275
|
phase?: string | undefined;
|
|
12334
13276
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
12335
|
-
code?: "access_profile_incompatible" | "auxiliary_writable_roots_unsupported" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "credential_source_unconfirmed" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
13277
|
+
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;
|
|
12336
13278
|
harnessId?: string | null | undefined;
|
|
12337
13279
|
attemptId?: string | null | undefined;
|
|
12338
13280
|
safeMessage: string;
|
|
@@ -12341,6 +13283,12 @@ export declare const ThreadHistoryPage: z.ZodEffects<z.ZodObject<{
|
|
|
12341
13283
|
eventRefs?: string[] | undefined;
|
|
12342
13284
|
runDir?: string | null | undefined;
|
|
12343
13285
|
resetsAt?: string | null | undefined;
|
|
13286
|
+
quotaRefusal?: {
|
|
13287
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
13288
|
+
constraintId: string | null;
|
|
13289
|
+
usedRatio: number | null;
|
|
13290
|
+
threshold: number | null;
|
|
13291
|
+
} | undefined;
|
|
12344
13292
|
vendorFailure?: {
|
|
12345
13293
|
code: string | null;
|
|
12346
13294
|
message: string | null;
|