@claudexor/schema 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capabilities.d.ts +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
|
@@ -31,12 +31,12 @@ export declare const ControlCandidate: z.ZodObject<{
|
|
|
31
31
|
deletions?: number | undefined;
|
|
32
32
|
}>>>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
label: string | null;
|
|
35
|
-
winner: boolean;
|
|
36
34
|
harnessId: string;
|
|
37
35
|
attemptId: string;
|
|
38
|
-
blockers: number;
|
|
39
36
|
costUsd: number;
|
|
37
|
+
label: string | null;
|
|
38
|
+
winner: boolean;
|
|
39
|
+
blockers: number;
|
|
40
40
|
costEstimated: boolean;
|
|
41
41
|
errored: boolean;
|
|
42
42
|
gatesPassed: number;
|
|
@@ -51,10 +51,10 @@ export declare const ControlCandidate: z.ZodObject<{
|
|
|
51
51
|
}, {
|
|
52
52
|
harnessId: string;
|
|
53
53
|
attemptId: string;
|
|
54
|
+
costUsd?: number | undefined;
|
|
54
55
|
label?: string | null | undefined;
|
|
55
56
|
winner?: boolean | undefined;
|
|
56
57
|
blockers?: number | undefined;
|
|
57
|
-
costUsd?: number | undefined;
|
|
58
58
|
costEstimated?: boolean | undefined;
|
|
59
59
|
errored?: boolean | undefined;
|
|
60
60
|
gatesPassed?: number | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
73
73
|
jobId: z.ZodString;
|
|
74
74
|
runId: z.ZodString;
|
|
75
75
|
taskId: z.ZodOptional<z.ZodString>;
|
|
76
|
-
state: z.ZodEnum<["queued", "running", "blocked", "succeeded", "no_op", "ungated", "review_not_run", "failed", "cancelled", "
|
|
76
|
+
state: z.ZodEnum<["queued", "running", "blocked", "succeeded", "no_op", "ungated", "review_not_run", "failed", "cancelled", "interrupted_unknown", "cost_unverifiable", "exhausted_overshoot", "exhausted", "not_converged", "stuck_no_progress"]>;
|
|
77
77
|
runDir: z.ZodOptional<z.ZodString>;
|
|
78
78
|
error: z.ZodOptional<z.ZodString>;
|
|
79
79
|
failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -88,11 +88,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
88
88
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
89
89
|
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
runDir: string | null;
|
|
92
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
93
|
-
phase: string;
|
|
94
91
|
harnessId: string | null;
|
|
95
92
|
attemptId: string | null;
|
|
93
|
+
runDir: string | null;
|
|
94
|
+
phase: string;
|
|
95
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
96
96
|
safeMessage: string;
|
|
97
97
|
rawDetailRef: string | null;
|
|
98
98
|
logRefs: string[];
|
|
@@ -100,11 +100,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
100
100
|
nextActions: string[];
|
|
101
101
|
}, {
|
|
102
102
|
safeMessage: string;
|
|
103
|
-
runDir?: string | null | undefined;
|
|
104
|
-
category?: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal" | undefined;
|
|
105
|
-
phase?: string | undefined;
|
|
106
103
|
harnessId?: string | null | undefined;
|
|
107
104
|
attemptId?: string | null | undefined;
|
|
105
|
+
runDir?: string | null | undefined;
|
|
106
|
+
phase?: string | undefined;
|
|
107
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
108
108
|
rawDetailRef?: string | null | undefined;
|
|
109
109
|
logRefs?: string[] | undefined;
|
|
110
110
|
eventRefs?: string[] | undefined;
|
|
@@ -131,7 +131,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
131
131
|
prompt: z.ZodOptional<z.ZodString>;
|
|
132
132
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
133
133
|
primaryHarness: z.ZodOptional<z.ZodString>;
|
|
134
|
-
|
|
134
|
+
routingGoal: z.ZodOptional<z.ZodEnum<["auto", "quality", "economy"]>>;
|
|
135
135
|
model: z.ZodOptional<z.ZodString>;
|
|
136
136
|
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
137
|
harness: z.ZodString;
|
|
@@ -139,12 +139,12 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
139
139
|
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
140
140
|
}, "strict", z.ZodTypeAny, {
|
|
141
141
|
harness: string;
|
|
142
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
143
142
|
model?: string | undefined;
|
|
143
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
harness: string;
|
|
146
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
147
146
|
model?: string | undefined;
|
|
147
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
148
148
|
}>, "many">>;
|
|
149
149
|
protectedPathApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
150
|
path: z.ZodString;
|
|
@@ -157,7 +157,22 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
157
157
|
reason?: string | undefined;
|
|
158
158
|
}>, "many">>;
|
|
159
159
|
n: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
|
|
160
|
+
paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
162
|
+
}, "strict", z.ZodTypeAny, {
|
|
163
|
+
kind: "unlimited";
|
|
164
|
+
}, {
|
|
165
|
+
kind: "unlimited";
|
|
166
|
+
}>, z.ZodObject<{
|
|
167
|
+
kind: z.ZodLiteral<"finite">;
|
|
168
|
+
maxUsd: z.ZodNumber;
|
|
169
|
+
}, "strict", z.ZodTypeAny, {
|
|
170
|
+
kind: "finite";
|
|
171
|
+
maxUsd: number;
|
|
172
|
+
}, {
|
|
173
|
+
kind: "finite";
|
|
174
|
+
maxUsd: number;
|
|
175
|
+
}>]>>;
|
|
161
176
|
spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
162
177
|
spendEstimated: z.ZodOptional<z.ZodBoolean>;
|
|
163
178
|
access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
@@ -179,30 +194,55 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
179
194
|
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
180
195
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
181
196
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
status: "
|
|
197
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
198
|
+
available: boolean;
|
|
199
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
183
200
|
target: string | null;
|
|
184
201
|
tool: string | null;
|
|
185
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
186
202
|
required: boolean;
|
|
187
203
|
attempted: boolean;
|
|
188
204
|
rawDetailRef: string | null;
|
|
189
205
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
190
206
|
satisfied: boolean;
|
|
191
207
|
errorSummary: string | null;
|
|
192
|
-
available: boolean;
|
|
193
208
|
}, {
|
|
194
|
-
status?: "
|
|
209
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
210
|
+
available?: boolean | undefined;
|
|
211
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
195
212
|
target?: string | null | undefined;
|
|
196
213
|
tool?: string | null | undefined;
|
|
197
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
198
214
|
required?: boolean | undefined;
|
|
199
215
|
attempted?: boolean | undefined;
|
|
200
216
|
rawDetailRef?: string | null | undefined;
|
|
201
217
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
202
218
|
satisfied?: boolean | undefined;
|
|
203
219
|
errorSummary?: string | null | undefined;
|
|
204
|
-
available?: boolean | undefined;
|
|
205
220
|
}>>;
|
|
221
|
+
requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
+
capability: z.ZodLiteral<"browser">;
|
|
223
|
+
harness_id: z.ZodString;
|
|
224
|
+
eligible: z.ZodBoolean;
|
|
225
|
+
requested: z.ZodBoolean;
|
|
226
|
+
effective: z.ZodBoolean;
|
|
227
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible"]>;
|
|
228
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
requested: boolean;
|
|
231
|
+
effective: boolean;
|
|
232
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
233
|
+
evidence_refs: string[];
|
|
234
|
+
harness_id: string;
|
|
235
|
+
eligible: boolean;
|
|
236
|
+
capability: "browser";
|
|
237
|
+
}, {
|
|
238
|
+
requested: boolean;
|
|
239
|
+
effective: boolean;
|
|
240
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
241
|
+
harness_id: string;
|
|
242
|
+
eligible: boolean;
|
|
243
|
+
capability: "browser";
|
|
244
|
+
evidence_refs?: string[] | undefined;
|
|
245
|
+
}>, "many">>;
|
|
206
246
|
toolPermissionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
247
|
outputReadyState: z.ZodDefault<z.ZodEnum<["pending", "finalizing", "ready", "diagnostic"]>>;
|
|
208
248
|
toolWarningsTotal: z.ZodDefault<z.ZodNumber>;
|
|
@@ -226,9 +266,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
226
266
|
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
227
267
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
228
268
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
229
270
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
230
271
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
kind: "plan" | "none" | "patch" | "
|
|
272
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
232
273
|
diffStat: {
|
|
233
274
|
files: number;
|
|
234
275
|
additions: number;
|
|
@@ -239,9 +280,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
239
280
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
240
281
|
preTurnSha: string | null;
|
|
241
282
|
postTurnSha: string | null;
|
|
283
|
+
revertAnchorId: string | null;
|
|
242
284
|
revertable: boolean;
|
|
243
285
|
}, {
|
|
244
|
-
kind?: "plan" | "none" | "patch" | "
|
|
286
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
245
287
|
diffStat?: {
|
|
246
288
|
files: number;
|
|
247
289
|
additions: number;
|
|
@@ -252,6 +294,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
252
294
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
253
295
|
preTurnSha?: string | null | undefined;
|
|
254
296
|
postTurnSha?: string | null | undefined;
|
|
297
|
+
revertAnchorId?: string | null | undefined;
|
|
255
298
|
revertable?: boolean | undefined;
|
|
256
299
|
}>>;
|
|
257
300
|
waitingOnUser: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -261,24 +304,39 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
261
304
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
262
305
|
verified: z.ZodDefault<z.ZodBoolean>;
|
|
263
306
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
verified: boolean;
|
|
265
307
|
harnessId: string | null;
|
|
266
308
|
requestedModel: string | null;
|
|
267
309
|
observedModel: string | null;
|
|
310
|
+
verified: boolean;
|
|
268
311
|
}, {
|
|
269
|
-
verified?: boolean | undefined;
|
|
270
312
|
harnessId?: string | null | undefined;
|
|
271
313
|
requestedModel?: string | null | undefined;
|
|
272
314
|
observedModel?: string | null | undefined;
|
|
315
|
+
verified?: boolean | undefined;
|
|
273
316
|
}>>>;
|
|
274
|
-
tests: z.ZodOptional<z.ZodArray<z.
|
|
317
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
program: z.ZodString;
|
|
319
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
320
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
321
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
322
|
+
}, "strict", z.ZodTypeAny, {
|
|
323
|
+
program: string;
|
|
324
|
+
args: string[];
|
|
325
|
+
envAllowlist: string[];
|
|
326
|
+
cwd?: string | undefined;
|
|
327
|
+
}, {
|
|
328
|
+
program: string;
|
|
329
|
+
cwd?: string | undefined;
|
|
330
|
+
args?: string[] | undefined;
|
|
331
|
+
envAllowlist?: string[] | undefined;
|
|
332
|
+
}>, "many">>;
|
|
275
333
|
specId: z.ZodOptional<z.ZodString>;
|
|
276
334
|
specHash: z.ZodOptional<z.ZodString>;
|
|
277
335
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
278
336
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
279
337
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
280
338
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
339
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
282
340
|
runId: string;
|
|
283
341
|
project: {
|
|
284
342
|
kind: "none" | "project";
|
|
@@ -288,11 +346,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
288
346
|
};
|
|
289
347
|
jobId: string;
|
|
290
348
|
failure: {
|
|
291
|
-
runDir: string | null;
|
|
292
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
293
|
-
phase: string;
|
|
294
349
|
harnessId: string | null;
|
|
295
350
|
attemptId: string | null;
|
|
351
|
+
runDir: string | null;
|
|
352
|
+
phase: string;
|
|
353
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
296
354
|
safeMessage: string;
|
|
297
355
|
rawDetailRef: string | null;
|
|
298
356
|
logRefs: string[];
|
|
@@ -300,22 +358,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
300
358
|
nextActions: string[];
|
|
301
359
|
} | null;
|
|
302
360
|
webEvidence: {
|
|
303
|
-
status: "
|
|
361
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
362
|
+
available: boolean;
|
|
363
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
304
364
|
target: string | null;
|
|
305
365
|
tool: string | null;
|
|
306
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
307
366
|
required: boolean;
|
|
308
367
|
attempted: boolean;
|
|
309
368
|
rawDetailRef: string | null;
|
|
310
369
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
311
370
|
satisfied: boolean;
|
|
312
371
|
errorSummary: string | null;
|
|
313
|
-
available: boolean;
|
|
314
372
|
};
|
|
373
|
+
requestRequirements: {
|
|
374
|
+
requested: boolean;
|
|
375
|
+
effective: boolean;
|
|
376
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
377
|
+
evidence_refs: string[];
|
|
378
|
+
harness_id: string;
|
|
379
|
+
eligible: boolean;
|
|
380
|
+
capability: "browser";
|
|
381
|
+
}[];
|
|
315
382
|
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
316
383
|
toolWarningsTotal: number;
|
|
317
384
|
result: {
|
|
318
|
-
kind: "plan" | "none" | "patch" | "
|
|
385
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
319
386
|
diffStat: {
|
|
320
387
|
files: number;
|
|
321
388
|
additions: number;
|
|
@@ -326,27 +393,41 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
326
393
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
327
394
|
preTurnSha: string | null;
|
|
328
395
|
postTurnSha: string | null;
|
|
396
|
+
revertAnchorId: string | null;
|
|
329
397
|
revertable: boolean;
|
|
330
398
|
};
|
|
331
399
|
waitingOnUser: boolean;
|
|
332
400
|
route: {
|
|
333
|
-
verified: boolean;
|
|
334
401
|
harnessId: string | null;
|
|
335
402
|
requestedModel: string | null;
|
|
336
403
|
observedModel: string | null;
|
|
404
|
+
verified: boolean;
|
|
337
405
|
} | null;
|
|
406
|
+
startedAt?: string | undefined;
|
|
407
|
+
createdAt?: string | undefined;
|
|
408
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
338
409
|
prompt?: string | undefined;
|
|
339
410
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
340
411
|
error?: string | undefined;
|
|
341
|
-
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
342
412
|
harnesses?: string[] | undefined;
|
|
343
413
|
runDir?: string | undefined;
|
|
344
|
-
tests?: string[] | undefined;
|
|
345
|
-
portfolio?: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex" | undefined;
|
|
346
|
-
n?: number | undefined;
|
|
347
414
|
model?: string | undefined;
|
|
415
|
+
tests?: {
|
|
416
|
+
program: string;
|
|
417
|
+
args: string[];
|
|
418
|
+
envAllowlist: string[];
|
|
419
|
+
cwd?: string | undefined;
|
|
420
|
+
}[] | undefined;
|
|
421
|
+
n?: number | undefined;
|
|
422
|
+
taskId?: string | undefined;
|
|
348
423
|
primaryHarness?: string | undefined;
|
|
349
|
-
|
|
424
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
425
|
+
paidBudget?: {
|
|
426
|
+
kind: "unlimited";
|
|
427
|
+
} | {
|
|
428
|
+
kind: "finite";
|
|
429
|
+
maxUsd: number;
|
|
430
|
+
} | undefined;
|
|
350
431
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
351
432
|
protectedPathApprovals?: {
|
|
352
433
|
path: string;
|
|
@@ -356,13 +437,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
356
437
|
specHash?: string | undefined;
|
|
357
438
|
reviewerPanel?: {
|
|
358
439
|
harness: string;
|
|
359
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
360
440
|
model?: string | undefined;
|
|
441
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
361
442
|
}[] | undefined;
|
|
362
|
-
createdAt?: string | undefined;
|
|
363
|
-
startedAt?: string | undefined;
|
|
364
|
-
finishedAt?: string | undefined;
|
|
365
|
-
taskId?: string | undefined;
|
|
366
443
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
367
444
|
spendUsd?: number | null | undefined;
|
|
368
445
|
spendEstimated?: boolean | undefined;
|
|
@@ -371,18 +448,26 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
371
448
|
webRequired?: boolean | undefined;
|
|
372
449
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
373
450
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
451
|
+
finishedAt?: string | undefined;
|
|
374
452
|
}, {
|
|
375
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
453
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
376
454
|
runId: string;
|
|
377
455
|
jobId: string;
|
|
456
|
+
startedAt?: string | undefined;
|
|
457
|
+
createdAt?: string | undefined;
|
|
458
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
378
459
|
prompt?: string | undefined;
|
|
379
460
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
380
461
|
error?: string | undefined;
|
|
381
|
-
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
382
462
|
harnesses?: string[] | undefined;
|
|
383
463
|
runDir?: string | undefined;
|
|
384
|
-
|
|
385
|
-
|
|
464
|
+
model?: string | undefined;
|
|
465
|
+
tests?: {
|
|
466
|
+
program: string;
|
|
467
|
+
cwd?: string | undefined;
|
|
468
|
+
args?: string[] | undefined;
|
|
469
|
+
envAllowlist?: string[] | undefined;
|
|
470
|
+
}[] | undefined;
|
|
386
471
|
project?: {
|
|
387
472
|
kind?: "none" | "project" | undefined;
|
|
388
473
|
root?: string | null | undefined;
|
|
@@ -390,9 +475,15 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
390
475
|
projectName?: string | null | undefined;
|
|
391
476
|
} | undefined;
|
|
392
477
|
n?: number | undefined;
|
|
393
|
-
|
|
478
|
+
taskId?: string | undefined;
|
|
394
479
|
primaryHarness?: string | undefined;
|
|
395
|
-
|
|
480
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
481
|
+
paidBudget?: {
|
|
482
|
+
kind: "unlimited";
|
|
483
|
+
} | {
|
|
484
|
+
kind: "finite";
|
|
485
|
+
maxUsd: number;
|
|
486
|
+
} | undefined;
|
|
396
487
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
397
488
|
protectedPathApprovals?: {
|
|
398
489
|
path: string;
|
|
@@ -402,20 +493,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
402
493
|
specHash?: string | undefined;
|
|
403
494
|
reviewerPanel?: {
|
|
404
495
|
harness: string;
|
|
405
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
406
496
|
model?: string | undefined;
|
|
497
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
407
498
|
}[] | undefined;
|
|
408
|
-
createdAt?: string | undefined;
|
|
409
|
-
startedAt?: string | undefined;
|
|
410
|
-
finishedAt?: string | undefined;
|
|
411
|
-
taskId?: string | undefined;
|
|
412
499
|
failure?: {
|
|
413
500
|
safeMessage: string;
|
|
414
|
-
runDir?: string | null | undefined;
|
|
415
|
-
category?: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal" | undefined;
|
|
416
|
-
phase?: string | undefined;
|
|
417
501
|
harnessId?: string | null | undefined;
|
|
418
502
|
attemptId?: string | null | undefined;
|
|
503
|
+
runDir?: string | null | undefined;
|
|
504
|
+
phase?: string | undefined;
|
|
505
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
419
506
|
rawDetailRef?: string | null | undefined;
|
|
420
507
|
logRefs?: string[] | undefined;
|
|
421
508
|
eventRefs?: string[] | undefined;
|
|
@@ -429,23 +516,32 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
429
516
|
webRequired?: boolean | undefined;
|
|
430
517
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
431
518
|
webEvidence?: {
|
|
432
|
-
status?: "
|
|
519
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
520
|
+
available?: boolean | undefined;
|
|
521
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
433
522
|
target?: string | null | undefined;
|
|
434
523
|
tool?: string | null | undefined;
|
|
435
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
436
524
|
required?: boolean | undefined;
|
|
437
525
|
attempted?: boolean | undefined;
|
|
438
526
|
rawDetailRef?: string | null | undefined;
|
|
439
527
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
440
528
|
satisfied?: boolean | undefined;
|
|
441
529
|
errorSummary?: string | null | undefined;
|
|
442
|
-
available?: boolean | undefined;
|
|
443
530
|
} | undefined;
|
|
531
|
+
requestRequirements?: {
|
|
532
|
+
requested: boolean;
|
|
533
|
+
effective: boolean;
|
|
534
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
535
|
+
harness_id: string;
|
|
536
|
+
eligible: boolean;
|
|
537
|
+
capability: "browser";
|
|
538
|
+
evidence_refs?: string[] | undefined;
|
|
539
|
+
}[] | undefined;
|
|
444
540
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
445
541
|
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
446
542
|
toolWarningsTotal?: number | undefined;
|
|
447
543
|
result?: {
|
|
448
|
-
kind?: "plan" | "none" | "patch" | "
|
|
544
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
449
545
|
diffStat?: {
|
|
450
546
|
files: number;
|
|
451
547
|
additions: number;
|
|
@@ -456,15 +552,17 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
456
552
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
457
553
|
preTurnSha?: string | null | undefined;
|
|
458
554
|
postTurnSha?: string | null | undefined;
|
|
555
|
+
revertAnchorId?: string | null | undefined;
|
|
459
556
|
revertable?: boolean | undefined;
|
|
460
557
|
} | undefined;
|
|
461
558
|
waitingOnUser?: boolean | undefined;
|
|
462
559
|
route?: {
|
|
463
|
-
verified?: boolean | undefined;
|
|
464
560
|
harnessId?: string | null | undefined;
|
|
465
561
|
requestedModel?: string | null | undefined;
|
|
466
562
|
observedModel?: string | null | undefined;
|
|
563
|
+
verified?: boolean | undefined;
|
|
467
564
|
} | null | undefined;
|
|
565
|
+
finishedAt?: string | undefined;
|
|
468
566
|
}>;
|
|
469
567
|
/**
|
|
470
568
|
* Highest event seq included in this snapshot. Clients subscribe to the
|
|
@@ -495,14 +593,14 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
495
593
|
bytes: z.ZodOptional<z.ZodNumber>;
|
|
496
594
|
}, "strip", z.ZodTypeAny, {
|
|
497
595
|
path: string;
|
|
498
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "
|
|
596
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
|
|
499
597
|
text: string | null;
|
|
500
598
|
bytes?: number | undefined;
|
|
501
599
|
}, {
|
|
502
600
|
path: string;
|
|
503
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "
|
|
504
|
-
text?: string | null | undefined;
|
|
601
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
|
|
505
602
|
bytes?: number | undefined;
|
|
603
|
+
text?: string | null | undefined;
|
|
506
604
|
}>>>;
|
|
507
605
|
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
508
606
|
type: z.ZodString;
|
|
@@ -519,12 +617,12 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
519
617
|
}, "strip", z.ZodTypeAny, {
|
|
520
618
|
type: string;
|
|
521
619
|
detail: string | null;
|
|
522
|
-
target: string | null;
|
|
523
|
-
title: string;
|
|
524
|
-
severity: "error" | "info" | "warning";
|
|
525
620
|
harnessId: string | null;
|
|
526
621
|
attemptId: string | null;
|
|
622
|
+
target: string | null;
|
|
623
|
+
title: string;
|
|
527
624
|
errorSummary: string | null;
|
|
625
|
+
severity: "error" | "info" | "warning";
|
|
528
626
|
toolName: string | null;
|
|
529
627
|
rawRef: string | null;
|
|
530
628
|
ts?: string | undefined;
|
|
@@ -532,17 +630,32 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
532
630
|
type: string;
|
|
533
631
|
title: string;
|
|
534
632
|
detail?: string | null | undefined;
|
|
535
|
-
target?: string | null | undefined;
|
|
536
|
-
ts?: string | undefined;
|
|
537
|
-
severity?: "error" | "info" | "warning" | undefined;
|
|
538
633
|
harnessId?: string | null | undefined;
|
|
539
634
|
attemptId?: string | null | undefined;
|
|
635
|
+
target?: string | null | undefined;
|
|
636
|
+
ts?: string | undefined;
|
|
540
637
|
errorSummary?: string | null | undefined;
|
|
638
|
+
severity?: "error" | "info" | "warning" | undefined;
|
|
541
639
|
toolName?: string | null | undefined;
|
|
542
640
|
rawRef?: string | null | undefined;
|
|
543
641
|
}>, "many">>;
|
|
544
642
|
budget: z.ZodDefault<z.ZodObject<{
|
|
545
|
-
|
|
643
|
+
paidBudget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
644
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
645
|
+
}, "strict", z.ZodTypeAny, {
|
|
646
|
+
kind: "unlimited";
|
|
647
|
+
}, {
|
|
648
|
+
kind: "unlimited";
|
|
649
|
+
}>, z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"finite">;
|
|
651
|
+
maxUsd: z.ZodNumber;
|
|
652
|
+
}, "strict", z.ZodTypeAny, {
|
|
653
|
+
kind: "finite";
|
|
654
|
+
maxUsd: number;
|
|
655
|
+
}, {
|
|
656
|
+
kind: "finite";
|
|
657
|
+
maxUsd: number;
|
|
658
|
+
}>]>>;
|
|
546
659
|
spendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
547
660
|
remainingUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
548
661
|
estimated: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -550,20 +663,30 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
550
663
|
}, "strip", z.ZodTypeAny, {
|
|
551
664
|
source: "unknown" | "decision" | "events" | "settings";
|
|
552
665
|
estimated: boolean;
|
|
553
|
-
|
|
666
|
+
paidBudget: {
|
|
667
|
+
kind: "unlimited";
|
|
668
|
+
} | {
|
|
669
|
+
kind: "finite";
|
|
670
|
+
maxUsd: number;
|
|
671
|
+
};
|
|
554
672
|
spendUsd: number | null;
|
|
555
673
|
remainingUsd: number | null;
|
|
556
674
|
}, {
|
|
557
675
|
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
558
676
|
estimated?: boolean | undefined;
|
|
559
|
-
|
|
677
|
+
paidBudget?: {
|
|
678
|
+
kind: "unlimited";
|
|
679
|
+
} | {
|
|
680
|
+
kind: "finite";
|
|
681
|
+
maxUsd: number;
|
|
682
|
+
} | undefined;
|
|
560
683
|
spendUsd?: number | null | undefined;
|
|
561
684
|
remainingUsd?: number | null | undefined;
|
|
562
685
|
}>>;
|
|
563
686
|
finalSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
564
687
|
decision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
565
688
|
winner: z.ZodNullable<z.ZodString>;
|
|
566
|
-
status: z.ZodEnum<["success", "no_op", "ungated", "review_not_run", "blocked", "
|
|
689
|
+
status: z.ZodEnum<["success", "no_op", "ungated", "review_not_run", "blocked", "failed", "interrupted_unknown", "cost_unverifiable", "exhausted_overshoot", "exhausted", "not_converged", "stuck_no_progress", "cancelled"]>;
|
|
567
690
|
outcome: z.ZodDefault<z.ZodEnum<["ready", "no_op", "ungated", "review_not_run", "blocked"]>>;
|
|
568
691
|
why_winner: z.ZodDefault<z.ZodString>;
|
|
569
692
|
why_not_others: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -600,9 +723,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
600
723
|
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
601
724
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
602
725
|
}, "strip", z.ZodTypeAny, {
|
|
726
|
+
reason: string | null;
|
|
603
727
|
duration_ms: number | null;
|
|
604
728
|
base_sha: string | null;
|
|
605
|
-
reason: string | null;
|
|
606
729
|
attempted: boolean;
|
|
607
730
|
applied_cleanly: boolean | null;
|
|
608
731
|
gates_passed: boolean | null;
|
|
@@ -612,9 +735,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
612
735
|
}[];
|
|
613
736
|
}, {
|
|
614
737
|
attempted: boolean;
|
|
738
|
+
reason?: string | null | undefined;
|
|
615
739
|
duration_ms?: number | null | undefined;
|
|
616
740
|
base_sha?: string | null | undefined;
|
|
617
|
-
reason?: string | null | undefined;
|
|
618
741
|
applied_cleanly?: boolean | null | undefined;
|
|
619
742
|
gates_passed?: boolean | null | undefined;
|
|
620
743
|
gates?: {
|
|
@@ -623,7 +746,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
623
746
|
}[] | undefined;
|
|
624
747
|
}>>>;
|
|
625
748
|
}, "strip", z.ZodTypeAny, {
|
|
626
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
749
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
627
750
|
winner: string | null;
|
|
628
751
|
outcome: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked";
|
|
629
752
|
why_winner: string;
|
|
@@ -638,9 +761,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
638
761
|
apply_recommendation: "apply" | "inspect" | "continue" | "split_task" | "human_review";
|
|
639
762
|
verification_basis: "none" | "cross_family_review" | "both";
|
|
640
763
|
final_verify: {
|
|
764
|
+
reason: string | null;
|
|
641
765
|
duration_ms: number | null;
|
|
642
766
|
base_sha: string | null;
|
|
643
|
-
reason: string | null;
|
|
644
767
|
attempted: boolean;
|
|
645
768
|
applied_cleanly: boolean | null;
|
|
646
769
|
gates_passed: boolean | null;
|
|
@@ -650,7 +773,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
650
773
|
}[];
|
|
651
774
|
} | null;
|
|
652
775
|
}, {
|
|
653
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
776
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
654
777
|
winner: string | null;
|
|
655
778
|
outcome?: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked" | undefined;
|
|
656
779
|
why_winner?: string | undefined;
|
|
@@ -666,9 +789,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
666
789
|
verification_basis?: "none" | "cross_family_review" | "both" | undefined;
|
|
667
790
|
final_verify?: {
|
|
668
791
|
attempted: boolean;
|
|
792
|
+
reason?: string | null | undefined;
|
|
669
793
|
duration_ms?: number | null | undefined;
|
|
670
794
|
base_sha?: string | null | undefined;
|
|
671
|
-
reason?: string | null | undefined;
|
|
672
795
|
applied_cleanly?: boolean | null | undefined;
|
|
673
796
|
gates_passed?: boolean | null | undefined;
|
|
674
797
|
gates?: {
|
|
@@ -697,16 +820,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
697
820
|
files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
698
821
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
699
822
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
|
|
701
|
-
kind: "patch" | "new_repo" | "report";
|
|
823
|
+
kind: "patch" | "report" | "new_repo";
|
|
702
824
|
files: Record<string, string>;
|
|
825
|
+
id: string;
|
|
703
826
|
source_task_id: string;
|
|
704
827
|
meta: Record<string, unknown>;
|
|
705
828
|
producer_attempt_id?: string | undefined;
|
|
706
829
|
evidence_dir?: string | undefined;
|
|
707
830
|
}, {
|
|
831
|
+
kind: "patch" | "report" | "new_repo";
|
|
708
832
|
id: string;
|
|
709
|
-
kind: "patch" | "new_repo" | "report";
|
|
710
833
|
source_task_id: string;
|
|
711
834
|
files?: Record<string, string> | undefined;
|
|
712
835
|
producer_attempt_id?: string | undefined;
|
|
@@ -763,25 +886,25 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
763
886
|
path: string;
|
|
764
887
|
}>, "many">>;
|
|
765
888
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
commands: {
|
|
767
|
-
command: string;
|
|
768
|
-
}[];
|
|
769
889
|
files: {
|
|
770
890
|
path: string;
|
|
771
891
|
lines: string | null;
|
|
772
892
|
}[];
|
|
893
|
+
commands: {
|
|
894
|
+
command: string;
|
|
895
|
+
}[];
|
|
773
896
|
diff_hunks: string[];
|
|
774
897
|
logs: {
|
|
775
898
|
path: string;
|
|
776
899
|
}[];
|
|
777
900
|
}, {
|
|
778
|
-
commands?: {
|
|
779
|
-
command: string;
|
|
780
|
-
}[] | undefined;
|
|
781
901
|
files?: {
|
|
782
902
|
path: string;
|
|
783
903
|
lines?: string | null | undefined;
|
|
784
904
|
}[] | undefined;
|
|
905
|
+
commands?: {
|
|
906
|
+
command: string;
|
|
907
|
+
}[] | undefined;
|
|
785
908
|
diff_hunks?: string[] | undefined;
|
|
786
909
|
logs?: {
|
|
787
910
|
path: string;
|
|
@@ -799,31 +922,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
799
922
|
observed_model: string | null;
|
|
800
923
|
requested_model: string | null;
|
|
801
924
|
requested_effort: string | null;
|
|
802
|
-
route_proof_status: "
|
|
925
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
803
926
|
}, {
|
|
804
927
|
harness_id: string;
|
|
805
928
|
observed_model?: string | null | undefined;
|
|
806
929
|
requested_model?: string | null | undefined;
|
|
807
930
|
requested_effort?: string | null | undefined;
|
|
808
|
-
route_proof_status?: "
|
|
931
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
809
932
|
}>;
|
|
810
933
|
status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rebutted", "fixed", "accepted_risk", "duplicate", "stale", "out_of_scope", "insufficient_evidence"]>>;
|
|
811
934
|
revalidation_note: z.ZodOptional<z.ZodString>;
|
|
812
935
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
status: "stale" | "
|
|
936
|
+
status: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence";
|
|
814
937
|
id: string;
|
|
815
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
816
938
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
939
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
817
940
|
claim: string;
|
|
818
941
|
linked_acceptance_criteria: string[];
|
|
819
942
|
evidence: {
|
|
820
|
-
commands: {
|
|
821
|
-
command: string;
|
|
822
|
-
}[];
|
|
823
943
|
files: {
|
|
824
944
|
path: string;
|
|
825
945
|
lines: string | null;
|
|
826
946
|
}[];
|
|
947
|
+
commands: {
|
|
948
|
+
command: string;
|
|
949
|
+
}[];
|
|
827
950
|
diff_hunks: string[];
|
|
828
951
|
logs: {
|
|
829
952
|
path: string;
|
|
@@ -835,31 +958,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
835
958
|
observed_model: string | null;
|
|
836
959
|
requested_model: string | null;
|
|
837
960
|
requested_effort: string | null;
|
|
838
|
-
route_proof_status: "
|
|
961
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
839
962
|
};
|
|
840
963
|
revalidation_note?: string | undefined;
|
|
841
964
|
}, {
|
|
842
965
|
id: string;
|
|
843
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
844
966
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
967
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
845
968
|
claim: string;
|
|
846
969
|
reviewer: {
|
|
847
970
|
harness_id: string;
|
|
848
971
|
observed_model?: string | null | undefined;
|
|
849
972
|
requested_model?: string | null | undefined;
|
|
850
973
|
requested_effort?: string | null | undefined;
|
|
851
|
-
route_proof_status?: "
|
|
974
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
852
975
|
};
|
|
853
|
-
status?: "stale" | "
|
|
976
|
+
status?: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence" | undefined;
|
|
854
977
|
linked_acceptance_criteria?: string[] | undefined;
|
|
855
978
|
evidence?: {
|
|
856
|
-
commands?: {
|
|
857
|
-
command: string;
|
|
858
|
-
}[] | undefined;
|
|
859
979
|
files?: {
|
|
860
980
|
path: string;
|
|
861
981
|
lines?: string | null | undefined;
|
|
862
982
|
}[] | undefined;
|
|
983
|
+
commands?: {
|
|
984
|
+
command: string;
|
|
985
|
+
}[] | undefined;
|
|
863
986
|
diff_hunks?: string[] | undefined;
|
|
864
987
|
logs?: {
|
|
865
988
|
path: string;
|
|
@@ -911,6 +1034,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
911
1034
|
requestedAt: z.ZodString;
|
|
912
1035
|
timeoutAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
913
1036
|
}, "strip", z.ZodTypeAny, {
|
|
1037
|
+
harnessId: string | null;
|
|
1038
|
+
attemptId: string | null;
|
|
914
1039
|
questions: {
|
|
915
1040
|
options: {
|
|
916
1041
|
label: string;
|
|
@@ -922,8 +1047,6 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
922
1047
|
multi_select: boolean;
|
|
923
1048
|
}[];
|
|
924
1049
|
runId: string;
|
|
925
|
-
harnessId: string | null;
|
|
926
|
-
attemptId: string | null;
|
|
927
1050
|
interactionId: string;
|
|
928
1051
|
sourceTool: string | null;
|
|
929
1052
|
requestedAt: string;
|
|
@@ -932,6 +1055,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
932
1055
|
runId: string;
|
|
933
1056
|
interactionId: string;
|
|
934
1057
|
requestedAt: string;
|
|
1058
|
+
harnessId?: string | null | undefined;
|
|
1059
|
+
attemptId?: string | null | undefined;
|
|
935
1060
|
questions?: {
|
|
936
1061
|
id: string;
|
|
937
1062
|
question: string;
|
|
@@ -942,8 +1067,6 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
942
1067
|
header?: string | null | undefined;
|
|
943
1068
|
multi_select?: boolean | undefined;
|
|
944
1069
|
}[] | undefined;
|
|
945
|
-
harnessId?: string | null | undefined;
|
|
946
|
-
attemptId?: string | null | undefined;
|
|
947
1070
|
sourceTool?: string | null | undefined;
|
|
948
1071
|
timeoutAt?: string | null | undefined;
|
|
949
1072
|
}>, "many">>;
|
|
@@ -956,45 +1079,65 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
956
1079
|
tool: z.ZodEnum<["start_run", "race", "status", "answer_question", "apply", "review"]>;
|
|
957
1080
|
risk: z.ZodEnum<["safe", "risky"]>;
|
|
958
1081
|
status: z.ZodEnum<["pending", "running", "done", "skipped", "blocked", "failed"]>;
|
|
1082
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1083
|
+
terminal_status: z.ZodDefault<z.ZodNullable<z.ZodEnum<["success", "no_op", "ungated", "review_not_run", "blocked", "failed", "interrupted_unknown", "cost_unverifiable", "exhausted_overshoot", "exhausted", "not_converged", "stuck_no_progress", "cancelled"]>>>;
|
|
1084
|
+
terminal_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["executor", "subrun", "review", "delivery", "policy", "budget"]>>>;
|
|
1085
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
959
1086
|
run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
960
1087
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
961
1088
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
status: "pending" | "
|
|
1089
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
963
1090
|
detail: string | null;
|
|
1091
|
+
index: number;
|
|
1092
|
+
evidence_refs: string[];
|
|
964
1093
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
965
1094
|
run_id: string | null;
|
|
966
|
-
|
|
1095
|
+
required: boolean;
|
|
967
1096
|
risk: "safe" | "risky";
|
|
1097
|
+
terminal_status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null;
|
|
1098
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
968
1099
|
}, {
|
|
969
|
-
status: "pending" | "
|
|
970
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1100
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
971
1101
|
index: number;
|
|
1102
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
972
1103
|
risk: "safe" | "risky";
|
|
973
1104
|
detail?: string | null | undefined;
|
|
1105
|
+
evidence_refs?: string[] | undefined;
|
|
974
1106
|
run_id?: string | null | undefined;
|
|
1107
|
+
required?: boolean | undefined;
|
|
1108
|
+
terminal_status?: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null | undefined;
|
|
1109
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
975
1110
|
}>, "many">>;
|
|
976
1111
|
autonomy: z.ZodEnum<["suggest", "auto_safe", "auto_full"]>;
|
|
977
1112
|
stopped_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
978
1113
|
}, "strip", z.ZodTypeAny, {
|
|
979
1114
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
980
1115
|
steps: {
|
|
981
|
-
status: "pending" | "
|
|
1116
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
982
1117
|
detail: string | null;
|
|
1118
|
+
index: number;
|
|
1119
|
+
evidence_refs: string[];
|
|
983
1120
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
984
1121
|
run_id: string | null;
|
|
985
|
-
|
|
1122
|
+
required: boolean;
|
|
986
1123
|
risk: "safe" | "risky";
|
|
1124
|
+
terminal_status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null;
|
|
1125
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
987
1126
|
}[];
|
|
988
1127
|
stopped_reason: string | null;
|
|
989
1128
|
}, {
|
|
990
1129
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
991
1130
|
steps?: {
|
|
992
|
-
status: "pending" | "
|
|
993
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1131
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
994
1132
|
index: number;
|
|
1133
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
995
1134
|
risk: "safe" | "risky";
|
|
996
1135
|
detail?: string | null | undefined;
|
|
1136
|
+
evidence_refs?: string[] | undefined;
|
|
997
1137
|
run_id?: string | null | undefined;
|
|
1138
|
+
required?: boolean | undefined;
|
|
1139
|
+
terminal_status?: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null | undefined;
|
|
1140
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
998
1141
|
}[] | undefined;
|
|
999
1142
|
stopped_reason?: string | null | undefined;
|
|
1000
1143
|
}>>>;
|
|
@@ -1030,12 +1173,12 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1030
1173
|
deletions?: number | undefined;
|
|
1031
1174
|
}>>>;
|
|
1032
1175
|
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
label: string | null;
|
|
1034
|
-
winner: boolean;
|
|
1035
1176
|
harnessId: string;
|
|
1036
1177
|
attemptId: string;
|
|
1037
|
-
blockers: number;
|
|
1038
1178
|
costUsd: number;
|
|
1179
|
+
label: string | null;
|
|
1180
|
+
winner: boolean;
|
|
1181
|
+
blockers: number;
|
|
1039
1182
|
costEstimated: boolean;
|
|
1040
1183
|
errored: boolean;
|
|
1041
1184
|
gatesPassed: number;
|
|
@@ -1050,10 +1193,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1050
1193
|
}, {
|
|
1051
1194
|
harnessId: string;
|
|
1052
1195
|
attemptId: string;
|
|
1196
|
+
costUsd?: number | undefined;
|
|
1053
1197
|
label?: string | null | undefined;
|
|
1054
1198
|
winner?: boolean | undefined;
|
|
1055
1199
|
blockers?: number | undefined;
|
|
1056
|
-
costUsd?: number | undefined;
|
|
1057
1200
|
costEstimated?: boolean | undefined;
|
|
1058
1201
|
errored?: boolean | undefined;
|
|
1059
1202
|
gatesPassed?: number | undefined;
|
|
@@ -1107,11 +1250,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1107
1250
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1108
1251
|
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1109
1252
|
}, "strip", z.ZodTypeAny, {
|
|
1110
|
-
runDir: string | null;
|
|
1111
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
1112
|
-
phase: string;
|
|
1113
1253
|
harnessId: string | null;
|
|
1114
1254
|
attemptId: string | null;
|
|
1255
|
+
runDir: string | null;
|
|
1256
|
+
phase: string;
|
|
1257
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1115
1258
|
safeMessage: string;
|
|
1116
1259
|
rawDetailRef: string | null;
|
|
1117
1260
|
logRefs: string[];
|
|
@@ -1119,11 +1262,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1119
1262
|
nextActions: string[];
|
|
1120
1263
|
}, {
|
|
1121
1264
|
safeMessage: string;
|
|
1122
|
-
runDir?: string | null | undefined;
|
|
1123
|
-
category?: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal" | undefined;
|
|
1124
|
-
phase?: string | undefined;
|
|
1125
1265
|
harnessId?: string | null | undefined;
|
|
1126
1266
|
attemptId?: string | null | undefined;
|
|
1267
|
+
runDir?: string | null | undefined;
|
|
1268
|
+
phase?: string | undefined;
|
|
1269
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1127
1270
|
rawDetailRef?: string | null | undefined;
|
|
1128
1271
|
logRefs?: string[] | undefined;
|
|
1129
1272
|
eventRefs?: string[] | undefined;
|
|
@@ -1133,45 +1276,21 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1133
1276
|
orchestrate: {
|
|
1134
1277
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
1135
1278
|
steps: {
|
|
1136
|
-
status: "pending" | "
|
|
1279
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
1137
1280
|
detail: string | null;
|
|
1281
|
+
index: number;
|
|
1282
|
+
evidence_refs: string[];
|
|
1138
1283
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1139
1284
|
run_id: string | null;
|
|
1140
|
-
|
|
1285
|
+
required: boolean;
|
|
1141
1286
|
risk: "safe" | "risky";
|
|
1287
|
+
terminal_status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null;
|
|
1288
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
1142
1289
|
}[];
|
|
1143
1290
|
stopped_reason: string | null;
|
|
1144
1291
|
} | null;
|
|
1145
|
-
decision: {
|
|
1146
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "not_converged" | "stuck_no_progress" | "failed" | "exhausted";
|
|
1147
|
-
winner: string | null;
|
|
1148
|
-
outcome: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked";
|
|
1149
|
-
why_winner: string;
|
|
1150
|
-
why_not_others: Record<string, string>;
|
|
1151
|
-
accepted_risks: string[];
|
|
1152
|
-
final_checks: string[];
|
|
1153
|
-
evidence_facts: string[];
|
|
1154
|
-
budget_summary: {
|
|
1155
|
-
estimated: boolean;
|
|
1156
|
-
spend_usd: number | null;
|
|
1157
|
-
};
|
|
1158
|
-
apply_recommendation: "apply" | "inspect" | "continue" | "split_task" | "human_review";
|
|
1159
|
-
verification_basis: "none" | "cross_family_review" | "both";
|
|
1160
|
-
final_verify: {
|
|
1161
|
-
duration_ms: number | null;
|
|
1162
|
-
base_sha: string | null;
|
|
1163
|
-
reason: string | null;
|
|
1164
|
-
attempted: boolean;
|
|
1165
|
-
applied_cleanly: boolean | null;
|
|
1166
|
-
gates_passed: boolean | null;
|
|
1167
|
-
gates: {
|
|
1168
|
-
status: string;
|
|
1169
|
-
id: string;
|
|
1170
|
-
}[];
|
|
1171
|
-
} | null;
|
|
1172
|
-
} | null;
|
|
1173
1292
|
summary: {
|
|
1174
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1293
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
1175
1294
|
runId: string;
|
|
1176
1295
|
project: {
|
|
1177
1296
|
kind: "none" | "project";
|
|
@@ -1181,11 +1300,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1181
1300
|
};
|
|
1182
1301
|
jobId: string;
|
|
1183
1302
|
failure: {
|
|
1184
|
-
runDir: string | null;
|
|
1185
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
1186
|
-
phase: string;
|
|
1187
1303
|
harnessId: string | null;
|
|
1188
1304
|
attemptId: string | null;
|
|
1305
|
+
runDir: string | null;
|
|
1306
|
+
phase: string;
|
|
1307
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1189
1308
|
safeMessage: string;
|
|
1190
1309
|
rawDetailRef: string | null;
|
|
1191
1310
|
logRefs: string[];
|
|
@@ -1193,22 +1312,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1193
1312
|
nextActions: string[];
|
|
1194
1313
|
} | null;
|
|
1195
1314
|
webEvidence: {
|
|
1196
|
-
status: "
|
|
1315
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
1316
|
+
available: boolean;
|
|
1317
|
+
mode: "off" | "auto" | "cached" | "live";
|
|
1197
1318
|
target: string | null;
|
|
1198
1319
|
tool: string | null;
|
|
1199
|
-
mode: "off" | "auto" | "cached" | "live";
|
|
1200
1320
|
required: boolean;
|
|
1201
1321
|
attempted: boolean;
|
|
1202
1322
|
rawDetailRef: string | null;
|
|
1203
1323
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
1204
1324
|
satisfied: boolean;
|
|
1205
1325
|
errorSummary: string | null;
|
|
1206
|
-
available: boolean;
|
|
1207
1326
|
};
|
|
1327
|
+
requestRequirements: {
|
|
1328
|
+
requested: boolean;
|
|
1329
|
+
effective: boolean;
|
|
1330
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
1331
|
+
evidence_refs: string[];
|
|
1332
|
+
harness_id: string;
|
|
1333
|
+
eligible: boolean;
|
|
1334
|
+
capability: "browser";
|
|
1335
|
+
}[];
|
|
1208
1336
|
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
1209
1337
|
toolWarningsTotal: number;
|
|
1210
1338
|
result: {
|
|
1211
|
-
kind: "plan" | "none" | "patch" | "
|
|
1339
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
1212
1340
|
diffStat: {
|
|
1213
1341
|
files: number;
|
|
1214
1342
|
additions: number;
|
|
@@ -1219,27 +1347,41 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1219
1347
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
1220
1348
|
preTurnSha: string | null;
|
|
1221
1349
|
postTurnSha: string | null;
|
|
1350
|
+
revertAnchorId: string | null;
|
|
1222
1351
|
revertable: boolean;
|
|
1223
1352
|
};
|
|
1224
1353
|
waitingOnUser: boolean;
|
|
1225
1354
|
route: {
|
|
1226
|
-
verified: boolean;
|
|
1227
1355
|
harnessId: string | null;
|
|
1228
1356
|
requestedModel: string | null;
|
|
1229
1357
|
observedModel: string | null;
|
|
1358
|
+
verified: boolean;
|
|
1230
1359
|
} | null;
|
|
1360
|
+
startedAt?: string | undefined;
|
|
1361
|
+
createdAt?: string | undefined;
|
|
1362
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1231
1363
|
prompt?: string | undefined;
|
|
1232
1364
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1233
1365
|
error?: string | undefined;
|
|
1234
|
-
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1235
1366
|
harnesses?: string[] | undefined;
|
|
1236
1367
|
runDir?: string | undefined;
|
|
1237
|
-
tests?: string[] | undefined;
|
|
1238
|
-
portfolio?: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex" | undefined;
|
|
1239
|
-
n?: number | undefined;
|
|
1240
1368
|
model?: string | undefined;
|
|
1369
|
+
tests?: {
|
|
1370
|
+
program: string;
|
|
1371
|
+
args: string[];
|
|
1372
|
+
envAllowlist: string[];
|
|
1373
|
+
cwd?: string | undefined;
|
|
1374
|
+
}[] | undefined;
|
|
1375
|
+
n?: number | undefined;
|
|
1376
|
+
taskId?: string | undefined;
|
|
1241
1377
|
primaryHarness?: string | undefined;
|
|
1242
|
-
|
|
1378
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1379
|
+
paidBudget?: {
|
|
1380
|
+
kind: "unlimited";
|
|
1381
|
+
} | {
|
|
1382
|
+
kind: "finite";
|
|
1383
|
+
maxUsd: number;
|
|
1384
|
+
} | undefined;
|
|
1243
1385
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1244
1386
|
protectedPathApprovals?: {
|
|
1245
1387
|
path: string;
|
|
@@ -1249,13 +1391,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1249
1391
|
specHash?: string | undefined;
|
|
1250
1392
|
reviewerPanel?: {
|
|
1251
1393
|
harness: string;
|
|
1252
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1253
1394
|
model?: string | undefined;
|
|
1395
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1254
1396
|
}[] | undefined;
|
|
1255
|
-
createdAt?: string | undefined;
|
|
1256
|
-
startedAt?: string | undefined;
|
|
1257
|
-
finishedAt?: string | undefined;
|
|
1258
|
-
taskId?: string | undefined;
|
|
1259
1397
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
1260
1398
|
spendUsd?: number | null | undefined;
|
|
1261
1399
|
spendEstimated?: boolean | undefined;
|
|
@@ -1264,7 +1402,36 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1264
1402
|
webRequired?: boolean | undefined;
|
|
1265
1403
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1266
1404
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1405
|
+
finishedAt?: string | undefined;
|
|
1267
1406
|
};
|
|
1407
|
+
decision: {
|
|
1408
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
1409
|
+
winner: string | null;
|
|
1410
|
+
outcome: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked";
|
|
1411
|
+
why_winner: string;
|
|
1412
|
+
why_not_others: Record<string, string>;
|
|
1413
|
+
accepted_risks: string[];
|
|
1414
|
+
final_checks: string[];
|
|
1415
|
+
evidence_facts: string[];
|
|
1416
|
+
budget_summary: {
|
|
1417
|
+
estimated: boolean;
|
|
1418
|
+
spend_usd: number | null;
|
|
1419
|
+
};
|
|
1420
|
+
apply_recommendation: "apply" | "inspect" | "continue" | "split_task" | "human_review";
|
|
1421
|
+
verification_basis: "none" | "cross_family_review" | "both";
|
|
1422
|
+
final_verify: {
|
|
1423
|
+
reason: string | null;
|
|
1424
|
+
duration_ms: number | null;
|
|
1425
|
+
base_sha: string | null;
|
|
1426
|
+
attempted: boolean;
|
|
1427
|
+
applied_cleanly: boolean | null;
|
|
1428
|
+
gates_passed: boolean | null;
|
|
1429
|
+
gates: {
|
|
1430
|
+
status: string;
|
|
1431
|
+
id: string;
|
|
1432
|
+
}[];
|
|
1433
|
+
} | null;
|
|
1434
|
+
} | null;
|
|
1268
1435
|
applyEligibility: {
|
|
1269
1436
|
state: string | null;
|
|
1270
1437
|
reason: string | null;
|
|
@@ -1274,44 +1441,49 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1274
1441
|
budget: {
|
|
1275
1442
|
source: "unknown" | "decision" | "events" | "settings";
|
|
1276
1443
|
estimated: boolean;
|
|
1277
|
-
|
|
1444
|
+
paidBudget: {
|
|
1445
|
+
kind: "unlimited";
|
|
1446
|
+
} | {
|
|
1447
|
+
kind: "finite";
|
|
1448
|
+
maxUsd: number;
|
|
1449
|
+
};
|
|
1278
1450
|
spendUsd: number | null;
|
|
1279
1451
|
remainingUsd: number | null;
|
|
1280
1452
|
};
|
|
1281
1453
|
failure: {
|
|
1282
|
-
runDir: string | null;
|
|
1283
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
1284
|
-
phase: string;
|
|
1285
1454
|
harnessId: string | null;
|
|
1286
1455
|
attemptId: string | null;
|
|
1456
|
+
runDir: string | null;
|
|
1457
|
+
phase: string;
|
|
1458
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1287
1459
|
safeMessage: string;
|
|
1288
1460
|
rawDetailRef: string | null;
|
|
1289
1461
|
logRefs: string[];
|
|
1290
1462
|
eventRefs: string[];
|
|
1291
1463
|
nextActions: string[];
|
|
1292
1464
|
} | null;
|
|
1293
|
-
lastSeq: number;
|
|
1294
1465
|
artifacts: {
|
|
1295
1466
|
path: string;
|
|
1296
1467
|
kind: "file" | "directory";
|
|
1297
1468
|
mime?: string | undefined;
|
|
1298
1469
|
bytes?: number | undefined;
|
|
1299
1470
|
}[];
|
|
1471
|
+
lastSeq: number;
|
|
1300
1472
|
primaryOutput: {
|
|
1301
1473
|
path: string;
|
|
1302
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "
|
|
1474
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
|
|
1303
1475
|
text: string | null;
|
|
1304
1476
|
bytes?: number | undefined;
|
|
1305
1477
|
} | null;
|
|
1306
1478
|
timeline: {
|
|
1307
1479
|
type: string;
|
|
1308
1480
|
detail: string | null;
|
|
1309
|
-
target: string | null;
|
|
1310
|
-
title: string;
|
|
1311
|
-
severity: "error" | "info" | "warning";
|
|
1312
1481
|
harnessId: string | null;
|
|
1313
1482
|
attemptId: string | null;
|
|
1483
|
+
target: string | null;
|
|
1484
|
+
title: string;
|
|
1314
1485
|
errorSummary: string | null;
|
|
1486
|
+
severity: "error" | "info" | "warning";
|
|
1315
1487
|
toolName: string | null;
|
|
1316
1488
|
rawRef: string | null;
|
|
1317
1489
|
ts?: string | undefined;
|
|
@@ -1322,29 +1494,29 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1322
1494
|
decidedAt: string | null;
|
|
1323
1495
|
} | null;
|
|
1324
1496
|
workProduct: {
|
|
1325
|
-
|
|
1326
|
-
kind: "patch" | "new_repo" | "report";
|
|
1497
|
+
kind: "patch" | "report" | "new_repo";
|
|
1327
1498
|
files: Record<string, string>;
|
|
1499
|
+
id: string;
|
|
1328
1500
|
source_task_id: string;
|
|
1329
1501
|
meta: Record<string, unknown>;
|
|
1330
1502
|
producer_attempt_id?: string | undefined;
|
|
1331
1503
|
evidence_dir?: string | undefined;
|
|
1332
1504
|
} | null;
|
|
1333
1505
|
reviewFindings: {
|
|
1334
|
-
status: "stale" | "
|
|
1506
|
+
status: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence";
|
|
1335
1507
|
id: string;
|
|
1336
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1337
1508
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1509
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1338
1510
|
claim: string;
|
|
1339
1511
|
linked_acceptance_criteria: string[];
|
|
1340
1512
|
evidence: {
|
|
1341
|
-
commands: {
|
|
1342
|
-
command: string;
|
|
1343
|
-
}[];
|
|
1344
1513
|
files: {
|
|
1345
1514
|
path: string;
|
|
1346
1515
|
lines: string | null;
|
|
1347
1516
|
}[];
|
|
1517
|
+
commands: {
|
|
1518
|
+
command: string;
|
|
1519
|
+
}[];
|
|
1348
1520
|
diff_hunks: string[];
|
|
1349
1521
|
logs: {
|
|
1350
1522
|
path: string;
|
|
@@ -1356,11 +1528,13 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1356
1528
|
observed_model: string | null;
|
|
1357
1529
|
requested_model: string | null;
|
|
1358
1530
|
requested_effort: string | null;
|
|
1359
|
-
route_proof_status: "
|
|
1531
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
1360
1532
|
};
|
|
1361
1533
|
revalidation_note?: string | undefined;
|
|
1362
1534
|
}[];
|
|
1363
1535
|
pendingInteractions: {
|
|
1536
|
+
harnessId: string | null;
|
|
1537
|
+
attemptId: string | null;
|
|
1364
1538
|
questions: {
|
|
1365
1539
|
options: {
|
|
1366
1540
|
label: string;
|
|
@@ -1372,20 +1546,18 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1372
1546
|
multi_select: boolean;
|
|
1373
1547
|
}[];
|
|
1374
1548
|
runId: string;
|
|
1375
|
-
harnessId: string | null;
|
|
1376
|
-
attemptId: string | null;
|
|
1377
1549
|
interactionId: string;
|
|
1378
1550
|
sourceTool: string | null;
|
|
1379
1551
|
requestedAt: string;
|
|
1380
1552
|
timeoutAt: string | null;
|
|
1381
1553
|
}[];
|
|
1382
1554
|
candidates: {
|
|
1383
|
-
label: string | null;
|
|
1384
|
-
winner: boolean;
|
|
1385
1555
|
harnessId: string;
|
|
1386
1556
|
attemptId: string;
|
|
1387
|
-
blockers: number;
|
|
1388
1557
|
costUsd: number;
|
|
1558
|
+
label: string | null;
|
|
1559
|
+
winner: boolean;
|
|
1560
|
+
blockers: number;
|
|
1389
1561
|
costEstimated: boolean;
|
|
1390
1562
|
errored: boolean;
|
|
1391
1563
|
gatesPassed: number;
|
|
@@ -1407,17 +1579,24 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1407
1579
|
} | null;
|
|
1408
1580
|
}, {
|
|
1409
1581
|
summary: {
|
|
1410
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1582
|
+
state: "failed" | "cancelled" | "running" | "interrupted_unknown" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | "queued" | "succeeded";
|
|
1411
1583
|
runId: string;
|
|
1412
1584
|
jobId: string;
|
|
1585
|
+
startedAt?: string | undefined;
|
|
1586
|
+
createdAt?: string | undefined;
|
|
1587
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1413
1588
|
prompt?: string | undefined;
|
|
1414
1589
|
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1415
1590
|
error?: string | undefined;
|
|
1416
|
-
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1417
1591
|
harnesses?: string[] | undefined;
|
|
1418
1592
|
runDir?: string | undefined;
|
|
1419
|
-
|
|
1420
|
-
|
|
1593
|
+
model?: string | undefined;
|
|
1594
|
+
tests?: {
|
|
1595
|
+
program: string;
|
|
1596
|
+
cwd?: string | undefined;
|
|
1597
|
+
args?: string[] | undefined;
|
|
1598
|
+
envAllowlist?: string[] | undefined;
|
|
1599
|
+
}[] | undefined;
|
|
1421
1600
|
project?: {
|
|
1422
1601
|
kind?: "none" | "project" | undefined;
|
|
1423
1602
|
root?: string | null | undefined;
|
|
@@ -1425,9 +1604,15 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1425
1604
|
projectName?: string | null | undefined;
|
|
1426
1605
|
} | undefined;
|
|
1427
1606
|
n?: number | undefined;
|
|
1428
|
-
|
|
1607
|
+
taskId?: string | undefined;
|
|
1429
1608
|
primaryHarness?: string | undefined;
|
|
1430
|
-
|
|
1609
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1610
|
+
paidBudget?: {
|
|
1611
|
+
kind: "unlimited";
|
|
1612
|
+
} | {
|
|
1613
|
+
kind: "finite";
|
|
1614
|
+
maxUsd: number;
|
|
1615
|
+
} | undefined;
|
|
1431
1616
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1432
1617
|
protectedPathApprovals?: {
|
|
1433
1618
|
path: string;
|
|
@@ -1437,20 +1622,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1437
1622
|
specHash?: string | undefined;
|
|
1438
1623
|
reviewerPanel?: {
|
|
1439
1624
|
harness: string;
|
|
1440
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1441
1625
|
model?: string | undefined;
|
|
1626
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1442
1627
|
}[] | undefined;
|
|
1443
|
-
createdAt?: string | undefined;
|
|
1444
|
-
startedAt?: string | undefined;
|
|
1445
|
-
finishedAt?: string | undefined;
|
|
1446
|
-
taskId?: string | undefined;
|
|
1447
1628
|
failure?: {
|
|
1448
1629
|
safeMessage: string;
|
|
1449
|
-
runDir?: string | null | undefined;
|
|
1450
|
-
category?: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal" | undefined;
|
|
1451
|
-
phase?: string | undefined;
|
|
1452
1630
|
harnessId?: string | null | undefined;
|
|
1453
1631
|
attemptId?: string | null | undefined;
|
|
1632
|
+
runDir?: string | null | undefined;
|
|
1633
|
+
phase?: string | undefined;
|
|
1634
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1454
1635
|
rawDetailRef?: string | null | undefined;
|
|
1455
1636
|
logRefs?: string[] | undefined;
|
|
1456
1637
|
eventRefs?: string[] | undefined;
|
|
@@ -1464,23 +1645,32 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1464
1645
|
webRequired?: boolean | undefined;
|
|
1465
1646
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1466
1647
|
webEvidence?: {
|
|
1467
|
-
status?: "
|
|
1648
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
1649
|
+
available?: boolean | undefined;
|
|
1650
|
+
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1468
1651
|
target?: string | null | undefined;
|
|
1469
1652
|
tool?: string | null | undefined;
|
|
1470
|
-
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1471
1653
|
required?: boolean | undefined;
|
|
1472
1654
|
attempted?: boolean | undefined;
|
|
1473
1655
|
rawDetailRef?: string | null | undefined;
|
|
1474
1656
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1475
1657
|
satisfied?: boolean | undefined;
|
|
1476
1658
|
errorSummary?: string | null | undefined;
|
|
1477
|
-
available?: boolean | undefined;
|
|
1478
1659
|
} | undefined;
|
|
1660
|
+
requestRequirements?: {
|
|
1661
|
+
requested: boolean;
|
|
1662
|
+
effective: boolean;
|
|
1663
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
1664
|
+
harness_id: string;
|
|
1665
|
+
eligible: boolean;
|
|
1666
|
+
capability: "browser";
|
|
1667
|
+
evidence_refs?: string[] | undefined;
|
|
1668
|
+
}[] | undefined;
|
|
1479
1669
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1480
1670
|
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
1481
1671
|
toolWarningsTotal?: number | undefined;
|
|
1482
1672
|
result?: {
|
|
1483
|
-
kind?: "plan" | "none" | "patch" | "
|
|
1673
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
1484
1674
|
diffStat?: {
|
|
1485
1675
|
files: number;
|
|
1486
1676
|
additions: number;
|
|
@@ -1491,30 +1681,36 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1491
1681
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
1492
1682
|
preTurnSha?: string | null | undefined;
|
|
1493
1683
|
postTurnSha?: string | null | undefined;
|
|
1684
|
+
revertAnchorId?: string | null | undefined;
|
|
1494
1685
|
revertable?: boolean | undefined;
|
|
1495
1686
|
} | undefined;
|
|
1496
1687
|
waitingOnUser?: boolean | undefined;
|
|
1497
1688
|
route?: {
|
|
1498
|
-
verified?: boolean | undefined;
|
|
1499
1689
|
harnessId?: string | null | undefined;
|
|
1500
1690
|
requestedModel?: string | null | undefined;
|
|
1501
1691
|
observedModel?: string | null | undefined;
|
|
1692
|
+
verified?: boolean | undefined;
|
|
1502
1693
|
} | null | undefined;
|
|
1694
|
+
finishedAt?: string | undefined;
|
|
1503
1695
|
};
|
|
1504
1696
|
orchestrate?: {
|
|
1505
1697
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
1506
1698
|
steps?: {
|
|
1507
|
-
status: "pending" | "
|
|
1508
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1699
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
1509
1700
|
index: number;
|
|
1701
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1510
1702
|
risk: "safe" | "risky";
|
|
1511
1703
|
detail?: string | null | undefined;
|
|
1704
|
+
evidence_refs?: string[] | undefined;
|
|
1512
1705
|
run_id?: string | null | undefined;
|
|
1706
|
+
required?: boolean | undefined;
|
|
1707
|
+
terminal_status?: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress" | null | undefined;
|
|
1708
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
1513
1709
|
}[] | undefined;
|
|
1514
1710
|
stopped_reason?: string | null | undefined;
|
|
1515
1711
|
} | null | undefined;
|
|
1516
1712
|
decision?: {
|
|
1517
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1713
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
1518
1714
|
winner: string | null;
|
|
1519
1715
|
outcome?: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked" | undefined;
|
|
1520
1716
|
why_winner?: string | undefined;
|
|
@@ -1530,9 +1726,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1530
1726
|
verification_basis?: "none" | "cross_family_review" | "both" | undefined;
|
|
1531
1727
|
final_verify?: {
|
|
1532
1728
|
attempted: boolean;
|
|
1729
|
+
reason?: string | null | undefined;
|
|
1533
1730
|
duration_ms?: number | null | undefined;
|
|
1534
1731
|
base_sha?: string | null | undefined;
|
|
1535
|
-
reason?: string | null | undefined;
|
|
1536
1732
|
applied_cleanly?: boolean | null | undefined;
|
|
1537
1733
|
gates_passed?: boolean | null | undefined;
|
|
1538
1734
|
gates?: {
|
|
@@ -1550,45 +1746,50 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1550
1746
|
budget?: {
|
|
1551
1747
|
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
1552
1748
|
estimated?: boolean | undefined;
|
|
1553
|
-
|
|
1749
|
+
paidBudget?: {
|
|
1750
|
+
kind: "unlimited";
|
|
1751
|
+
} | {
|
|
1752
|
+
kind: "finite";
|
|
1753
|
+
maxUsd: number;
|
|
1754
|
+
} | undefined;
|
|
1554
1755
|
spendUsd?: number | null | undefined;
|
|
1555
1756
|
remainingUsd?: number | null | undefined;
|
|
1556
1757
|
} | undefined;
|
|
1557
1758
|
failure?: {
|
|
1558
1759
|
safeMessage: string;
|
|
1559
|
-
runDir?: string | null | undefined;
|
|
1560
|
-
category?: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal" | undefined;
|
|
1561
|
-
phase?: string | undefined;
|
|
1562
1760
|
harnessId?: string | null | undefined;
|
|
1563
1761
|
attemptId?: string | null | undefined;
|
|
1762
|
+
runDir?: string | null | undefined;
|
|
1763
|
+
phase?: string | undefined;
|
|
1764
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1564
1765
|
rawDetailRef?: string | null | undefined;
|
|
1565
1766
|
logRefs?: string[] | undefined;
|
|
1566
1767
|
eventRefs?: string[] | undefined;
|
|
1567
1768
|
nextActions?: string[] | undefined;
|
|
1568
1769
|
} | null | undefined;
|
|
1569
|
-
lastSeq?: number | undefined;
|
|
1570
1770
|
artifacts?: {
|
|
1571
1771
|
path: string;
|
|
1572
1772
|
kind: "file" | "directory";
|
|
1573
1773
|
mime?: string | undefined;
|
|
1574
1774
|
bytes?: number | undefined;
|
|
1575
1775
|
}[] | undefined;
|
|
1776
|
+
lastSeq?: number | undefined;
|
|
1576
1777
|
primaryOutput?: {
|
|
1577
1778
|
path: string;
|
|
1578
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "
|
|
1579
|
-
text?: string | null | undefined;
|
|
1779
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report";
|
|
1580
1780
|
bytes?: number | undefined;
|
|
1781
|
+
text?: string | null | undefined;
|
|
1581
1782
|
} | null | undefined;
|
|
1582
1783
|
timeline?: {
|
|
1583
1784
|
type: string;
|
|
1584
1785
|
title: string;
|
|
1585
1786
|
detail?: string | null | undefined;
|
|
1586
|
-
target?: string | null | undefined;
|
|
1587
|
-
ts?: string | undefined;
|
|
1588
|
-
severity?: "error" | "info" | "warning" | undefined;
|
|
1589
1787
|
harnessId?: string | null | undefined;
|
|
1590
1788
|
attemptId?: string | null | undefined;
|
|
1789
|
+
target?: string | null | undefined;
|
|
1790
|
+
ts?: string | undefined;
|
|
1591
1791
|
errorSummary?: string | null | undefined;
|
|
1792
|
+
severity?: "error" | "info" | "warning" | undefined;
|
|
1592
1793
|
toolName?: string | null | undefined;
|
|
1593
1794
|
rawRef?: string | null | undefined;
|
|
1594
1795
|
}[] | undefined;
|
|
@@ -1598,8 +1799,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1598
1799
|
decidedAt?: string | null | undefined;
|
|
1599
1800
|
} | null | undefined;
|
|
1600
1801
|
workProduct?: {
|
|
1802
|
+
kind: "patch" | "report" | "new_repo";
|
|
1601
1803
|
id: string;
|
|
1602
|
-
kind: "patch" | "new_repo" | "report";
|
|
1603
1804
|
source_task_id: string;
|
|
1604
1805
|
files?: Record<string, string> | undefined;
|
|
1605
1806
|
producer_attempt_id?: string | undefined;
|
|
@@ -1608,26 +1809,26 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1608
1809
|
} | null | undefined;
|
|
1609
1810
|
reviewFindings?: {
|
|
1610
1811
|
id: string;
|
|
1611
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1612
1812
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1813
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1613
1814
|
claim: string;
|
|
1614
1815
|
reviewer: {
|
|
1615
1816
|
harness_id: string;
|
|
1616
1817
|
observed_model?: string | null | undefined;
|
|
1617
1818
|
requested_model?: string | null | undefined;
|
|
1618
1819
|
requested_effort?: string | null | undefined;
|
|
1619
|
-
route_proof_status?: "
|
|
1820
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
1620
1821
|
};
|
|
1621
|
-
status?: "stale" | "
|
|
1822
|
+
status?: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence" | undefined;
|
|
1622
1823
|
linked_acceptance_criteria?: string[] | undefined;
|
|
1623
1824
|
evidence?: {
|
|
1624
|
-
commands?: {
|
|
1625
|
-
command: string;
|
|
1626
|
-
}[] | undefined;
|
|
1627
1825
|
files?: {
|
|
1628
1826
|
path: string;
|
|
1629
1827
|
lines?: string | null | undefined;
|
|
1630
1828
|
}[] | undefined;
|
|
1829
|
+
commands?: {
|
|
1830
|
+
command: string;
|
|
1831
|
+
}[] | undefined;
|
|
1631
1832
|
diff_hunks?: string[] | undefined;
|
|
1632
1833
|
logs?: {
|
|
1633
1834
|
path: string;
|
|
@@ -1640,6 +1841,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1640
1841
|
runId: string;
|
|
1641
1842
|
interactionId: string;
|
|
1642
1843
|
requestedAt: string;
|
|
1844
|
+
harnessId?: string | null | undefined;
|
|
1845
|
+
attemptId?: string | null | undefined;
|
|
1643
1846
|
questions?: {
|
|
1644
1847
|
id: string;
|
|
1645
1848
|
question: string;
|
|
@@ -1650,18 +1853,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1650
1853
|
header?: string | null | undefined;
|
|
1651
1854
|
multi_select?: boolean | undefined;
|
|
1652
1855
|
}[] | undefined;
|
|
1653
|
-
harnessId?: string | null | undefined;
|
|
1654
|
-
attemptId?: string | null | undefined;
|
|
1655
1856
|
sourceTool?: string | null | undefined;
|
|
1656
1857
|
timeoutAt?: string | null | undefined;
|
|
1657
1858
|
}[] | undefined;
|
|
1658
1859
|
candidates?: {
|
|
1659
1860
|
harnessId: string;
|
|
1660
1861
|
attemptId: string;
|
|
1862
|
+
costUsd?: number | undefined;
|
|
1661
1863
|
label?: string | null | undefined;
|
|
1662
1864
|
winner?: boolean | undefined;
|
|
1663
1865
|
blockers?: number | undefined;
|
|
1664
|
-
costUsd?: number | undefined;
|
|
1665
1866
|
costEstimated?: boolean | undefined;
|
|
1666
1867
|
errored?: boolean | undefined;
|
|
1667
1868
|
gatesPassed?: number | undefined;
|