@claudexor/schema 1.0.1 → 2.1.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/agent-capabilities.d.ts +102 -30
- 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 +117 -52
- 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 +1444 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +371 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +147 -18
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +80 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +829 -135
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +195 -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-gc.d.ts +185 -0
- package/dist/control-gc.d.ts.map +1 -0
- package/dist/control-gc.js +81 -0
- package/dist/control-gc.js.map +1 -0
- package/dist/control-operation-responses.d.ts +1298 -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 +556 -247
- 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 +1688 -1334
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +592 -333
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +454 -0
- package/dist/credential-profile.d.ts.map +1 -0
- package/dist/credential-profile.js +140 -0
- package/dist/credential-profile.js.map +1 -0
- 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 +41 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +47 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +5 -5
- 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 +775 -237
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +314 -111
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -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 +150 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +117 -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 +269 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +58 -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/readiness.d.ts +596 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +87 -0
- package/dist/readiness.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 +29 -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 +13 -13
- 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 +9811 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +475 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +178 -61
- 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 +1657 -60
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +144 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +487 -72
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +194 -16
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +89 -51
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +56 -11
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +45 -0
- package/dist/tool-ref.d.ts.map +1 -0
- package/dist/tool-ref.js +45 -0
- package/dist/tool-ref.js.map +1 -0
- 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 +3 -3
- 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 +44 -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/ControlCredentialProfileCreateRequest.schema.json +32 -0
- package/generated/ControlCredentialProfileCreateResponse.schema.json +142 -0
- package/generated/ControlCredentialProfileDeleteResponse.schema.json +107 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +155 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlGcReceipt.schema.json +170 -0
- package/generated/ControlGcRequest.schema.json +18 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +198 -14
- package/generated/ControlHarnessModelsResponse.schema.json +19 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +9 -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 +177 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +539 -0
- package/generated/ControlRunDetail.schema.json +373 -34
- package/generated/ControlRunListResponse.schema.json +968 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +123 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +312 -21
- 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 +128 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +119 -40
- package/generated/ControlSetupJob.schema.json +770 -64
- package/generated/ControlSetupJobCreateRequest.schema.json +16 -13
- package/generated/ControlSetupJobEvent.schema.json +869 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +770 -64
- package/generated/ControlSetupJobSnapshot.schema.json +878 -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 +36 -6
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadCreateRequest.schema.json +6 -2
- package/generated/ControlThreadDetail.schema.json +64 -12
- package/generated/ControlThreadListResponse.schema.json +36 -6
- package/generated/ControlThreadTurnRequest.schema.json +413 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +12 -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/CredentialProfile.schema.json +78 -0
- package/generated/CredentialProfileStatus.schema.json +61 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +238 -55
- package/generated/HarnessEvent.schema.json +259 -11
- package/generated/HarnessManifest.schema.json +96 -14
- package/generated/HarnessModel.schema.json +19 -0
- package/generated/HarnessStatusDto.schema.json +198 -14
- 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/RunEvent.schema.json +3 -0
- package/generated/RunTelemetry.schema.json +280 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/Session.schema.json +14 -0
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +224 -30
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +74 -6
- package/generated/ThreadHeadPing.schema.json +40 -0
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +3 -2
- 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,9 +157,68 @@ 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>;
|
|
178
|
+
inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
179
|
+
outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
180
|
+
cachedInputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
181
|
+
outputConformance: z.ZodOptional<z.ZodNullable<z.ZodEnum<["passed", "failed"]>>>;
|
|
182
|
+
authRoute: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
183
|
+
requested: z.ZodEnum<["subscription", "api_key", "auto"]>;
|
|
184
|
+
effective: z.ZodDefault<z.ZodNullable<z.ZodEnum<["local_session", "api_key", "unknown"]>>>;
|
|
185
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["native_session", "oauth_token_env", "api_key_env", "api_key_flag", "provider_auth_file", "none"]>>>;
|
|
186
|
+
reason: z.ZodEnum<["as_requested", "native_first", "no_native_session_fallback", "requested_route_unavailable", "undisclosed"]>;
|
|
187
|
+
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
modelMismatch: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
190
|
+
requested: z.ZodString;
|
|
191
|
+
observed: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
requested: string;
|
|
194
|
+
observed: string;
|
|
195
|
+
}, {
|
|
196
|
+
requested: string;
|
|
197
|
+
observed: string;
|
|
198
|
+
}>>>;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
|
|
201
|
+
harnessId: string | null;
|
|
202
|
+
requested: "auto" | "subscription" | "api_key";
|
|
203
|
+
attemptId: string | null;
|
|
204
|
+
effective: "unknown" | "api_key" | "local_session" | null;
|
|
205
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
206
|
+
modelMismatch: {
|
|
207
|
+
requested: string;
|
|
208
|
+
observed: string;
|
|
209
|
+
} | null;
|
|
210
|
+
}, {
|
|
211
|
+
requested: "auto" | "subscription" | "api_key";
|
|
212
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
213
|
+
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
214
|
+
harnessId?: string | null | undefined;
|
|
215
|
+
attemptId?: string | null | undefined;
|
|
216
|
+
effective?: "unknown" | "api_key" | "local_session" | null | undefined;
|
|
217
|
+
modelMismatch?: {
|
|
218
|
+
requested: string;
|
|
219
|
+
observed: string;
|
|
220
|
+
} | null | undefined;
|
|
221
|
+
}>>>;
|
|
163
222
|
access: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
164
223
|
requestedAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
165
224
|
effectiveAccess: z.ZodOptional<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
@@ -179,30 +238,55 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
179
238
|
rawDetailRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
180
239
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
181
240
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
status: "
|
|
241
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
242
|
+
available: boolean;
|
|
183
243
|
target: string | null;
|
|
184
|
-
tool: string | null;
|
|
185
244
|
mode: "off" | "auto" | "cached" | "live";
|
|
245
|
+
tool: string | null;
|
|
186
246
|
required: boolean;
|
|
187
247
|
attempted: boolean;
|
|
188
248
|
rawDetailRef: string | null;
|
|
189
249
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
190
250
|
satisfied: boolean;
|
|
191
251
|
errorSummary: string | null;
|
|
192
|
-
available: boolean;
|
|
193
252
|
}, {
|
|
194
|
-
status?: "
|
|
253
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
254
|
+
available?: boolean | undefined;
|
|
195
255
|
target?: string | null | undefined;
|
|
196
|
-
tool?: string | null | undefined;
|
|
197
256
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
257
|
+
tool?: string | null | undefined;
|
|
198
258
|
required?: boolean | undefined;
|
|
199
259
|
attempted?: boolean | undefined;
|
|
200
260
|
rawDetailRef?: string | null | undefined;
|
|
201
261
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
202
262
|
satisfied?: boolean | undefined;
|
|
203
263
|
errorSummary?: string | null | undefined;
|
|
204
|
-
available?: boolean | undefined;
|
|
205
264
|
}>>;
|
|
265
|
+
requestRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
capability: z.ZodEnum<["browser", "path_deny"]>;
|
|
267
|
+
harness_id: z.ZodString;
|
|
268
|
+
eligible: z.ZodBoolean;
|
|
269
|
+
requested: z.ZodBoolean;
|
|
270
|
+
effective: z.ZodBoolean;
|
|
271
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
|
|
272
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
requested: boolean;
|
|
275
|
+
effective: boolean;
|
|
276
|
+
harness_id: string;
|
|
277
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
278
|
+
evidence_refs: string[];
|
|
279
|
+
eligible: boolean;
|
|
280
|
+
capability: "browser" | "path_deny";
|
|
281
|
+
}, {
|
|
282
|
+
requested: boolean;
|
|
283
|
+
effective: boolean;
|
|
284
|
+
harness_id: string;
|
|
285
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
286
|
+
eligible: boolean;
|
|
287
|
+
capability: "browser" | "path_deny";
|
|
288
|
+
evidence_refs?: string[] | undefined;
|
|
289
|
+
}>, "many">>;
|
|
206
290
|
toolPermissionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
291
|
outputReadyState: z.ZodDefault<z.ZodEnum<["pending", "finalizing", "ready", "diagnostic"]>>;
|
|
208
292
|
toolWarningsTotal: z.ZodDefault<z.ZodNumber>;
|
|
@@ -226,9 +310,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
226
310
|
applyState: z.ZodDefault<z.ZodEnum<["not_applied", "applied", "applied_review_blocked", "reverted"]>>;
|
|
227
311
|
preTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
228
312
|
postTurnSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
revertAnchorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
229
314
|
revertable: z.ZodDefault<z.ZodBoolean>;
|
|
230
315
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
kind: "plan" | "none" | "patch" | "
|
|
316
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
232
317
|
diffStat: {
|
|
233
318
|
files: number;
|
|
234
319
|
additions: number;
|
|
@@ -239,9 +324,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
239
324
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
240
325
|
preTurnSha: string | null;
|
|
241
326
|
postTurnSha: string | null;
|
|
327
|
+
revertAnchorId: string | null;
|
|
242
328
|
revertable: boolean;
|
|
243
329
|
}, {
|
|
244
|
-
kind?: "plan" | "none" | "patch" | "
|
|
330
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
245
331
|
diffStat?: {
|
|
246
332
|
files: number;
|
|
247
333
|
additions: number;
|
|
@@ -252,6 +338,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
252
338
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
253
339
|
preTurnSha?: string | null | undefined;
|
|
254
340
|
postTurnSha?: string | null | undefined;
|
|
341
|
+
revertAnchorId?: string | null | undefined;
|
|
255
342
|
revertable?: boolean | undefined;
|
|
256
343
|
}>>;
|
|
257
344
|
waitingOnUser: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -261,24 +348,39 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
261
348
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
262
349
|
verified: z.ZodDefault<z.ZodBoolean>;
|
|
263
350
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
verified: boolean;
|
|
265
351
|
harnessId: string | null;
|
|
266
352
|
requestedModel: string | null;
|
|
267
353
|
observedModel: string | null;
|
|
354
|
+
verified: boolean;
|
|
268
355
|
}, {
|
|
269
|
-
verified?: boolean | undefined;
|
|
270
356
|
harnessId?: string | null | undefined;
|
|
271
357
|
requestedModel?: string | null | undefined;
|
|
272
358
|
observedModel?: string | null | undefined;
|
|
359
|
+
verified?: boolean | undefined;
|
|
273
360
|
}>>>;
|
|
274
|
-
tests: z.ZodOptional<z.ZodArray<z.
|
|
361
|
+
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
|
+
program: z.ZodString;
|
|
363
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
364
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
365
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
366
|
+
}, "strict", z.ZodTypeAny, {
|
|
367
|
+
program: string;
|
|
368
|
+
args: string[];
|
|
369
|
+
envAllowlist: string[];
|
|
370
|
+
cwd?: string | undefined;
|
|
371
|
+
}, {
|
|
372
|
+
program: string;
|
|
373
|
+
cwd?: string | undefined;
|
|
374
|
+
args?: string[] | undefined;
|
|
375
|
+
envAllowlist?: string[] | undefined;
|
|
376
|
+
}>, "many">>;
|
|
275
377
|
specId: z.ZodOptional<z.ZodString>;
|
|
276
378
|
specHash: z.ZodOptional<z.ZodString>;
|
|
277
379
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
278
380
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
279
381
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
280
382
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
383
|
+
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
384
|
runId: string;
|
|
283
385
|
project: {
|
|
284
386
|
kind: "none" | "project";
|
|
@@ -288,11 +390,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
288
390
|
};
|
|
289
391
|
jobId: string;
|
|
290
392
|
failure: {
|
|
291
|
-
runDir: string | null;
|
|
292
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
293
|
-
phase: string;
|
|
294
393
|
harnessId: string | null;
|
|
295
394
|
attemptId: string | null;
|
|
395
|
+
runDir: string | null;
|
|
396
|
+
phase: string;
|
|
397
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
296
398
|
safeMessage: string;
|
|
297
399
|
rawDetailRef: string | null;
|
|
298
400
|
logRefs: string[];
|
|
@@ -300,22 +402,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
300
402
|
nextActions: string[];
|
|
301
403
|
} | null;
|
|
302
404
|
webEvidence: {
|
|
303
|
-
status: "
|
|
405
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
406
|
+
available: boolean;
|
|
304
407
|
target: string | null;
|
|
305
|
-
tool: string | null;
|
|
306
408
|
mode: "off" | "auto" | "cached" | "live";
|
|
409
|
+
tool: string | null;
|
|
307
410
|
required: boolean;
|
|
308
411
|
attempted: boolean;
|
|
309
412
|
rawDetailRef: string | null;
|
|
310
413
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
311
414
|
satisfied: boolean;
|
|
312
415
|
errorSummary: string | null;
|
|
313
|
-
available: boolean;
|
|
314
416
|
};
|
|
417
|
+
requestRequirements: {
|
|
418
|
+
requested: boolean;
|
|
419
|
+
effective: boolean;
|
|
420
|
+
harness_id: string;
|
|
421
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
422
|
+
evidence_refs: string[];
|
|
423
|
+
eligible: boolean;
|
|
424
|
+
capability: "browser" | "path_deny";
|
|
425
|
+
}[];
|
|
315
426
|
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
316
427
|
toolWarningsTotal: number;
|
|
317
428
|
result: {
|
|
318
|
-
kind: "plan" | "none" | "patch" | "
|
|
429
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
319
430
|
diffStat: {
|
|
320
431
|
files: number;
|
|
321
432
|
additions: number;
|
|
@@ -326,27 +437,41 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
326
437
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
327
438
|
preTurnSha: string | null;
|
|
328
439
|
postTurnSha: string | null;
|
|
440
|
+
revertAnchorId: string | null;
|
|
329
441
|
revertable: boolean;
|
|
330
442
|
};
|
|
331
443
|
waitingOnUser: boolean;
|
|
332
444
|
route: {
|
|
333
|
-
verified: boolean;
|
|
334
445
|
harnessId: string | null;
|
|
335
446
|
requestedModel: string | null;
|
|
336
447
|
observedModel: string | null;
|
|
448
|
+
verified: boolean;
|
|
337
449
|
} | null;
|
|
338
|
-
|
|
339
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
450
|
+
startedAt?: string | undefined;
|
|
340
451
|
error?: string | undefined;
|
|
452
|
+
createdAt?: string | undefined;
|
|
341
453
|
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
454
|
+
prompt?: string | undefined;
|
|
455
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
342
456
|
harnesses?: string[] | undefined;
|
|
343
457
|
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
458
|
model?: string | undefined;
|
|
459
|
+
tests?: {
|
|
460
|
+
program: string;
|
|
461
|
+
args: string[];
|
|
462
|
+
envAllowlist: string[];
|
|
463
|
+
cwd?: string | undefined;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
n?: number | undefined;
|
|
466
|
+
taskId?: string | undefined;
|
|
348
467
|
primaryHarness?: string | undefined;
|
|
349
|
-
|
|
468
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
469
|
+
paidBudget?: {
|
|
470
|
+
kind: "unlimited";
|
|
471
|
+
} | {
|
|
472
|
+
kind: "finite";
|
|
473
|
+
maxUsd: number;
|
|
474
|
+
} | undefined;
|
|
350
475
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
351
476
|
protectedPathApprovals?: {
|
|
352
477
|
path: string;
|
|
@@ -356,33 +481,53 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
356
481
|
specHash?: string | undefined;
|
|
357
482
|
reviewerPanel?: {
|
|
358
483
|
harness: string;
|
|
359
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
360
484
|
model?: string | undefined;
|
|
485
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
361
486
|
}[] | undefined;
|
|
362
|
-
createdAt?: string | undefined;
|
|
363
|
-
startedAt?: string | undefined;
|
|
364
|
-
finishedAt?: string | undefined;
|
|
365
|
-
taskId?: string | undefined;
|
|
366
487
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
367
488
|
spendUsd?: number | null | undefined;
|
|
368
489
|
spendEstimated?: boolean | undefined;
|
|
490
|
+
inputTokens?: number | null | undefined;
|
|
491
|
+
outputTokens?: number | null | undefined;
|
|
492
|
+
cachedInputTokens?: number | null | undefined;
|
|
493
|
+
outputConformance?: "passed" | "failed" | null | undefined;
|
|
494
|
+
authRoute?: {
|
|
495
|
+
source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
|
|
496
|
+
harnessId: string | null;
|
|
497
|
+
requested: "auto" | "subscription" | "api_key";
|
|
498
|
+
attemptId: string | null;
|
|
499
|
+
effective: "unknown" | "api_key" | "local_session" | null;
|
|
500
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
501
|
+
modelMismatch: {
|
|
502
|
+
requested: string;
|
|
503
|
+
observed: string;
|
|
504
|
+
} | null;
|
|
505
|
+
} | null | undefined;
|
|
369
506
|
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
370
507
|
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
371
508
|
webRequired?: boolean | undefined;
|
|
372
509
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
373
510
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
511
|
+
finishedAt?: string | undefined;
|
|
374
512
|
}, {
|
|
375
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
513
|
+
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
514
|
runId: string;
|
|
377
515
|
jobId: string;
|
|
378
|
-
|
|
379
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
516
|
+
startedAt?: string | undefined;
|
|
380
517
|
error?: string | undefined;
|
|
518
|
+
createdAt?: string | undefined;
|
|
381
519
|
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
520
|
+
prompt?: string | undefined;
|
|
521
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
382
522
|
harnesses?: string[] | undefined;
|
|
383
523
|
runDir?: string | undefined;
|
|
384
|
-
|
|
385
|
-
|
|
524
|
+
model?: string | undefined;
|
|
525
|
+
tests?: {
|
|
526
|
+
program: string;
|
|
527
|
+
cwd?: string | undefined;
|
|
528
|
+
args?: string[] | undefined;
|
|
529
|
+
envAllowlist?: string[] | undefined;
|
|
530
|
+
}[] | undefined;
|
|
386
531
|
project?: {
|
|
387
532
|
kind?: "none" | "project" | undefined;
|
|
388
533
|
root?: string | null | undefined;
|
|
@@ -390,9 +535,15 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
390
535
|
projectName?: string | null | undefined;
|
|
391
536
|
} | undefined;
|
|
392
537
|
n?: number | undefined;
|
|
393
|
-
|
|
538
|
+
taskId?: string | undefined;
|
|
394
539
|
primaryHarness?: string | undefined;
|
|
395
|
-
|
|
540
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
541
|
+
paidBudget?: {
|
|
542
|
+
kind: "unlimited";
|
|
543
|
+
} | {
|
|
544
|
+
kind: "finite";
|
|
545
|
+
maxUsd: number;
|
|
546
|
+
} | undefined;
|
|
396
547
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
397
548
|
protectedPathApprovals?: {
|
|
398
549
|
path: string;
|
|
@@ -402,20 +553,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
402
553
|
specHash?: string | undefined;
|
|
403
554
|
reviewerPanel?: {
|
|
404
555
|
harness: string;
|
|
405
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
406
556
|
model?: string | undefined;
|
|
557
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
407
558
|
}[] | undefined;
|
|
408
|
-
createdAt?: string | undefined;
|
|
409
|
-
startedAt?: string | undefined;
|
|
410
|
-
finishedAt?: string | undefined;
|
|
411
|
-
taskId?: string | undefined;
|
|
412
559
|
failure?: {
|
|
413
560
|
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
561
|
harnessId?: string | null | undefined;
|
|
418
562
|
attemptId?: string | null | undefined;
|
|
563
|
+
runDir?: string | null | undefined;
|
|
564
|
+
phase?: string | undefined;
|
|
565
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
419
566
|
rawDetailRef?: string | null | undefined;
|
|
420
567
|
logRefs?: string[] | undefined;
|
|
421
568
|
eventRefs?: string[] | undefined;
|
|
@@ -424,28 +571,53 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
424
571
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
425
572
|
spendUsd?: number | null | undefined;
|
|
426
573
|
spendEstimated?: boolean | undefined;
|
|
574
|
+
inputTokens?: number | null | undefined;
|
|
575
|
+
outputTokens?: number | null | undefined;
|
|
576
|
+
cachedInputTokens?: number | null | undefined;
|
|
577
|
+
outputConformance?: "passed" | "failed" | null | undefined;
|
|
578
|
+
authRoute?: {
|
|
579
|
+
requested: "auto" | "subscription" | "api_key";
|
|
580
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
581
|
+
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
582
|
+
harnessId?: string | null | undefined;
|
|
583
|
+
attemptId?: string | null | undefined;
|
|
584
|
+
effective?: "unknown" | "api_key" | "local_session" | null | undefined;
|
|
585
|
+
modelMismatch?: {
|
|
586
|
+
requested: string;
|
|
587
|
+
observed: string;
|
|
588
|
+
} | null | undefined;
|
|
589
|
+
} | null | undefined;
|
|
427
590
|
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
428
591
|
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
429
592
|
webRequired?: boolean | undefined;
|
|
430
593
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
431
594
|
webEvidence?: {
|
|
432
|
-
status?: "
|
|
595
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
596
|
+
available?: boolean | undefined;
|
|
433
597
|
target?: string | null | undefined;
|
|
434
|
-
tool?: string | null | undefined;
|
|
435
598
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
599
|
+
tool?: string | null | undefined;
|
|
436
600
|
required?: boolean | undefined;
|
|
437
601
|
attempted?: boolean | undefined;
|
|
438
602
|
rawDetailRef?: string | null | undefined;
|
|
439
603
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
440
604
|
satisfied?: boolean | undefined;
|
|
441
605
|
errorSummary?: string | null | undefined;
|
|
442
|
-
available?: boolean | undefined;
|
|
443
606
|
} | undefined;
|
|
607
|
+
requestRequirements?: {
|
|
608
|
+
requested: boolean;
|
|
609
|
+
effective: boolean;
|
|
610
|
+
harness_id: string;
|
|
611
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
612
|
+
eligible: boolean;
|
|
613
|
+
capability: "browser" | "path_deny";
|
|
614
|
+
evidence_refs?: string[] | undefined;
|
|
615
|
+
}[] | undefined;
|
|
444
616
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
445
617
|
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
446
618
|
toolWarningsTotal?: number | undefined;
|
|
447
619
|
result?: {
|
|
448
|
-
kind?: "plan" | "none" | "patch" | "
|
|
620
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
449
621
|
diffStat?: {
|
|
450
622
|
files: number;
|
|
451
623
|
additions: number;
|
|
@@ -456,15 +628,17 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
456
628
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
457
629
|
preTurnSha?: string | null | undefined;
|
|
458
630
|
postTurnSha?: string | null | undefined;
|
|
631
|
+
revertAnchorId?: string | null | undefined;
|
|
459
632
|
revertable?: boolean | undefined;
|
|
460
633
|
} | undefined;
|
|
461
634
|
waitingOnUser?: boolean | undefined;
|
|
462
635
|
route?: {
|
|
463
|
-
verified?: boolean | undefined;
|
|
464
636
|
harnessId?: string | null | undefined;
|
|
465
637
|
requestedModel?: string | null | undefined;
|
|
466
638
|
observedModel?: string | null | undefined;
|
|
639
|
+
verified?: boolean | undefined;
|
|
467
640
|
} | null | undefined;
|
|
641
|
+
finishedAt?: string | undefined;
|
|
468
642
|
}>;
|
|
469
643
|
/**
|
|
470
644
|
* Highest event seq included in this snapshot. Clients subscribe to the
|
|
@@ -489,20 +663,20 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
489
663
|
bytes?: number | undefined;
|
|
490
664
|
}>, "many">>;
|
|
491
665
|
primaryOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
492
|
-
kind: z.ZodEnum<["answer", "report", "plan", "summary", "patch", "diagnostic"]>;
|
|
666
|
+
kind: z.ZodEnum<["answer", "report", "plan", "summary", "patch", "diagnostic", "structured_output"]>;
|
|
493
667
|
path: z.ZodString;
|
|
494
668
|
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
495
669
|
bytes: z.ZodOptional<z.ZodNumber>;
|
|
496
670
|
}, "strip", z.ZodTypeAny, {
|
|
497
671
|
path: string;
|
|
498
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "report" | "
|
|
672
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
|
|
499
673
|
text: string | null;
|
|
500
674
|
bytes?: number | undefined;
|
|
501
675
|
}, {
|
|
502
676
|
path: string;
|
|
503
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "report" | "
|
|
504
|
-
text?: string | null | undefined;
|
|
677
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
|
|
505
678
|
bytes?: number | undefined;
|
|
679
|
+
text?: string | null | undefined;
|
|
506
680
|
}>>>;
|
|
507
681
|
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
508
682
|
type: z.ZodString;
|
|
@@ -519,12 +693,12 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
519
693
|
}, "strip", z.ZodTypeAny, {
|
|
520
694
|
type: string;
|
|
521
695
|
detail: string | null;
|
|
522
|
-
target: string | null;
|
|
523
|
-
title: string;
|
|
524
|
-
severity: "error" | "info" | "warning";
|
|
525
696
|
harnessId: string | null;
|
|
526
697
|
attemptId: string | null;
|
|
698
|
+
target: string | null;
|
|
699
|
+
title: string;
|
|
527
700
|
errorSummary: string | null;
|
|
701
|
+
severity: "error" | "info" | "warning";
|
|
528
702
|
toolName: string | null;
|
|
529
703
|
rawRef: string | null;
|
|
530
704
|
ts?: string | undefined;
|
|
@@ -532,17 +706,32 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
532
706
|
type: string;
|
|
533
707
|
title: string;
|
|
534
708
|
detail?: string | null | undefined;
|
|
535
|
-
target?: string | null | undefined;
|
|
536
|
-
ts?: string | undefined;
|
|
537
|
-
severity?: "error" | "info" | "warning" | undefined;
|
|
538
709
|
harnessId?: string | null | undefined;
|
|
539
710
|
attemptId?: string | null | undefined;
|
|
711
|
+
target?: string | null | undefined;
|
|
712
|
+
ts?: string | undefined;
|
|
540
713
|
errorSummary?: string | null | undefined;
|
|
714
|
+
severity?: "error" | "info" | "warning" | undefined;
|
|
541
715
|
toolName?: string | null | undefined;
|
|
542
716
|
rawRef?: string | null | undefined;
|
|
543
717
|
}>, "many">>;
|
|
544
718
|
budget: z.ZodDefault<z.ZodObject<{
|
|
545
|
-
|
|
719
|
+
paidBudget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
720
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
721
|
+
}, "strict", z.ZodTypeAny, {
|
|
722
|
+
kind: "unlimited";
|
|
723
|
+
}, {
|
|
724
|
+
kind: "unlimited";
|
|
725
|
+
}>, z.ZodObject<{
|
|
726
|
+
kind: z.ZodLiteral<"finite">;
|
|
727
|
+
maxUsd: z.ZodNumber;
|
|
728
|
+
}, "strict", z.ZodTypeAny, {
|
|
729
|
+
kind: "finite";
|
|
730
|
+
maxUsd: number;
|
|
731
|
+
}, {
|
|
732
|
+
kind: "finite";
|
|
733
|
+
maxUsd: number;
|
|
734
|
+
}>]>>;
|
|
546
735
|
spendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
547
736
|
remainingUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
548
737
|
estimated: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -550,20 +739,30 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
550
739
|
}, "strip", z.ZodTypeAny, {
|
|
551
740
|
source: "unknown" | "decision" | "events" | "settings";
|
|
552
741
|
estimated: boolean;
|
|
553
|
-
|
|
742
|
+
paidBudget: {
|
|
743
|
+
kind: "unlimited";
|
|
744
|
+
} | {
|
|
745
|
+
kind: "finite";
|
|
746
|
+
maxUsd: number;
|
|
747
|
+
};
|
|
554
748
|
spendUsd: number | null;
|
|
555
749
|
remainingUsd: number | null;
|
|
556
750
|
}, {
|
|
557
751
|
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
558
752
|
estimated?: boolean | undefined;
|
|
559
|
-
|
|
753
|
+
paidBudget?: {
|
|
754
|
+
kind: "unlimited";
|
|
755
|
+
} | {
|
|
756
|
+
kind: "finite";
|
|
757
|
+
maxUsd: number;
|
|
758
|
+
} | undefined;
|
|
560
759
|
spendUsd?: number | null | undefined;
|
|
561
760
|
remainingUsd?: number | null | undefined;
|
|
562
761
|
}>>;
|
|
563
762
|
finalSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
564
763
|
decision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
565
764
|
winner: z.ZodNullable<z.ZodString>;
|
|
566
|
-
status: z.ZodEnum<["success", "no_op", "ungated", "review_not_run", "blocked", "
|
|
765
|
+
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
766
|
outcome: z.ZodDefault<z.ZodEnum<["ready", "no_op", "ungated", "review_not_run", "blocked"]>>;
|
|
568
767
|
why_winner: z.ZodDefault<z.ZodString>;
|
|
569
768
|
why_not_others: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -600,9 +799,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
600
799
|
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
601
800
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
602
801
|
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
reason: string | null;
|
|
603
803
|
duration_ms: number | null;
|
|
604
804
|
base_sha: string | null;
|
|
605
|
-
reason: string | null;
|
|
606
805
|
attempted: boolean;
|
|
607
806
|
applied_cleanly: boolean | null;
|
|
608
807
|
gates_passed: boolean | null;
|
|
@@ -612,9 +811,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
612
811
|
}[];
|
|
613
812
|
}, {
|
|
614
813
|
attempted: boolean;
|
|
814
|
+
reason?: string | null | undefined;
|
|
615
815
|
duration_ms?: number | null | undefined;
|
|
616
816
|
base_sha?: string | null | undefined;
|
|
617
|
-
reason?: string | null | undefined;
|
|
618
817
|
applied_cleanly?: boolean | null | undefined;
|
|
619
818
|
gates_passed?: boolean | null | undefined;
|
|
620
819
|
gates?: {
|
|
@@ -623,7 +822,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
623
822
|
}[] | undefined;
|
|
624
823
|
}>>>;
|
|
625
824
|
}, "strip", z.ZodTypeAny, {
|
|
626
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
825
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
627
826
|
winner: string | null;
|
|
628
827
|
outcome: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked";
|
|
629
828
|
why_winner: string;
|
|
@@ -638,9 +837,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
638
837
|
apply_recommendation: "apply" | "inspect" | "continue" | "split_task" | "human_review";
|
|
639
838
|
verification_basis: "none" | "cross_family_review" | "both";
|
|
640
839
|
final_verify: {
|
|
840
|
+
reason: string | null;
|
|
641
841
|
duration_ms: number | null;
|
|
642
842
|
base_sha: string | null;
|
|
643
|
-
reason: string | null;
|
|
644
843
|
attempted: boolean;
|
|
645
844
|
applied_cleanly: boolean | null;
|
|
646
845
|
gates_passed: boolean | null;
|
|
@@ -650,7 +849,7 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
650
849
|
}[];
|
|
651
850
|
} | null;
|
|
652
851
|
}, {
|
|
653
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
852
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
654
853
|
winner: string | null;
|
|
655
854
|
outcome?: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked" | undefined;
|
|
656
855
|
why_winner?: string | undefined;
|
|
@@ -666,9 +865,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
666
865
|
verification_basis?: "none" | "cross_family_review" | "both" | undefined;
|
|
667
866
|
final_verify?: {
|
|
668
867
|
attempted: boolean;
|
|
868
|
+
reason?: string | null | undefined;
|
|
669
869
|
duration_ms?: number | null | undefined;
|
|
670
870
|
base_sha?: string | null | undefined;
|
|
671
|
-
reason?: string | null | undefined;
|
|
672
871
|
applied_cleanly?: boolean | null | undefined;
|
|
673
872
|
gates_passed?: boolean | null | undefined;
|
|
674
873
|
gates?: {
|
|
@@ -697,16 +896,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
697
896
|
files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
698
897
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
699
898
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
|
|
701
|
-
kind: "patch" | "new_repo" | "report";
|
|
899
|
+
kind: "patch" | "report" | "new_repo";
|
|
702
900
|
files: Record<string, string>;
|
|
901
|
+
id: string;
|
|
703
902
|
source_task_id: string;
|
|
704
903
|
meta: Record<string, unknown>;
|
|
705
904
|
producer_attempt_id?: string | undefined;
|
|
706
905
|
evidence_dir?: string | undefined;
|
|
707
906
|
}, {
|
|
907
|
+
kind: "patch" | "report" | "new_repo";
|
|
708
908
|
id: string;
|
|
709
|
-
kind: "patch" | "new_repo" | "report";
|
|
710
909
|
source_task_id: string;
|
|
711
910
|
files?: Record<string, string> | undefined;
|
|
712
911
|
producer_attempt_id?: string | undefined;
|
|
@@ -763,25 +962,25 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
763
962
|
path: string;
|
|
764
963
|
}>, "many">>;
|
|
765
964
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
commands: {
|
|
767
|
-
command: string;
|
|
768
|
-
}[];
|
|
769
965
|
files: {
|
|
770
966
|
path: string;
|
|
771
967
|
lines: string | null;
|
|
772
968
|
}[];
|
|
969
|
+
commands: {
|
|
970
|
+
command: string;
|
|
971
|
+
}[];
|
|
773
972
|
diff_hunks: string[];
|
|
774
973
|
logs: {
|
|
775
974
|
path: string;
|
|
776
975
|
}[];
|
|
777
976
|
}, {
|
|
778
|
-
commands?: {
|
|
779
|
-
command: string;
|
|
780
|
-
}[] | undefined;
|
|
781
977
|
files?: {
|
|
782
978
|
path: string;
|
|
783
979
|
lines?: string | null | undefined;
|
|
784
980
|
}[] | undefined;
|
|
981
|
+
commands?: {
|
|
982
|
+
command: string;
|
|
983
|
+
}[] | undefined;
|
|
785
984
|
diff_hunks?: string[] | undefined;
|
|
786
985
|
logs?: {
|
|
787
986
|
path: string;
|
|
@@ -799,31 +998,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
799
998
|
observed_model: string | null;
|
|
800
999
|
requested_model: string | null;
|
|
801
1000
|
requested_effort: string | null;
|
|
802
|
-
route_proof_status: "
|
|
1001
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
803
1002
|
}, {
|
|
804
1003
|
harness_id: string;
|
|
805
1004
|
observed_model?: string | null | undefined;
|
|
806
1005
|
requested_model?: string | null | undefined;
|
|
807
1006
|
requested_effort?: string | null | undefined;
|
|
808
|
-
route_proof_status?: "
|
|
1007
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
809
1008
|
}>;
|
|
810
1009
|
status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rebutted", "fixed", "accepted_risk", "duplicate", "stale", "out_of_scope", "insufficient_evidence"]>>;
|
|
811
1010
|
revalidation_note: z.ZodOptional<z.ZodString>;
|
|
812
1011
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
status: "stale" | "
|
|
1012
|
+
status: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence";
|
|
814
1013
|
id: string;
|
|
815
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
816
1014
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1015
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
817
1016
|
claim: string;
|
|
818
1017
|
linked_acceptance_criteria: string[];
|
|
819
1018
|
evidence: {
|
|
820
|
-
commands: {
|
|
821
|
-
command: string;
|
|
822
|
-
}[];
|
|
823
1019
|
files: {
|
|
824
1020
|
path: string;
|
|
825
1021
|
lines: string | null;
|
|
826
1022
|
}[];
|
|
1023
|
+
commands: {
|
|
1024
|
+
command: string;
|
|
1025
|
+
}[];
|
|
827
1026
|
diff_hunks: string[];
|
|
828
1027
|
logs: {
|
|
829
1028
|
path: string;
|
|
@@ -835,31 +1034,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
835
1034
|
observed_model: string | null;
|
|
836
1035
|
requested_model: string | null;
|
|
837
1036
|
requested_effort: string | null;
|
|
838
|
-
route_proof_status: "
|
|
1037
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
839
1038
|
};
|
|
840
1039
|
revalidation_note?: string | undefined;
|
|
841
1040
|
}, {
|
|
842
1041
|
id: string;
|
|
843
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
844
1042
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1043
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
845
1044
|
claim: string;
|
|
846
1045
|
reviewer: {
|
|
847
1046
|
harness_id: string;
|
|
848
1047
|
observed_model?: string | null | undefined;
|
|
849
1048
|
requested_model?: string | null | undefined;
|
|
850
1049
|
requested_effort?: string | null | undefined;
|
|
851
|
-
route_proof_status?: "
|
|
1050
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
852
1051
|
};
|
|
853
|
-
status?: "stale" | "
|
|
1052
|
+
status?: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence" | undefined;
|
|
854
1053
|
linked_acceptance_criteria?: string[] | undefined;
|
|
855
1054
|
evidence?: {
|
|
856
|
-
commands?: {
|
|
857
|
-
command: string;
|
|
858
|
-
}[] | undefined;
|
|
859
1055
|
files?: {
|
|
860
1056
|
path: string;
|
|
861
1057
|
lines?: string | null | undefined;
|
|
862
1058
|
}[] | undefined;
|
|
1059
|
+
commands?: {
|
|
1060
|
+
command: string;
|
|
1061
|
+
}[] | undefined;
|
|
863
1062
|
diff_hunks?: string[] | undefined;
|
|
864
1063
|
logs?: {
|
|
865
1064
|
path: string;
|
|
@@ -911,6 +1110,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
911
1110
|
requestedAt: z.ZodString;
|
|
912
1111
|
timeoutAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
913
1112
|
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
harnessId: string | null;
|
|
1114
|
+
attemptId: string | null;
|
|
914
1115
|
questions: {
|
|
915
1116
|
options: {
|
|
916
1117
|
label: string;
|
|
@@ -922,8 +1123,6 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
922
1123
|
multi_select: boolean;
|
|
923
1124
|
}[];
|
|
924
1125
|
runId: string;
|
|
925
|
-
harnessId: string | null;
|
|
926
|
-
attemptId: string | null;
|
|
927
1126
|
interactionId: string;
|
|
928
1127
|
sourceTool: string | null;
|
|
929
1128
|
requestedAt: string;
|
|
@@ -932,6 +1131,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
932
1131
|
runId: string;
|
|
933
1132
|
interactionId: string;
|
|
934
1133
|
requestedAt: string;
|
|
1134
|
+
harnessId?: string | null | undefined;
|
|
1135
|
+
attemptId?: string | null | undefined;
|
|
935
1136
|
questions?: {
|
|
936
1137
|
id: string;
|
|
937
1138
|
question: string;
|
|
@@ -942,8 +1143,6 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
942
1143
|
header?: string | null | undefined;
|
|
943
1144
|
multi_select?: boolean | undefined;
|
|
944
1145
|
}[] | undefined;
|
|
945
|
-
harnessId?: string | null | undefined;
|
|
946
|
-
attemptId?: string | null | undefined;
|
|
947
1146
|
sourceTool?: string | null | undefined;
|
|
948
1147
|
timeoutAt?: string | null | undefined;
|
|
949
1148
|
}>, "many">>;
|
|
@@ -956,45 +1155,65 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
956
1155
|
tool: z.ZodEnum<["start_run", "race", "status", "answer_question", "apply", "review"]>;
|
|
957
1156
|
risk: z.ZodEnum<["safe", "risky"]>;
|
|
958
1157
|
status: z.ZodEnum<["pending", "running", "done", "skipped", "blocked", "failed"]>;
|
|
1158
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1159
|
+
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"]>>>;
|
|
1160
|
+
terminal_source: z.ZodDefault<z.ZodNullable<z.ZodEnum<["executor", "subrun", "review", "delivery", "policy", "budget"]>>>;
|
|
1161
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
959
1162
|
run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
960
1163
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
961
1164
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
status: "pending" | "
|
|
1165
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
963
1166
|
detail: string | null;
|
|
1167
|
+
index: number;
|
|
1168
|
+
evidence_refs: string[];
|
|
964
1169
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
965
1170
|
run_id: string | null;
|
|
966
|
-
|
|
1171
|
+
required: boolean;
|
|
967
1172
|
risk: "safe" | "risky";
|
|
1173
|
+
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;
|
|
1174
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
968
1175
|
}, {
|
|
969
|
-
status: "pending" | "
|
|
970
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1176
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
971
1177
|
index: number;
|
|
1178
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
972
1179
|
risk: "safe" | "risky";
|
|
973
1180
|
detail?: string | null | undefined;
|
|
1181
|
+
evidence_refs?: string[] | undefined;
|
|
974
1182
|
run_id?: string | null | undefined;
|
|
1183
|
+
required?: boolean | undefined;
|
|
1184
|
+
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;
|
|
1185
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
975
1186
|
}>, "many">>;
|
|
976
1187
|
autonomy: z.ZodEnum<["suggest", "auto_safe", "auto_full"]>;
|
|
977
1188
|
stopped_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
978
1189
|
}, "strip", z.ZodTypeAny, {
|
|
979
1190
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
980
1191
|
steps: {
|
|
981
|
-
status: "pending" | "
|
|
1192
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
982
1193
|
detail: string | null;
|
|
1194
|
+
index: number;
|
|
1195
|
+
evidence_refs: string[];
|
|
983
1196
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
984
1197
|
run_id: string | null;
|
|
985
|
-
|
|
1198
|
+
required: boolean;
|
|
986
1199
|
risk: "safe" | "risky";
|
|
1200
|
+
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;
|
|
1201
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
987
1202
|
}[];
|
|
988
1203
|
stopped_reason: string | null;
|
|
989
1204
|
}, {
|
|
990
1205
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
991
1206
|
steps?: {
|
|
992
|
-
status: "pending" | "
|
|
993
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1207
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
994
1208
|
index: number;
|
|
1209
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
995
1210
|
risk: "safe" | "risky";
|
|
996
1211
|
detail?: string | null | undefined;
|
|
1212
|
+
evidence_refs?: string[] | undefined;
|
|
997
1213
|
run_id?: string | null | undefined;
|
|
1214
|
+
required?: boolean | undefined;
|
|
1215
|
+
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;
|
|
1216
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
998
1217
|
}[] | undefined;
|
|
999
1218
|
stopped_reason?: string | null | undefined;
|
|
1000
1219
|
}>>>;
|
|
@@ -1030,12 +1249,12 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1030
1249
|
deletions?: number | undefined;
|
|
1031
1250
|
}>>>;
|
|
1032
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
label: string | null;
|
|
1034
|
-
winner: boolean;
|
|
1035
1252
|
harnessId: string;
|
|
1036
1253
|
attemptId: string;
|
|
1037
|
-
blockers: number;
|
|
1038
1254
|
costUsd: number;
|
|
1255
|
+
label: string | null;
|
|
1256
|
+
winner: boolean;
|
|
1257
|
+
blockers: number;
|
|
1039
1258
|
costEstimated: boolean;
|
|
1040
1259
|
errored: boolean;
|
|
1041
1260
|
gatesPassed: number;
|
|
@@ -1050,10 +1269,10 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1050
1269
|
}, {
|
|
1051
1270
|
harnessId: string;
|
|
1052
1271
|
attemptId: string;
|
|
1272
|
+
costUsd?: number | undefined;
|
|
1053
1273
|
label?: string | null | undefined;
|
|
1054
1274
|
winner?: boolean | undefined;
|
|
1055
1275
|
blockers?: number | undefined;
|
|
1056
|
-
costUsd?: number | undefined;
|
|
1057
1276
|
costEstimated?: boolean | undefined;
|
|
1058
1277
|
errored?: boolean | undefined;
|
|
1059
1278
|
gatesPassed?: number | undefined;
|
|
@@ -1107,11 +1326,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1107
1326
|
runDir: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1108
1327
|
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1109
1328
|
}, "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
1329
|
harnessId: string | null;
|
|
1114
1330
|
attemptId: string | null;
|
|
1331
|
+
runDir: string | null;
|
|
1332
|
+
phase: string;
|
|
1333
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1115
1334
|
safeMessage: string;
|
|
1116
1335
|
rawDetailRef: string | null;
|
|
1117
1336
|
logRefs: string[];
|
|
@@ -1119,11 +1338,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1119
1338
|
nextActions: string[];
|
|
1120
1339
|
}, {
|
|
1121
1340
|
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
1341
|
harnessId?: string | null | undefined;
|
|
1126
1342
|
attemptId?: string | null | undefined;
|
|
1343
|
+
runDir?: string | null | undefined;
|
|
1344
|
+
phase?: string | undefined;
|
|
1345
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1127
1346
|
rawDetailRef?: string | null | undefined;
|
|
1128
1347
|
logRefs?: string[] | undefined;
|
|
1129
1348
|
eventRefs?: string[] | undefined;
|
|
@@ -1133,45 +1352,21 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1133
1352
|
orchestrate: {
|
|
1134
1353
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
1135
1354
|
steps: {
|
|
1136
|
-
status: "pending" | "
|
|
1355
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
1137
1356
|
detail: string | null;
|
|
1357
|
+
index: number;
|
|
1358
|
+
evidence_refs: string[];
|
|
1138
1359
|
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1139
1360
|
run_id: string | null;
|
|
1140
|
-
|
|
1361
|
+
required: boolean;
|
|
1141
1362
|
risk: "safe" | "risky";
|
|
1363
|
+
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;
|
|
1364
|
+
terminal_source: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null;
|
|
1142
1365
|
}[];
|
|
1143
1366
|
stopped_reason: string | null;
|
|
1144
1367
|
} | 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
1368
|
summary: {
|
|
1174
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1369
|
+
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
1370
|
runId: string;
|
|
1176
1371
|
project: {
|
|
1177
1372
|
kind: "none" | "project";
|
|
@@ -1181,11 +1376,11 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1181
1376
|
};
|
|
1182
1377
|
jobId: string;
|
|
1183
1378
|
failure: {
|
|
1184
|
-
runDir: string | null;
|
|
1185
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
1186
|
-
phase: string;
|
|
1187
1379
|
harnessId: string | null;
|
|
1188
1380
|
attemptId: string | null;
|
|
1381
|
+
runDir: string | null;
|
|
1382
|
+
phase: string;
|
|
1383
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1189
1384
|
safeMessage: string;
|
|
1190
1385
|
rawDetailRef: string | null;
|
|
1191
1386
|
logRefs: string[];
|
|
@@ -1193,22 +1388,31 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1193
1388
|
nextActions: string[];
|
|
1194
1389
|
} | null;
|
|
1195
1390
|
webEvidence: {
|
|
1196
|
-
status: "
|
|
1391
|
+
status: "failed" | "none" | "attempted" | "satisfied" | "unverified";
|
|
1392
|
+
available: boolean;
|
|
1197
1393
|
target: string | null;
|
|
1198
|
-
tool: string | null;
|
|
1199
1394
|
mode: "off" | "auto" | "cached" | "live";
|
|
1395
|
+
tool: string | null;
|
|
1200
1396
|
required: boolean;
|
|
1201
1397
|
attempted: boolean;
|
|
1202
1398
|
rawDetailRef: string | null;
|
|
1203
1399
|
effectiveMode: "off" | "auto" | "cached" | "live";
|
|
1204
1400
|
satisfied: boolean;
|
|
1205
1401
|
errorSummary: string | null;
|
|
1206
|
-
available: boolean;
|
|
1207
1402
|
};
|
|
1403
|
+
requestRequirements: {
|
|
1404
|
+
requested: boolean;
|
|
1405
|
+
effective: boolean;
|
|
1406
|
+
harness_id: string;
|
|
1407
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
1408
|
+
evidence_refs: string[];
|
|
1409
|
+
eligible: boolean;
|
|
1410
|
+
capability: "browser" | "path_deny";
|
|
1411
|
+
}[];
|
|
1208
1412
|
outputReadyState: "pending" | "finalizing" | "ready" | "diagnostic";
|
|
1209
1413
|
toolWarningsTotal: number;
|
|
1210
1414
|
result: {
|
|
1211
|
-
kind: "plan" | "none" | "patch" | "
|
|
1415
|
+
kind: "plan" | "none" | "patch" | "answer" | "report";
|
|
1212
1416
|
diffStat: {
|
|
1213
1417
|
files: number;
|
|
1214
1418
|
additions: number;
|
|
@@ -1219,27 +1423,41 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1219
1423
|
applyState: "not_applied" | "applied" | "applied_review_blocked" | "reverted";
|
|
1220
1424
|
preTurnSha: string | null;
|
|
1221
1425
|
postTurnSha: string | null;
|
|
1426
|
+
revertAnchorId: string | null;
|
|
1222
1427
|
revertable: boolean;
|
|
1223
1428
|
};
|
|
1224
1429
|
waitingOnUser: boolean;
|
|
1225
1430
|
route: {
|
|
1226
|
-
verified: boolean;
|
|
1227
1431
|
harnessId: string | null;
|
|
1228
1432
|
requestedModel: string | null;
|
|
1229
1433
|
observedModel: string | null;
|
|
1434
|
+
verified: boolean;
|
|
1230
1435
|
} | null;
|
|
1231
|
-
|
|
1232
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1436
|
+
startedAt?: string | undefined;
|
|
1233
1437
|
error?: string | undefined;
|
|
1438
|
+
createdAt?: string | undefined;
|
|
1234
1439
|
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1440
|
+
prompt?: string | undefined;
|
|
1441
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1235
1442
|
harnesses?: string[] | undefined;
|
|
1236
1443
|
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
1444
|
model?: string | undefined;
|
|
1445
|
+
tests?: {
|
|
1446
|
+
program: string;
|
|
1447
|
+
args: string[];
|
|
1448
|
+
envAllowlist: string[];
|
|
1449
|
+
cwd?: string | undefined;
|
|
1450
|
+
}[] | undefined;
|
|
1451
|
+
n?: number | undefined;
|
|
1452
|
+
taskId?: string | undefined;
|
|
1241
1453
|
primaryHarness?: string | undefined;
|
|
1242
|
-
|
|
1454
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1455
|
+
paidBudget?: {
|
|
1456
|
+
kind: "unlimited";
|
|
1457
|
+
} | {
|
|
1458
|
+
kind: "finite";
|
|
1459
|
+
maxUsd: number;
|
|
1460
|
+
} | undefined;
|
|
1243
1461
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1244
1462
|
protectedPathApprovals?: {
|
|
1245
1463
|
path: string;
|
|
@@ -1249,22 +1467,63 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1249
1467
|
specHash?: string | undefined;
|
|
1250
1468
|
reviewerPanel?: {
|
|
1251
1469
|
harness: string;
|
|
1252
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1253
1470
|
model?: string | undefined;
|
|
1471
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1254
1472
|
}[] | undefined;
|
|
1255
|
-
createdAt?: string | undefined;
|
|
1256
|
-
startedAt?: string | undefined;
|
|
1257
|
-
finishedAt?: string | undefined;
|
|
1258
|
-
taskId?: string | undefined;
|
|
1259
1473
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
1260
1474
|
spendUsd?: number | null | undefined;
|
|
1261
1475
|
spendEstimated?: boolean | undefined;
|
|
1476
|
+
inputTokens?: number | null | undefined;
|
|
1477
|
+
outputTokens?: number | null | undefined;
|
|
1478
|
+
cachedInputTokens?: number | null | undefined;
|
|
1479
|
+
outputConformance?: "passed" | "failed" | null | undefined;
|
|
1480
|
+
authRoute?: {
|
|
1481
|
+
source: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null;
|
|
1482
|
+
harnessId: string | null;
|
|
1483
|
+
requested: "auto" | "subscription" | "api_key";
|
|
1484
|
+
attemptId: string | null;
|
|
1485
|
+
effective: "unknown" | "api_key" | "local_session" | null;
|
|
1486
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
1487
|
+
modelMismatch: {
|
|
1488
|
+
requested: string;
|
|
1489
|
+
observed: string;
|
|
1490
|
+
} | null;
|
|
1491
|
+
} | null | undefined;
|
|
1262
1492
|
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1263
1493
|
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1264
1494
|
webRequired?: boolean | undefined;
|
|
1265
1495
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1266
1496
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1497
|
+
finishedAt?: string | undefined;
|
|
1267
1498
|
};
|
|
1499
|
+
decision: {
|
|
1500
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
1501
|
+
winner: string | null;
|
|
1502
|
+
outcome: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked";
|
|
1503
|
+
why_winner: string;
|
|
1504
|
+
why_not_others: Record<string, string>;
|
|
1505
|
+
accepted_risks: string[];
|
|
1506
|
+
final_checks: string[];
|
|
1507
|
+
evidence_facts: string[];
|
|
1508
|
+
budget_summary: {
|
|
1509
|
+
estimated: boolean;
|
|
1510
|
+
spend_usd: number | null;
|
|
1511
|
+
};
|
|
1512
|
+
apply_recommendation: "apply" | "inspect" | "continue" | "split_task" | "human_review";
|
|
1513
|
+
verification_basis: "none" | "cross_family_review" | "both";
|
|
1514
|
+
final_verify: {
|
|
1515
|
+
reason: string | null;
|
|
1516
|
+
duration_ms: number | null;
|
|
1517
|
+
base_sha: string | null;
|
|
1518
|
+
attempted: boolean;
|
|
1519
|
+
applied_cleanly: boolean | null;
|
|
1520
|
+
gates_passed: boolean | null;
|
|
1521
|
+
gates: {
|
|
1522
|
+
status: string;
|
|
1523
|
+
id: string;
|
|
1524
|
+
}[];
|
|
1525
|
+
} | null;
|
|
1526
|
+
} | null;
|
|
1268
1527
|
applyEligibility: {
|
|
1269
1528
|
state: string | null;
|
|
1270
1529
|
reason: string | null;
|
|
@@ -1274,44 +1533,49 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1274
1533
|
budget: {
|
|
1275
1534
|
source: "unknown" | "decision" | "events" | "settings";
|
|
1276
1535
|
estimated: boolean;
|
|
1277
|
-
|
|
1536
|
+
paidBudget: {
|
|
1537
|
+
kind: "unlimited";
|
|
1538
|
+
} | {
|
|
1539
|
+
kind: "finite";
|
|
1540
|
+
maxUsd: number;
|
|
1541
|
+
};
|
|
1278
1542
|
spendUsd: number | null;
|
|
1279
1543
|
remainingUsd: number | null;
|
|
1280
1544
|
};
|
|
1281
1545
|
failure: {
|
|
1282
|
-
runDir: string | null;
|
|
1283
|
-
category: "validation" | "unknown" | "harness_error" | "auth" | "cancelled" | "budget" | "project" | "policy" | "harness_unavailable" | "internal";
|
|
1284
|
-
phase: string;
|
|
1285
1546
|
harnessId: string | null;
|
|
1286
1547
|
attemptId: string | null;
|
|
1548
|
+
runDir: string | null;
|
|
1549
|
+
phase: string;
|
|
1550
|
+
category: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal";
|
|
1287
1551
|
safeMessage: string;
|
|
1288
1552
|
rawDetailRef: string | null;
|
|
1289
1553
|
logRefs: string[];
|
|
1290
1554
|
eventRefs: string[];
|
|
1291
1555
|
nextActions: string[];
|
|
1292
1556
|
} | null;
|
|
1293
|
-
lastSeq: number;
|
|
1294
1557
|
artifacts: {
|
|
1295
1558
|
path: string;
|
|
1296
1559
|
kind: "file" | "directory";
|
|
1297
1560
|
mime?: string | undefined;
|
|
1298
1561
|
bytes?: number | undefined;
|
|
1299
1562
|
}[];
|
|
1563
|
+
lastSeq: number;
|
|
1300
1564
|
primaryOutput: {
|
|
1301
1565
|
path: string;
|
|
1302
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "report" | "
|
|
1566
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
|
|
1303
1567
|
text: string | null;
|
|
1304
1568
|
bytes?: number | undefined;
|
|
1305
1569
|
} | null;
|
|
1306
1570
|
timeline: {
|
|
1307
1571
|
type: string;
|
|
1308
1572
|
detail: string | null;
|
|
1309
|
-
target: string | null;
|
|
1310
|
-
title: string;
|
|
1311
|
-
severity: "error" | "info" | "warning";
|
|
1312
1573
|
harnessId: string | null;
|
|
1313
1574
|
attemptId: string | null;
|
|
1575
|
+
target: string | null;
|
|
1576
|
+
title: string;
|
|
1314
1577
|
errorSummary: string | null;
|
|
1578
|
+
severity: "error" | "info" | "warning";
|
|
1315
1579
|
toolName: string | null;
|
|
1316
1580
|
rawRef: string | null;
|
|
1317
1581
|
ts?: string | undefined;
|
|
@@ -1322,29 +1586,29 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1322
1586
|
decidedAt: string | null;
|
|
1323
1587
|
} | null;
|
|
1324
1588
|
workProduct: {
|
|
1325
|
-
|
|
1326
|
-
kind: "patch" | "new_repo" | "report";
|
|
1589
|
+
kind: "patch" | "report" | "new_repo";
|
|
1327
1590
|
files: Record<string, string>;
|
|
1591
|
+
id: string;
|
|
1328
1592
|
source_task_id: string;
|
|
1329
1593
|
meta: Record<string, unknown>;
|
|
1330
1594
|
producer_attempt_id?: string | undefined;
|
|
1331
1595
|
evidence_dir?: string | undefined;
|
|
1332
1596
|
} | null;
|
|
1333
1597
|
reviewFindings: {
|
|
1334
|
-
status: "stale" | "
|
|
1598
|
+
status: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence";
|
|
1335
1599
|
id: string;
|
|
1336
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1337
1600
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1601
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1338
1602
|
claim: string;
|
|
1339
1603
|
linked_acceptance_criteria: string[];
|
|
1340
1604
|
evidence: {
|
|
1341
|
-
commands: {
|
|
1342
|
-
command: string;
|
|
1343
|
-
}[];
|
|
1344
1605
|
files: {
|
|
1345
1606
|
path: string;
|
|
1346
1607
|
lines: string | null;
|
|
1347
1608
|
}[];
|
|
1609
|
+
commands: {
|
|
1610
|
+
command: string;
|
|
1611
|
+
}[];
|
|
1348
1612
|
diff_hunks: string[];
|
|
1349
1613
|
logs: {
|
|
1350
1614
|
path: string;
|
|
@@ -1356,11 +1620,13 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1356
1620
|
observed_model: string | null;
|
|
1357
1621
|
requested_model: string | null;
|
|
1358
1622
|
requested_effort: string | null;
|
|
1359
|
-
route_proof_status: "
|
|
1623
|
+
route_proof_status: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback";
|
|
1360
1624
|
};
|
|
1361
1625
|
revalidation_note?: string | undefined;
|
|
1362
1626
|
}[];
|
|
1363
1627
|
pendingInteractions: {
|
|
1628
|
+
harnessId: string | null;
|
|
1629
|
+
attemptId: string | null;
|
|
1364
1630
|
questions: {
|
|
1365
1631
|
options: {
|
|
1366
1632
|
label: string;
|
|
@@ -1372,20 +1638,18 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1372
1638
|
multi_select: boolean;
|
|
1373
1639
|
}[];
|
|
1374
1640
|
runId: string;
|
|
1375
|
-
harnessId: string | null;
|
|
1376
|
-
attemptId: string | null;
|
|
1377
1641
|
interactionId: string;
|
|
1378
1642
|
sourceTool: string | null;
|
|
1379
1643
|
requestedAt: string;
|
|
1380
1644
|
timeoutAt: string | null;
|
|
1381
1645
|
}[];
|
|
1382
1646
|
candidates: {
|
|
1383
|
-
label: string | null;
|
|
1384
|
-
winner: boolean;
|
|
1385
1647
|
harnessId: string;
|
|
1386
1648
|
attemptId: string;
|
|
1387
|
-
blockers: number;
|
|
1388
1649
|
costUsd: number;
|
|
1650
|
+
label: string | null;
|
|
1651
|
+
winner: boolean;
|
|
1652
|
+
blockers: number;
|
|
1389
1653
|
costEstimated: boolean;
|
|
1390
1654
|
errored: boolean;
|
|
1391
1655
|
gatesPassed: number;
|
|
@@ -1407,17 +1671,24 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1407
1671
|
} | null;
|
|
1408
1672
|
}, {
|
|
1409
1673
|
summary: {
|
|
1410
|
-
state: "cancelled" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1674
|
+
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
1675
|
runId: string;
|
|
1412
1676
|
jobId: string;
|
|
1413
|
-
|
|
1414
|
-
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1677
|
+
startedAt?: string | undefined;
|
|
1415
1678
|
error?: string | undefined;
|
|
1679
|
+
createdAt?: string | undefined;
|
|
1416
1680
|
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
1681
|
+
prompt?: string | undefined;
|
|
1682
|
+
access?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1417
1683
|
harnesses?: string[] | undefined;
|
|
1418
1684
|
runDir?: string | undefined;
|
|
1419
|
-
|
|
1420
|
-
|
|
1685
|
+
model?: string | undefined;
|
|
1686
|
+
tests?: {
|
|
1687
|
+
program: string;
|
|
1688
|
+
cwd?: string | undefined;
|
|
1689
|
+
args?: string[] | undefined;
|
|
1690
|
+
envAllowlist?: string[] | undefined;
|
|
1691
|
+
}[] | undefined;
|
|
1421
1692
|
project?: {
|
|
1422
1693
|
kind?: "none" | "project" | undefined;
|
|
1423
1694
|
root?: string | null | undefined;
|
|
@@ -1425,9 +1696,15 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1425
1696
|
projectName?: string | null | undefined;
|
|
1426
1697
|
} | undefined;
|
|
1427
1698
|
n?: number | undefined;
|
|
1428
|
-
|
|
1699
|
+
taskId?: string | undefined;
|
|
1429
1700
|
primaryHarness?: string | undefined;
|
|
1430
|
-
|
|
1701
|
+
routingGoal?: "auto" | "quality" | "economy" | undefined;
|
|
1702
|
+
paidBudget?: {
|
|
1703
|
+
kind: "unlimited";
|
|
1704
|
+
} | {
|
|
1705
|
+
kind: "finite";
|
|
1706
|
+
maxUsd: number;
|
|
1707
|
+
} | undefined;
|
|
1431
1708
|
externalContextPolicy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1432
1709
|
protectedPathApprovals?: {
|
|
1433
1710
|
path: string;
|
|
@@ -1437,20 +1714,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1437
1714
|
specHash?: string | undefined;
|
|
1438
1715
|
reviewerPanel?: {
|
|
1439
1716
|
harness: string;
|
|
1440
|
-
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1441
1717
|
model?: string | undefined;
|
|
1718
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1442
1719
|
}[] | undefined;
|
|
1443
|
-
createdAt?: string | undefined;
|
|
1444
|
-
startedAt?: string | undefined;
|
|
1445
|
-
finishedAt?: string | undefined;
|
|
1446
|
-
taskId?: string | undefined;
|
|
1447
1720
|
failure?: {
|
|
1448
1721
|
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
1722
|
harnessId?: string | null | undefined;
|
|
1453
1723
|
attemptId?: string | null | undefined;
|
|
1724
|
+
runDir?: string | null | undefined;
|
|
1725
|
+
phase?: string | undefined;
|
|
1726
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1454
1727
|
rawDetailRef?: string | null | undefined;
|
|
1455
1728
|
logRefs?: string[] | undefined;
|
|
1456
1729
|
eventRefs?: string[] | undefined;
|
|
@@ -1459,28 +1732,53 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1459
1732
|
strategy?: "race" | "attempts" | "swarm" | "create" | "until_clean" | null | undefined;
|
|
1460
1733
|
spendUsd?: number | null | undefined;
|
|
1461
1734
|
spendEstimated?: boolean | undefined;
|
|
1735
|
+
inputTokens?: number | null | undefined;
|
|
1736
|
+
outputTokens?: number | null | undefined;
|
|
1737
|
+
cachedInputTokens?: number | null | undefined;
|
|
1738
|
+
outputConformance?: "passed" | "failed" | null | undefined;
|
|
1739
|
+
authRoute?: {
|
|
1740
|
+
requested: "auto" | "subscription" | "api_key";
|
|
1741
|
+
reason: "as_requested" | "native_first" | "no_native_session_fallback" | "requested_route_unavailable" | "undisclosed";
|
|
1742
|
+
source?: "native_session" | "oauth_token_env" | "api_key_env" | "api_key_flag" | "provider_auth_file" | "none" | null | undefined;
|
|
1743
|
+
harnessId?: string | null | undefined;
|
|
1744
|
+
attemptId?: string | null | undefined;
|
|
1745
|
+
effective?: "unknown" | "api_key" | "local_session" | null | undefined;
|
|
1746
|
+
modelMismatch?: {
|
|
1747
|
+
requested: string;
|
|
1748
|
+
observed: string;
|
|
1749
|
+
} | null | undefined;
|
|
1750
|
+
} | null | undefined;
|
|
1462
1751
|
requestedAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1463
1752
|
effectiveAccess?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1464
1753
|
webRequired?: boolean | undefined;
|
|
1465
1754
|
webMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1466
1755
|
webEvidence?: {
|
|
1467
|
-
status?: "
|
|
1756
|
+
status?: "failed" | "none" | "attempted" | "satisfied" | "unverified" | undefined;
|
|
1757
|
+
available?: boolean | undefined;
|
|
1468
1758
|
target?: string | null | undefined;
|
|
1469
|
-
tool?: string | null | undefined;
|
|
1470
1759
|
mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1760
|
+
tool?: string | null | undefined;
|
|
1471
1761
|
required?: boolean | undefined;
|
|
1472
1762
|
attempted?: boolean | undefined;
|
|
1473
1763
|
rawDetailRef?: string | null | undefined;
|
|
1474
1764
|
effectiveMode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1475
1765
|
satisfied?: boolean | undefined;
|
|
1476
1766
|
errorSummary?: string | null | undefined;
|
|
1477
|
-
available?: boolean | undefined;
|
|
1478
1767
|
} | undefined;
|
|
1768
|
+
requestRequirements?: {
|
|
1769
|
+
requested: boolean;
|
|
1770
|
+
effective: boolean;
|
|
1771
|
+
harness_id: string;
|
|
1772
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible" | "postdiff_only";
|
|
1773
|
+
eligible: boolean;
|
|
1774
|
+
capability: "browser" | "path_deny";
|
|
1775
|
+
evidence_refs?: string[] | undefined;
|
|
1776
|
+
}[] | undefined;
|
|
1479
1777
|
toolPermissionPolicy?: Record<string, unknown> | undefined;
|
|
1480
1778
|
outputReadyState?: "pending" | "finalizing" | "ready" | "diagnostic" | undefined;
|
|
1481
1779
|
toolWarningsTotal?: number | undefined;
|
|
1482
1780
|
result?: {
|
|
1483
|
-
kind?: "plan" | "none" | "patch" | "
|
|
1781
|
+
kind?: "plan" | "none" | "patch" | "answer" | "report" | undefined;
|
|
1484
1782
|
diffStat?: {
|
|
1485
1783
|
files: number;
|
|
1486
1784
|
additions: number;
|
|
@@ -1491,30 +1789,36 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1491
1789
|
applyState?: "not_applied" | "applied" | "applied_review_blocked" | "reverted" | undefined;
|
|
1492
1790
|
preTurnSha?: string | null | undefined;
|
|
1493
1791
|
postTurnSha?: string | null | undefined;
|
|
1792
|
+
revertAnchorId?: string | null | undefined;
|
|
1494
1793
|
revertable?: boolean | undefined;
|
|
1495
1794
|
} | undefined;
|
|
1496
1795
|
waitingOnUser?: boolean | undefined;
|
|
1497
1796
|
route?: {
|
|
1498
|
-
verified?: boolean | undefined;
|
|
1499
1797
|
harnessId?: string | null | undefined;
|
|
1500
1798
|
requestedModel?: string | null | undefined;
|
|
1501
1799
|
observedModel?: string | null | undefined;
|
|
1800
|
+
verified?: boolean | undefined;
|
|
1502
1801
|
} | null | undefined;
|
|
1802
|
+
finishedAt?: string | undefined;
|
|
1503
1803
|
};
|
|
1504
1804
|
orchestrate?: {
|
|
1505
1805
|
autonomy: "suggest" | "auto_safe" | "auto_full";
|
|
1506
1806
|
steps?: {
|
|
1507
|
-
status: "pending" | "
|
|
1508
|
-
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1807
|
+
status: "pending" | "failed" | "running" | "blocked" | "done" | "skipped";
|
|
1509
1808
|
index: number;
|
|
1809
|
+
tool: "status" | "review" | "apply" | "start_run" | "race" | "answer_question";
|
|
1510
1810
|
risk: "safe" | "risky";
|
|
1511
1811
|
detail?: string | null | undefined;
|
|
1812
|
+
evidence_refs?: string[] | undefined;
|
|
1512
1813
|
run_id?: string | null | undefined;
|
|
1814
|
+
required?: boolean | undefined;
|
|
1815
|
+
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;
|
|
1816
|
+
terminal_source?: "review" | "delivery" | "policy" | "budget" | "executor" | "subrun" | null | undefined;
|
|
1513
1817
|
}[] | undefined;
|
|
1514
1818
|
stopped_reason?: string | null | undefined;
|
|
1515
1819
|
} | null | undefined;
|
|
1516
1820
|
decision?: {
|
|
1517
|
-
status: "cancelled" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "
|
|
1821
|
+
status: "failed" | "cancelled" | "interrupted_unknown" | "success" | "no_op" | "ungated" | "review_not_run" | "blocked" | "cost_unverifiable" | "exhausted_overshoot" | "exhausted" | "not_converged" | "stuck_no_progress";
|
|
1518
1822
|
winner: string | null;
|
|
1519
1823
|
outcome?: "ready" | "no_op" | "ungated" | "review_not_run" | "blocked" | undefined;
|
|
1520
1824
|
why_winner?: string | undefined;
|
|
@@ -1530,9 +1834,9 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1530
1834
|
verification_basis?: "none" | "cross_family_review" | "both" | undefined;
|
|
1531
1835
|
final_verify?: {
|
|
1532
1836
|
attempted: boolean;
|
|
1837
|
+
reason?: string | null | undefined;
|
|
1533
1838
|
duration_ms?: number | null | undefined;
|
|
1534
1839
|
base_sha?: string | null | undefined;
|
|
1535
|
-
reason?: string | null | undefined;
|
|
1536
1840
|
applied_cleanly?: boolean | null | undefined;
|
|
1537
1841
|
gates_passed?: boolean | null | undefined;
|
|
1538
1842
|
gates?: {
|
|
@@ -1550,45 +1854,50 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1550
1854
|
budget?: {
|
|
1551
1855
|
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
1552
1856
|
estimated?: boolean | undefined;
|
|
1553
|
-
|
|
1857
|
+
paidBudget?: {
|
|
1858
|
+
kind: "unlimited";
|
|
1859
|
+
} | {
|
|
1860
|
+
kind: "finite";
|
|
1861
|
+
maxUsd: number;
|
|
1862
|
+
} | undefined;
|
|
1554
1863
|
spendUsd?: number | null | undefined;
|
|
1555
1864
|
remainingUsd?: number | null | undefined;
|
|
1556
1865
|
} | undefined;
|
|
1557
1866
|
failure?: {
|
|
1558
1867
|
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
1868
|
harnessId?: string | null | undefined;
|
|
1563
1869
|
attemptId?: string | null | undefined;
|
|
1870
|
+
runDir?: string | null | undefined;
|
|
1871
|
+
phase?: string | undefined;
|
|
1872
|
+
category?: "validation" | "unknown" | "harness_error" | "cancelled" | "auth" | "policy" | "budget" | "project" | "harness_unavailable" | "internal" | undefined;
|
|
1564
1873
|
rawDetailRef?: string | null | undefined;
|
|
1565
1874
|
logRefs?: string[] | undefined;
|
|
1566
1875
|
eventRefs?: string[] | undefined;
|
|
1567
1876
|
nextActions?: string[] | undefined;
|
|
1568
1877
|
} | null | undefined;
|
|
1569
|
-
lastSeq?: number | undefined;
|
|
1570
1878
|
artifacts?: {
|
|
1571
1879
|
path: string;
|
|
1572
1880
|
kind: "file" | "directory";
|
|
1573
1881
|
mime?: string | undefined;
|
|
1574
1882
|
bytes?: number | undefined;
|
|
1575
1883
|
}[] | undefined;
|
|
1884
|
+
lastSeq?: number | undefined;
|
|
1576
1885
|
primaryOutput?: {
|
|
1577
1886
|
path: string;
|
|
1578
|
-
kind: "diagnostic" | "plan" | "summary" | "patch" | "report" | "
|
|
1579
|
-
text?: string | null | undefined;
|
|
1887
|
+
kind: "diagnostic" | "plan" | "summary" | "patch" | "answer" | "report" | "structured_output";
|
|
1580
1888
|
bytes?: number | undefined;
|
|
1889
|
+
text?: string | null | undefined;
|
|
1581
1890
|
} | null | undefined;
|
|
1582
1891
|
timeline?: {
|
|
1583
1892
|
type: string;
|
|
1584
1893
|
title: string;
|
|
1585
1894
|
detail?: string | null | undefined;
|
|
1586
|
-
target?: string | null | undefined;
|
|
1587
|
-
ts?: string | undefined;
|
|
1588
|
-
severity?: "error" | "info" | "warning" | undefined;
|
|
1589
1895
|
harnessId?: string | null | undefined;
|
|
1590
1896
|
attemptId?: string | null | undefined;
|
|
1897
|
+
target?: string | null | undefined;
|
|
1898
|
+
ts?: string | undefined;
|
|
1591
1899
|
errorSummary?: string | null | undefined;
|
|
1900
|
+
severity?: "error" | "info" | "warning" | undefined;
|
|
1592
1901
|
toolName?: string | null | undefined;
|
|
1593
1902
|
rawRef?: string | null | undefined;
|
|
1594
1903
|
}[] | undefined;
|
|
@@ -1598,8 +1907,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1598
1907
|
decidedAt?: string | null | undefined;
|
|
1599
1908
|
} | null | undefined;
|
|
1600
1909
|
workProduct?: {
|
|
1910
|
+
kind: "patch" | "report" | "new_repo";
|
|
1601
1911
|
id: string;
|
|
1602
|
-
kind: "patch" | "new_repo" | "report";
|
|
1603
1912
|
source_task_id: string;
|
|
1604
1913
|
files?: Record<string, string> | undefined;
|
|
1605
1914
|
producer_attempt_id?: string | undefined;
|
|
@@ -1608,26 +1917,26 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1608
1917
|
} | null | undefined;
|
|
1609
1918
|
reviewFindings?: {
|
|
1610
1919
|
id: string;
|
|
1611
|
-
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1612
1920
|
category: "correctness" | "regression" | "security" | "performance" | "maintainability" | "test_gap" | "spec_gap" | "deploy" | "architecture" | "ux";
|
|
1921
|
+
severity: "BLOCK" | "FIX_FIRST" | "WARN" | "NIT" | "OUT_OF_SCOPE" | "INSUFFICIENT_EVIDENCE" | "NEEDS_HUMAN";
|
|
1613
1922
|
claim: string;
|
|
1614
1923
|
reviewer: {
|
|
1615
1924
|
harness_id: string;
|
|
1616
1925
|
observed_model?: string | null | undefined;
|
|
1617
1926
|
requested_model?: string | null | undefined;
|
|
1618
1927
|
requested_effort?: string | null | undefined;
|
|
1619
|
-
route_proof_status?: "
|
|
1928
|
+
route_proof_status?: "unverified" | "verified" | "accepted_model_arg" | "same_model_fallback" | undefined;
|
|
1620
1929
|
};
|
|
1621
|
-
status?: "stale" | "
|
|
1930
|
+
status?: "stale" | "accepted" | "proposed" | "rebutted" | "fixed" | "accepted_risk" | "duplicate" | "out_of_scope" | "insufficient_evidence" | undefined;
|
|
1622
1931
|
linked_acceptance_criteria?: string[] | undefined;
|
|
1623
1932
|
evidence?: {
|
|
1624
|
-
commands?: {
|
|
1625
|
-
command: string;
|
|
1626
|
-
}[] | undefined;
|
|
1627
1933
|
files?: {
|
|
1628
1934
|
path: string;
|
|
1629
1935
|
lines?: string | null | undefined;
|
|
1630
1936
|
}[] | undefined;
|
|
1937
|
+
commands?: {
|
|
1938
|
+
command: string;
|
|
1939
|
+
}[] | undefined;
|
|
1631
1940
|
diff_hunks?: string[] | undefined;
|
|
1632
1941
|
logs?: {
|
|
1633
1942
|
path: string;
|
|
@@ -1640,6 +1949,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1640
1949
|
runId: string;
|
|
1641
1950
|
interactionId: string;
|
|
1642
1951
|
requestedAt: string;
|
|
1952
|
+
harnessId?: string | null | undefined;
|
|
1953
|
+
attemptId?: string | null | undefined;
|
|
1643
1954
|
questions?: {
|
|
1644
1955
|
id: string;
|
|
1645
1956
|
question: string;
|
|
@@ -1650,18 +1961,16 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
1650
1961
|
header?: string | null | undefined;
|
|
1651
1962
|
multi_select?: boolean | undefined;
|
|
1652
1963
|
}[] | undefined;
|
|
1653
|
-
harnessId?: string | null | undefined;
|
|
1654
|
-
attemptId?: string | null | undefined;
|
|
1655
1964
|
sourceTool?: string | null | undefined;
|
|
1656
1965
|
timeoutAt?: string | null | undefined;
|
|
1657
1966
|
}[] | undefined;
|
|
1658
1967
|
candidates?: {
|
|
1659
1968
|
harnessId: string;
|
|
1660
1969
|
attemptId: string;
|
|
1970
|
+
costUsd?: number | undefined;
|
|
1661
1971
|
label?: string | null | undefined;
|
|
1662
1972
|
winner?: boolean | undefined;
|
|
1663
1973
|
blockers?: number | undefined;
|
|
1664
|
-
costUsd?: number | undefined;
|
|
1665
1974
|
costEstimated?: boolean | undefined;
|
|
1666
1975
|
errored?: boolean | undefined;
|
|
1667
1976
|
gatesPassed?: number | undefined;
|