@claudexor/schema 3.1.2 → 3.3.7-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capabilities.d.ts +157 -129
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +3 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +472 -273
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +25 -1
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +17 -17
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +1 -1
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +475 -475
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/budget.d.ts +59 -59
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +1 -1
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +320 -316
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -19
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +38 -38
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/control-auth-route.d.ts +46 -0
- package/dist/control-auth-route.d.ts.map +1 -0
- package/dist/control-auth-route.js +24 -0
- package/dist/control-auth-route.js.map +1 -0
- package/dist/control-gc.d.ts +15 -15
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +1 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-harness-list.d.ts +896 -0
- package/dist/control-harness-list.d.ts.map +1 -0
- package/dist/control-harness-list.js +13 -0
- package/dist/control-harness-list.js.map +1 -0
- package/dist/control-operation-responses.d.ts +644 -629
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +5 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2229 -1569
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +46 -2
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-failure.d.ts +57 -0
- package/dist/control-run-failure.d.ts.map +1 -0
- package/dist/control-run-failure.js +89 -0
- package/dist/control-run-failure.js.map +1 -0
- package/dist/control-run-retry.d.ts +16 -16
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +1 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control-run-scope.d.ts +19 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +22 -1
- package/dist/control-run-scope.js.map +1 -1
- package/dist/control-secret.d.ts +7 -7
- package/dist/control-secret.d.ts.map +1 -1
- package/dist/control-secret.js +1 -1
- package/dist/control-secret.js.map +1 -1
- package/dist/control-thread-apply.d.ts +65 -65
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-thread-apply.js +1 -1
- package/dist/control-thread-apply.js.map +1 -1
- package/dist/control-trust.d.ts +23 -23
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +1 -1
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1551 -2385
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +29 -107
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3206 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -0
- package/dist/credential-profile-snapshot.js +28 -0
- package/dist/credential-profile-snapshot.js.map +1 -0
- package/dist/credential-profile.d.ts +170 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +24 -7
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +121 -121
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +5 -5
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +1 -1
- package/dist/deep-scan.js.map +1 -1
- package/dist/delegation.d.ts +13 -13
- package/dist/delegation.d.ts.map +1 -1
- package/dist/delegation.js +1 -1
- package/dist/delegation.js.map +1 -1
- package/dist/delivery.d.ts +32 -32
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +1 -1
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +1 -1
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +55 -35
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +20 -1
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +7 -7
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/git-capability.d.ts +23 -0
- package/dist/git-capability.d.ts.map +1 -0
- package/dist/git-capability.js +15 -0
- package/dist/git-capability.js.map +1 -0
- package/dist/harness-confinement.d.ts +64 -0
- package/dist/harness-confinement.d.ts.map +1 -0
- package/dist/harness-confinement.js +64 -0
- package/dist/harness-confinement.js.map +1 -0
- package/dist/harness.d.ts +428 -408
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +15 -26
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/operation.d.ts +113 -113
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +1 -1
- package/dist/output-schema-dialect.d.ts.map +1 -1
- package/dist/output-schema-dialect.js +1 -1
- package/dist/output-schema-dialect.js.map +1 -1
- package/dist/output-schema.d.ts +2 -2
- package/dist/output-schema.js +2 -2
- package/dist/plan.d.ts +29 -29
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +2 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +1 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +6 -6
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +1 -1
- package/dist/problem.js.map +1 -1
- package/dist/project.d.ts +87 -25
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +21 -1
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +51 -51
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +6 -1
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +16 -16
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +1 -1
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +242 -242
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +1 -1
- package/dist/readiness.js.map +1 -1
- package/dist/recovery.d.ts +106 -106
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +1 -1
- package/dist/recovery.js.map +1 -1
- package/dist/request-requirements.d.ts +9 -9
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +1 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/review.d.ts +29 -29
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +1 -1
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +11 -11
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +1 -1
- package/dist/route.js.map +1 -1
- package/dist/run-applicability.d.ts +764 -0
- package/dist/run-applicability.d.ts.map +1 -0
- package/dist/run-applicability.js +56 -0
- package/dist/run-applicability.js.map +1 -0
- package/dist/run-facts.d.ts +628 -0
- package/dist/run-facts.d.ts.map +1 -0
- package/dist/run-facts.js +429 -0
- package/dist/run-facts.js.map +1 -0
- package/dist/run-strategy.d.ts +40 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +68 -1
- package/dist/run-strategy.js.map +1 -1
- package/dist/setup-device-code-envelope.d.ts +67 -0
- package/dist/setup-device-code-envelope.d.ts.map +1 -0
- package/dist/setup-device-code-envelope.js +25 -0
- package/dist/setup-device-code-envelope.js.map +1 -0
- package/dist/setup-login-protocol.d.ts +6 -0
- package/dist/setup-login-protocol.d.ts.map +1 -0
- package/dist/setup-login-protocol.js +12 -0
- package/dist/setup-login-protocol.js.map +1 -0
- package/dist/setup-transport.d.ts +12 -0
- package/dist/setup-transport.d.ts.map +1 -0
- package/dist/setup-transport.js +22 -0
- package/dist/setup-transport.js.map +1 -0
- package/dist/setup.d.ts +12572 -3749
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +34 -38
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +7 -5
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +11 -6
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +10 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +303 -303
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1157 -633
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +133 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +21 -2
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +7 -7
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +1 -1
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +28 -28
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +3 -3
- package/dist/work-report.js.map +1 -1
- package/dist/workproduct.d.ts +6 -9
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +1 -2
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +13 -13
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +41 -0
- package/generated/ControlCredentialProfileCreateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1343 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +20 -3
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1322 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +41 -1
- package/generated/ControlQuotaResponse.schema.json +2 -1
- package/generated/ControlRunAgainDraft.schema.json +12 -2
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunDetail.schema.json +494 -69
- package/generated/ControlRunListResponse.schema.json +30 -4
- package/generated/ControlRunStartRequest.schema.json +12 -2
- package/generated/ControlRunSummary.schema.json +30 -4
- package/generated/ControlSettingsSnapshot.schema.json +12 -3
- package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
- package/generated/ControlSetupJob.schema.json +9 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
- package/generated/ControlSetupJobEvent.schema.json +858 -758
- package/generated/ControlSetupJobListResponse.schema.json +9 -0
- package/generated/ControlSetupJobSnapshot.schema.json +811 -736
- package/generated/ControlThreadCreateRequest.schema.json +5 -0
- package/generated/ControlThreadDetail.schema.json +31 -1
- package/generated/ControlThreadTurnRequest.schema.json +5 -24
- package/generated/CredentialProfileStatus.schema.json +10 -1
- package/generated/DecisionRecord.schema.json +2 -1
- package/generated/GitCapability.schema.json +46 -0
- package/generated/GlobalConfig.schema.json +13 -4
- package/generated/HarnessEvent.schema.json +2 -1
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +182 -1
- package/generated/McpRunToolResult.schema.json +182 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunFailure.schema.json +19 -2
- package/generated/RunTelemetry.schema.json +492 -2
- package/generated/ThreadTurn.schema.json +29 -0
- package/generated/WorkProduct.schema.json +0 -4
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
import { namespacedSecretRefBase } from "@claudexor/util";
|
|
3
3
|
import { Id, IsoTimestamp } from "./primitives.js";
|
|
4
4
|
import { AuthAvailability, AuthVerification } from "./auth.js";
|
|
@@ -86,10 +86,21 @@ export const CredentialProfileStatus = z
|
|
|
86
86
|
harness_id: Id,
|
|
87
87
|
availability: AuthAvailability,
|
|
88
88
|
verification: AuthVerification,
|
|
89
|
+
/** WHAT the `verification` verdict is worth. `local_store` means only that
|
|
90
|
+
* this profile's own credential material is present and well-formed where
|
|
91
|
+
* it should be — it cannot tell a live token from a revoked one.
|
|
92
|
+
* `vendor` means the vendor itself answered a request made with THIS
|
|
93
|
+
* profile's credential. A router that needs "configured AND healthy" must
|
|
94
|
+
* read this alongside `verification`; `passed` + `local_store` promises
|
|
95
|
+
* strictly less than it sounds. */
|
|
96
|
+
verification_source: z
|
|
97
|
+
.enum(["local_store", "vendor"])
|
|
98
|
+
.default("local_store")
|
|
99
|
+
.describe("How the verification verdict was reached: local_store = the profile's credential material is present locally (says nothing about the token being live); vendor = the vendor answered a request made with this profile's own credential."),
|
|
89
100
|
detail: z.string().optional().describe("Redacted human-readable probe evidence."),
|
|
90
101
|
last_verified_at: IsoTimestamp.nullable()
|
|
91
102
|
.default(null)
|
|
92
|
-
.describe("When
|
|
103
|
+
.describe("When the verification verdict was established, by the method named in verification_source; null = never verified."),
|
|
93
104
|
})
|
|
94
105
|
.strict()
|
|
95
106
|
.describe("Doctor-owned readiness projection for one credential profile; never durable config.");
|
|
@@ -123,8 +134,8 @@ export const AccountIdentity = z
|
|
|
123
134
|
* purely informational, never user-set. Server-computed by the routing owner
|
|
124
135
|
* from enabled profiles + native readiness + quota so no surface re-derives it:
|
|
125
136
|
* `profile` names the enabled credential profile a quota-rotation would land on;
|
|
126
|
-
* `native` is the
|
|
127
|
-
* means an unpinned run has nothing routable (the
|
|
137
|
+
* `native` is the existing unprofiled/default subject (normally the CLI login,
|
|
138
|
+
* or the configured key for an API-only harness); `none` means an unpinned run has nothing routable (the default is disabled and no
|
|
128
139
|
* account is pinned) with a human reason. Explicit control stays a per-run
|
|
129
140
|
* `--profile` pin or a per-thread pin — this field never gates routing.
|
|
130
141
|
*/
|
|
@@ -135,13 +146,19 @@ export const ControlNextUpIdentity = z
|
|
|
135
146
|
.strict()
|
|
136
147
|
.describe("An enabled credential profile is who an unpinned run routes to next."),
|
|
137
148
|
z
|
|
138
|
-
.object({
|
|
149
|
+
.object({
|
|
150
|
+
kind: z.literal("native"),
|
|
151
|
+
route: z
|
|
152
|
+
.enum(["local_session", "api_key"])
|
|
153
|
+
.optional()
|
|
154
|
+
.describe("Effective route of the unprofiled/default subject; omitted by older daemons."),
|
|
155
|
+
})
|
|
139
156
|
.strict()
|
|
140
|
-
.describe("The
|
|
157
|
+
.describe("The unprofiled/default credential is the subject of an unpinned run."),
|
|
141
158
|
z
|
|
142
159
|
.object({ kind: z.literal("none"), reason: z.string() })
|
|
143
160
|
.strict()
|
|
144
|
-
.describe("An unpinned run has nothing routable (the
|
|
161
|
+
.describe("An unpinned run has nothing routable (the default credential is disabled and no account is pinned)."),
|
|
145
162
|
])
|
|
146
163
|
.describe("Server-computed identity an unpinned run of this harness would route to next.");
|
|
147
164
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-profile.js","sourceRoot":"","sources":["../src/credential-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"credential-profile.js","sourceRoot":"","sources":["../src/credential-prof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AM,CAAC,CAAC;SACtD,QAAQ,CAAC,oEAAoE,CAAC;IACjF,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;CAC7F,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,2CAA2C,CAAC,CAAC;AAKzD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC;KACpD,MAAM,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;KACvE,MAAM,EAAE;KACR,QAAQ,CAAC,sEAAsE,CAAC,CAAC"}
|
package/dist/decision.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export declare const PairwiseComparison: z.ZodObject<{
|
|
3
3
|
candidate_a: z.ZodString;
|
|
4
4
|
candidate_b: z.ZodString;
|
|
@@ -6,25 +6,25 @@ export declare const PairwiseComparison: z.ZodObject<{
|
|
|
6
6
|
winner: z.ZodEnum<["a", "b", "tie"]>;
|
|
7
7
|
reason: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
reason: string;
|
|
10
9
|
winner: "a" | "b" | "tie";
|
|
11
|
-
}, {
|
|
12
10
|
reason: string;
|
|
11
|
+
}, {
|
|
13
12
|
winner: "a" | "b" | "tie";
|
|
13
|
+
reason: string;
|
|
14
14
|
}>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
candidate_a: string;
|
|
17
17
|
candidate_b: string;
|
|
18
18
|
criteria: Record<string, {
|
|
19
|
-
reason: string;
|
|
20
19
|
winner: "a" | "b" | "tie";
|
|
20
|
+
reason: string;
|
|
21
21
|
}>;
|
|
22
22
|
}, {
|
|
23
23
|
candidate_a: string;
|
|
24
24
|
candidate_b: string;
|
|
25
25
|
criteria: Record<string, {
|
|
26
|
-
reason: string;
|
|
27
26
|
winner: "a" | "b" | "tie";
|
|
27
|
+
reason: string;
|
|
28
28
|
}>;
|
|
29
29
|
}>;
|
|
30
30
|
export type PairwiseComparison = z.infer<typeof PairwiseComparison>;
|
|
@@ -40,7 +40,7 @@ export type ReviewState = z.infer<typeof ReviewState>;
|
|
|
40
40
|
/** Typed reason on non-clean terminals (replaces the old reason-as-status
|
|
41
41
|
* values exhausted/not_converged/stuck_no_progress/...). Null on a clean
|
|
42
42
|
* success. */
|
|
43
|
-
export declare const RunReason: z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>;
|
|
43
|
+
export declare const RunReason: z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>;
|
|
44
44
|
export type RunReason = z.infer<typeof RunReason>;
|
|
45
45
|
/** The v3 terminal truth (D8): independent axes instead of one mixed enum.
|
|
46
46
|
* lifecycle says how far the PROCESS got; noChanges/checks/review say what
|
|
@@ -51,7 +51,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
51
51
|
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
52
52
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
53
53
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
54
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
54
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
55
55
|
/**
|
|
56
56
|
* D-16 work_state axis (INV-116): the model-attested work outcome,
|
|
57
57
|
* orthogonal to `lifecycle`. Absent on runs with no work_report transport
|
|
@@ -67,59 +67,59 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
67
67
|
locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
68
68
|
description: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
kind: "
|
|
71
|
-
description: string;
|
|
70
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
72
71
|
locator: string | null;
|
|
73
|
-
}, {
|
|
74
|
-
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
75
72
|
description: string;
|
|
73
|
+
}, {
|
|
74
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
76
75
|
locator?: string | null | undefined;
|
|
76
|
+
description: string;
|
|
77
77
|
}>, "many">>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
80
|
+
source: "absent" | "constrained" | "validated";
|
|
81
81
|
required_inputs?: {
|
|
82
|
-
kind: "
|
|
83
|
-
description: string;
|
|
82
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
84
83
|
locator: string | null;
|
|
84
|
+
description: string;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
88
|
+
source: "absent" | "constrained" | "validated";
|
|
89
89
|
required_inputs?: {
|
|
90
|
-
kind: "
|
|
91
|
-
description: string;
|
|
90
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
92
91
|
locator?: string | null | undefined;
|
|
92
|
+
description: string;
|
|
93
93
|
}[] | undefined;
|
|
94
94
|
}>>;
|
|
95
95
|
}, "strict", z.ZodTypeAny, {
|
|
96
|
-
|
|
97
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
98
|
-
checks: "passed" | "failed" | "not_configured";
|
|
99
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
96
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
100
97
|
noChanges: boolean;
|
|
98
|
+
checks: "failed" | "not_configured" | "passed";
|
|
99
|
+
review: "approved" | "blocked" | "not_run";
|
|
100
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
101
101
|
work_state?: {
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
103
|
+
source: "absent" | "constrained" | "validated";
|
|
104
104
|
required_inputs?: {
|
|
105
|
-
kind: "
|
|
106
|
-
description: string;
|
|
105
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
107
106
|
locator: string | null;
|
|
107
|
+
description: string;
|
|
108
108
|
}[] | undefined;
|
|
109
109
|
} | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
lifecycle: "
|
|
112
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
113
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
114
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
111
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
115
112
|
noChanges?: boolean | undefined;
|
|
113
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
114
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
115
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
116
116
|
work_state?: {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
118
|
+
source: "absent" | "constrained" | "validated";
|
|
119
119
|
required_inputs?: {
|
|
120
|
-
kind: "
|
|
121
|
-
description: string;
|
|
120
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
122
121
|
locator?: string | null | undefined;
|
|
122
|
+
description: string;
|
|
123
123
|
}[] | undefined;
|
|
124
124
|
} | undefined;
|
|
125
125
|
}>;
|
|
@@ -145,37 +145,37 @@ export declare const FinalVerifyRecord: z.ZodObject<{
|
|
|
145
145
|
id: z.ZodString;
|
|
146
146
|
status: z.ZodString;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
status: string;
|
|
149
148
|
id: string;
|
|
150
|
-
}, {
|
|
151
149
|
status: string;
|
|
150
|
+
}, {
|
|
152
151
|
id: string;
|
|
152
|
+
status: string;
|
|
153
153
|
}>, "many">>;
|
|
154
154
|
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
155
155
|
/** Typed reason when attempted=false (e.g. no_patch, no_base_sha) or a failure detail. */
|
|
156
156
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
reason: string | null;
|
|
159
|
-
duration_ms: number | null;
|
|
160
|
-
base_sha: string | null;
|
|
161
158
|
attempted: boolean;
|
|
159
|
+
base_sha: string | null;
|
|
162
160
|
applied_cleanly: boolean | null;
|
|
163
161
|
gates_passed: boolean | null;
|
|
164
162
|
gates: {
|
|
165
|
-
status: string;
|
|
166
163
|
id: string;
|
|
164
|
+
status: string;
|
|
167
165
|
}[];
|
|
166
|
+
duration_ms: number | null;
|
|
167
|
+
reason: string | null;
|
|
168
168
|
}, {
|
|
169
169
|
attempted: boolean;
|
|
170
|
-
reason?: string | null | undefined;
|
|
171
|
-
duration_ms?: number | null | undefined;
|
|
172
170
|
base_sha?: string | null | undefined;
|
|
173
171
|
applied_cleanly?: boolean | null | undefined;
|
|
174
172
|
gates_passed?: boolean | null | undefined;
|
|
175
173
|
gates?: {
|
|
176
|
-
status: string;
|
|
177
174
|
id: string;
|
|
175
|
+
status: string;
|
|
178
176
|
}[] | undefined;
|
|
177
|
+
duration_ms?: number | null | undefined;
|
|
178
|
+
reason?: string | null | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
export type FinalVerifyRecord = z.infer<typeof FinalVerifyRecord>;
|
|
181
181
|
export declare const DecisionRecord: z.ZodObject<{
|
|
@@ -188,7 +188,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
188
188
|
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
189
189
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
190
190
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
191
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
191
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
192
192
|
/**
|
|
193
193
|
* D-16 work_state axis (INV-116): the model-attested work outcome,
|
|
194
194
|
* orthogonal to `lifecycle`. Absent on runs with no work_report transport
|
|
@@ -204,59 +204,59 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
204
204
|
locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
205
205
|
description: z.ZodString;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
-
kind: "
|
|
208
|
-
description: string;
|
|
207
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
209
208
|
locator: string | null;
|
|
210
|
-
}, {
|
|
211
|
-
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
212
209
|
description: string;
|
|
210
|
+
}, {
|
|
211
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
213
212
|
locator?: string | null | undefined;
|
|
213
|
+
description: string;
|
|
214
214
|
}>, "many">>;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
217
|
+
source: "absent" | "constrained" | "validated";
|
|
218
218
|
required_inputs?: {
|
|
219
|
-
kind: "
|
|
220
|
-
description: string;
|
|
219
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
221
220
|
locator: string | null;
|
|
221
|
+
description: string;
|
|
222
222
|
}[] | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
225
|
+
source: "absent" | "constrained" | "validated";
|
|
226
226
|
required_inputs?: {
|
|
227
|
-
kind: "
|
|
228
|
-
description: string;
|
|
227
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
229
228
|
locator?: string | null | undefined;
|
|
229
|
+
description: string;
|
|
230
230
|
}[] | undefined;
|
|
231
231
|
}>>;
|
|
232
232
|
}, "strict", z.ZodTypeAny, {
|
|
233
|
-
|
|
234
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
235
|
-
checks: "passed" | "failed" | "not_configured";
|
|
236
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
233
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
237
234
|
noChanges: boolean;
|
|
235
|
+
checks: "failed" | "not_configured" | "passed";
|
|
236
|
+
review: "approved" | "blocked" | "not_run";
|
|
237
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
238
238
|
work_state?: {
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
240
|
+
source: "absent" | "constrained" | "validated";
|
|
241
241
|
required_inputs?: {
|
|
242
|
-
kind: "
|
|
243
|
-
description: string;
|
|
242
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
244
243
|
locator: string | null;
|
|
244
|
+
description: string;
|
|
245
245
|
}[] | undefined;
|
|
246
246
|
} | undefined;
|
|
247
247
|
}, {
|
|
248
|
-
lifecycle: "
|
|
249
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
250
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
251
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
248
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
252
249
|
noChanges?: boolean | undefined;
|
|
250
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
251
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
252
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
253
253
|
work_state?: {
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
255
|
+
source: "absent" | "constrained" | "validated";
|
|
256
256
|
required_inputs?: {
|
|
257
|
-
kind: "
|
|
258
|
-
description: string;
|
|
257
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
259
258
|
locator?: string | null | undefined;
|
|
259
|
+
description: string;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
} | undefined;
|
|
262
262
|
}>;
|
|
@@ -269,12 +269,12 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
269
269
|
label: z.ZodString;
|
|
270
270
|
axes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
label: string;
|
|
273
272
|
attempt_id: string;
|
|
273
|
+
label: string;
|
|
274
274
|
axes: Record<string, string>;
|
|
275
275
|
}, {
|
|
276
|
-
label: string;
|
|
277
276
|
attempt_id: string;
|
|
277
|
+
label: string;
|
|
278
278
|
axes: Record<string, string>;
|
|
279
279
|
}>, "many">>;
|
|
280
280
|
decisive_axis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -300,17 +300,17 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
300
300
|
valuation_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
301
301
|
valuation_knowledge: z.ZodOptional<z.ZodEnum<["exact", "estimated", "unknown"]>>;
|
|
302
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
estimated: boolean;
|
|
304
303
|
spend_usd: number | null;
|
|
304
|
+
estimated: boolean;
|
|
305
305
|
cash_usd: number | null;
|
|
306
306
|
valuation_usd: number | null;
|
|
307
|
-
valuation_knowledge?: "
|
|
307
|
+
valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
308
308
|
}, {
|
|
309
|
-
estimated?: boolean | undefined;
|
|
310
309
|
spend_usd?: number | null | undefined;
|
|
310
|
+
estimated?: boolean | undefined;
|
|
311
311
|
cash_usd?: number | null | undefined;
|
|
312
312
|
valuation_usd?: number | null | undefined;
|
|
313
|
-
valuation_knowledge?: "
|
|
313
|
+
valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
314
314
|
}>>;
|
|
315
315
|
apply_recommendation: z.ZodDefault<z.ZodEnum<["apply", "inspect", "continue", "human_review"]>>;
|
|
316
316
|
verification_basis: z.ZodDefault<z.ZodEnum<["none", "cross_family_review", "both"]>>;
|
|
@@ -324,53 +324,53 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
324
324
|
id: z.ZodString;
|
|
325
325
|
status: z.ZodString;
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
status: string;
|
|
328
327
|
id: string;
|
|
329
|
-
}, {
|
|
330
328
|
status: string;
|
|
329
|
+
}, {
|
|
331
330
|
id: string;
|
|
331
|
+
status: string;
|
|
332
332
|
}>, "many">>;
|
|
333
333
|
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
334
334
|
/** Typed reason when attempted=false (e.g. no_patch, no_base_sha) or a failure detail. */
|
|
335
335
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
reason: string | null;
|
|
338
|
-
duration_ms: number | null;
|
|
339
|
-
base_sha: string | null;
|
|
340
337
|
attempted: boolean;
|
|
338
|
+
base_sha: string | null;
|
|
341
339
|
applied_cleanly: boolean | null;
|
|
342
340
|
gates_passed: boolean | null;
|
|
343
341
|
gates: {
|
|
344
|
-
status: string;
|
|
345
342
|
id: string;
|
|
343
|
+
status: string;
|
|
346
344
|
}[];
|
|
345
|
+
duration_ms: number | null;
|
|
346
|
+
reason: string | null;
|
|
347
347
|
}, {
|
|
348
348
|
attempted: boolean;
|
|
349
|
-
reason?: string | null | undefined;
|
|
350
|
-
duration_ms?: number | null | undefined;
|
|
351
349
|
base_sha?: string | null | undefined;
|
|
352
350
|
applied_cleanly?: boolean | null | undefined;
|
|
353
351
|
gates_passed?: boolean | null | undefined;
|
|
354
352
|
gates?: {
|
|
355
|
-
status: string;
|
|
356
353
|
id: string;
|
|
354
|
+
status: string;
|
|
357
355
|
}[] | undefined;
|
|
356
|
+
duration_ms?: number | null | undefined;
|
|
357
|
+
reason?: string | null | undefined;
|
|
358
358
|
}>>>;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
360
|
winner: string | null;
|
|
361
361
|
facts: {
|
|
362
|
-
|
|
363
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
364
|
-
checks: "passed" | "failed" | "not_configured";
|
|
365
|
-
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
362
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
366
363
|
noChanges: boolean;
|
|
364
|
+
checks: "failed" | "not_configured" | "passed";
|
|
365
|
+
review: "approved" | "blocked" | "not_run";
|
|
366
|
+
reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
|
|
367
367
|
work_state?: {
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
369
|
+
source: "absent" | "constrained" | "validated";
|
|
370
370
|
required_inputs?: {
|
|
371
|
-
kind: "
|
|
372
|
-
description: string;
|
|
371
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
373
372
|
locator: string | null;
|
|
373
|
+
description: string;
|
|
374
374
|
}[] | undefined;
|
|
375
375
|
} | undefined;
|
|
376
376
|
};
|
|
@@ -379,8 +379,8 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
379
379
|
ranking_policy_version: number;
|
|
380
380
|
score_axes: string[];
|
|
381
381
|
ranking_scorecard: {
|
|
382
|
-
label: string;
|
|
383
382
|
attempt_id: string;
|
|
383
|
+
label: string;
|
|
384
384
|
axes: Record<string, string>;
|
|
385
385
|
}[];
|
|
386
386
|
decisive_axis: {
|
|
@@ -392,41 +392,41 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
392
392
|
final_checks: string[];
|
|
393
393
|
evidence_facts: string[];
|
|
394
394
|
budget_summary: {
|
|
395
|
-
estimated: boolean;
|
|
396
395
|
spend_usd: number | null;
|
|
396
|
+
estimated: boolean;
|
|
397
397
|
cash_usd: number | null;
|
|
398
398
|
valuation_usd: number | null;
|
|
399
|
-
valuation_knowledge?: "
|
|
399
|
+
valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
400
400
|
};
|
|
401
|
-
apply_recommendation: "apply" | "
|
|
402
|
-
verification_basis: "
|
|
401
|
+
apply_recommendation: "apply" | "continue" | "human_review" | "inspect";
|
|
402
|
+
verification_basis: "both" | "cross_family_review" | "none";
|
|
403
403
|
final_verify: {
|
|
404
|
-
reason: string | null;
|
|
405
|
-
duration_ms: number | null;
|
|
406
|
-
base_sha: string | null;
|
|
407
404
|
attempted: boolean;
|
|
405
|
+
base_sha: string | null;
|
|
408
406
|
applied_cleanly: boolean | null;
|
|
409
407
|
gates_passed: boolean | null;
|
|
410
408
|
gates: {
|
|
411
|
-
status: string;
|
|
412
409
|
id: string;
|
|
410
|
+
status: string;
|
|
413
411
|
}[];
|
|
412
|
+
duration_ms: number | null;
|
|
413
|
+
reason: string | null;
|
|
414
414
|
} | null;
|
|
415
415
|
}, {
|
|
416
416
|
winner: string | null;
|
|
417
417
|
facts: {
|
|
418
|
-
lifecycle: "
|
|
419
|
-
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
420
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
421
|
-
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
418
|
+
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
422
419
|
noChanges?: boolean | undefined;
|
|
420
|
+
checks?: "failed" | "not_configured" | "passed" | undefined;
|
|
421
|
+
review?: "approved" | "blocked" | "not_run" | undefined;
|
|
422
|
+
reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "input_required" | "no_changes" | "not_converged" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
|
|
423
423
|
work_state?: {
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
425
|
+
source: "absent" | "constrained" | "validated";
|
|
426
426
|
required_inputs?: {
|
|
427
|
-
kind: "
|
|
428
|
-
description: string;
|
|
427
|
+
kind: "context" | "credential" | "decision" | "external_dependency" | "file" | "permission";
|
|
429
428
|
locator?: string | null | undefined;
|
|
429
|
+
description: string;
|
|
430
430
|
}[] | undefined;
|
|
431
431
|
} | undefined;
|
|
432
432
|
};
|
|
@@ -435,8 +435,8 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
435
435
|
ranking_policy_version?: number | undefined;
|
|
436
436
|
score_axes?: string[] | undefined;
|
|
437
437
|
ranking_scorecard?: {
|
|
438
|
-
label: string;
|
|
439
438
|
attempt_id: string;
|
|
439
|
+
label: string;
|
|
440
440
|
axes: Record<string, string>;
|
|
441
441
|
}[] | undefined;
|
|
442
442
|
decisive_axis?: {
|
|
@@ -448,25 +448,25 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
448
448
|
final_checks?: string[] | undefined;
|
|
449
449
|
evidence_facts?: string[] | undefined;
|
|
450
450
|
budget_summary?: {
|
|
451
|
-
estimated?: boolean | undefined;
|
|
452
451
|
spend_usd?: number | null | undefined;
|
|
452
|
+
estimated?: boolean | undefined;
|
|
453
453
|
cash_usd?: number | null | undefined;
|
|
454
454
|
valuation_usd?: number | null | undefined;
|
|
455
|
-
valuation_knowledge?: "
|
|
455
|
+
valuation_knowledge?: "estimated" | "exact" | "unknown" | undefined;
|
|
456
456
|
} | undefined;
|
|
457
|
-
apply_recommendation?: "apply" | "
|
|
458
|
-
verification_basis?: "
|
|
457
|
+
apply_recommendation?: "apply" | "continue" | "human_review" | "inspect" | undefined;
|
|
458
|
+
verification_basis?: "both" | "cross_family_review" | "none" | undefined;
|
|
459
459
|
final_verify?: {
|
|
460
460
|
attempted: boolean;
|
|
461
|
-
reason?: string | null | undefined;
|
|
462
|
-
duration_ms?: number | null | undefined;
|
|
463
461
|
base_sha?: string | null | undefined;
|
|
464
462
|
applied_cleanly?: boolean | null | undefined;
|
|
465
463
|
gates_passed?: boolean | null | undefined;
|
|
466
464
|
gates?: {
|
|
467
|
-
status: string;
|
|
468
465
|
id: string;
|
|
466
|
+
status: string;
|
|
469
467
|
}[] | undefined;
|
|
468
|
+
duration_ms?: number | null | undefined;
|
|
469
|
+
reason?: string | null | undefined;
|
|
470
470
|
} | null | undefined;
|
|
471
471
|
}>;
|
|
472
472
|
export type DecisionRecord = z.infer<typeof DecisionRecord>;
|
package/dist/decision.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../src/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../src/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAciD,CA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;QAjGtD;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwCH,8EAA8E;;;;;;;;;;;;;;;QAgC9E,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwI3F,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/decision.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
import { Id } from "./primitives.js";
|
|
3
3
|
import { WorkState } from "./work-report.js";
|
|
4
4
|
export const PairwiseComparison = z
|
|
@@ -41,6 +41,7 @@ export const RunReason = z
|
|
|
41
41
|
"wall_clock_exceeded",
|
|
42
42
|
"user_cancelled",
|
|
43
43
|
"crash_interrupted",
|
|
44
|
+
"workspace_unavailable",
|
|
44
45
|
// D-16 work_state / context reasons.
|
|
45
46
|
"input_required",
|
|
46
47
|
"work_incomplete",
|