openpond-sdk 0.5.6 → 0.5.7
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/TRAINING_PROTOCOL.md +19 -0
- package/dist/chunk-ARUJ3FJT.js +447 -0
- package/dist/chunk-ARUJ3FJT.js.map +7 -0
- package/dist/chunk-QFT2MCIC.js +1526 -0
- package/dist/chunk-QFT2MCIC.js.map +7 -0
- package/dist/{chunk-NF63YMOL.js → chunk-QUOW6URQ.js} +7 -9
- package/dist/{chunk-NF63YMOL.js.map → chunk-QUOW6URQ.js.map} +3 -3
- package/dist/{chunk-25TBEGXB.js → chunk-TKJU3BOW.js} +2 -2
- package/dist/chunk-UJZ3XEE3.js +902 -0
- package/dist/chunk-UJZ3XEE3.js.map +7 -0
- package/dist/{chunk-EV4PKJWN.js → chunk-UKVK7MRJ.js} +320 -208
- package/dist/chunk-UKVK7MRJ.js.map +7 -0
- package/dist/index.js +3 -3
- package/dist/learning.js +3 -3
- package/dist/model-taskset-runs.js +2 -2
- package/dist/refiner.js +1 -1
- package/dist/taskset-drafts.js +35 -33
- package/dist/taskset-drafts.js.map +1 -1
- package/dist/taskset-packages.js +51 -465
- package/dist/taskset-packages.js.map +4 -4
- package/dist/training-bundle.js +459 -0
- package/dist/training-bundle.js.map +7 -0
- package/dist/types/packages/sdk/src/taskset-authored-contracts.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-authored-files.d.ts +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-dataset-artifacts.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-package-projection.d.ts +1 -1
- package/dist/types/packages/sdk/src/training-bundle-contracts.d.ts +287 -0
- package/dist/types/packages/sdk/src/training-bundle-contracts.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/training-bundle.d.ts +48 -0
- package/dist/types/packages/sdk/src/training-bundle.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts +719 -0
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts.map +1 -0
- package/package.json +6 -2
- package/dist/chunk-EV4PKJWN.js.map +0 -7
- package/dist/chunk-PXB6YY36.js +0 -2395
- package/dist/chunk-PXB6YY36.js.map +0 -7
- /package/dist/{chunk-25TBEGXB.js.map → chunk-TKJU3BOW.js.map} +0 -0
|
@@ -9,10 +9,18 @@ import {
|
|
|
9
9
|
ReleaseHashSchema,
|
|
10
10
|
ReleaseIdSchema,
|
|
11
11
|
ReleaseTimestampSchema,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
assertContentHash,
|
|
13
|
+
contentHash,
|
|
14
|
+
sha256
|
|
15
|
+
} from "./chunk-QUOW6URQ.js";
|
|
14
16
|
|
|
15
|
-
//
|
|
17
|
+
// ../harness/dist/source-package.js
|
|
18
|
+
import { z as z3 } from "zod";
|
|
19
|
+
|
|
20
|
+
// ../harness/dist/harness.js
|
|
21
|
+
import { z as z2 } from "zod";
|
|
22
|
+
|
|
23
|
+
// ../harness/dist/tools.js
|
|
16
24
|
import { z } from "zod";
|
|
17
25
|
var ToolDeclarationSchema = z.object({
|
|
18
26
|
name: z.string().trim().min(1).max(64).regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/),
|
|
@@ -29,41 +37,186 @@ var CapabilityRequirementSchema = z.object({
|
|
|
29
37
|
portability: z.enum(["portable", "host_adapter", "local_only", "hosted_only"])
|
|
30
38
|
}).strict();
|
|
31
39
|
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
artifactHash: ReleaseHashSchema.nullable().default(null),
|
|
39
|
-
tokenizerRevision: z2.string().trim().min(1).max(500).nullable().default(null),
|
|
40
|
-
chatTemplateHash: ReleaseHashSchema.nullable().default(null)
|
|
40
|
+
// ../harness/dist/harness.js
|
|
41
|
+
var PortabilityReportSchema = z2.object({
|
|
42
|
+
portable: z2.boolean(),
|
|
43
|
+
blockers: z2.array(z2.string().trim().min(1).max(2e3)).max(1e3),
|
|
44
|
+
localOnlyAssetRefs: z2.array(ReleaseIdSchema).max(1e4),
|
|
45
|
+
hostPrivateAssetRefs: z2.array(ReleaseIdSchema).max(1e4)
|
|
41
46
|
}).strict();
|
|
42
|
-
var
|
|
43
|
-
"openpond",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
var AgentSnapshotContentSchema = z2.object({
|
|
48
|
+
schemaVersion: z2.literal("openpond.agentSnapshot.v2"),
|
|
49
|
+
id: ReleaseIdSchema,
|
|
50
|
+
sourceRelease: ImmutableReleaseRefSchema.nullable(),
|
|
51
|
+
instructions: z2.array(ImmutableAssetRefSchema).max(1e4),
|
|
52
|
+
skills: z2.array(ImmutableAssetRefSchema).max(1e4),
|
|
53
|
+
agents: z2.array(ImmutableAssetRefSchema).max(1e4),
|
|
54
|
+
toolDeclarations: z2.array(ToolDeclarationSchema).max(200),
|
|
55
|
+
capabilityRequirements: z2.array(CapabilityRequirementSchema).max(200),
|
|
56
|
+
dependencyLock: ImmutableAssetRefSchema,
|
|
57
|
+
portability: PortabilityReportSchema,
|
|
58
|
+
metadata: MetadataSchema
|
|
59
|
+
}).strict();
|
|
60
|
+
var AgentSnapshotSchema = AgentSnapshotContentSchema.extend({ contentHash: ReleaseHashSchema }).strict();
|
|
61
|
+
var LifecycleContractSchema = z2.object({
|
|
62
|
+
create: z2.literal(true),
|
|
63
|
+
reset: z2.literal(true),
|
|
64
|
+
step: z2.literal(true),
|
|
65
|
+
collect: z2.literal(true),
|
|
66
|
+
destroy: z2.literal(true),
|
|
67
|
+
resetScope: z2.enum(["task", "attempt"])
|
|
68
|
+
}).strict();
|
|
69
|
+
var GraderInterfaceContractSchema = z2.object({
|
|
70
|
+
visibleEvidence: z2.array(ReleaseIdSchema).max(1e3),
|
|
71
|
+
privilegedEvidence: z2.array(ReleaseIdSchema).max(1e3),
|
|
72
|
+
privateVerifierIsolation: z2.boolean()
|
|
73
|
+
}).strict();
|
|
74
|
+
var HarnessReleaseContentSchema = z2.object({
|
|
75
|
+
schemaVersion: z2.literal("openpond.harnessRelease.v2"),
|
|
76
|
+
id: ReleaseIdSchema,
|
|
77
|
+
agentSnapshot: ImmutableReleaseRefSchema,
|
|
78
|
+
program: ImmutableAssetRefSchema,
|
|
79
|
+
tools: z2.array(ToolDeclarationSchema).max(200),
|
|
80
|
+
lifecycle: LifecycleContractSchema,
|
|
81
|
+
graderInterface: GraderInterfaceContractSchema,
|
|
82
|
+
files: z2.array(ImmutableAssetRefSchema).max(1e5),
|
|
83
|
+
metadata: MetadataSchema
|
|
84
|
+
}).strict();
|
|
85
|
+
var HarnessReleaseSchema = HarnessReleaseContentSchema.extend({ contentHash: ReleaseHashSchema }).strict();
|
|
86
|
+
var ModelActionSchema = z2.object({
|
|
87
|
+
id: ReleaseIdSchema,
|
|
88
|
+
turn: z2.number().int().nonnegative(),
|
|
89
|
+
kind: z2.enum(["message", "tool_call", "terminal"]),
|
|
90
|
+
name: ReleaseIdSchema.nullable(),
|
|
91
|
+
arguments: z2.record(z2.string(), z2.unknown()),
|
|
92
|
+
content: z2.string().max(1e6).nullable()
|
|
93
|
+
}).strict();
|
|
94
|
+
var ToolObservationSchema = z2.object({
|
|
95
|
+
actionId: ReleaseIdSchema,
|
|
96
|
+
turn: z2.number().int().nonnegative(),
|
|
97
|
+
terminal: z2.boolean(),
|
|
98
|
+
output: z2.record(z2.string(), z2.unknown()),
|
|
99
|
+
artifactRefs: z2.array(ImmutableArtifactRefSchema).max(1e5)
|
|
100
|
+
}).strict();
|
|
101
|
+
var HarnessLifecycleEventSchema = z2.object({
|
|
102
|
+
sequence: z2.number().int().nonnegative(),
|
|
103
|
+
type: z2.enum(["created", "reset", "action", "observation", "terminal", "failure", "collected", "destroyed"]),
|
|
104
|
+
payloadHash: ReleaseHashSchema,
|
|
105
|
+
metadata: MetadataSchema
|
|
106
|
+
}).strict();
|
|
107
|
+
var HarnessTraceSchema = z2.object({
|
|
108
|
+
schemaVersion: z2.literal("openpond.harnessTrace.v1"),
|
|
109
|
+
manifest: ImmutableReleaseRefSchema,
|
|
110
|
+
taskId: ReleaseIdSchema,
|
|
111
|
+
seed: z2.string().trim().min(1).max(500),
|
|
112
|
+
events: z2.array(HarnessLifecycleEventSchema).max(1e6),
|
|
113
|
+
actions: z2.array(ModelActionSchema).max(1e5),
|
|
114
|
+
observations: z2.array(ToolObservationSchema).max(1e5),
|
|
115
|
+
terminal: z2.boolean(),
|
|
116
|
+
failureClass: FailureClassSchema.nullable(),
|
|
117
|
+
output: z2.record(z2.string(), z2.unknown()),
|
|
118
|
+
contentHash: ReleaseHashSchema
|
|
119
|
+
}).strict();
|
|
120
|
+
|
|
121
|
+
// ../harness/dist/source-package.js
|
|
122
|
+
var MAX_HARNESS_SOURCE_PACKAGE_BYTES = 25 * 1024 * 1024;
|
|
123
|
+
var HarnessSourceFileSchema = z3.object({
|
|
124
|
+
path: ImmutableAssetRefSchema.shape.path,
|
|
125
|
+
base64: z3.string().max(Math.ceil(MAX_HARNESS_SOURCE_PACKAGE_BYTES / 3) * 4)
|
|
126
|
+
}).strict();
|
|
127
|
+
var HarnessSourcePackageContentSchema = z3.object({
|
|
128
|
+
schemaVersion: z3.literal("openpond.harnessSourcePackage.v1"),
|
|
129
|
+
agentSnapshot: AgentSnapshotSchema,
|
|
130
|
+
harnessRelease: HarnessReleaseSchema,
|
|
131
|
+
files: z3.array(HarnessSourceFileSchema).max(1e4)
|
|
132
|
+
}).strict();
|
|
133
|
+
var HarnessSourcePackageSchema = HarnessSourcePackageContentSchema.extend({
|
|
134
|
+
contentHash: ReleaseHashSchema
|
|
135
|
+
}).strict();
|
|
136
|
+
var HarnessSourceSelectionSchema = z3.object({
|
|
137
|
+
schemaVersion: z3.literal("openpond.harnessSourceSelection.v1"),
|
|
138
|
+
mode: z3.enum(["taskset_owned", "selected_release"]),
|
|
139
|
+
harnessRelease: ImmutableReleaseRefSchema,
|
|
140
|
+
sourcePackageHash: ReleaseHashSchema.nullable()
|
|
141
|
+
}).strict().superRefine((selection, context) => {
|
|
142
|
+
if (selection.mode === "selected_release" !== (selection.sourcePackageHash !== null)) {
|
|
143
|
+
context.addIssue({ code: "custom", path: ["sourcePackageHash"], message: "Only a selected release binds a source package." });
|
|
144
|
+
}
|
|
61
145
|
});
|
|
146
|
+
function validateHarnessSourcePackage(value, expected) {
|
|
147
|
+
const source = HarnessSourcePackageSchema.parse(value);
|
|
148
|
+
assertContentHash(source, "Harness source package");
|
|
149
|
+
assertContentHash(source.agentSnapshot, "Harness source Agent snapshot");
|
|
150
|
+
assertContentHash(source.harnessRelease, "Harness source release");
|
|
151
|
+
const { agentSnapshot, harnessRelease } = source;
|
|
152
|
+
if (expected && (expected.id !== harnessRelease.id || expected.contentHash !== harnessRelease.contentHash)) {
|
|
153
|
+
throw new Error("Harness source package differs from the selected release.");
|
|
154
|
+
}
|
|
155
|
+
if (harnessRelease.agentSnapshot.id !== agentSnapshot.id || harnessRelease.agentSnapshot.contentHash !== agentSnapshot.contentHash) {
|
|
156
|
+
throw new Error("Harness source release does not bind its Agent snapshot.");
|
|
157
|
+
}
|
|
158
|
+
const assets = /* @__PURE__ */ new Map();
|
|
159
|
+
const ids = /* @__PURE__ */ new Set();
|
|
160
|
+
for (const asset of harnessRelease.files) {
|
|
161
|
+
if (asset.path.includes("\\") || asset.path.includes(":"))
|
|
162
|
+
throw new Error("Harness source requires portable relative file paths.");
|
|
163
|
+
if (assets.has(asset.path) || ids.has(asset.id))
|
|
164
|
+
throw new Error("Harness source contains duplicate asset paths or identities.");
|
|
165
|
+
assets.set(asset.path, asset);
|
|
166
|
+
ids.add(asset.id);
|
|
167
|
+
}
|
|
168
|
+
for (const asset of [
|
|
169
|
+
harnessRelease.program,
|
|
170
|
+
agentSnapshot.dependencyLock,
|
|
171
|
+
...agentSnapshot.instructions,
|
|
172
|
+
...agentSnapshot.skills,
|
|
173
|
+
...agentSnapshot.agents
|
|
174
|
+
]) {
|
|
175
|
+
if (contentHash(assets.get(asset.path) ?? null) !== contentHash(asset)) {
|
|
176
|
+
throw new Error(`Harness source dependency ${asset.path} is absent or differs from its release inventory.`);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
for (const asset of [...agentSnapshot.instructions, ...agentSnapshot.skills]) {
|
|
180
|
+
if (asset.visibility !== "policy")
|
|
181
|
+
throw new Error(`Harness policy source ${asset.path} is private.`);
|
|
182
|
+
}
|
|
183
|
+
const paths = /* @__PURE__ */ new Set();
|
|
184
|
+
let totalBytes = 0;
|
|
185
|
+
for (const file of source.files) {
|
|
186
|
+
if (paths.has(file.path))
|
|
187
|
+
throw new Error("Harness source package contains duplicate files.");
|
|
188
|
+
paths.add(file.path);
|
|
189
|
+
const asset = assets.get(file.path);
|
|
190
|
+
if (!asset)
|
|
191
|
+
throw new Error(`Harness source file ${file.path} is not declared by its release.`);
|
|
192
|
+
const bytes = decode(file.base64);
|
|
193
|
+
totalBytes += bytes.byteLength;
|
|
194
|
+
if (totalBytes > MAX_HARNESS_SOURCE_PACKAGE_BYTES)
|
|
195
|
+
throw new Error("Harness source package exceeds its byte limit.");
|
|
196
|
+
if (bytes.byteLength !== asset.sizeBytes || sha256(bytes) !== asset.contentHash) {
|
|
197
|
+
throw new Error(`Harness source file ${file.path} differs from its immutable bytes.`);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (paths.size !== assets.size)
|
|
201
|
+
throw new Error("Harness source package is missing released files.");
|
|
202
|
+
return source;
|
|
203
|
+
}
|
|
204
|
+
function decode(base64) {
|
|
205
|
+
let binary;
|
|
206
|
+
try {
|
|
207
|
+
binary = atob(base64);
|
|
208
|
+
} catch {
|
|
209
|
+
throw new Error("Harness source file is not valid base64.");
|
|
210
|
+
}
|
|
211
|
+
if (btoa(binary) !== base64)
|
|
212
|
+
throw new Error("Harness source file is not canonical base64.");
|
|
213
|
+
return Uint8Array.from(binary, (character) => character.charCodeAt(0));
|
|
214
|
+
}
|
|
62
215
|
|
|
63
|
-
//
|
|
64
|
-
import { z as
|
|
65
|
-
var BoundedTextSchema =
|
|
66
|
-
var HarnessEvaluationReviewClassificationSchema =
|
|
216
|
+
// ../harness/dist/evaluation-review.js
|
|
217
|
+
import { z as z4 } from "zod";
|
|
218
|
+
var BoundedTextSchema = z4.string().trim().min(1).max(1e5);
|
|
219
|
+
var HarnessEvaluationReviewClassificationSchema = z4.enum([
|
|
67
220
|
"no_action",
|
|
68
221
|
"harness_maintenance",
|
|
69
222
|
"runtime",
|
|
@@ -71,7 +224,7 @@ var HarnessEvaluationReviewClassificationSchema = z3.enum([
|
|
|
71
224
|
"taskset",
|
|
72
225
|
"model_improvement"
|
|
73
226
|
]);
|
|
74
|
-
var HarnessEvaluationReviewAuthoritySchema =
|
|
227
|
+
var HarnessEvaluationReviewAuthoritySchema = z4.enum([
|
|
75
228
|
"none",
|
|
76
229
|
"runtime_service",
|
|
77
230
|
"product_team",
|
|
@@ -79,7 +232,7 @@ var HarnessEvaluationReviewAuthoritySchema = z3.enum([
|
|
|
79
232
|
"evaluation_system",
|
|
80
233
|
"training_system"
|
|
81
234
|
]);
|
|
82
|
-
var HarnessReviewEvidenceKindSchema =
|
|
235
|
+
var HarnessReviewEvidenceKindSchema = z4.enum([
|
|
83
236
|
"observation",
|
|
84
237
|
"trigger",
|
|
85
238
|
"route_decision",
|
|
@@ -95,16 +248,16 @@ var HarnessReviewEvidenceKindSchema = z3.enum([
|
|
|
95
248
|
"training_qualification",
|
|
96
249
|
"model_candidate"
|
|
97
250
|
]);
|
|
98
|
-
var HarnessReviewOwnerScopeSchema =
|
|
99
|
-
kind:
|
|
251
|
+
var HarnessReviewOwnerScopeSchema = z4.object({
|
|
252
|
+
kind: z4.enum(["personal", "team"]),
|
|
100
253
|
id: ReleaseIdSchema
|
|
101
254
|
}).strict();
|
|
102
|
-
var HarnessReviewSourcePolicyRefSchema =
|
|
255
|
+
var HarnessReviewSourcePolicyRefSchema = z4.object({
|
|
103
256
|
policy: ImmutableReleaseRefSchema,
|
|
104
|
-
state:
|
|
257
|
+
state: z4.enum(["authorized", "revoked", "deleted", "expired"]),
|
|
105
258
|
checkedAt: ReleaseTimestampSchema
|
|
106
259
|
}).strict();
|
|
107
|
-
var HarnessReviewEvidenceRefSchema =
|
|
260
|
+
var HarnessReviewEvidenceRefSchema = z4.object({
|
|
108
261
|
evidence: ImmutableReleaseRefSchema,
|
|
109
262
|
kind: HarnessReviewEvidenceKindSchema,
|
|
110
263
|
sourceRef: ReleaseIdSchema,
|
|
@@ -112,10 +265,10 @@ var HarnessReviewEvidenceRefSchema = z3.object({
|
|
|
112
265
|
occurrenceKey: ReleaseHashSchema,
|
|
113
266
|
occurredAt: ReleaseTimestampSchema
|
|
114
267
|
}).strict();
|
|
115
|
-
var HarnessReviewExcludedEvidenceSchema =
|
|
268
|
+
var HarnessReviewExcludedEvidenceSchema = z4.object({
|
|
116
269
|
evidence: ImmutableReleaseRefSchema,
|
|
117
270
|
sourcePolicy: HarnessReviewSourcePolicyRefSchema.nullable(),
|
|
118
|
-
reason:
|
|
271
|
+
reason: z4.enum([
|
|
119
272
|
"outside_scope",
|
|
120
273
|
"before_watermark",
|
|
121
274
|
"duplicate",
|
|
@@ -128,19 +281,19 @@ var HarnessReviewExcludedEvidenceSchema = z3.object({
|
|
|
128
281
|
"budget"
|
|
129
282
|
])
|
|
130
283
|
}).strict();
|
|
131
|
-
var HarnessReviewWatermarkSchema =
|
|
284
|
+
var HarnessReviewWatermarkSchema = z4.object({
|
|
132
285
|
cursor: ReleaseHashSchema,
|
|
133
286
|
throughCreatedAt: ReleaseTimestampSchema
|
|
134
287
|
}).strict();
|
|
135
|
-
var HarnessReviewClaimSchema =
|
|
288
|
+
var HarnessReviewClaimSchema = z4.object({
|
|
136
289
|
fingerprint: ReleaseHashSchema,
|
|
137
|
-
recurrenceFamily:
|
|
290
|
+
recurrenceFamily: z4.string().trim().min(1).max(1e3),
|
|
138
291
|
statement: BoundedTextSchema,
|
|
139
|
-
candidateDisposition:
|
|
140
|
-
independentOccurrences:
|
|
141
|
-
unresolvedOccurrences:
|
|
292
|
+
candidateDisposition: z4.enum(["observe", "confirm"]).optional(),
|
|
293
|
+
independentOccurrences: z4.number().int().positive().max(1e6),
|
|
294
|
+
unresolvedOccurrences: z4.number().int().positive().max(1e6)
|
|
142
295
|
}).strict().refine((claim) => claim.unresolvedOccurrences <= claim.independentOccurrences, "unresolved occurrences cannot exceed independent occurrences");
|
|
143
|
-
var HarnessReviewTriageLayerSchema =
|
|
296
|
+
var HarnessReviewTriageLayerSchema = z4.enum([
|
|
144
297
|
"harness",
|
|
145
298
|
"runtime",
|
|
146
299
|
"product",
|
|
@@ -149,28 +302,28 @@ var HarnessReviewTriageLayerSchema = z3.enum([
|
|
|
149
302
|
"evaluation",
|
|
150
303
|
"model"
|
|
151
304
|
]);
|
|
152
|
-
var HarnessReviewTriageDecisionSchema =
|
|
305
|
+
var HarnessReviewTriageDecisionSchema = z4.object({
|
|
153
306
|
layer: HarnessReviewTriageLayerSchema,
|
|
154
|
-
status:
|
|
307
|
+
status: z4.enum(["not_applicable", "unresolved", "resolved", "blocked"]),
|
|
155
308
|
reason: BoundedTextSchema,
|
|
156
|
-
evidenceRefs:
|
|
309
|
+
evidenceRefs: z4.array(ImmutableReleaseRefSchema).max(1e3)
|
|
157
310
|
}).strict();
|
|
158
|
-
var HarnessEvaluationReviewReceiptContentSchema =
|
|
159
|
-
schemaVersion:
|
|
311
|
+
var HarnessEvaluationReviewReceiptContentSchema = z4.object({
|
|
312
|
+
schemaVersion: z4.literal("openpond.harnessEvaluationReviewReceipt.v1"),
|
|
160
313
|
id: ReleaseIdSchema,
|
|
161
314
|
ownerScope: HarnessReviewOwnerScopeSchema,
|
|
162
315
|
workspaceRef: ReleaseIdSchema,
|
|
163
316
|
harnessRelease: ImmutableReleaseRefSchema,
|
|
164
317
|
previousWatermark: HarnessReviewWatermarkSchema.nullable(),
|
|
165
318
|
nextWatermark: HarnessReviewWatermarkSchema,
|
|
166
|
-
selectedEvidence:
|
|
167
|
-
excludedEvidence:
|
|
319
|
+
selectedEvidence: z4.array(HarnessReviewEvidenceRefSchema).max(1e4),
|
|
320
|
+
excludedEvidence: z4.array(HarnessReviewExcludedEvidenceSchema).max(1e4),
|
|
168
321
|
claim: HarnessReviewClaimSchema.nullable(),
|
|
169
322
|
classification: HarnessEvaluationReviewClassificationSchema,
|
|
170
|
-
triage:
|
|
323
|
+
triage: z4.array(HarnessReviewTriageDecisionSchema).max(16),
|
|
171
324
|
reason: BoundedTextSchema,
|
|
172
325
|
nextAuthority: HarnessEvaluationReviewAuthoritySchema,
|
|
173
|
-
maxEstimatedCostUsd:
|
|
326
|
+
maxEstimatedCostUsd: z4.number().finite().nonnegative(),
|
|
174
327
|
tasksetProposal: ImmutableReleaseRefSchema.nullable(),
|
|
175
328
|
evaluation: ImmutableReleaseRefSchema.nullable(),
|
|
176
329
|
trainingQualification: ImmutableReleaseRefSchema.nullable(),
|
|
@@ -243,44 +396,44 @@ var HarnessEvaluationReviewReceiptContentSchema = z3.object({
|
|
|
243
396
|
var HarnessEvaluationReviewReceiptSchema = HarnessEvaluationReviewReceiptContentSchema.extend({
|
|
244
397
|
contentHash: ReleaseHashSchema
|
|
245
398
|
}).strict();
|
|
246
|
-
var HarnessEvaluationReviewModelEvidenceSchema =
|
|
399
|
+
var HarnessEvaluationReviewModelEvidenceSchema = z4.object({
|
|
247
400
|
id: ReleaseIdSchema,
|
|
248
401
|
evidence: ImmutableReleaseRefSchema,
|
|
249
402
|
kind: HarnessReviewEvidenceKindSchema,
|
|
250
403
|
sourceRef: ReleaseIdSchema,
|
|
251
404
|
occurredAt: ReleaseTimestampSchema,
|
|
252
|
-
payload:
|
|
405
|
+
payload: z4.record(z4.string(), z4.unknown())
|
|
253
406
|
}).strict();
|
|
254
|
-
var HarnessEvaluationReviewModelNoActionSchema =
|
|
255
|
-
schemaVersion:
|
|
256
|
-
decision:
|
|
407
|
+
var HarnessEvaluationReviewModelNoActionSchema = z4.object({
|
|
408
|
+
schemaVersion: z4.literal("openpond.harnessEvaluationReviewModelDecision.v2"),
|
|
409
|
+
decision: z4.literal("no_action"),
|
|
257
410
|
reason: BoundedTextSchema,
|
|
258
|
-
ignoredEvidence:
|
|
411
|
+
ignoredEvidence: z4.array(z4.object({
|
|
259
412
|
id: ReleaseIdSchema,
|
|
260
|
-
reason:
|
|
413
|
+
reason: z4.string().trim().min(1).max(2e3)
|
|
261
414
|
}).strict()).max(1e3)
|
|
262
415
|
}).strict();
|
|
263
|
-
var HarnessEvaluationReviewModelActionSchema =
|
|
264
|
-
schemaVersion:
|
|
265
|
-
decision:
|
|
266
|
-
classification:
|
|
416
|
+
var HarnessEvaluationReviewModelActionSchema = z4.object({
|
|
417
|
+
schemaVersion: z4.literal("openpond.harnessEvaluationReviewModelDecision.v2"),
|
|
418
|
+
decision: z4.literal("review"),
|
|
419
|
+
classification: z4.enum([
|
|
267
420
|
"harness_maintenance",
|
|
268
421
|
"runtime",
|
|
269
422
|
"product",
|
|
270
423
|
"taskset"
|
|
271
424
|
]),
|
|
272
|
-
selectedEvidenceIds:
|
|
273
|
-
ignoredEvidence:
|
|
425
|
+
selectedEvidenceIds: z4.array(ReleaseIdSchema).min(1).max(1e3),
|
|
426
|
+
ignoredEvidence: z4.array(z4.object({
|
|
274
427
|
id: ReleaseIdSchema,
|
|
275
|
-
reason:
|
|
428
|
+
reason: z4.string().trim().min(1).max(2e3)
|
|
276
429
|
}).strict()).max(1e3),
|
|
277
|
-
recurrenceFamily:
|
|
430
|
+
recurrenceFamily: z4.string().trim().min(1).max(1e3),
|
|
278
431
|
statement: BoundedTextSchema,
|
|
279
432
|
triageLayer: HarnessReviewTriageLayerSchema,
|
|
280
433
|
expectedOutcome: BoundedTextSchema,
|
|
281
|
-
counterevidence:
|
|
282
|
-
confidence:
|
|
283
|
-
candidateDisposition:
|
|
434
|
+
counterevidence: z4.string().trim().max(1e4),
|
|
435
|
+
confidence: z4.number().min(0).max(1),
|
|
436
|
+
candidateDisposition: z4.enum(["observe", "confirm"]).nullable(),
|
|
284
437
|
reason: BoundedTextSchema
|
|
285
438
|
}).strict().superRefine((decision, context) => {
|
|
286
439
|
const requiresDisposition = decision.classification === "harness_maintenance";
|
|
@@ -292,116 +445,34 @@ var HarnessEvaluationReviewModelActionSchema = z3.object({
|
|
|
292
445
|
});
|
|
293
446
|
}
|
|
294
447
|
});
|
|
295
|
-
var HarnessEvaluationReviewModelResolutionSchema =
|
|
296
|
-
schemaVersion:
|
|
297
|
-
decision:
|
|
448
|
+
var HarnessEvaluationReviewModelResolutionSchema = z4.object({
|
|
449
|
+
schemaVersion: z4.literal("openpond.harnessEvaluationReviewModelDecision.v2"),
|
|
450
|
+
decision: z4.literal("resolve_candidate"),
|
|
298
451
|
candidateId: ReleaseIdSchema,
|
|
299
452
|
candidateFingerprint: ReleaseHashSchema,
|
|
300
|
-
selectedEvidenceIds:
|
|
301
|
-
ignoredEvidence:
|
|
453
|
+
selectedEvidenceIds: z4.array(ReleaseIdSchema).min(1).max(1e3),
|
|
454
|
+
ignoredEvidence: z4.array(z4.object({
|
|
302
455
|
id: ReleaseIdSchema,
|
|
303
|
-
reason:
|
|
456
|
+
reason: z4.string().trim().min(1).max(2e3)
|
|
304
457
|
}).strict()).max(1e3),
|
|
305
|
-
confidence:
|
|
458
|
+
confidence: z4.number().min(0).max(1),
|
|
306
459
|
reason: BoundedTextSchema
|
|
307
460
|
}).strict();
|
|
308
|
-
var HarnessEvaluationReviewModelDecisionSchema =
|
|
461
|
+
var HarnessEvaluationReviewModelDecisionSchema = z4.discriminatedUnion("decision", [
|
|
309
462
|
HarnessEvaluationReviewModelNoActionSchema,
|
|
310
463
|
HarnessEvaluationReviewModelActionSchema,
|
|
311
464
|
HarnessEvaluationReviewModelResolutionSchema
|
|
312
465
|
]);
|
|
313
|
-
var HarnessEvaluationReviewNavigationDecisionSchema =
|
|
314
|
-
schemaVersion:
|
|
315
|
-
selectedEvidenceIds:
|
|
466
|
+
var HarnessEvaluationReviewNavigationDecisionSchema = z4.object({
|
|
467
|
+
schemaVersion: z4.literal("openpond.harnessEvaluationReviewNavigationDecision.v1"),
|
|
468
|
+
selectedEvidenceIds: z4.array(ReleaseIdSchema).min(1).max(50),
|
|
316
469
|
reason: BoundedTextSchema
|
|
317
470
|
}).strict();
|
|
318
471
|
|
|
319
|
-
//
|
|
320
|
-
import { z as z4 } from "zod";
|
|
321
|
-
var PortabilityReportSchema = z4.object({
|
|
322
|
-
portable: z4.boolean(),
|
|
323
|
-
blockers: z4.array(z4.string().trim().min(1).max(2e3)).max(1e3),
|
|
324
|
-
localOnlyAssetRefs: z4.array(ReleaseIdSchema).max(1e4),
|
|
325
|
-
hostPrivateAssetRefs: z4.array(ReleaseIdSchema).max(1e4)
|
|
326
|
-
}).strict();
|
|
327
|
-
var AgentSnapshotContentSchema = z4.object({
|
|
328
|
-
schemaVersion: z4.literal("openpond.agentSnapshot.v2"),
|
|
329
|
-
id: ReleaseIdSchema,
|
|
330
|
-
sourceRelease: ImmutableReleaseRefSchema.nullable(),
|
|
331
|
-
instructions: z4.array(ImmutableAssetRefSchema).max(1e4),
|
|
332
|
-
skills: z4.array(ImmutableAssetRefSchema).max(1e4),
|
|
333
|
-
agents: z4.array(ImmutableAssetRefSchema).max(1e4),
|
|
334
|
-
toolDeclarations: z4.array(ToolDeclarationSchema).max(200),
|
|
335
|
-
capabilityRequirements: z4.array(CapabilityRequirementSchema).max(200),
|
|
336
|
-
dependencyLock: ImmutableAssetRefSchema,
|
|
337
|
-
portability: PortabilityReportSchema,
|
|
338
|
-
metadata: MetadataSchema
|
|
339
|
-
}).strict();
|
|
340
|
-
var AgentSnapshotSchema = AgentSnapshotContentSchema.extend({ contentHash: ReleaseHashSchema }).strict();
|
|
341
|
-
var LifecycleContractSchema = z4.object({
|
|
342
|
-
create: z4.literal(true),
|
|
343
|
-
reset: z4.literal(true),
|
|
344
|
-
step: z4.literal(true),
|
|
345
|
-
collect: z4.literal(true),
|
|
346
|
-
destroy: z4.literal(true),
|
|
347
|
-
resetScope: z4.enum(["task", "attempt"])
|
|
348
|
-
}).strict();
|
|
349
|
-
var GraderInterfaceContractSchema = z4.object({
|
|
350
|
-
visibleEvidence: z4.array(ReleaseIdSchema).max(1e3),
|
|
351
|
-
privilegedEvidence: z4.array(ReleaseIdSchema).max(1e3),
|
|
352
|
-
privateVerifierIsolation: z4.boolean()
|
|
353
|
-
}).strict();
|
|
354
|
-
var HarnessReleaseContentSchema = z4.object({
|
|
355
|
-
schemaVersion: z4.literal("openpond.harnessRelease.v2"),
|
|
356
|
-
id: ReleaseIdSchema,
|
|
357
|
-
agentSnapshot: ImmutableReleaseRefSchema,
|
|
358
|
-
program: ImmutableAssetRefSchema,
|
|
359
|
-
tools: z4.array(ToolDeclarationSchema).max(200),
|
|
360
|
-
lifecycle: LifecycleContractSchema,
|
|
361
|
-
graderInterface: GraderInterfaceContractSchema,
|
|
362
|
-
files: z4.array(ImmutableAssetRefSchema).max(1e5),
|
|
363
|
-
metadata: MetadataSchema
|
|
364
|
-
}).strict();
|
|
365
|
-
var HarnessReleaseSchema = HarnessReleaseContentSchema.extend({ contentHash: ReleaseHashSchema }).strict();
|
|
366
|
-
var ModelActionSchema = z4.object({
|
|
367
|
-
id: ReleaseIdSchema,
|
|
368
|
-
turn: z4.number().int().nonnegative(),
|
|
369
|
-
kind: z4.enum(["message", "tool_call", "terminal"]),
|
|
370
|
-
name: ReleaseIdSchema.nullable(),
|
|
371
|
-
arguments: z4.record(z4.string(), z4.unknown()),
|
|
372
|
-
content: z4.string().max(1e6).nullable()
|
|
373
|
-
}).strict();
|
|
374
|
-
var ToolObservationSchema = z4.object({
|
|
375
|
-
actionId: ReleaseIdSchema,
|
|
376
|
-
turn: z4.number().int().nonnegative(),
|
|
377
|
-
terminal: z4.boolean(),
|
|
378
|
-
output: z4.record(z4.string(), z4.unknown()),
|
|
379
|
-
artifactRefs: z4.array(ImmutableArtifactRefSchema).max(1e5)
|
|
380
|
-
}).strict();
|
|
381
|
-
var HarnessLifecycleEventSchema = z4.object({
|
|
382
|
-
sequence: z4.number().int().nonnegative(),
|
|
383
|
-
type: z4.enum(["created", "reset", "action", "observation", "terminal", "failure", "collected", "destroyed"]),
|
|
384
|
-
payloadHash: ReleaseHashSchema,
|
|
385
|
-
metadata: MetadataSchema
|
|
386
|
-
}).strict();
|
|
387
|
-
var HarnessTraceSchema = z4.object({
|
|
388
|
-
schemaVersion: z4.literal("openpond.harnessTrace.v1"),
|
|
389
|
-
manifest: ImmutableReleaseRefSchema,
|
|
390
|
-
taskId: ReleaseIdSchema,
|
|
391
|
-
seed: z4.string().trim().min(1).max(500),
|
|
392
|
-
events: z4.array(HarnessLifecycleEventSchema).max(1e6),
|
|
393
|
-
actions: z4.array(ModelActionSchema).max(1e5),
|
|
394
|
-
observations: z4.array(ToolObservationSchema).max(1e5),
|
|
395
|
-
terminal: z4.boolean(),
|
|
396
|
-
failureClass: FailureClassSchema.nullable(),
|
|
397
|
-
output: z4.record(z4.string(), z4.unknown()),
|
|
398
|
-
contentHash: ReleaseHashSchema
|
|
399
|
-
}).strict();
|
|
400
|
-
|
|
401
|
-
// ../../node_modules/.pnpm/@openpond+harness@0.2.6/node_modules/@openpond/harness/dist/harness-improvements.js
|
|
472
|
+
// ../harness/dist/harness-improvements.js
|
|
402
473
|
import { z as z6 } from "zod";
|
|
403
474
|
|
|
404
|
-
//
|
|
475
|
+
// ../harness/dist/harness-workspaces.js
|
|
405
476
|
import { z as z5 } from "zod";
|
|
406
477
|
var MetadataSchema2 = z5.record(z5.string(), z5.unknown()).default({});
|
|
407
478
|
var RevisionSchema = z5.number().int().nonnegative();
|
|
@@ -705,7 +776,7 @@ var HarnessOverlayMergeReceiptSchema = HarnessOverlayMergeReceiptContentSchema.e
|
|
|
705
776
|
contentHash: ReleaseHashSchema
|
|
706
777
|
}).strict();
|
|
707
778
|
|
|
708
|
-
//
|
|
779
|
+
// ../harness/dist/harness-improvements.js
|
|
709
780
|
var BoundedTextSchema3 = z6.string().trim().min(1).max(1e5);
|
|
710
781
|
var MetadataSchema3 = z6.record(z6.string(), z6.unknown()).default({});
|
|
711
782
|
var ImprovementSafeBoundaryKindSchema = z6.enum([
|
|
@@ -963,53 +1034,84 @@ var ImprovementApplyReceiptSchema = ImprovementApplyReceiptContentSchema.extend(
|
|
|
963
1034
|
contentHash: ReleaseHashSchema
|
|
964
1035
|
}).strict();
|
|
965
1036
|
|
|
966
|
-
//
|
|
1037
|
+
// ../harness/dist/models.js
|
|
967
1038
|
import { z as z7 } from "zod";
|
|
968
|
-
var
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1039
|
+
var ModelRefSchema = z7.object({
|
|
1040
|
+
provider: ReleaseIdSchema,
|
|
1041
|
+
model: ReleaseIdSchema,
|
|
1042
|
+
revision: z7.string().trim().min(1).max(500).nullable().default(null),
|
|
1043
|
+
artifactHash: ReleaseHashSchema.nullable().default(null),
|
|
1044
|
+
tokenizerRevision: z7.string().trim().min(1).max(500).nullable().default(null),
|
|
1045
|
+
chatTemplateHash: ReleaseHashSchema.nullable().default(null)
|
|
1046
|
+
}).strict();
|
|
1047
|
+
var PROVIDER_IDS = [
|
|
1048
|
+
"openpond",
|
|
1049
|
+
"codex",
|
|
1050
|
+
"anthropic",
|
|
1051
|
+
"openai",
|
|
1052
|
+
"xai",
|
|
1053
|
+
"google",
|
|
1054
|
+
"openrouter",
|
|
1055
|
+
"deepseek",
|
|
1056
|
+
"zai",
|
|
1057
|
+
"moonshot",
|
|
1058
|
+
"together",
|
|
1059
|
+
"groq",
|
|
1060
|
+
"custom-openai-compatible"
|
|
1061
|
+
];
|
|
1062
|
+
var ProviderIdSchema = z7.enum(PROVIDER_IDS);
|
|
1063
|
+
var ChatModelRefSchema = z7.object({
|
|
1064
|
+
providerId: ProviderIdSchema,
|
|
1065
|
+
modelId: z7.string().trim().min(1).max(300)
|
|
1066
|
+
});
|
|
1067
|
+
|
|
1068
|
+
// ../harness/dist/refinement-lifecycle.js
|
|
1069
|
+
import { z as z8 } from "zod";
|
|
1070
|
+
var ShortTextSchema = z8.string().trim().min(1).max(2e3);
|
|
1071
|
+
var BoundedTextSchema4 = z8.string().trim().min(1).max(1e5);
|
|
1072
|
+
var HarnessRefinerOperationSchema = z8.enum(["create", "update", "delete"]);
|
|
1073
|
+
var HarnessRefinerInternalRouteSchema = z8.enum([
|
|
972
1074
|
"memory",
|
|
973
1075
|
"prompt",
|
|
974
1076
|
"skill",
|
|
975
1077
|
"agent"
|
|
976
1078
|
]);
|
|
977
|
-
var HarnessRefinerExternalRouteSchema =
|
|
1079
|
+
var HarnessRefinerExternalRouteSchema = z8.enum([
|
|
978
1080
|
"runtime",
|
|
979
1081
|
"product",
|
|
980
1082
|
"taskset",
|
|
981
1083
|
"training"
|
|
982
1084
|
]);
|
|
983
|
-
var HarnessRefinerActivityResultSchema =
|
|
1085
|
+
var HarnessRefinerActivityResultSchema = z8.enum([
|
|
984
1086
|
"no_action",
|
|
985
1087
|
"routed",
|
|
986
1088
|
"applied",
|
|
987
1089
|
"retained",
|
|
988
1090
|
"failed"
|
|
989
1091
|
]);
|
|
990
|
-
var HarnessRefinerCritiqueStatusSchema =
|
|
1092
|
+
var HarnessRefinerCritiqueStatusSchema = z8.enum([
|
|
991
1093
|
"not_applicable",
|
|
992
1094
|
"pending",
|
|
993
1095
|
"passed",
|
|
994
1096
|
"rejected",
|
|
995
1097
|
"failed"
|
|
996
1098
|
]);
|
|
997
|
-
var HarnessRefinerValidationStatusSchema =
|
|
1099
|
+
var HarnessRefinerValidationStatusSchema = z8.enum([
|
|
998
1100
|
"not_applicable",
|
|
999
1101
|
"pending",
|
|
1000
1102
|
"passed",
|
|
1001
1103
|
"failed"
|
|
1002
1104
|
]);
|
|
1003
|
-
var HarnessRefinerActivityReceiptContentSchema =
|
|
1004
|
-
schemaVersion:
|
|
1105
|
+
var HarnessRefinerActivityReceiptContentSchema = z8.object({
|
|
1106
|
+
schemaVersion: z8.literal("openpond.harnessRefinerActivityReceipt.v1"),
|
|
1005
1107
|
id: ReleaseIdSchema,
|
|
1006
1108
|
runRef: ReleaseIdSchema,
|
|
1007
1109
|
turnId: ReleaseIdSchema,
|
|
1008
1110
|
result: HarnessRefinerActivityResultSchema,
|
|
1009
|
-
decision:
|
|
1111
|
+
decision: z8.enum(["no_action", "route", "propose"]).nullable(),
|
|
1010
1112
|
route: HarnessImprovementRouteSchema.nullable(),
|
|
1011
1113
|
operation: HarnessRefinerOperationSchema.nullable(),
|
|
1012
|
-
target:
|
|
1114
|
+
target: z8.string().trim().min(1).max(2e3).nullable(),
|
|
1013
1115
|
summary: ShortTextSchema,
|
|
1014
1116
|
evidenceBasis: HarnessRefinerEvidenceBasisSchema.nullable(),
|
|
1015
1117
|
critiqueStatus: HarnessRefinerCritiqueStatusSchema,
|
|
@@ -1091,15 +1193,15 @@ var HarnessRefinerActivityReceiptContentSchema = z7.object({
|
|
|
1091
1193
|
var HarnessRefinerActivityReceiptSchema = HarnessRefinerActivityReceiptContentSchema.extend({
|
|
1092
1194
|
contentHash: ReleaseHashSchema
|
|
1093
1195
|
}).strict();
|
|
1094
|
-
var HarnessRefinementCandidateStatusSchema =
|
|
1196
|
+
var HarnessRefinementCandidateStatusSchema = z8.enum([
|
|
1095
1197
|
"unresolved",
|
|
1096
1198
|
"confirmed",
|
|
1097
1199
|
"resolved",
|
|
1098
1200
|
"rejected",
|
|
1099
1201
|
"expired"
|
|
1100
1202
|
]);
|
|
1101
|
-
var HarnessRefinementCandidateResolutionSchema =
|
|
1102
|
-
kind:
|
|
1203
|
+
var HarnessRefinementCandidateResolutionSchema = z8.object({
|
|
1204
|
+
kind: z8.enum([
|
|
1103
1205
|
"applied_change",
|
|
1104
1206
|
"later_success",
|
|
1105
1207
|
"manual_rejection",
|
|
@@ -1107,22 +1209,22 @@ var HarnessRefinementCandidateResolutionSchema = z7.object({
|
|
|
1107
1209
|
"expired"
|
|
1108
1210
|
]),
|
|
1109
1211
|
reason: BoundedTextSchema4,
|
|
1110
|
-
evidenceRefs:
|
|
1212
|
+
evidenceRefs: z8.array(ImmutableReleaseRefSchema).max(1e3),
|
|
1111
1213
|
resolvedAt: ReleaseTimestampSchema
|
|
1112
1214
|
}).strict();
|
|
1113
|
-
var HarnessRefinementCandidateContentSchema =
|
|
1114
|
-
schemaVersion:
|
|
1215
|
+
var HarnessRefinementCandidateContentSchema = z8.object({
|
|
1216
|
+
schemaVersion: z8.literal("openpond.harnessRefinementCandidate.v1"),
|
|
1115
1217
|
id: ReleaseIdSchema,
|
|
1116
1218
|
ownerScope: HarnessReviewOwnerScopeSchema,
|
|
1117
1219
|
workspaceRef: ReleaseIdSchema,
|
|
1118
1220
|
fingerprint: ReleaseHashSchema,
|
|
1119
|
-
recurrenceFamily:
|
|
1221
|
+
recurrenceFamily: z8.string().trim().min(1).max(1e3),
|
|
1120
1222
|
statement: BoundedTextSchema4,
|
|
1121
1223
|
status: HarnessRefinementCandidateStatusSchema,
|
|
1122
|
-
occurrences:
|
|
1123
|
-
counterevidence:
|
|
1124
|
-
sourceReviews:
|
|
1125
|
-
relatedHarnessReleases:
|
|
1224
|
+
occurrences: z8.array(HarnessReviewEvidenceRefSchema).max(1e3),
|
|
1225
|
+
counterevidence: z8.array(HarnessReviewEvidenceRefSchema).max(1e3),
|
|
1226
|
+
sourceReviews: z8.array(ImmutableReleaseRefSchema).min(1).max(100),
|
|
1227
|
+
relatedHarnessReleases: z8.array(ImmutableReleaseRefSchema).max(100),
|
|
1126
1228
|
firstSeenAt: ReleaseTimestampSchema,
|
|
1127
1229
|
lastSeenAt: ReleaseTimestampSchema,
|
|
1128
1230
|
lastReviewedAt: ReleaseTimestampSchema,
|
|
@@ -1191,7 +1293,7 @@ var HarnessRefinementCandidateContentSchema = z7.object({
|
|
|
1191
1293
|
var HarnessRefinementCandidateSchema = HarnessRefinementCandidateContentSchema.extend({
|
|
1192
1294
|
contentHash: ReleaseHashSchema
|
|
1193
1295
|
}).strict();
|
|
1194
|
-
var HarnessRefinementCandidateLifecycleDecisionSchema =
|
|
1296
|
+
var HarnessRefinementCandidateLifecycleDecisionSchema = z8.enum([
|
|
1195
1297
|
"created",
|
|
1196
1298
|
"merged",
|
|
1197
1299
|
"rejected",
|
|
@@ -1199,16 +1301,16 @@ var HarnessRefinementCandidateLifecycleDecisionSchema = z7.enum([
|
|
|
1199
1301
|
"reopened",
|
|
1200
1302
|
"resolved"
|
|
1201
1303
|
]);
|
|
1202
|
-
var HarnessRefinementCandidateLifecycleReceiptContentSchema =
|
|
1203
|
-
schemaVersion:
|
|
1304
|
+
var HarnessRefinementCandidateLifecycleReceiptContentSchema = z8.object({
|
|
1305
|
+
schemaVersion: z8.literal("openpond.harnessRefinementCandidateLifecycleReceipt.v1"),
|
|
1204
1306
|
id: ReleaseIdSchema,
|
|
1205
1307
|
candidateId: ReleaseIdSchema,
|
|
1206
1308
|
decision: HarnessRefinementCandidateLifecycleDecisionSchema,
|
|
1207
1309
|
beforeCandidate: ImmutableReleaseRefSchema.nullable(),
|
|
1208
1310
|
afterCandidate: ImmutableReleaseRefSchema,
|
|
1209
1311
|
review: ImmutableReleaseRefSchema,
|
|
1210
|
-
addedEvidence:
|
|
1211
|
-
removedEvidence:
|
|
1312
|
+
addedEvidence: z8.array(HarnessReviewEvidenceRefSchema).max(1e3),
|
|
1313
|
+
removedEvidence: z8.array(ImmutableReleaseRefSchema).max(1e3),
|
|
1212
1314
|
reason: BoundedTextSchema4,
|
|
1213
1315
|
createdAt: ReleaseTimestampSchema
|
|
1214
1316
|
}).strict().superRefine((receipt, context) => {
|
|
@@ -1254,8 +1356,8 @@ var HarnessRefinementCandidateLifecycleReceiptContentSchema = z7.object({
|
|
|
1254
1356
|
var HarnessRefinementCandidateLifecycleReceiptSchema = HarnessRefinementCandidateLifecycleReceiptContentSchema.extend({
|
|
1255
1357
|
contentHash: ReleaseHashSchema
|
|
1256
1358
|
}).strict();
|
|
1257
|
-
var HarnessCrossRunRefinementRequestContentSchema =
|
|
1258
|
-
schemaVersion:
|
|
1359
|
+
var HarnessCrossRunRefinementRequestContentSchema = z8.object({
|
|
1360
|
+
schemaVersion: z8.literal("openpond.harnessCrossRunRefinementRequest.v1"),
|
|
1259
1361
|
id: ReleaseIdSchema,
|
|
1260
1362
|
ownerScope: HarnessReviewOwnerScopeSchema,
|
|
1261
1363
|
workspaceRef: ReleaseIdSchema,
|
|
@@ -1263,7 +1365,7 @@ var HarnessCrossRunRefinementRequestContentSchema = z7.object({
|
|
|
1263
1365
|
candidateFingerprint: ReleaseHashSchema,
|
|
1264
1366
|
review: ImmutableReleaseRefSchema,
|
|
1265
1367
|
admittedHarness: ImmutableReleaseRefSchema,
|
|
1266
|
-
evidence:
|
|
1368
|
+
evidence: z8.array(HarnessReviewEvidenceRefSchema).min(1).max(1e3),
|
|
1267
1369
|
capabilities: HarnessRefinerCapabilitiesSchema,
|
|
1268
1370
|
deduplicationKey: ReleaseHashSchema,
|
|
1269
1371
|
createdAt: ReleaseTimestampSchema
|
|
@@ -1365,9 +1467,19 @@ function requireChronology(context, candidate) {
|
|
|
1365
1467
|
}
|
|
1366
1468
|
}
|
|
1367
1469
|
|
|
1470
|
+
// ../harness/dist/source-runtime.js
|
|
1471
|
+
import { z as z9 } from "zod";
|
|
1472
|
+
var ReadInputSchema = z9.object({
|
|
1473
|
+
path: z9.string().min(1).max(2e3),
|
|
1474
|
+
offset: z9.number().int().nonnegative().default(0),
|
|
1475
|
+
length: z9.number().int().positive().max(65536).default(16384)
|
|
1476
|
+
}).strict();
|
|
1477
|
+
|
|
1368
1478
|
export {
|
|
1369
1479
|
ToolDeclarationSchema,
|
|
1370
1480
|
CapabilityRequirementSchema,
|
|
1371
|
-
ChatModelRefSchema
|
|
1481
|
+
ChatModelRefSchema,
|
|
1482
|
+
HarnessSourceSelectionSchema,
|
|
1483
|
+
validateHarnessSourcePackage
|
|
1372
1484
|
};
|
|
1373
|
-
//# sourceMappingURL=chunk-
|
|
1485
|
+
//# sourceMappingURL=chunk-UKVK7MRJ.js.map
|