@openpond/harness 0.1.0 → 0.2.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/CONTRACT.md +17 -7
- package/README.md +22 -3
- package/RELEASING.md +3 -6
- package/dist/evaluation-review.js +563 -0
- package/dist/harness-workspaces.js +1 -0
- package/dist/index.js +4 -0
- package/dist/refiner-detection.js +487 -0
- package/dist/refiner-support.js +105 -0
- package/dist/refiner.js +354 -0
- package/dist/types/evaluation-review.d.ts +583 -0
- package/dist/types/evaluation-review.d.ts.map +1 -0
- package/dist/types/harness-improvements.d.ts +18 -18
- package/dist/types/harness-workspaces.d.ts +26 -25
- package/dist/types/harness-workspaces.d.ts.map +1 -1
- package/dist/types/harness.d.ts +2 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/refiner-detection.d.ts +37 -0
- package/dist/types/refiner-detection.d.ts.map +1 -0
- package/dist/types/refiner-support.d.ts +33 -0
- package/dist/types/refiner-support.d.ts.map +1 -0
- package/dist/types/refiner.d.ts +220 -0
- package/dist/types/refiner.d.ts.map +1 -0
- package/package.json +17 -1
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ImmutableReleaseRefSchema } from "./common.js";
|
|
3
|
+
export declare const HarnessEvaluationReviewClassificationSchema: z.ZodEnum<{
|
|
4
|
+
no_action: "no_action";
|
|
5
|
+
harness_maintenance: "harness_maintenance";
|
|
6
|
+
runtime: "runtime";
|
|
7
|
+
product: "product";
|
|
8
|
+
taskset: "taskset";
|
|
9
|
+
model_improvement: "model_improvement";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const HarnessEvaluationReviewAuthoritySchema: z.ZodEnum<{
|
|
12
|
+
none: "none";
|
|
13
|
+
runtime_service: "runtime_service";
|
|
14
|
+
product_team: "product_team";
|
|
15
|
+
human_review: "human_review";
|
|
16
|
+
evaluation_system: "evaluation_system";
|
|
17
|
+
training_system: "training_system";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const HarnessReviewEvidenceKindSchema: z.ZodEnum<{
|
|
20
|
+
taskset: "taskset";
|
|
21
|
+
observation: "observation";
|
|
22
|
+
trigger: "trigger";
|
|
23
|
+
route_decision: "route_decision";
|
|
24
|
+
refiner_outcome: "refiner_outcome";
|
|
25
|
+
proposal: "proposal";
|
|
26
|
+
validation: "validation";
|
|
27
|
+
apply_receipt: "apply_receipt";
|
|
28
|
+
harness_advance: "harness_advance";
|
|
29
|
+
rollback: "rollback";
|
|
30
|
+
work_outcome: "work_outcome";
|
|
31
|
+
evaluation: "evaluation";
|
|
32
|
+
training_qualification: "training_qualification";
|
|
33
|
+
model_candidate: "model_candidate";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const HarnessReviewOwnerScopeSchema: z.ZodObject<{
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
personal: "personal";
|
|
38
|
+
team: "team";
|
|
39
|
+
}>;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export declare const HarnessReviewSourcePolicyRefSchema: z.ZodObject<{
|
|
43
|
+
policy: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
contentHash: z.ZodString;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
state: z.ZodEnum<{
|
|
48
|
+
authorized: "authorized";
|
|
49
|
+
revoked: "revoked";
|
|
50
|
+
deleted: "deleted";
|
|
51
|
+
expired: "expired";
|
|
52
|
+
}>;
|
|
53
|
+
checkedAt: z.ZodString;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export declare const HarnessReviewEvidenceRefSchema: z.ZodObject<{
|
|
56
|
+
evidence: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
contentHash: z.ZodString;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
kind: z.ZodEnum<{
|
|
61
|
+
taskset: "taskset";
|
|
62
|
+
observation: "observation";
|
|
63
|
+
trigger: "trigger";
|
|
64
|
+
route_decision: "route_decision";
|
|
65
|
+
refiner_outcome: "refiner_outcome";
|
|
66
|
+
proposal: "proposal";
|
|
67
|
+
validation: "validation";
|
|
68
|
+
apply_receipt: "apply_receipt";
|
|
69
|
+
harness_advance: "harness_advance";
|
|
70
|
+
rollback: "rollback";
|
|
71
|
+
work_outcome: "work_outcome";
|
|
72
|
+
evaluation: "evaluation";
|
|
73
|
+
training_qualification: "training_qualification";
|
|
74
|
+
model_candidate: "model_candidate";
|
|
75
|
+
}>;
|
|
76
|
+
sourceRef: z.ZodString;
|
|
77
|
+
sourcePolicy: z.ZodObject<{
|
|
78
|
+
policy: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
contentHash: z.ZodString;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
state: z.ZodEnum<{
|
|
83
|
+
authorized: "authorized";
|
|
84
|
+
revoked: "revoked";
|
|
85
|
+
deleted: "deleted";
|
|
86
|
+
expired: "expired";
|
|
87
|
+
}>;
|
|
88
|
+
checkedAt: z.ZodString;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
occurrenceKey: z.ZodString;
|
|
91
|
+
occurredAt: z.ZodString;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const HarnessReviewExcludedEvidenceSchema: z.ZodObject<{
|
|
94
|
+
evidence: z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
contentHash: z.ZodString;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
sourcePolicy: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
policy: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
contentHash: z.ZodString;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
state: z.ZodEnum<{
|
|
104
|
+
authorized: "authorized";
|
|
105
|
+
revoked: "revoked";
|
|
106
|
+
deleted: "deleted";
|
|
107
|
+
expired: "expired";
|
|
108
|
+
}>;
|
|
109
|
+
checkedAt: z.ZodString;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
reason: z.ZodEnum<{
|
|
112
|
+
revoked: "revoked";
|
|
113
|
+
deleted: "deleted";
|
|
114
|
+
expired: "expired";
|
|
115
|
+
outside_scope: "outside_scope";
|
|
116
|
+
before_watermark: "before_watermark";
|
|
117
|
+
duplicate: "duplicate";
|
|
118
|
+
resolved: "resolved";
|
|
119
|
+
sensitive: "sensitive";
|
|
120
|
+
unverified: "unverified";
|
|
121
|
+
budget: "budget";
|
|
122
|
+
}>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
export declare const HarnessReviewWatermarkSchema: z.ZodObject<{
|
|
125
|
+
cursor: z.ZodString;
|
|
126
|
+
throughCreatedAt: z.ZodString;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
export declare const HarnessReviewClaimSchema: z.ZodObject<{
|
|
129
|
+
fingerprint: z.ZodString;
|
|
130
|
+
recurrenceFamily: z.ZodString;
|
|
131
|
+
statement: z.ZodString;
|
|
132
|
+
independentOccurrences: z.ZodNumber;
|
|
133
|
+
unresolvedOccurrences: z.ZodNumber;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
export declare const HarnessReviewTriageLayerSchema: z.ZodEnum<{
|
|
136
|
+
runtime: "runtime";
|
|
137
|
+
product: "product";
|
|
138
|
+
evaluation: "evaluation";
|
|
139
|
+
harness: "harness";
|
|
140
|
+
retrieval: "retrieval";
|
|
141
|
+
tools: "tools";
|
|
142
|
+
model: "model";
|
|
143
|
+
}>;
|
|
144
|
+
export declare const HarnessReviewTriageDecisionSchema: z.ZodObject<{
|
|
145
|
+
layer: z.ZodEnum<{
|
|
146
|
+
runtime: "runtime";
|
|
147
|
+
product: "product";
|
|
148
|
+
evaluation: "evaluation";
|
|
149
|
+
harness: "harness";
|
|
150
|
+
retrieval: "retrieval";
|
|
151
|
+
tools: "tools";
|
|
152
|
+
model: "model";
|
|
153
|
+
}>;
|
|
154
|
+
status: z.ZodEnum<{
|
|
155
|
+
resolved: "resolved";
|
|
156
|
+
not_applicable: "not_applicable";
|
|
157
|
+
unresolved: "unresolved";
|
|
158
|
+
blocked: "blocked";
|
|
159
|
+
}>;
|
|
160
|
+
reason: z.ZodString;
|
|
161
|
+
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
contentHash: z.ZodString;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
export declare const HarnessEvaluationReviewReceiptContentSchema: z.ZodObject<{
|
|
167
|
+
schemaVersion: z.ZodLiteral<"openpond.harnessEvaluationReviewReceipt.v1">;
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
ownerScope: z.ZodObject<{
|
|
170
|
+
kind: z.ZodEnum<{
|
|
171
|
+
personal: "personal";
|
|
172
|
+
team: "team";
|
|
173
|
+
}>;
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
workspaceRef: z.ZodString;
|
|
177
|
+
harnessRelease: z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
contentHash: z.ZodString;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
previousWatermark: z.ZodNullable<z.ZodObject<{
|
|
182
|
+
cursor: z.ZodString;
|
|
183
|
+
throughCreatedAt: z.ZodString;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
nextWatermark: z.ZodObject<{
|
|
186
|
+
cursor: z.ZodString;
|
|
187
|
+
throughCreatedAt: z.ZodString;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
selectedEvidence: z.ZodArray<z.ZodObject<{
|
|
190
|
+
evidence: z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
contentHash: z.ZodString;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
kind: z.ZodEnum<{
|
|
195
|
+
taskset: "taskset";
|
|
196
|
+
observation: "observation";
|
|
197
|
+
trigger: "trigger";
|
|
198
|
+
route_decision: "route_decision";
|
|
199
|
+
refiner_outcome: "refiner_outcome";
|
|
200
|
+
proposal: "proposal";
|
|
201
|
+
validation: "validation";
|
|
202
|
+
apply_receipt: "apply_receipt";
|
|
203
|
+
harness_advance: "harness_advance";
|
|
204
|
+
rollback: "rollback";
|
|
205
|
+
work_outcome: "work_outcome";
|
|
206
|
+
evaluation: "evaluation";
|
|
207
|
+
training_qualification: "training_qualification";
|
|
208
|
+
model_candidate: "model_candidate";
|
|
209
|
+
}>;
|
|
210
|
+
sourceRef: z.ZodString;
|
|
211
|
+
sourcePolicy: z.ZodObject<{
|
|
212
|
+
policy: z.ZodObject<{
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
contentHash: z.ZodString;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
state: z.ZodEnum<{
|
|
217
|
+
authorized: "authorized";
|
|
218
|
+
revoked: "revoked";
|
|
219
|
+
deleted: "deleted";
|
|
220
|
+
expired: "expired";
|
|
221
|
+
}>;
|
|
222
|
+
checkedAt: z.ZodString;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
occurrenceKey: z.ZodString;
|
|
225
|
+
occurredAt: z.ZodString;
|
|
226
|
+
}, z.core.$strict>>;
|
|
227
|
+
excludedEvidence: z.ZodArray<z.ZodObject<{
|
|
228
|
+
evidence: z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
contentHash: z.ZodString;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
sourcePolicy: z.ZodNullable<z.ZodObject<{
|
|
233
|
+
policy: z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
contentHash: z.ZodString;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
state: z.ZodEnum<{
|
|
238
|
+
authorized: "authorized";
|
|
239
|
+
revoked: "revoked";
|
|
240
|
+
deleted: "deleted";
|
|
241
|
+
expired: "expired";
|
|
242
|
+
}>;
|
|
243
|
+
checkedAt: z.ZodString;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
reason: z.ZodEnum<{
|
|
246
|
+
revoked: "revoked";
|
|
247
|
+
deleted: "deleted";
|
|
248
|
+
expired: "expired";
|
|
249
|
+
outside_scope: "outside_scope";
|
|
250
|
+
before_watermark: "before_watermark";
|
|
251
|
+
duplicate: "duplicate";
|
|
252
|
+
resolved: "resolved";
|
|
253
|
+
sensitive: "sensitive";
|
|
254
|
+
unverified: "unverified";
|
|
255
|
+
budget: "budget";
|
|
256
|
+
}>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
claim: z.ZodNullable<z.ZodObject<{
|
|
259
|
+
fingerprint: z.ZodString;
|
|
260
|
+
recurrenceFamily: z.ZodString;
|
|
261
|
+
statement: z.ZodString;
|
|
262
|
+
independentOccurrences: z.ZodNumber;
|
|
263
|
+
unresolvedOccurrences: z.ZodNumber;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
classification: z.ZodEnum<{
|
|
266
|
+
no_action: "no_action";
|
|
267
|
+
harness_maintenance: "harness_maintenance";
|
|
268
|
+
runtime: "runtime";
|
|
269
|
+
product: "product";
|
|
270
|
+
taskset: "taskset";
|
|
271
|
+
model_improvement: "model_improvement";
|
|
272
|
+
}>;
|
|
273
|
+
triage: z.ZodArray<z.ZodObject<{
|
|
274
|
+
layer: z.ZodEnum<{
|
|
275
|
+
runtime: "runtime";
|
|
276
|
+
product: "product";
|
|
277
|
+
evaluation: "evaluation";
|
|
278
|
+
harness: "harness";
|
|
279
|
+
retrieval: "retrieval";
|
|
280
|
+
tools: "tools";
|
|
281
|
+
model: "model";
|
|
282
|
+
}>;
|
|
283
|
+
status: z.ZodEnum<{
|
|
284
|
+
resolved: "resolved";
|
|
285
|
+
not_applicable: "not_applicable";
|
|
286
|
+
unresolved: "unresolved";
|
|
287
|
+
blocked: "blocked";
|
|
288
|
+
}>;
|
|
289
|
+
reason: z.ZodString;
|
|
290
|
+
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
contentHash: z.ZodString;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
reason: z.ZodString;
|
|
296
|
+
nextAuthority: z.ZodEnum<{
|
|
297
|
+
none: "none";
|
|
298
|
+
runtime_service: "runtime_service";
|
|
299
|
+
product_team: "product_team";
|
|
300
|
+
human_review: "human_review";
|
|
301
|
+
evaluation_system: "evaluation_system";
|
|
302
|
+
training_system: "training_system";
|
|
303
|
+
}>;
|
|
304
|
+
maxEstimatedCostUsd: z.ZodNumber;
|
|
305
|
+
tasksetProposal: z.ZodNullable<z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
contentHash: z.ZodString;
|
|
308
|
+
}, z.core.$strict>>;
|
|
309
|
+
evaluation: z.ZodNullable<z.ZodObject<{
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
contentHash: z.ZodString;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
trainingQualification: z.ZodNullable<z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
contentHash: z.ZodString;
|
|
316
|
+
}, z.core.$strict>>;
|
|
317
|
+
policyVersion: z.ZodString;
|
|
318
|
+
createdAt: z.ZodString;
|
|
319
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
export declare const HarnessEvaluationReviewReceiptSchema: z.ZodObject<{
|
|
322
|
+
schemaVersion: z.ZodLiteral<"openpond.harnessEvaluationReviewReceipt.v1">;
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
ownerScope: z.ZodObject<{
|
|
325
|
+
kind: z.ZodEnum<{
|
|
326
|
+
personal: "personal";
|
|
327
|
+
team: "team";
|
|
328
|
+
}>;
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
}, z.core.$strict>;
|
|
331
|
+
workspaceRef: z.ZodString;
|
|
332
|
+
harnessRelease: z.ZodObject<{
|
|
333
|
+
id: z.ZodString;
|
|
334
|
+
contentHash: z.ZodString;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
previousWatermark: z.ZodNullable<z.ZodObject<{
|
|
337
|
+
cursor: z.ZodString;
|
|
338
|
+
throughCreatedAt: z.ZodString;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
nextWatermark: z.ZodObject<{
|
|
341
|
+
cursor: z.ZodString;
|
|
342
|
+
throughCreatedAt: z.ZodString;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
selectedEvidence: z.ZodArray<z.ZodObject<{
|
|
345
|
+
evidence: z.ZodObject<{
|
|
346
|
+
id: z.ZodString;
|
|
347
|
+
contentHash: z.ZodString;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
kind: z.ZodEnum<{
|
|
350
|
+
taskset: "taskset";
|
|
351
|
+
observation: "observation";
|
|
352
|
+
trigger: "trigger";
|
|
353
|
+
route_decision: "route_decision";
|
|
354
|
+
refiner_outcome: "refiner_outcome";
|
|
355
|
+
proposal: "proposal";
|
|
356
|
+
validation: "validation";
|
|
357
|
+
apply_receipt: "apply_receipt";
|
|
358
|
+
harness_advance: "harness_advance";
|
|
359
|
+
rollback: "rollback";
|
|
360
|
+
work_outcome: "work_outcome";
|
|
361
|
+
evaluation: "evaluation";
|
|
362
|
+
training_qualification: "training_qualification";
|
|
363
|
+
model_candidate: "model_candidate";
|
|
364
|
+
}>;
|
|
365
|
+
sourceRef: z.ZodString;
|
|
366
|
+
sourcePolicy: z.ZodObject<{
|
|
367
|
+
policy: z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
contentHash: z.ZodString;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
state: z.ZodEnum<{
|
|
372
|
+
authorized: "authorized";
|
|
373
|
+
revoked: "revoked";
|
|
374
|
+
deleted: "deleted";
|
|
375
|
+
expired: "expired";
|
|
376
|
+
}>;
|
|
377
|
+
checkedAt: z.ZodString;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
occurrenceKey: z.ZodString;
|
|
380
|
+
occurredAt: z.ZodString;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
excludedEvidence: z.ZodArray<z.ZodObject<{
|
|
383
|
+
evidence: z.ZodObject<{
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
contentHash: z.ZodString;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
sourcePolicy: z.ZodNullable<z.ZodObject<{
|
|
388
|
+
policy: z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
contentHash: z.ZodString;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
state: z.ZodEnum<{
|
|
393
|
+
authorized: "authorized";
|
|
394
|
+
revoked: "revoked";
|
|
395
|
+
deleted: "deleted";
|
|
396
|
+
expired: "expired";
|
|
397
|
+
}>;
|
|
398
|
+
checkedAt: z.ZodString;
|
|
399
|
+
}, z.core.$strict>>;
|
|
400
|
+
reason: z.ZodEnum<{
|
|
401
|
+
revoked: "revoked";
|
|
402
|
+
deleted: "deleted";
|
|
403
|
+
expired: "expired";
|
|
404
|
+
outside_scope: "outside_scope";
|
|
405
|
+
before_watermark: "before_watermark";
|
|
406
|
+
duplicate: "duplicate";
|
|
407
|
+
resolved: "resolved";
|
|
408
|
+
sensitive: "sensitive";
|
|
409
|
+
unverified: "unverified";
|
|
410
|
+
budget: "budget";
|
|
411
|
+
}>;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
claim: z.ZodNullable<z.ZodObject<{
|
|
414
|
+
fingerprint: z.ZodString;
|
|
415
|
+
recurrenceFamily: z.ZodString;
|
|
416
|
+
statement: z.ZodString;
|
|
417
|
+
independentOccurrences: z.ZodNumber;
|
|
418
|
+
unresolvedOccurrences: z.ZodNumber;
|
|
419
|
+
}, z.core.$strict>>;
|
|
420
|
+
classification: z.ZodEnum<{
|
|
421
|
+
no_action: "no_action";
|
|
422
|
+
harness_maintenance: "harness_maintenance";
|
|
423
|
+
runtime: "runtime";
|
|
424
|
+
product: "product";
|
|
425
|
+
taskset: "taskset";
|
|
426
|
+
model_improvement: "model_improvement";
|
|
427
|
+
}>;
|
|
428
|
+
triage: z.ZodArray<z.ZodObject<{
|
|
429
|
+
layer: z.ZodEnum<{
|
|
430
|
+
runtime: "runtime";
|
|
431
|
+
product: "product";
|
|
432
|
+
evaluation: "evaluation";
|
|
433
|
+
harness: "harness";
|
|
434
|
+
retrieval: "retrieval";
|
|
435
|
+
tools: "tools";
|
|
436
|
+
model: "model";
|
|
437
|
+
}>;
|
|
438
|
+
status: z.ZodEnum<{
|
|
439
|
+
resolved: "resolved";
|
|
440
|
+
not_applicable: "not_applicable";
|
|
441
|
+
unresolved: "unresolved";
|
|
442
|
+
blocked: "blocked";
|
|
443
|
+
}>;
|
|
444
|
+
reason: z.ZodString;
|
|
445
|
+
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
contentHash: z.ZodString;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
}, z.core.$strict>>;
|
|
450
|
+
reason: z.ZodString;
|
|
451
|
+
nextAuthority: z.ZodEnum<{
|
|
452
|
+
none: "none";
|
|
453
|
+
runtime_service: "runtime_service";
|
|
454
|
+
product_team: "product_team";
|
|
455
|
+
human_review: "human_review";
|
|
456
|
+
evaluation_system: "evaluation_system";
|
|
457
|
+
training_system: "training_system";
|
|
458
|
+
}>;
|
|
459
|
+
maxEstimatedCostUsd: z.ZodNumber;
|
|
460
|
+
tasksetProposal: z.ZodNullable<z.ZodObject<{
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
contentHash: z.ZodString;
|
|
463
|
+
}, z.core.$strict>>;
|
|
464
|
+
evaluation: z.ZodNullable<z.ZodObject<{
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
contentHash: z.ZodString;
|
|
467
|
+
}, z.core.$strict>>;
|
|
468
|
+
trainingQualification: z.ZodNullable<z.ZodObject<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
contentHash: z.ZodString;
|
|
471
|
+
}, z.core.$strict>>;
|
|
472
|
+
policyVersion: z.ZodString;
|
|
473
|
+
createdAt: z.ZodString;
|
|
474
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
475
|
+
contentHash: z.ZodString;
|
|
476
|
+
}, z.core.$strict>;
|
|
477
|
+
export declare function createHarnessEvaluationReviewReceipt(input: z.input<typeof HarnessEvaluationReviewReceiptContentSchema>): HarnessEvaluationReviewReceipt;
|
|
478
|
+
export declare function verifyHarnessEvaluationReviewReceipt(value: unknown): value is HarnessEvaluationReviewReceipt;
|
|
479
|
+
export type HarnessEvaluationReviewReceipt = z.infer<typeof HarnessEvaluationReviewReceiptSchema>;
|
|
480
|
+
export type HarnessReviewEvidenceRef = z.infer<typeof HarnessReviewEvidenceRefSchema>;
|
|
481
|
+
export declare const HarnessEvaluationReviewModelEvidenceSchema: z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
evidence: z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
contentHash: z.ZodString;
|
|
486
|
+
}, z.core.$strict>;
|
|
487
|
+
kind: z.ZodEnum<{
|
|
488
|
+
taskset: "taskset";
|
|
489
|
+
observation: "observation";
|
|
490
|
+
trigger: "trigger";
|
|
491
|
+
route_decision: "route_decision";
|
|
492
|
+
refiner_outcome: "refiner_outcome";
|
|
493
|
+
proposal: "proposal";
|
|
494
|
+
validation: "validation";
|
|
495
|
+
apply_receipt: "apply_receipt";
|
|
496
|
+
harness_advance: "harness_advance";
|
|
497
|
+
rollback: "rollback";
|
|
498
|
+
work_outcome: "work_outcome";
|
|
499
|
+
evaluation: "evaluation";
|
|
500
|
+
training_qualification: "training_qualification";
|
|
501
|
+
model_candidate: "model_candidate";
|
|
502
|
+
}>;
|
|
503
|
+
sourceRef: z.ZodString;
|
|
504
|
+
occurredAt: z.ZodString;
|
|
505
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
506
|
+
}, z.core.$strict>;
|
|
507
|
+
export declare const HarnessEvaluationReviewModelDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
508
|
+
schemaVersion: z.ZodLiteral<"openpond.harnessEvaluationReviewModelDecision.v1">;
|
|
509
|
+
decision: z.ZodLiteral<"no_action">;
|
|
510
|
+
reason: z.ZodString;
|
|
511
|
+
ignoredEvidence: z.ZodArray<z.ZodObject<{
|
|
512
|
+
id: z.ZodString;
|
|
513
|
+
reason: z.ZodString;
|
|
514
|
+
}, z.core.$strict>>;
|
|
515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
516
|
+
schemaVersion: z.ZodLiteral<"openpond.harnessEvaluationReviewModelDecision.v1">;
|
|
517
|
+
decision: z.ZodLiteral<"review">;
|
|
518
|
+
classification: z.ZodEnum<{
|
|
519
|
+
harness_maintenance: "harness_maintenance";
|
|
520
|
+
runtime: "runtime";
|
|
521
|
+
product: "product";
|
|
522
|
+
taskset: "taskset";
|
|
523
|
+
}>;
|
|
524
|
+
selectedEvidenceIds: z.ZodArray<z.ZodString>;
|
|
525
|
+
ignoredEvidence: z.ZodArray<z.ZodObject<{
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
reason: z.ZodString;
|
|
528
|
+
}, z.core.$strict>>;
|
|
529
|
+
recurrenceFamily: z.ZodString;
|
|
530
|
+
statement: z.ZodString;
|
|
531
|
+
triageLayer: z.ZodEnum<{
|
|
532
|
+
runtime: "runtime";
|
|
533
|
+
product: "product";
|
|
534
|
+
evaluation: "evaluation";
|
|
535
|
+
harness: "harness";
|
|
536
|
+
retrieval: "retrieval";
|
|
537
|
+
tools: "tools";
|
|
538
|
+
model: "model";
|
|
539
|
+
}>;
|
|
540
|
+
expectedOutcome: z.ZodString;
|
|
541
|
+
counterevidence: z.ZodString;
|
|
542
|
+
confidence: z.ZodNumber;
|
|
543
|
+
reason: z.ZodString;
|
|
544
|
+
}, z.core.$strict>], "decision">;
|
|
545
|
+
export type HarnessEvaluationReviewModelEvidence = z.infer<typeof HarnessEvaluationReviewModelEvidenceSchema>;
|
|
546
|
+
export type HarnessEvaluationReviewModelDecision = z.infer<typeof HarnessEvaluationReviewModelDecisionSchema>;
|
|
547
|
+
export type HarnessEvaluationReviewMessage = {
|
|
548
|
+
role: "system" | "user" | "assistant";
|
|
549
|
+
content: string;
|
|
550
|
+
};
|
|
551
|
+
export type HarnessEvaluationReviewModelStream = (input: {
|
|
552
|
+
messages: HarnessEvaluationReviewMessage[];
|
|
553
|
+
signal: AbortSignal;
|
|
554
|
+
}) => AsyncIterable<{
|
|
555
|
+
text?: string;
|
|
556
|
+
usage?: {
|
|
557
|
+
promptTokens: number;
|
|
558
|
+
completionTokens: number;
|
|
559
|
+
totalTokens: number;
|
|
560
|
+
};
|
|
561
|
+
}>;
|
|
562
|
+
export declare const DEFAULT_EVALUATION_REVIEW_TIMEOUT_MS = 240000;
|
|
563
|
+
export declare const DEFAULT_EVALUATION_REVIEW_MAX_OUTPUT_TOKENS = 4000;
|
|
564
|
+
export declare const HarnessEvaluationReviewNavigationDecisionSchema: z.ZodObject<{
|
|
565
|
+
schemaVersion: z.ZodLiteral<"openpond.harnessEvaluationReviewNavigationDecision.v1">;
|
|
566
|
+
selectedEvidenceIds: z.ZodArray<z.ZodString>;
|
|
567
|
+
reason: z.ZodString;
|
|
568
|
+
}, z.core.$strict>;
|
|
569
|
+
export declare function authorHarnessEvaluationReviewWithModel(input: {
|
|
570
|
+
evidence: HarnessEvaluationReviewModelEvidence[];
|
|
571
|
+
harnessRelease: z.infer<typeof ImmutableReleaseRefSchema>;
|
|
572
|
+
previousReviews?: Array<Record<string, unknown>>;
|
|
573
|
+
stream: HarnessEvaluationReviewModelStream;
|
|
574
|
+
signal: AbortSignal;
|
|
575
|
+
timeoutMs?: number;
|
|
576
|
+
onNavigation?: (decision: z.infer<typeof HarnessEvaluationReviewNavigationDecisionSchema>) => void | Promise<void>;
|
|
577
|
+
}): Promise<HarnessEvaluationReviewModelDecision>;
|
|
578
|
+
export declare function evaluationReviewMessages(input: {
|
|
579
|
+
evidence: HarnessEvaluationReviewModelEvidence[];
|
|
580
|
+
harnessRelease: z.infer<typeof ImmutableReleaseRefSchema>;
|
|
581
|
+
previousReviews: Array<Record<string, unknown>>;
|
|
582
|
+
}): HarnessEvaluationReviewMessage[];
|
|
583
|
+
//# sourceMappingURL=evaluation-review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-review.d.ts","sourceRoot":"","sources":["../../../../src/evaluation-review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,yBAAyB,EAM1B,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,2CAA2C;;;;;;;EAOtD,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;EAOjD,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAe1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;kBAK/B,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;kBAMpC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAShC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBrC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;kBAK9B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;kBAYlC,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;EAQzC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;kBAOnC,CAAC;AAEZ,e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