@claudexor/schema 4.8.1 → 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-gc.d.ts +377 -0
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +74 -1
- package/dist/control-gc.js.map +1 -1
- 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 +1193 -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 +9 -0
- package/dist/control-timeline.d.ts.map +1 -1
- package/dist/control-timeline.js +20 -3
- package/dist/control-timeline.js.map +1 -1
- package/dist/control.d.ts +392 -42
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +13 -7
- 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/daemon-status.d.ts +492 -0
- package/dist/daemon-status.d.ts.map +1 -1
- package/dist/daemon-status.js +22 -0
- package/dist/daemon-status.js.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-speech.d.ts +36 -0
- package/dist/harness-speech.d.ts.map +1 -0
- package/dist/harness-speech.js +27 -0
- package/dist/harness-speech.js.map +1 -0
- package/dist/harness.d.ts +371 -35
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +7 -21
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -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/run-observation.d.ts +6 -6
- package/dist/run-observation.d.ts.map +1 -1
- package/dist/run-observation.js +7 -1
- package/dist/run-observation.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/task-group-runs.d.ts +1 -0
- package/dist/task-group-runs.d.ts.map +1 -1
- package/dist/task-group-runs.js +6 -3
- package/dist/task-group-runs.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/ControlDaemonStatus.schema.json +112 -43
- package/generated/ControlDeliveryResponse.schema.json +154 -0
- package/generated/ControlGcLastResponse.schema.json +184 -0
- package/generated/ControlGcReceipt.schema.json +60 -1
- package/generated/ControlGcRequest.schema.json +4 -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/ControlRunDecisionResponse.schema.json +14 -0
- package/generated/ControlRunDetail.schema.json +376 -6
- package/generated/ControlRunEventPart.schema.json +3 -2
- package/generated/ControlRunListResponse.schema.json +342 -3
- package/generated/ControlRunMessageRequest.schema.json +1 -1
- package/generated/ControlRunSummary.schema.json +342 -3
- package/generated/ControlThreadApplyResponse.schema.json +154 -0
- package/generated/ControlThreadDetail.schema.json +2 -1
- package/generated/DecisionRecord.schema.json +1 -0
- package/generated/HarnessEvent.schema.json +214 -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/RunWaitManyInput.schema.json +11 -4
- package/generated/ThreadHistoryPage.schema.json +204 -2
- package/package.json +2 -2
|
@@ -341,6 +341,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
341
341
|
modelMismatch: z.ZodNullable<z.ZodBoolean>;
|
|
342
342
|
identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
|
|
343
343
|
inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
|
|
344
|
+
sourceRetirement: z.ZodOptional<z.ZodEnum<["retired", "not_confirmed"]>>;
|
|
344
345
|
}, "strict", z.ZodTypeAny, {
|
|
345
346
|
tryIndex: number;
|
|
346
347
|
attemptId: string;
|
|
@@ -362,6 +363,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
362
363
|
modelMismatch: boolean | null;
|
|
363
364
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
364
365
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
366
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
365
367
|
}, {
|
|
366
368
|
tryIndex: number;
|
|
367
369
|
attemptId: string;
|
|
@@ -383,6 +385,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
383
385
|
modelMismatch: boolean | null;
|
|
384
386
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
385
387
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
388
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
386
389
|
}>, "many">>;
|
|
387
390
|
retainedEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
388
391
|
root: z.ZodString;
|
|
@@ -464,13 +467,54 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
464
467
|
source: "grok_init";
|
|
465
468
|
reported_source: string;
|
|
466
469
|
}>]>>;
|
|
470
|
+
rawContextShortfall: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
model: z.ZodString;
|
|
472
|
+
context_window: z.ZodNumber;
|
|
473
|
+
packet_tokens: z.ZodNumber;
|
|
474
|
+
framing_tokens: z.ZodNumber;
|
|
475
|
+
output_allowance_tokens: z.ZodNumber;
|
|
476
|
+
mandatory_files: z.ZodArray<z.ZodObject<{
|
|
477
|
+
path: z.ZodString;
|
|
478
|
+
estimated_tokens: z.ZodNumber;
|
|
479
|
+
}, "strict", z.ZodTypeAny, {
|
|
480
|
+
path: string;
|
|
481
|
+
estimated_tokens: number;
|
|
482
|
+
}, {
|
|
483
|
+
path: string;
|
|
484
|
+
estimated_tokens: number;
|
|
485
|
+
}>, "many">;
|
|
486
|
+
}, "strict", z.ZodTypeAny, {
|
|
487
|
+
model: string;
|
|
488
|
+
context_window: number;
|
|
489
|
+
packet_tokens: number;
|
|
490
|
+
framing_tokens: number;
|
|
491
|
+
output_allowance_tokens: number;
|
|
492
|
+
mandatory_files: {
|
|
493
|
+
path: string;
|
|
494
|
+
estimated_tokens: number;
|
|
495
|
+
}[];
|
|
496
|
+
}, {
|
|
497
|
+
model: string;
|
|
498
|
+
context_window: number;
|
|
499
|
+
packet_tokens: number;
|
|
500
|
+
framing_tokens: number;
|
|
501
|
+
output_allowance_tokens: number;
|
|
502
|
+
mandatory_files: {
|
|
503
|
+
path: string;
|
|
504
|
+
estimated_tokens: number;
|
|
505
|
+
}[];
|
|
506
|
+
}>>;
|
|
467
507
|
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
468
|
-
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
508
|
+
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"]>;
|
|
469
509
|
message: z.ZodString;
|
|
470
510
|
causeCode: z.ZodOptional<z.ZodString>;
|
|
471
511
|
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
472
512
|
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
473
513
|
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
514
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
availableBytes: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
signal: z.ZodOptional<z.ZodString>;
|
|
517
|
+
stallMs: z.ZodOptional<z.ZodNumber>;
|
|
474
518
|
cleanup: z.ZodOptional<z.ZodObject<{
|
|
475
519
|
code: z.ZodNullable<z.ZodString>;
|
|
476
520
|
message: z.ZodString;
|
|
@@ -481,32 +525,91 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
481
525
|
code: string | null;
|
|
482
526
|
message: string;
|
|
483
527
|
}>>;
|
|
528
|
+
inventory: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
exact: z.ZodLiteral<false>;
|
|
530
|
+
changedFiles: z.ZodNumber;
|
|
531
|
+
largest: z.ZodArray<z.ZodObject<{
|
|
532
|
+
path: z.ZodString;
|
|
533
|
+
change: z.ZodEnum<["added", "modified", "deleted", "type_changed"]>;
|
|
534
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
535
|
+
}, "strip", z.ZodTypeAny, {
|
|
536
|
+
path: string;
|
|
537
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
538
|
+
sizeBytes: number | null;
|
|
539
|
+
}, {
|
|
540
|
+
path: string;
|
|
541
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
542
|
+
sizeBytes: number | null;
|
|
543
|
+
}>, "many">;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
exact: false;
|
|
546
|
+
changedFiles: number;
|
|
547
|
+
largest: {
|
|
548
|
+
path: string;
|
|
549
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
550
|
+
sizeBytes: number | null;
|
|
551
|
+
}[];
|
|
552
|
+
}, {
|
|
553
|
+
exact: false;
|
|
554
|
+
changedFiles: number;
|
|
555
|
+
largest: {
|
|
556
|
+
path: string;
|
|
557
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
558
|
+
sizeBytes: number | null;
|
|
559
|
+
}[];
|
|
560
|
+
}>>;
|
|
484
561
|
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
562
|
+
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";
|
|
486
563
|
message: string;
|
|
487
564
|
causeCode?: string | undefined;
|
|
488
565
|
bufferBudgetBytes?: number | undefined;
|
|
489
566
|
stream?: "stderr" | "stdout" | undefined;
|
|
490
567
|
drain?: "truncated" | undefined;
|
|
568
|
+
requiredBytes?: number | undefined;
|
|
569
|
+
availableBytes?: number | undefined;
|
|
570
|
+
signal?: string | undefined;
|
|
571
|
+
stallMs?: number | undefined;
|
|
491
572
|
cleanup?: {
|
|
492
573
|
code: string | null;
|
|
493
574
|
message: string;
|
|
494
575
|
} | undefined;
|
|
576
|
+
inventory?: {
|
|
577
|
+
exact: false;
|
|
578
|
+
changedFiles: number;
|
|
579
|
+
largest: {
|
|
580
|
+
path: string;
|
|
581
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
582
|
+
sizeBytes: number | null;
|
|
583
|
+
}[];
|
|
584
|
+
} | undefined;
|
|
495
585
|
}, {
|
|
496
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
586
|
+
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";
|
|
497
587
|
message: string;
|
|
498
588
|
causeCode?: string | undefined;
|
|
499
589
|
bufferBudgetBytes?: number | undefined;
|
|
500
590
|
stream?: "stderr" | "stdout" | undefined;
|
|
501
591
|
drain?: "truncated" | undefined;
|
|
592
|
+
requiredBytes?: number | undefined;
|
|
593
|
+
availableBytes?: number | undefined;
|
|
594
|
+
signal?: string | undefined;
|
|
595
|
+
stallMs?: number | undefined;
|
|
502
596
|
cleanup?: {
|
|
503
597
|
code: string | null;
|
|
504
598
|
message: string;
|
|
505
599
|
} | undefined;
|
|
600
|
+
inventory?: {
|
|
601
|
+
exact: false;
|
|
602
|
+
changedFiles: number;
|
|
603
|
+
largest: {
|
|
604
|
+
path: string;
|
|
605
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
606
|
+
sizeBytes: number | null;
|
|
607
|
+
}[];
|
|
608
|
+
} | undefined;
|
|
506
609
|
}>>;
|
|
507
610
|
phase: z.ZodDefault<z.ZodString>;
|
|
508
611
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
509
|
-
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"]>>>;
|
|
612
|
+
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"]>>>;
|
|
510
613
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
511
614
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
512
615
|
safeMessage: z.ZodString;
|
|
@@ -515,6 +618,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
515
618
|
eventRefs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
516
619
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
517
620
|
resetsAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
621
|
+
quotaRefusal: z.ZodOptional<z.ZodObject<{
|
|
622
|
+
basis: z.ZodEnum<["owner_reserve", "provider_window", "provider_cooldown"]>;
|
|
623
|
+
constraintId: z.ZodNullable<z.ZodString>;
|
|
624
|
+
usedRatio: z.ZodNullable<z.ZodNumber>;
|
|
625
|
+
threshold: z.ZodNullable<z.ZodNumber>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
628
|
+
constraintId: string | null;
|
|
629
|
+
usedRatio: number | null;
|
|
630
|
+
threshold: number | null;
|
|
631
|
+
}, {
|
|
632
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
633
|
+
constraintId: string | null;
|
|
634
|
+
usedRatio: number | null;
|
|
635
|
+
threshold: number | null;
|
|
636
|
+
}>>;
|
|
518
637
|
vendorFailure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
519
638
|
code: z.ZodNullable<z.ZodString>;
|
|
520
639
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -607,21 +726,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
607
726
|
source: "grok_init";
|
|
608
727
|
reported_source: string;
|
|
609
728
|
} | undefined;
|
|
729
|
+
rawContextShortfall?: {
|
|
730
|
+
model: string;
|
|
731
|
+
context_window: number;
|
|
732
|
+
packet_tokens: number;
|
|
733
|
+
framing_tokens: number;
|
|
734
|
+
output_allowance_tokens: number;
|
|
735
|
+
mandatory_files: {
|
|
736
|
+
path: string;
|
|
737
|
+
estimated_tokens: number;
|
|
738
|
+
}[];
|
|
739
|
+
} | undefined;
|
|
610
740
|
captureFailure?: {
|
|
611
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
741
|
+
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";
|
|
612
742
|
message: string;
|
|
613
743
|
causeCode?: string | undefined;
|
|
614
744
|
bufferBudgetBytes?: number | undefined;
|
|
615
745
|
stream?: "stderr" | "stdout" | undefined;
|
|
616
746
|
drain?: "truncated" | undefined;
|
|
747
|
+
requiredBytes?: number | undefined;
|
|
748
|
+
availableBytes?: number | undefined;
|
|
749
|
+
signal?: string | undefined;
|
|
750
|
+
stallMs?: number | undefined;
|
|
617
751
|
cleanup?: {
|
|
618
752
|
code: string | null;
|
|
619
753
|
message: string;
|
|
620
754
|
} | undefined;
|
|
755
|
+
inventory?: {
|
|
756
|
+
exact: false;
|
|
757
|
+
changedFiles: number;
|
|
758
|
+
largest: {
|
|
759
|
+
path: string;
|
|
760
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
761
|
+
sizeBytes: number | null;
|
|
762
|
+
}[];
|
|
763
|
+
} | undefined;
|
|
621
764
|
} | undefined;
|
|
622
765
|
phase: string;
|
|
623
766
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
624
|
-
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;
|
|
767
|
+
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;
|
|
625
768
|
harnessId: string | null;
|
|
626
769
|
attemptId: string | null;
|
|
627
770
|
safeMessage: string;
|
|
@@ -630,6 +773,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
630
773
|
eventRefs: string[];
|
|
631
774
|
runDir: string | null;
|
|
632
775
|
resetsAt: string | null;
|
|
776
|
+
quotaRefusal?: {
|
|
777
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
778
|
+
constraintId: string | null;
|
|
779
|
+
usedRatio: number | null;
|
|
780
|
+
threshold: number | null;
|
|
781
|
+
} | undefined;
|
|
633
782
|
vendorFailure: {
|
|
634
783
|
code: string | null;
|
|
635
784
|
message: string | null;
|
|
@@ -674,21 +823,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
674
823
|
source: "grok_init";
|
|
675
824
|
reported_source: string;
|
|
676
825
|
} | undefined;
|
|
826
|
+
rawContextShortfall?: {
|
|
827
|
+
model: string;
|
|
828
|
+
context_window: number;
|
|
829
|
+
packet_tokens: number;
|
|
830
|
+
framing_tokens: number;
|
|
831
|
+
output_allowance_tokens: number;
|
|
832
|
+
mandatory_files: {
|
|
833
|
+
path: string;
|
|
834
|
+
estimated_tokens: number;
|
|
835
|
+
}[];
|
|
836
|
+
} | undefined;
|
|
677
837
|
captureFailure?: {
|
|
678
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
838
|
+
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";
|
|
679
839
|
message: string;
|
|
680
840
|
causeCode?: string | undefined;
|
|
681
841
|
bufferBudgetBytes?: number | undefined;
|
|
682
842
|
stream?: "stderr" | "stdout" | undefined;
|
|
683
843
|
drain?: "truncated" | undefined;
|
|
844
|
+
requiredBytes?: number | undefined;
|
|
845
|
+
availableBytes?: number | undefined;
|
|
846
|
+
signal?: string | undefined;
|
|
847
|
+
stallMs?: number | undefined;
|
|
684
848
|
cleanup?: {
|
|
685
849
|
code: string | null;
|
|
686
850
|
message: string;
|
|
687
851
|
} | undefined;
|
|
852
|
+
inventory?: {
|
|
853
|
+
exact: false;
|
|
854
|
+
changedFiles: number;
|
|
855
|
+
largest: {
|
|
856
|
+
path: string;
|
|
857
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
858
|
+
sizeBytes: number | null;
|
|
859
|
+
}[];
|
|
860
|
+
} | undefined;
|
|
688
861
|
} | undefined;
|
|
689
862
|
phase?: string | undefined;
|
|
690
863
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
691
|
-
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;
|
|
864
|
+
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;
|
|
692
865
|
harnessId?: string | null | undefined;
|
|
693
866
|
attemptId?: string | null | undefined;
|
|
694
867
|
safeMessage: string;
|
|
@@ -697,6 +870,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
697
870
|
eventRefs?: string[] | undefined;
|
|
698
871
|
runDir?: string | null | undefined;
|
|
699
872
|
resetsAt?: string | null | undefined;
|
|
873
|
+
quotaRefusal?: {
|
|
874
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
875
|
+
constraintId: string | null;
|
|
876
|
+
usedRatio: number | null;
|
|
877
|
+
threshold: number | null;
|
|
878
|
+
} | undefined;
|
|
700
879
|
vendorFailure?: {
|
|
701
880
|
code: string | null;
|
|
702
881
|
message: string | null;
|
|
@@ -982,7 +1161,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
982
1161
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
983
1162
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
984
1163
|
review_requested: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
-
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"]>>>;
|
|
1164
|
+
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"]>>>;
|
|
986
1165
|
work_state: z.ZodOptional<z.ZodObject<{
|
|
987
1166
|
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
988
1167
|
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
@@ -1025,7 +1204,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1025
1204
|
checks: "failed" | "not_configured" | "passed";
|
|
1026
1205
|
review: "approved" | "blocked" | "not_run";
|
|
1027
1206
|
review_requested?: boolean | undefined;
|
|
1028
|
-
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;
|
|
1207
|
+
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;
|
|
1029
1208
|
work_state?: {
|
|
1030
1209
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1031
1210
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1042,7 +1221,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1042
1221
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1043
1222
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1044
1223
|
review_requested?: boolean | undefined;
|
|
1045
|
-
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;
|
|
1224
|
+
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;
|
|
1046
1225
|
work_state?: {
|
|
1047
1226
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1048
1227
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1140,6 +1319,74 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1140
1319
|
eligible: boolean;
|
|
1141
1320
|
}[] | undefined;
|
|
1142
1321
|
}>>>;
|
|
1322
|
+
rawContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1323
|
+
model: z.ZodString;
|
|
1324
|
+
estimated_request_tokens: z.ZodNumber;
|
|
1325
|
+
budget: z.ZodObject<{
|
|
1326
|
+
estimator: z.ZodLiteral<"chars_div_4">;
|
|
1327
|
+
basis: z.ZodEnum<["model_context_window", "assumed_ceiling"]>;
|
|
1328
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1329
|
+
context_window: z.ZodNullable<z.ZodNumber>;
|
|
1330
|
+
output_allowance_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1331
|
+
framing_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1332
|
+
selection_limit_tokens: z.ZodNumber;
|
|
1333
|
+
estimated_packet_tokens: z.ZodNumber;
|
|
1334
|
+
omitted_for_budget: z.ZodNumber;
|
|
1335
|
+
mandatory_paths: z.ZodArray<z.ZodString, "many">;
|
|
1336
|
+
}, "strict", z.ZodTypeAny, {
|
|
1337
|
+
estimator: "chars_div_4";
|
|
1338
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
1339
|
+
model: string | null;
|
|
1340
|
+
context_window: number | null;
|
|
1341
|
+
output_allowance_tokens: number | null;
|
|
1342
|
+
framing_tokens: number | null;
|
|
1343
|
+
selection_limit_tokens: number;
|
|
1344
|
+
estimated_packet_tokens: number;
|
|
1345
|
+
omitted_for_budget: number;
|
|
1346
|
+
mandatory_paths: string[];
|
|
1347
|
+
}, {
|
|
1348
|
+
estimator: "chars_div_4";
|
|
1349
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
1350
|
+
model: string | null;
|
|
1351
|
+
context_window: number | null;
|
|
1352
|
+
output_allowance_tokens: number | null;
|
|
1353
|
+
framing_tokens: number | null;
|
|
1354
|
+
selection_limit_tokens: number;
|
|
1355
|
+
estimated_packet_tokens: number;
|
|
1356
|
+
omitted_for_budget: number;
|
|
1357
|
+
mandatory_paths: string[];
|
|
1358
|
+
}>;
|
|
1359
|
+
}, "strict", z.ZodTypeAny, {
|
|
1360
|
+
model: string;
|
|
1361
|
+
estimated_request_tokens: number;
|
|
1362
|
+
budget: {
|
|
1363
|
+
estimator: "chars_div_4";
|
|
1364
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
1365
|
+
model: string | null;
|
|
1366
|
+
context_window: number | null;
|
|
1367
|
+
output_allowance_tokens: number | null;
|
|
1368
|
+
framing_tokens: number | null;
|
|
1369
|
+
selection_limit_tokens: number;
|
|
1370
|
+
estimated_packet_tokens: number;
|
|
1371
|
+
omitted_for_budget: number;
|
|
1372
|
+
mandatory_paths: string[];
|
|
1373
|
+
};
|
|
1374
|
+
}, {
|
|
1375
|
+
model: string;
|
|
1376
|
+
estimated_request_tokens: number;
|
|
1377
|
+
budget: {
|
|
1378
|
+
estimator: "chars_div_4";
|
|
1379
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
1380
|
+
model: string | null;
|
|
1381
|
+
context_window: number | null;
|
|
1382
|
+
output_allowance_tokens: number | null;
|
|
1383
|
+
framing_tokens: number | null;
|
|
1384
|
+
selection_limit_tokens: number;
|
|
1385
|
+
estimated_packet_tokens: number;
|
|
1386
|
+
omitted_for_budget: number;
|
|
1387
|
+
mandatory_paths: string[];
|
|
1388
|
+
};
|
|
1389
|
+
}>>>;
|
|
1143
1390
|
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1144
1391
|
program: z.ZodString;
|
|
1145
1392
|
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1210,6 +1457,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1210
1457
|
modelMismatch: boolean | null;
|
|
1211
1458
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
1212
1459
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
1460
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
1213
1461
|
}[] | undefined;
|
|
1214
1462
|
retainedEnvelope: {
|
|
1215
1463
|
root: string;
|
|
@@ -1242,21 +1490,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1242
1490
|
source: "grok_init";
|
|
1243
1491
|
reported_source: string;
|
|
1244
1492
|
} | undefined;
|
|
1493
|
+
rawContextShortfall?: {
|
|
1494
|
+
model: string;
|
|
1495
|
+
context_window: number;
|
|
1496
|
+
packet_tokens: number;
|
|
1497
|
+
framing_tokens: number;
|
|
1498
|
+
output_allowance_tokens: number;
|
|
1499
|
+
mandatory_files: {
|
|
1500
|
+
path: string;
|
|
1501
|
+
estimated_tokens: number;
|
|
1502
|
+
}[];
|
|
1503
|
+
} | undefined;
|
|
1245
1504
|
captureFailure?: {
|
|
1246
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1505
|
+
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";
|
|
1247
1506
|
message: string;
|
|
1248
1507
|
causeCode?: string | undefined;
|
|
1249
1508
|
bufferBudgetBytes?: number | undefined;
|
|
1250
1509
|
stream?: "stderr" | "stdout" | undefined;
|
|
1251
1510
|
drain?: "truncated" | undefined;
|
|
1511
|
+
requiredBytes?: number | undefined;
|
|
1512
|
+
availableBytes?: number | undefined;
|
|
1513
|
+
signal?: string | undefined;
|
|
1514
|
+
stallMs?: number | undefined;
|
|
1252
1515
|
cleanup?: {
|
|
1253
1516
|
code: string | null;
|
|
1254
1517
|
message: string;
|
|
1255
1518
|
} | undefined;
|
|
1519
|
+
inventory?: {
|
|
1520
|
+
exact: false;
|
|
1521
|
+
changedFiles: number;
|
|
1522
|
+
largest: {
|
|
1523
|
+
path: string;
|
|
1524
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1525
|
+
sizeBytes: number | null;
|
|
1526
|
+
}[];
|
|
1527
|
+
} | undefined;
|
|
1256
1528
|
} | undefined;
|
|
1257
1529
|
phase: string;
|
|
1258
1530
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1259
|
-
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;
|
|
1531
|
+
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;
|
|
1260
1532
|
harnessId: string | null;
|
|
1261
1533
|
attemptId: string | null;
|
|
1262
1534
|
safeMessage: string;
|
|
@@ -1265,6 +1537,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1265
1537
|
eventRefs: string[];
|
|
1266
1538
|
runDir: string | null;
|
|
1267
1539
|
resetsAt: string | null;
|
|
1540
|
+
quotaRefusal?: {
|
|
1541
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1542
|
+
constraintId: string | null;
|
|
1543
|
+
usedRatio: number | null;
|
|
1544
|
+
threshold: number | null;
|
|
1545
|
+
} | undefined;
|
|
1268
1546
|
vendorFailure: {
|
|
1269
1547
|
code: string | null;
|
|
1270
1548
|
message: string | null;
|
|
@@ -1398,7 +1676,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1398
1676
|
checks: "failed" | "not_configured" | "passed";
|
|
1399
1677
|
review: "approved" | "blocked" | "not_run";
|
|
1400
1678
|
review_requested?: boolean | undefined;
|
|
1401
|
-
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;
|
|
1679
|
+
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;
|
|
1402
1680
|
work_state?: {
|
|
1403
1681
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1404
1682
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1438,6 +1716,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1438
1716
|
eligible: boolean;
|
|
1439
1717
|
}[];
|
|
1440
1718
|
} | null;
|
|
1719
|
+
rawContext: {
|
|
1720
|
+
model: string;
|
|
1721
|
+
estimated_request_tokens: number;
|
|
1722
|
+
budget: {
|
|
1723
|
+
estimator: "chars_div_4";
|
|
1724
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
1725
|
+
model: string | null;
|
|
1726
|
+
context_window: number | null;
|
|
1727
|
+
output_allowance_tokens: number | null;
|
|
1728
|
+
framing_tokens: number | null;
|
|
1729
|
+
selection_limit_tokens: number;
|
|
1730
|
+
estimated_packet_tokens: number;
|
|
1731
|
+
omitted_for_budget: number;
|
|
1732
|
+
mandatory_paths: string[];
|
|
1733
|
+
};
|
|
1734
|
+
} | null;
|
|
1441
1735
|
tests?: {
|
|
1442
1736
|
program: string;
|
|
1443
1737
|
args: string[];
|
|
@@ -1498,6 +1792,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1498
1792
|
modelMismatch: boolean | null;
|
|
1499
1793
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
1500
1794
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
1795
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
1501
1796
|
}[] | undefined;
|
|
1502
1797
|
retainedEnvelope?: {
|
|
1503
1798
|
root: string;
|
|
@@ -1530,21 +1825,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1530
1825
|
source: "grok_init";
|
|
1531
1826
|
reported_source: string;
|
|
1532
1827
|
} | undefined;
|
|
1828
|
+
rawContextShortfall?: {
|
|
1829
|
+
model: string;
|
|
1830
|
+
context_window: number;
|
|
1831
|
+
packet_tokens: number;
|
|
1832
|
+
framing_tokens: number;
|
|
1833
|
+
output_allowance_tokens: number;
|
|
1834
|
+
mandatory_files: {
|
|
1835
|
+
path: string;
|
|
1836
|
+
estimated_tokens: number;
|
|
1837
|
+
}[];
|
|
1838
|
+
} | undefined;
|
|
1533
1839
|
captureFailure?: {
|
|
1534
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1840
|
+
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";
|
|
1535
1841
|
message: string;
|
|
1536
1842
|
causeCode?: string | undefined;
|
|
1537
1843
|
bufferBudgetBytes?: number | undefined;
|
|
1538
1844
|
stream?: "stderr" | "stdout" | undefined;
|
|
1539
1845
|
drain?: "truncated" | undefined;
|
|
1846
|
+
requiredBytes?: number | undefined;
|
|
1847
|
+
availableBytes?: number | undefined;
|
|
1848
|
+
signal?: string | undefined;
|
|
1849
|
+
stallMs?: number | undefined;
|
|
1540
1850
|
cleanup?: {
|
|
1541
1851
|
code: string | null;
|
|
1542
1852
|
message: string;
|
|
1543
1853
|
} | undefined;
|
|
1854
|
+
inventory?: {
|
|
1855
|
+
exact: false;
|
|
1856
|
+
changedFiles: number;
|
|
1857
|
+
largest: {
|
|
1858
|
+
path: string;
|
|
1859
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
1860
|
+
sizeBytes: number | null;
|
|
1861
|
+
}[];
|
|
1862
|
+
} | undefined;
|
|
1544
1863
|
} | undefined;
|
|
1545
1864
|
phase?: string | undefined;
|
|
1546
1865
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1547
|
-
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;
|
|
1866
|
+
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;
|
|
1548
1867
|
harnessId?: string | null | undefined;
|
|
1549
1868
|
attemptId?: string | null | undefined;
|
|
1550
1869
|
safeMessage: string;
|
|
@@ -1553,6 +1872,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1553
1872
|
eventRefs?: string[] | undefined;
|
|
1554
1873
|
runDir?: string | null | undefined;
|
|
1555
1874
|
resetsAt?: string | null | undefined;
|
|
1875
|
+
quotaRefusal?: {
|
|
1876
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
1877
|
+
constraintId: string | null;
|
|
1878
|
+
usedRatio: number | null;
|
|
1879
|
+
threshold: number | null;
|
|
1880
|
+
} | undefined;
|
|
1556
1881
|
vendorFailure?: {
|
|
1557
1882
|
code: string | null;
|
|
1558
1883
|
message: string | null;
|
|
@@ -1686,7 +2011,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1686
2011
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
1687
2012
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
1688
2013
|
review_requested?: boolean | undefined;
|
|
1689
|
-
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;
|
|
2014
|
+
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;
|
|
1690
2015
|
work_state?: {
|
|
1691
2016
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1692
2017
|
source: "absent" | "constrained" | "validated";
|
|
@@ -1726,6 +2051,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1726
2051
|
eligible: boolean;
|
|
1727
2052
|
}[] | undefined;
|
|
1728
2053
|
} | null | undefined;
|
|
2054
|
+
rawContext?: {
|
|
2055
|
+
model: string;
|
|
2056
|
+
estimated_request_tokens: number;
|
|
2057
|
+
budget: {
|
|
2058
|
+
estimator: "chars_div_4";
|
|
2059
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
2060
|
+
model: string | null;
|
|
2061
|
+
context_window: number | null;
|
|
2062
|
+
output_allowance_tokens: number | null;
|
|
2063
|
+
framing_tokens: number | null;
|
|
2064
|
+
selection_limit_tokens: number;
|
|
2065
|
+
estimated_packet_tokens: number;
|
|
2066
|
+
omitted_for_budget: number;
|
|
2067
|
+
mandatory_paths: string[];
|
|
2068
|
+
};
|
|
2069
|
+
} | null | undefined;
|
|
1729
2070
|
tests?: {
|
|
1730
2071
|
program: string;
|
|
1731
2072
|
args?: string[] | undefined;
|
|
@@ -1796,6 +2137,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1796
2137
|
modelMismatch: boolean | null;
|
|
1797
2138
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
1798
2139
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
2140
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
1799
2141
|
}[] | undefined;
|
|
1800
2142
|
retainedEnvelope: {
|
|
1801
2143
|
root: string;
|
|
@@ -1828,21 +2170,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1828
2170
|
source: "grok_init";
|
|
1829
2171
|
reported_source: string;
|
|
1830
2172
|
} | undefined;
|
|
2173
|
+
rawContextShortfall?: {
|
|
2174
|
+
model: string;
|
|
2175
|
+
context_window: number;
|
|
2176
|
+
packet_tokens: number;
|
|
2177
|
+
framing_tokens: number;
|
|
2178
|
+
output_allowance_tokens: number;
|
|
2179
|
+
mandatory_files: {
|
|
2180
|
+
path: string;
|
|
2181
|
+
estimated_tokens: number;
|
|
2182
|
+
}[];
|
|
2183
|
+
} | undefined;
|
|
1831
2184
|
captureFailure?: {
|
|
1832
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
2185
|
+
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";
|
|
1833
2186
|
message: string;
|
|
1834
2187
|
causeCode?: string | undefined;
|
|
1835
2188
|
bufferBudgetBytes?: number | undefined;
|
|
1836
2189
|
stream?: "stderr" | "stdout" | undefined;
|
|
1837
2190
|
drain?: "truncated" | undefined;
|
|
2191
|
+
requiredBytes?: number | undefined;
|
|
2192
|
+
availableBytes?: number | undefined;
|
|
2193
|
+
signal?: string | undefined;
|
|
2194
|
+
stallMs?: number | undefined;
|
|
1838
2195
|
cleanup?: {
|
|
1839
2196
|
code: string | null;
|
|
1840
2197
|
message: string;
|
|
1841
2198
|
} | undefined;
|
|
2199
|
+
inventory?: {
|
|
2200
|
+
exact: false;
|
|
2201
|
+
changedFiles: number;
|
|
2202
|
+
largest: {
|
|
2203
|
+
path: string;
|
|
2204
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2205
|
+
sizeBytes: number | null;
|
|
2206
|
+
}[];
|
|
2207
|
+
} | undefined;
|
|
1842
2208
|
} | undefined;
|
|
1843
2209
|
phase: string;
|
|
1844
2210
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1845
|
-
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;
|
|
2211
|
+
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;
|
|
1846
2212
|
harnessId: string | null;
|
|
1847
2213
|
attemptId: string | null;
|
|
1848
2214
|
safeMessage: string;
|
|
@@ -1851,6 +2217,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1851
2217
|
eventRefs: string[];
|
|
1852
2218
|
runDir: string | null;
|
|
1853
2219
|
resetsAt: string | null;
|
|
2220
|
+
quotaRefusal?: {
|
|
2221
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
2222
|
+
constraintId: string | null;
|
|
2223
|
+
usedRatio: number | null;
|
|
2224
|
+
threshold: number | null;
|
|
2225
|
+
} | undefined;
|
|
1854
2226
|
vendorFailure: {
|
|
1855
2227
|
code: string | null;
|
|
1856
2228
|
message: string | null;
|
|
@@ -1984,7 +2356,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1984
2356
|
checks: "failed" | "not_configured" | "passed";
|
|
1985
2357
|
review: "approved" | "blocked" | "not_run";
|
|
1986
2358
|
review_requested?: boolean | undefined;
|
|
1987
|
-
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;
|
|
2359
|
+
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;
|
|
1988
2360
|
work_state?: {
|
|
1989
2361
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
1990
2362
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2024,6 +2396,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2024
2396
|
eligible: boolean;
|
|
2025
2397
|
}[];
|
|
2026
2398
|
} | null;
|
|
2399
|
+
rawContext: {
|
|
2400
|
+
model: string;
|
|
2401
|
+
estimated_request_tokens: number;
|
|
2402
|
+
budget: {
|
|
2403
|
+
estimator: "chars_div_4";
|
|
2404
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
2405
|
+
model: string | null;
|
|
2406
|
+
context_window: number | null;
|
|
2407
|
+
output_allowance_tokens: number | null;
|
|
2408
|
+
framing_tokens: number | null;
|
|
2409
|
+
selection_limit_tokens: number;
|
|
2410
|
+
estimated_packet_tokens: number;
|
|
2411
|
+
omitted_for_budget: number;
|
|
2412
|
+
mandatory_paths: string[];
|
|
2413
|
+
};
|
|
2414
|
+
} | null;
|
|
2027
2415
|
tests?: {
|
|
2028
2416
|
program: string;
|
|
2029
2417
|
args: string[];
|
|
@@ -2088,6 +2476,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2088
2476
|
modelMismatch: boolean | null;
|
|
2089
2477
|
identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
|
|
2090
2478
|
inputDelivery: "confirmed" | "not_applicable" | "uncertain";
|
|
2479
|
+
sourceRetirement?: "not_confirmed" | "retired" | undefined;
|
|
2091
2480
|
}[] | undefined;
|
|
2092
2481
|
retainedEnvelope?: {
|
|
2093
2482
|
root: string;
|
|
@@ -2120,21 +2509,45 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2120
2509
|
source: "grok_init";
|
|
2121
2510
|
reported_source: string;
|
|
2122
2511
|
} | undefined;
|
|
2512
|
+
rawContextShortfall?: {
|
|
2513
|
+
model: string;
|
|
2514
|
+
context_window: number;
|
|
2515
|
+
packet_tokens: number;
|
|
2516
|
+
framing_tokens: number;
|
|
2517
|
+
output_allowance_tokens: number;
|
|
2518
|
+
mandatory_files: {
|
|
2519
|
+
path: string;
|
|
2520
|
+
estimated_tokens: number;
|
|
2521
|
+
}[];
|
|
2522
|
+
} | undefined;
|
|
2123
2523
|
captureFailure?: {
|
|
2124
|
-
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
2524
|
+
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";
|
|
2125
2525
|
message: string;
|
|
2126
2526
|
causeCode?: string | undefined;
|
|
2127
2527
|
bufferBudgetBytes?: number | undefined;
|
|
2128
2528
|
stream?: "stderr" | "stdout" | undefined;
|
|
2129
2529
|
drain?: "truncated" | undefined;
|
|
2530
|
+
requiredBytes?: number | undefined;
|
|
2531
|
+
availableBytes?: number | undefined;
|
|
2532
|
+
signal?: string | undefined;
|
|
2533
|
+
stallMs?: number | undefined;
|
|
2130
2534
|
cleanup?: {
|
|
2131
2535
|
code: string | null;
|
|
2132
2536
|
message: string;
|
|
2133
2537
|
} | undefined;
|
|
2538
|
+
inventory?: {
|
|
2539
|
+
exact: false;
|
|
2540
|
+
changedFiles: number;
|
|
2541
|
+
largest: {
|
|
2542
|
+
path: string;
|
|
2543
|
+
change: "added" | "deleted" | "modified" | "type_changed";
|
|
2544
|
+
sizeBytes: number | null;
|
|
2545
|
+
}[];
|
|
2546
|
+
} | undefined;
|
|
2134
2547
|
} | undefined;
|
|
2135
2548
|
phase?: string | undefined;
|
|
2136
2549
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
2137
|
-
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;
|
|
2550
|
+
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;
|
|
2138
2551
|
harnessId?: string | null | undefined;
|
|
2139
2552
|
attemptId?: string | null | undefined;
|
|
2140
2553
|
safeMessage: string;
|
|
@@ -2143,6 +2556,12 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2143
2556
|
eventRefs?: string[] | undefined;
|
|
2144
2557
|
runDir?: string | null | undefined;
|
|
2145
2558
|
resetsAt?: string | null | undefined;
|
|
2559
|
+
quotaRefusal?: {
|
|
2560
|
+
basis: "owner_reserve" | "provider_cooldown" | "provider_window";
|
|
2561
|
+
constraintId: string | null;
|
|
2562
|
+
usedRatio: number | null;
|
|
2563
|
+
threshold: number | null;
|
|
2564
|
+
} | undefined;
|
|
2146
2565
|
vendorFailure?: {
|
|
2147
2566
|
code: string | null;
|
|
2148
2567
|
message: string | null;
|
|
@@ -2276,7 +2695,7 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2276
2695
|
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
2277
2696
|
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
2278
2697
|
review_requested?: boolean | undefined;
|
|
2279
|
-
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;
|
|
2698
|
+
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;
|
|
2280
2699
|
work_state?: {
|
|
2281
2700
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
2282
2701
|
source: "absent" | "constrained" | "validated";
|
|
@@ -2316,6 +2735,22 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
2316
2735
|
eligible: boolean;
|
|
2317
2736
|
}[] | undefined;
|
|
2318
2737
|
} | null | undefined;
|
|
2738
|
+
rawContext?: {
|
|
2739
|
+
model: string;
|
|
2740
|
+
estimated_request_tokens: number;
|
|
2741
|
+
budget: {
|
|
2742
|
+
estimator: "chars_div_4";
|
|
2743
|
+
basis: "assumed_ceiling" | "model_context_window";
|
|
2744
|
+
model: string | null;
|
|
2745
|
+
context_window: number | null;
|
|
2746
|
+
output_allowance_tokens: number | null;
|
|
2747
|
+
framing_tokens: number | null;
|
|
2748
|
+
selection_limit_tokens: number;
|
|
2749
|
+
estimated_packet_tokens: number;
|
|
2750
|
+
omitted_for_budget: number;
|
|
2751
|
+
mandatory_paths: string[];
|
|
2752
|
+
};
|
|
2753
|
+
} | null | undefined;
|
|
2319
2754
|
tests?: {
|
|
2320
2755
|
program: string;
|
|
2321
2756
|
args?: string[] | undefined;
|
|
@@ -2412,16 +2847,45 @@ export declare const ControlApplyCheckResponse: z.ZodObject<{
|
|
|
2412
2847
|
* apply cleanly" from "already applied; nothing would change". Defaults
|
|
2413
2848
|
* false. */
|
|
2414
2849
|
alreadyApplied: z.ZodDefault<z.ZodBoolean>;
|
|
2850
|
+
/** #535: the delivery owner's typed reason, as a delivery of this result would refuse. */
|
|
2851
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
2852
|
+
code: z.ZodEnum<["result_objects_missing", "delivery_conflict", "delivery_pairing_mismatch", "delivery_target_changed", "delivery_path_occupied", "delivery_outside_sparse_checkout", "delivery_content_mismatch", "revert_conflict", "revert_target_changed", "pr_unrendered_result", "result_path_encoding", "space_insufficient", "git_stalled", "git_signal", "git_failed"]>;
|
|
2853
|
+
message: z.ZodString;
|
|
2854
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2855
|
+
pathCount: z.ZodDefault<z.ZodNumber>;
|
|
2856
|
+
}, "strip", z.ZodTypeAny, {
|
|
2857
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2858
|
+
message: string;
|
|
2859
|
+
paths: string[];
|
|
2860
|
+
pathCount: number;
|
|
2861
|
+
}, {
|
|
2862
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2863
|
+
message: string;
|
|
2864
|
+
paths?: string[] | undefined;
|
|
2865
|
+
pathCount?: number | undefined;
|
|
2866
|
+
}>>;
|
|
2415
2867
|
}, "strict", z.ZodTypeAny, {
|
|
2416
2868
|
ok: boolean;
|
|
2417
2869
|
code: number | null;
|
|
2418
2870
|
stderr: string;
|
|
2419
2871
|
alreadyApplied: boolean;
|
|
2872
|
+
refusal?: {
|
|
2873
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2874
|
+
message: string;
|
|
2875
|
+
paths: string[];
|
|
2876
|
+
pathCount: number;
|
|
2877
|
+
} | undefined;
|
|
2420
2878
|
}, {
|
|
2421
2879
|
ok: boolean;
|
|
2422
2880
|
code: number | null;
|
|
2423
2881
|
stderr: string;
|
|
2424
2882
|
alreadyApplied?: boolean | undefined;
|
|
2883
|
+
refusal?: {
|
|
2884
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2885
|
+
message: string;
|
|
2886
|
+
paths?: string[] | undefined;
|
|
2887
|
+
pathCount?: number | undefined;
|
|
2888
|
+
} | undefined;
|
|
2425
2889
|
}>;
|
|
2426
2890
|
export type ControlApplyCheckResponse = z.infer<typeof ControlApplyCheckResponse>;
|
|
2427
2891
|
export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
@@ -2434,6 +2898,44 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2434
2898
|
detail: z.ZodOptional<z.ZodString>;
|
|
2435
2899
|
treeMutated: z.ZodOptional<z.ZodBoolean>;
|
|
2436
2900
|
refused: z.ZodOptional<z.ZodBoolean>;
|
|
2901
|
+
publicationRefusal: z.ZodOptional<z.ZodObject<{
|
|
2902
|
+
code: z.ZodEnum<["publication_scan_findings", "publication_scan_unavailable", "publication_scan_failed"]>;
|
|
2903
|
+
detail: z.ZodString;
|
|
2904
|
+
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2905
|
+
ruleId: z.ZodString;
|
|
2906
|
+
location: z.ZodString;
|
|
2907
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
2908
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
2909
|
+
}, "strict", z.ZodTypeAny, {
|
|
2910
|
+
ruleId: string;
|
|
2911
|
+
location: string;
|
|
2912
|
+
line: number | null;
|
|
2913
|
+
commit: string | null;
|
|
2914
|
+
}, {
|
|
2915
|
+
ruleId: string;
|
|
2916
|
+
location: string;
|
|
2917
|
+
line: number | null;
|
|
2918
|
+
commit: string | null;
|
|
2919
|
+
}>, "many">>;
|
|
2920
|
+
}, "strict", z.ZodTypeAny, {
|
|
2921
|
+
code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
|
|
2922
|
+
detail: string;
|
|
2923
|
+
findings?: {
|
|
2924
|
+
ruleId: string;
|
|
2925
|
+
location: string;
|
|
2926
|
+
line: number | null;
|
|
2927
|
+
commit: string | null;
|
|
2928
|
+
}[] | undefined;
|
|
2929
|
+
}, {
|
|
2930
|
+
code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
|
|
2931
|
+
detail: string;
|
|
2932
|
+
findings?: {
|
|
2933
|
+
ruleId: string;
|
|
2934
|
+
location: string;
|
|
2935
|
+
line: number | null;
|
|
2936
|
+
commit: string | null;
|
|
2937
|
+
}[] | undefined;
|
|
2938
|
+
}>>;
|
|
2437
2939
|
alreadyApplied: z.ZodDefault<z.ZodBoolean>;
|
|
2438
2940
|
deliveryStatus: z.ZodOptional<z.ZodEnum<["applied", "already_applied", "refused"]>>;
|
|
2439
2941
|
finalVerify: z.ZodObject<{
|
|
@@ -2480,6 +2982,41 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2480
2982
|
reason?: string | null | undefined;
|
|
2481
2983
|
}>;
|
|
2482
2984
|
targetPreimageSha: z.ZodString;
|
|
2985
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
2986
|
+
code: z.ZodEnum<["result_objects_missing", "delivery_conflict", "delivery_pairing_mismatch", "delivery_target_changed", "delivery_path_occupied", "delivery_outside_sparse_checkout", "delivery_content_mismatch", "revert_conflict", "revert_target_changed", "pr_unrendered_result", "result_path_encoding", "space_insufficient", "git_stalled", "git_signal", "git_failed"]>;
|
|
2987
|
+
message: z.ZodString;
|
|
2988
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2989
|
+
pathCount: z.ZodDefault<z.ZodNumber>;
|
|
2990
|
+
}, "strip", z.ZodTypeAny, {
|
|
2991
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2992
|
+
message: string;
|
|
2993
|
+
paths: string[];
|
|
2994
|
+
pathCount: number;
|
|
2995
|
+
}, {
|
|
2996
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
2997
|
+
message: string;
|
|
2998
|
+
paths?: string[] | undefined;
|
|
2999
|
+
pathCount?: number | undefined;
|
|
3000
|
+
}>>;
|
|
3001
|
+
deliveryPair: z.ZodOptional<z.ZodObject<{
|
|
3002
|
+
schema: z.ZodLiteral<"git_objects/v1">;
|
|
3003
|
+
object_format: z.ZodEnum<["sha1", "sha256"]>;
|
|
3004
|
+
pre_commit: z.ZodString;
|
|
3005
|
+
pre_tree: z.ZodString;
|
|
3006
|
+
post_tree: z.ZodString;
|
|
3007
|
+
}, "strip", z.ZodTypeAny, {
|
|
3008
|
+
schema: "git_objects/v1";
|
|
3009
|
+
object_format: "sha1" | "sha256";
|
|
3010
|
+
pre_commit: string;
|
|
3011
|
+
pre_tree: string;
|
|
3012
|
+
post_tree: string;
|
|
3013
|
+
}, {
|
|
3014
|
+
schema: "git_objects/v1";
|
|
3015
|
+
object_format: "sha1" | "sha256";
|
|
3016
|
+
pre_commit: string;
|
|
3017
|
+
pre_tree: string;
|
|
3018
|
+
post_tree: string;
|
|
3019
|
+
}>>;
|
|
2483
3020
|
}, "strict", z.ZodTypeAny, {
|
|
2484
3021
|
mode: "apply" | "branch" | "commit" | "pr";
|
|
2485
3022
|
applied: boolean;
|
|
@@ -2490,6 +3027,16 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2490
3027
|
detail?: string | undefined;
|
|
2491
3028
|
treeMutated?: boolean | undefined;
|
|
2492
3029
|
refused?: boolean | undefined;
|
|
3030
|
+
publicationRefusal?: {
|
|
3031
|
+
code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
|
|
3032
|
+
detail: string;
|
|
3033
|
+
findings?: {
|
|
3034
|
+
ruleId: string;
|
|
3035
|
+
location: string;
|
|
3036
|
+
line: number | null;
|
|
3037
|
+
commit: string | null;
|
|
3038
|
+
}[] | undefined;
|
|
3039
|
+
} | undefined;
|
|
2493
3040
|
alreadyApplied: boolean;
|
|
2494
3041
|
deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
|
|
2495
3042
|
finalVerify: {
|
|
@@ -2506,6 +3053,19 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2506
3053
|
reason: string | null;
|
|
2507
3054
|
};
|
|
2508
3055
|
targetPreimageSha: string;
|
|
3056
|
+
refusal?: {
|
|
3057
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
3058
|
+
message: string;
|
|
3059
|
+
paths: string[];
|
|
3060
|
+
pathCount: number;
|
|
3061
|
+
} | undefined;
|
|
3062
|
+
deliveryPair?: {
|
|
3063
|
+
schema: "git_objects/v1";
|
|
3064
|
+
object_format: "sha1" | "sha256";
|
|
3065
|
+
pre_commit: string;
|
|
3066
|
+
pre_tree: string;
|
|
3067
|
+
post_tree: string;
|
|
3068
|
+
} | undefined;
|
|
2509
3069
|
}, {
|
|
2510
3070
|
mode: "apply" | "branch" | "commit" | "pr";
|
|
2511
3071
|
applied: boolean;
|
|
@@ -2516,6 +3076,16 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2516
3076
|
detail?: string | undefined;
|
|
2517
3077
|
treeMutated?: boolean | undefined;
|
|
2518
3078
|
refused?: boolean | undefined;
|
|
3079
|
+
publicationRefusal?: {
|
|
3080
|
+
code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
|
|
3081
|
+
detail: string;
|
|
3082
|
+
findings?: {
|
|
3083
|
+
ruleId: string;
|
|
3084
|
+
location: string;
|
|
3085
|
+
line: number | null;
|
|
3086
|
+
commit: string | null;
|
|
3087
|
+
}[] | undefined;
|
|
3088
|
+
} | undefined;
|
|
2519
3089
|
alreadyApplied?: boolean | undefined;
|
|
2520
3090
|
deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
|
|
2521
3091
|
finalVerify: {
|
|
@@ -2532,6 +3102,19 @@ export declare const ControlDeliveryResponse: z.ZodObject<{
|
|
|
2532
3102
|
reason?: string | null | undefined;
|
|
2533
3103
|
};
|
|
2534
3104
|
targetPreimageSha: string;
|
|
3105
|
+
refusal?: {
|
|
3106
|
+
code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
|
|
3107
|
+
message: string;
|
|
3108
|
+
paths?: string[] | undefined;
|
|
3109
|
+
pathCount?: number | undefined;
|
|
3110
|
+
} | undefined;
|
|
3111
|
+
deliveryPair?: {
|
|
3112
|
+
schema: "git_objects/v1";
|
|
3113
|
+
object_format: "sha1" | "sha256";
|
|
3114
|
+
pre_commit: string;
|
|
3115
|
+
pre_tree: string;
|
|
3116
|
+
post_tree: string;
|
|
3117
|
+
} | undefined;
|
|
2535
3118
|
}>;
|
|
2536
3119
|
export type ControlDeliveryResponse = z.infer<typeof ControlDeliveryResponse>;
|
|
2537
3120
|
export declare const ControlThreadTurnRequest: z.ZodObject<{
|