openpond-sdk 0.2.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.
@@ -0,0 +1,987 @@
1
+ import { z } from "zod";
2
+ import { LearningTextAssetSchema } from "@openpond/evals/learning";
3
+ import { RewardBindingSchema, RewardReleaseSchema } from "@openpond/evals/rewards";
4
+ declare const OwnerSchema: z.ZodObject<{
5
+ scopeId: z.ZodString;
6
+ modelId: z.ZodString;
7
+ }, z.core.$strict>;
8
+ export declare const ModelTasksetDerivationSchema: z.ZodObject<{
9
+ schemaVersion: z.ZodLiteral<"openpond.modelTasksetDerivation.v1">;
10
+ owner: z.ZodObject<{
11
+ scopeId: z.ZodString;
12
+ modelId: z.ZodString;
13
+ }, z.core.$strict>;
14
+ root: z.ZodObject<{
15
+ id: z.ZodString;
16
+ contentHash: z.ZodString;
17
+ revision: z.ZodNumber;
18
+ }, z.core.$strict>;
19
+ parent: z.ZodObject<{
20
+ id: z.ZodString;
21
+ contentHash: z.ZodString;
22
+ revision: z.ZodNumber;
23
+ }, z.core.$strict>;
24
+ }, z.core.$strict>;
25
+ /** Immutable executable resources, independent of a catalog listing. */
26
+ export declare const ModelTasksetPackageSchema: z.ZodObject<{
27
+ taskset: z.ZodObject<{
28
+ schemaVersion: z.ZodLiteral<"openpond.tasksetRelease.v2">;
29
+ id: z.ZodString;
30
+ revision: z.ZodNumber;
31
+ policy: z.ZodObject<{
32
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
33
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
34
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
35
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
36
+ }, z.core.$strict>;
37
+ environment: z.ZodObject<{
38
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
39
+ kind: z.ZodEnum<{
40
+ text: "text";
41
+ agent: "agent";
42
+ work: "work";
43
+ custom_program: "custom_program";
44
+ }>;
45
+ entrypoint: z.ZodString;
46
+ stateful: z.ZodBoolean;
47
+ deterministicSeeds: z.ZodBoolean;
48
+ lifecycle: z.ZodArray<z.ZodEnum<{
49
+ create: "create";
50
+ reset: "reset";
51
+ step: "step";
52
+ collect: "collect";
53
+ destroy: "destroy";
54
+ }>>;
55
+ networkPolicy: z.ZodEnum<{
56
+ none: "none";
57
+ declared_read_only: "declared_read_only";
58
+ declared_scoped: "declared_scoped";
59
+ }>;
60
+ defaultTimeoutMs: z.ZodNumber;
61
+ }, z.core.$strict>;
62
+ environmentRelease: z.ZodOptional<z.ZodObject<{
63
+ id: z.ZodString;
64
+ contentHash: z.ZodString;
65
+ }, z.core.$strict>>;
66
+ tools: z.ZodArray<z.ZodObject<{
67
+ name: z.ZodString;
68
+ description: z.ZodString;
69
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
70
+ inputSchemaHash: z.ZodString;
71
+ sideEffect: z.ZodEnum<{
72
+ read: "read";
73
+ write: "write";
74
+ }>;
75
+ timeoutMs: z.ZodNumber;
76
+ }, z.core.$strict>>;
77
+ capabilities: z.ZodArray<z.ZodObject<{
78
+ id: z.ZodString;
79
+ required: z.ZodBoolean;
80
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
81
+ portability: z.ZodEnum<{
82
+ portable: "portable";
83
+ host_adapter: "host_adapter";
84
+ local_only: "local_only";
85
+ hosted_only: "hosted_only";
86
+ }>;
87
+ }, z.core.$strict>>;
88
+ tasks: z.ZodArray<z.ZodObject<{
89
+ id: z.ZodString;
90
+ clusterKey: z.ZodString;
91
+ split: z.ZodEnum<{
92
+ train: "train";
93
+ validation: "validation";
94
+ test: "test";
95
+ frozen_eval: "frozen_eval";
96
+ }>;
97
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
98
+ expectedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
99
+ policyVisibleContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
+ privilegedContextRef: z.ZodNullable<z.ZodString>;
101
+ artifactRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ path: z.ZodString;
104
+ contentHash: z.ZodString;
105
+ sizeBytes: z.ZodNumber;
106
+ mediaType: z.ZodString;
107
+ visibility: z.ZodEnum<{
108
+ policy: "policy";
109
+ verifier: "verifier";
110
+ host_private: "host_private";
111
+ }>;
112
+ }, z.core.$strict>>>;
113
+ requiredOutputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ path: z.ZodString;
115
+ mediaType: z.ZodString;
116
+ schemaRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
117
+ id: z.ZodString;
118
+ path: z.ZodString;
119
+ contentHash: z.ZodString;
120
+ sizeBytes: z.ZodNumber;
121
+ mediaType: z.ZodString;
122
+ visibility: z.ZodEnum<{
123
+ policy: "policy";
124
+ verifier: "verifier";
125
+ host_private: "host_private";
126
+ }>;
127
+ }, z.core.$strict>>>;
128
+ maxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
129
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ }, z.core.$strict>>>;
131
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
132
+ }, z.core.$strict>>;
133
+ graders: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
134
+ id: z.ZodString;
135
+ version: z.ZodString;
136
+ weight: z.ZodDefault<z.ZodNumber>;
137
+ hardGate: z.ZodDefault<z.ZodBoolean>;
138
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
139
+ privileged: z.ZodDefault<z.ZodBoolean>;
140
+ kind: z.ZodEnum<{
141
+ content: "content";
142
+ schema: "schema";
143
+ artifact: "artifact";
144
+ runtime_event: "runtime_event";
145
+ state: "state";
146
+ }>;
147
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
148
+ }, z.core.$strict>, z.ZodObject<{
149
+ id: z.ZodString;
150
+ version: z.ZodString;
151
+ weight: z.ZodDefault<z.ZodNumber>;
152
+ hardGate: z.ZodDefault<z.ZodBoolean>;
153
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
154
+ privileged: z.ZodDefault<z.ZodBoolean>;
155
+ kind: z.ZodLiteral<"model_judge">;
156
+ rubricRef: z.ZodObject<{
157
+ id: z.ZodString;
158
+ path: z.ZodString;
159
+ contentHash: z.ZodString;
160
+ sizeBytes: z.ZodNumber;
161
+ mediaType: z.ZodString;
162
+ visibility: z.ZodEnum<{
163
+ policy: "policy";
164
+ verifier: "verifier";
165
+ host_private: "host_private";
166
+ }>;
167
+ }, z.core.$strict>;
168
+ calibrationStatus: z.ZodEnum<{
169
+ pending: "pending";
170
+ passed: "passed";
171
+ failed: "failed";
172
+ }>;
173
+ model: z.ZodOptional<z.ZodObject<{
174
+ providerId: z.ZodString;
175
+ modelId: z.ZodString;
176
+ revision: z.ZodNullable<z.ZodString>;
177
+ }, z.core.$strict>>;
178
+ temperature: z.ZodOptional<z.ZodNumber>;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ id: z.ZodString;
181
+ version: z.ZodString;
182
+ weight: z.ZodDefault<z.ZodNumber>;
183
+ hardGate: z.ZodDefault<z.ZodBoolean>;
184
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
185
+ privileged: z.ZodDefault<z.ZodBoolean>;
186
+ kind: z.ZodLiteral<"custom_verifier">;
187
+ verifierRef: z.ZodObject<{
188
+ id: z.ZodString;
189
+ path: z.ZodString;
190
+ contentHash: z.ZodString;
191
+ sizeBytes: z.ZodNumber;
192
+ mediaType: z.ZodString;
193
+ visibility: z.ZodEnum<{
194
+ policy: "policy";
195
+ verifier: "verifier";
196
+ host_private: "host_private";
197
+ }>;
198
+ }, z.core.$strict>;
199
+ exportName: z.ZodOptional<z.ZodString>;
200
+ timeoutMs: z.ZodNumber;
201
+ networkPolicy: z.ZodLiteral<"none">;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ id: z.ZodString;
204
+ version: z.ZodString;
205
+ weight: z.ZodDefault<z.ZodNumber>;
206
+ hardGate: z.ZodDefault<z.ZodBoolean>;
207
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
208
+ privileged: z.ZodDefault<z.ZodBoolean>;
209
+ kind: z.ZodLiteral<"human">;
210
+ rubricRef: z.ZodObject<{
211
+ id: z.ZodString;
212
+ path: z.ZodString;
213
+ contentHash: z.ZodString;
214
+ sizeBytes: z.ZodNumber;
215
+ mediaType: z.ZodString;
216
+ visibility: z.ZodEnum<{
217
+ policy: "policy";
218
+ verifier: "verifier";
219
+ host_private: "host_private";
220
+ }>;
221
+ }, z.core.$strict>;
222
+ reviewerRole: z.ZodString;
223
+ }, z.core.$strict>]>>;
224
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
225
+ id: z.ZodString;
226
+ contentHash: z.ZodString;
227
+ }, z.core.$strict>>;
228
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
229
+ contentHash: z.ZodString;
230
+ }, z.core.$strict>;
231
+ taskDefinition: z.ZodObject<{
232
+ schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
233
+ id: z.ZodString;
234
+ revision: z.ZodNumber;
235
+ name: z.ZodString;
236
+ description: z.ZodString;
237
+ instructions: z.ZodString;
238
+ category: z.ZodEnum<{
239
+ custom: "custom";
240
+ structured: "structured";
241
+ question_answering: "question_answering";
242
+ coding: "coding";
243
+ tool_workflow: "tool_workflow";
244
+ }>;
245
+ familyNamespace: z.ZodString;
246
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
247
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
248
+ rewardBinding: z.ZodObject<{
249
+ id: z.ZodString;
250
+ contentHash: z.ZodString;
251
+ revision: z.ZodNumber;
252
+ }, z.core.$strict>;
253
+ harness: z.ZodNullable<z.ZodObject<{
254
+ id: z.ZodString;
255
+ contentHash: z.ZodString;
256
+ }, z.core.$strict>>;
257
+ execution: z.ZodObject<{
258
+ policy: z.ZodObject<{
259
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
260
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
261
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
262
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
263
+ }, z.core.$strict>;
264
+ environment: z.ZodObject<{
265
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
266
+ kind: z.ZodEnum<{
267
+ text: "text";
268
+ agent: "agent";
269
+ work: "work";
270
+ custom_program: "custom_program";
271
+ }>;
272
+ entrypoint: z.ZodString;
273
+ stateful: z.ZodBoolean;
274
+ deterministicSeeds: z.ZodBoolean;
275
+ lifecycle: z.ZodArray<z.ZodEnum<{
276
+ create: "create";
277
+ reset: "reset";
278
+ step: "step";
279
+ collect: "collect";
280
+ destroy: "destroy";
281
+ }>>;
282
+ networkPolicy: z.ZodEnum<{
283
+ none: "none";
284
+ declared_read_only: "declared_read_only";
285
+ declared_scoped: "declared_scoped";
286
+ }>;
287
+ defaultTimeoutMs: z.ZodNumber;
288
+ }, z.core.$strict>;
289
+ environmentRelease: z.ZodOptional<z.ZodObject<{
290
+ id: z.ZodString;
291
+ contentHash: z.ZodString;
292
+ }, z.core.$strict>>;
293
+ tools: z.ZodArray<z.ZodObject<{
294
+ name: z.ZodString;
295
+ description: z.ZodString;
296
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
297
+ inputSchemaHash: z.ZodString;
298
+ sideEffect: z.ZodEnum<{
299
+ read: "read";
300
+ write: "write";
301
+ }>;
302
+ timeoutMs: z.ZodNumber;
303
+ }, z.core.$strict>>;
304
+ capabilities: z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ required: z.ZodBoolean;
307
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
308
+ portability: z.ZodEnum<{
309
+ portable: "portable";
310
+ host_adapter: "host_adapter";
311
+ local_only: "local_only";
312
+ hosted_only: "hosted_only";
313
+ }>;
314
+ }, z.core.$strict>>;
315
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
316
+ id: z.ZodString;
317
+ contentHash: z.ZodString;
318
+ }, z.core.$strict>>;
319
+ }, z.core.$strict>;
320
+ contentHash: z.ZodString;
321
+ }, z.core.$strict>;
322
+ rewardBinding: z.ZodObject<{
323
+ schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
324
+ id: z.ZodString;
325
+ revision: z.ZodNumber;
326
+ name: z.ZodOptional<z.ZodString>;
327
+ description: z.ZodOptional<z.ZodString>;
328
+ recipeRef: z.ZodOptional<z.ZodObject<{
329
+ id: z.ZodString;
330
+ contentHash: z.ZodString;
331
+ revision: z.ZodNumber;
332
+ }, z.core.$strict>>;
333
+ sources: z.ZodArray<z.ZodObject<{
334
+ graderId: z.ZodString;
335
+ reward: z.ZodObject<{
336
+ id: z.ZodString;
337
+ contentHash: z.ZodString;
338
+ revision: z.ZodNumber;
339
+ }, z.core.$strict>;
340
+ role: z.ZodEnum<{
341
+ evaluation: "evaluation";
342
+ training: "training";
343
+ }>;
344
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
345
+ kind: z.ZodLiteral<"identity">;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ kind: z.ZodLiteral<"linear">;
348
+ minimum: z.ZodNumber;
349
+ maximum: z.ZodNumber;
350
+ direction: z.ZodEnum<{
351
+ higher: "higher";
352
+ lower: "lower";
353
+ }>;
354
+ }, z.core.$strict>], "kind">;
355
+ weight: z.ZodNumber;
356
+ required: z.ZodBoolean;
357
+ hardGate: z.ZodBoolean;
358
+ privileged: z.ZodBoolean;
359
+ fixtureRefs: z.ZodArray<z.ZodObject<{
360
+ id: z.ZodString;
361
+ contentHash: z.ZodString;
362
+ }, z.core.$strict>>;
363
+ }, z.core.$strict>>;
364
+ aggregation: z.ZodLiteral<"weighted_mean">;
365
+ unscorable: z.ZodLiteral<"exclude_optional_require_all_required">;
366
+ contentHash: z.ZodString;
367
+ }, z.core.$strict>;
368
+ rewards: z.ZodArray<z.ZodObject<{
369
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
370
+ id: z.ZodString;
371
+ revision: z.ZodNumber;
372
+ name: z.ZodString;
373
+ description: z.ZodString;
374
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
375
+ kind: z.ZodEnum<{
376
+ content: "content";
377
+ schema: "schema";
378
+ artifact: "artifact";
379
+ runtime_event: "runtime_event";
380
+ state: "state";
381
+ }>;
382
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ kind: z.ZodLiteral<"model_judge">;
385
+ rubricRef: z.ZodObject<{
386
+ id: z.ZodString;
387
+ path: z.ZodString;
388
+ contentHash: z.ZodString;
389
+ sizeBytes: z.ZodNumber;
390
+ mediaType: z.ZodString;
391
+ visibility: z.ZodEnum<{
392
+ policy: "policy";
393
+ verifier: "verifier";
394
+ host_private: "host_private";
395
+ }>;
396
+ }, z.core.$strict>;
397
+ calibrationStatus: z.ZodEnum<{
398
+ pending: "pending";
399
+ passed: "passed";
400
+ failed: "failed";
401
+ }>;
402
+ model: z.ZodOptional<z.ZodObject<{
403
+ providerId: z.ZodString;
404
+ modelId: z.ZodString;
405
+ revision: z.ZodNullable<z.ZodString>;
406
+ }, z.core.$strict>>;
407
+ temperature: z.ZodOptional<z.ZodNumber>;
408
+ }, z.core.$strict>, z.ZodObject<{
409
+ kind: z.ZodLiteral<"custom_verifier">;
410
+ networkPolicy: z.ZodLiteral<"none">;
411
+ verifierRef: z.ZodObject<{
412
+ id: z.ZodString;
413
+ path: z.ZodString;
414
+ contentHash: z.ZodString;
415
+ sizeBytes: z.ZodNumber;
416
+ mediaType: z.ZodString;
417
+ visibility: z.ZodEnum<{
418
+ policy: "policy";
419
+ verifier: "verifier";
420
+ host_private: "host_private";
421
+ }>;
422
+ }, z.core.$strict>;
423
+ exportName: z.ZodOptional<z.ZodString>;
424
+ timeoutMs: z.ZodNumber;
425
+ }, z.core.$strict>, z.ZodObject<{
426
+ kind: z.ZodLiteral<"human">;
427
+ rubricRef: z.ZodObject<{
428
+ id: z.ZodString;
429
+ path: z.ZodString;
430
+ contentHash: z.ZodString;
431
+ sizeBytes: z.ZodNumber;
432
+ mediaType: z.ZodString;
433
+ visibility: z.ZodEnum<{
434
+ policy: "policy";
435
+ verifier: "verifier";
436
+ host_private: "host_private";
437
+ }>;
438
+ }, z.core.$strict>;
439
+ reviewerRole: z.ZodString;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ kind: z.ZodLiteral<"learned_model">;
442
+ modelVersion: z.ZodObject<{
443
+ id: z.ZodString;
444
+ contentHash: z.ZodString;
445
+ }, z.core.$strict>;
446
+ inputContract: z.ZodObject<{
447
+ id: z.ZodString;
448
+ path: z.ZodString;
449
+ contentHash: z.ZodString;
450
+ sizeBytes: z.ZodNumber;
451
+ mediaType: z.ZodString;
452
+ visibility: z.ZodEnum<{
453
+ policy: "policy";
454
+ verifier: "verifier";
455
+ host_private: "host_private";
456
+ }>;
457
+ }, z.core.$strict>;
458
+ }, z.core.$strict>]>;
459
+ rawScore: z.ZodObject<{
460
+ minimum: z.ZodNumber;
461
+ maximum: z.ZodNumber;
462
+ }, z.core.$strict>;
463
+ assets: z.ZodArray<z.ZodObject<{
464
+ id: z.ZodString;
465
+ path: z.ZodString;
466
+ contentHash: z.ZodString;
467
+ sizeBytes: z.ZodNumber;
468
+ mediaType: z.ZodString;
469
+ visibility: z.ZodEnum<{
470
+ policy: "policy";
471
+ verifier: "verifier";
472
+ host_private: "host_private";
473
+ }>;
474
+ }, z.core.$strict>>;
475
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
476
+ id: z.ZodString;
477
+ path: z.ZodString;
478
+ contentHash: z.ZodString;
479
+ sizeBytes: z.ZodNumber;
480
+ mediaType: z.ZodString;
481
+ visibility: z.ZodEnum<{
482
+ policy: "policy";
483
+ verifier: "verifier";
484
+ host_private: "host_private";
485
+ }>;
486
+ }, z.core.$strict>>;
487
+ contentHash: z.ZodString;
488
+ }, z.core.$strict>>;
489
+ assets: z.ZodArray<z.ZodObject<{
490
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
491
+ id: z.ZodString;
492
+ revision: z.ZodLiteral<1>;
493
+ asset: z.ZodObject<{
494
+ id: z.ZodString;
495
+ path: z.ZodString;
496
+ contentHash: z.ZodString;
497
+ sizeBytes: z.ZodNumber;
498
+ mediaType: z.ZodString;
499
+ visibility: z.ZodEnum<{
500
+ policy: "policy";
501
+ verifier: "verifier";
502
+ host_private: "host_private";
503
+ }>;
504
+ }, z.core.$strict>;
505
+ text: z.ZodString;
506
+ contentHash: z.ZodString;
507
+ }, z.core.$strict>>;
508
+ executionResources: z.ZodOptional<z.ZodObject<{
509
+ environment: z.ZodObject<{
510
+ schemaVersion: z.ZodLiteral<"openpond.environmentRelease.v1">;
511
+ id: z.ZodString;
512
+ revision: z.ZodNumber;
513
+ contract: z.ZodObject<{
514
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
515
+ kind: z.ZodEnum<{
516
+ text: "text";
517
+ agent: "agent";
518
+ work: "work";
519
+ custom_program: "custom_program";
520
+ }>;
521
+ entrypoint: z.ZodString;
522
+ stateful: z.ZodBoolean;
523
+ deterministicSeeds: z.ZodBoolean;
524
+ lifecycle: z.ZodArray<z.ZodEnum<{
525
+ create: "create";
526
+ reset: "reset";
527
+ step: "step";
528
+ collect: "collect";
529
+ destroy: "destroy";
530
+ }>>;
531
+ networkPolicy: z.ZodEnum<{
532
+ none: "none";
533
+ declared_read_only: "declared_read_only";
534
+ declared_scoped: "declared_scoped";
535
+ }>;
536
+ defaultTimeoutMs: z.ZodNumber;
537
+ }, z.core.$strict>;
538
+ actionSchemaRef: z.ZodNullable<z.ZodObject<{
539
+ id: z.ZodString;
540
+ path: z.ZodString;
541
+ contentHash: z.ZodString;
542
+ sizeBytes: z.ZodNumber;
543
+ mediaType: z.ZodString;
544
+ visibility: z.ZodEnum<{
545
+ policy: "policy";
546
+ verifier: "verifier";
547
+ host_private: "host_private";
548
+ }>;
549
+ }, z.core.$strict>>;
550
+ observationSchemaRef: z.ZodNullable<z.ZodObject<{
551
+ id: z.ZodString;
552
+ path: z.ZodString;
553
+ contentHash: z.ZodString;
554
+ sizeBytes: z.ZodNumber;
555
+ mediaType: z.ZodString;
556
+ visibility: z.ZodEnum<{
557
+ policy: "policy";
558
+ verifier: "verifier";
559
+ host_private: "host_private";
560
+ }>;
561
+ }, z.core.$strict>>;
562
+ stateSchemaRef: z.ZodNullable<z.ZodObject<{
563
+ id: z.ZodString;
564
+ path: z.ZodString;
565
+ contentHash: z.ZodString;
566
+ sizeBytes: z.ZodNumber;
567
+ mediaType: z.ZodString;
568
+ visibility: z.ZodEnum<{
569
+ policy: "policy";
570
+ verifier: "verifier";
571
+ host_private: "host_private";
572
+ }>;
573
+ }, z.core.$strict>>;
574
+ artifactCollection: z.ZodObject<{
575
+ maxArtifacts: z.ZodNumber;
576
+ maxTotalBytes: z.ZodNumber;
577
+ }, z.core.$strict>;
578
+ adapterConformanceHashes: z.ZodRecord<z.ZodString, z.ZodString>;
579
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
580
+ contentHash: z.ZodString;
581
+ }, z.core.$strict>;
582
+ verifierSet: z.ZodObject<{
583
+ schemaVersion: z.ZodLiteral<"openpond.verifierSetRelease.v1">;
584
+ id: z.ZodString;
585
+ revision: z.ZodNumber;
586
+ graders: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
587
+ id: z.ZodString;
588
+ version: z.ZodString;
589
+ weight: z.ZodDefault<z.ZodNumber>;
590
+ hardGate: z.ZodDefault<z.ZodBoolean>;
591
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
592
+ privileged: z.ZodDefault<z.ZodBoolean>;
593
+ kind: z.ZodEnum<{
594
+ content: "content";
595
+ schema: "schema";
596
+ artifact: "artifact";
597
+ runtime_event: "runtime_event";
598
+ state: "state";
599
+ }>;
600
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
601
+ }, z.core.$strict>, z.ZodObject<{
602
+ id: z.ZodString;
603
+ version: z.ZodString;
604
+ weight: z.ZodDefault<z.ZodNumber>;
605
+ hardGate: z.ZodDefault<z.ZodBoolean>;
606
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
607
+ privileged: z.ZodDefault<z.ZodBoolean>;
608
+ kind: z.ZodLiteral<"model_judge">;
609
+ rubricRef: z.ZodObject<{
610
+ id: z.ZodString;
611
+ path: z.ZodString;
612
+ contentHash: z.ZodString;
613
+ sizeBytes: z.ZodNumber;
614
+ mediaType: z.ZodString;
615
+ visibility: z.ZodEnum<{
616
+ policy: "policy";
617
+ verifier: "verifier";
618
+ host_private: "host_private";
619
+ }>;
620
+ }, z.core.$strict>;
621
+ calibrationStatus: z.ZodEnum<{
622
+ pending: "pending";
623
+ passed: "passed";
624
+ failed: "failed";
625
+ }>;
626
+ model: z.ZodOptional<z.ZodObject<{
627
+ providerId: z.ZodString;
628
+ modelId: z.ZodString;
629
+ revision: z.ZodNullable<z.ZodString>;
630
+ }, z.core.$strict>>;
631
+ temperature: z.ZodOptional<z.ZodNumber>;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ id: z.ZodString;
634
+ version: z.ZodString;
635
+ weight: z.ZodDefault<z.ZodNumber>;
636
+ hardGate: z.ZodDefault<z.ZodBoolean>;
637
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
638
+ privileged: z.ZodDefault<z.ZodBoolean>;
639
+ kind: z.ZodLiteral<"custom_verifier">;
640
+ verifierRef: z.ZodObject<{
641
+ id: z.ZodString;
642
+ path: z.ZodString;
643
+ contentHash: z.ZodString;
644
+ sizeBytes: z.ZodNumber;
645
+ mediaType: z.ZodString;
646
+ visibility: z.ZodEnum<{
647
+ policy: "policy";
648
+ verifier: "verifier";
649
+ host_private: "host_private";
650
+ }>;
651
+ }, z.core.$strict>;
652
+ exportName: z.ZodOptional<z.ZodString>;
653
+ timeoutMs: z.ZodNumber;
654
+ networkPolicy: z.ZodLiteral<"none">;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ id: z.ZodString;
657
+ version: z.ZodString;
658
+ weight: z.ZodDefault<z.ZodNumber>;
659
+ hardGate: z.ZodDefault<z.ZodBoolean>;
660
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
661
+ privileged: z.ZodDefault<z.ZodBoolean>;
662
+ kind: z.ZodLiteral<"human">;
663
+ rubricRef: z.ZodObject<{
664
+ id: z.ZodString;
665
+ path: z.ZodString;
666
+ contentHash: z.ZodString;
667
+ sizeBytes: z.ZodNumber;
668
+ mediaType: z.ZodString;
669
+ visibility: z.ZodEnum<{
670
+ policy: "policy";
671
+ verifier: "verifier";
672
+ host_private: "host_private";
673
+ }>;
674
+ }, z.core.$strict>;
675
+ reviewerRole: z.ZodString;
676
+ }, z.core.$strict>]>>;
677
+ isolation: z.ZodObject<{
678
+ processBoundary: z.ZodEnum<{
679
+ same_process: "same_process";
680
+ isolated_process: "isolated_process";
681
+ container: "container";
682
+ }>;
683
+ networkPolicy: z.ZodLiteral<"none">;
684
+ defaultTimeoutMs: z.ZodNumber;
685
+ }, z.core.$strict>;
686
+ calibrationReceiptRefs: z.ZodArray<z.ZodObject<{
687
+ id: z.ZodString;
688
+ contentHash: z.ZodString;
689
+ }, z.core.$strict>>;
690
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
691
+ contentHash: z.ZodString;
692
+ }, z.core.$strict>;
693
+ }, z.core.$strict>>;
694
+ execution: z.ZodOptional<z.ZodObject<{
695
+ environment: z.ZodObject<{
696
+ schemaVersion: z.ZodLiteral<"openpond.environmentRelease.v1">;
697
+ id: z.ZodString;
698
+ revision: z.ZodNumber;
699
+ contract: z.ZodObject<{
700
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
701
+ kind: z.ZodEnum<{
702
+ text: "text";
703
+ agent: "agent";
704
+ work: "work";
705
+ custom_program: "custom_program";
706
+ }>;
707
+ entrypoint: z.ZodString;
708
+ stateful: z.ZodBoolean;
709
+ deterministicSeeds: z.ZodBoolean;
710
+ lifecycle: z.ZodArray<z.ZodEnum<{
711
+ create: "create";
712
+ reset: "reset";
713
+ step: "step";
714
+ collect: "collect";
715
+ destroy: "destroy";
716
+ }>>;
717
+ networkPolicy: z.ZodEnum<{
718
+ none: "none";
719
+ declared_read_only: "declared_read_only";
720
+ declared_scoped: "declared_scoped";
721
+ }>;
722
+ defaultTimeoutMs: z.ZodNumber;
723
+ }, z.core.$strict>;
724
+ actionSchemaRef: z.ZodNullable<z.ZodObject<{
725
+ id: z.ZodString;
726
+ path: z.ZodString;
727
+ contentHash: z.ZodString;
728
+ sizeBytes: z.ZodNumber;
729
+ mediaType: z.ZodString;
730
+ visibility: z.ZodEnum<{
731
+ policy: "policy";
732
+ verifier: "verifier";
733
+ host_private: "host_private";
734
+ }>;
735
+ }, z.core.$strict>>;
736
+ observationSchemaRef: z.ZodNullable<z.ZodObject<{
737
+ id: z.ZodString;
738
+ path: z.ZodString;
739
+ contentHash: z.ZodString;
740
+ sizeBytes: z.ZodNumber;
741
+ mediaType: z.ZodString;
742
+ visibility: z.ZodEnum<{
743
+ policy: "policy";
744
+ verifier: "verifier";
745
+ host_private: "host_private";
746
+ }>;
747
+ }, z.core.$strict>>;
748
+ stateSchemaRef: z.ZodNullable<z.ZodObject<{
749
+ id: z.ZodString;
750
+ path: z.ZodString;
751
+ contentHash: z.ZodString;
752
+ sizeBytes: z.ZodNumber;
753
+ mediaType: z.ZodString;
754
+ visibility: z.ZodEnum<{
755
+ policy: "policy";
756
+ verifier: "verifier";
757
+ host_private: "host_private";
758
+ }>;
759
+ }, z.core.$strict>>;
760
+ artifactCollection: z.ZodObject<{
761
+ maxArtifacts: z.ZodNumber;
762
+ maxTotalBytes: z.ZodNumber;
763
+ }, z.core.$strict>;
764
+ adapterConformanceHashes: z.ZodRecord<z.ZodString, z.ZodString>;
765
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
766
+ contentHash: z.ZodString;
767
+ }, z.core.$strict>;
768
+ verifierSet: z.ZodObject<{
769
+ schemaVersion: z.ZodLiteral<"openpond.verifierSetRelease.v1">;
770
+ id: z.ZodString;
771
+ revision: z.ZodNumber;
772
+ graders: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
773
+ id: z.ZodString;
774
+ version: z.ZodString;
775
+ weight: z.ZodDefault<z.ZodNumber>;
776
+ hardGate: z.ZodDefault<z.ZodBoolean>;
777
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
778
+ privileged: z.ZodDefault<z.ZodBoolean>;
779
+ kind: z.ZodEnum<{
780
+ content: "content";
781
+ schema: "schema";
782
+ artifact: "artifact";
783
+ runtime_event: "runtime_event";
784
+ state: "state";
785
+ }>;
786
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ id: z.ZodString;
789
+ version: z.ZodString;
790
+ weight: z.ZodDefault<z.ZodNumber>;
791
+ hardGate: z.ZodDefault<z.ZodBoolean>;
792
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
793
+ privileged: z.ZodDefault<z.ZodBoolean>;
794
+ kind: z.ZodLiteral<"model_judge">;
795
+ rubricRef: z.ZodObject<{
796
+ id: z.ZodString;
797
+ path: z.ZodString;
798
+ contentHash: z.ZodString;
799
+ sizeBytes: z.ZodNumber;
800
+ mediaType: z.ZodString;
801
+ visibility: z.ZodEnum<{
802
+ policy: "policy";
803
+ verifier: "verifier";
804
+ host_private: "host_private";
805
+ }>;
806
+ }, z.core.$strict>;
807
+ calibrationStatus: z.ZodEnum<{
808
+ pending: "pending";
809
+ passed: "passed";
810
+ failed: "failed";
811
+ }>;
812
+ model: z.ZodOptional<z.ZodObject<{
813
+ providerId: z.ZodString;
814
+ modelId: z.ZodString;
815
+ revision: z.ZodNullable<z.ZodString>;
816
+ }, z.core.$strict>>;
817
+ temperature: z.ZodOptional<z.ZodNumber>;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ id: z.ZodString;
820
+ version: z.ZodString;
821
+ weight: z.ZodDefault<z.ZodNumber>;
822
+ hardGate: z.ZodDefault<z.ZodBoolean>;
823
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
824
+ privileged: z.ZodDefault<z.ZodBoolean>;
825
+ kind: z.ZodLiteral<"custom_verifier">;
826
+ verifierRef: z.ZodObject<{
827
+ id: z.ZodString;
828
+ path: z.ZodString;
829
+ contentHash: z.ZodString;
830
+ sizeBytes: z.ZodNumber;
831
+ mediaType: z.ZodString;
832
+ visibility: z.ZodEnum<{
833
+ policy: "policy";
834
+ verifier: "verifier";
835
+ host_private: "host_private";
836
+ }>;
837
+ }, z.core.$strict>;
838
+ exportName: z.ZodOptional<z.ZodString>;
839
+ timeoutMs: z.ZodNumber;
840
+ networkPolicy: z.ZodLiteral<"none">;
841
+ }, z.core.$strict>, z.ZodObject<{
842
+ id: z.ZodString;
843
+ version: z.ZodString;
844
+ weight: z.ZodDefault<z.ZodNumber>;
845
+ hardGate: z.ZodDefault<z.ZodBoolean>;
846
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
847
+ privileged: z.ZodDefault<z.ZodBoolean>;
848
+ kind: z.ZodLiteral<"human">;
849
+ rubricRef: z.ZodObject<{
850
+ id: z.ZodString;
851
+ path: z.ZodString;
852
+ contentHash: z.ZodString;
853
+ sizeBytes: z.ZodNumber;
854
+ mediaType: z.ZodString;
855
+ visibility: z.ZodEnum<{
856
+ policy: "policy";
857
+ verifier: "verifier";
858
+ host_private: "host_private";
859
+ }>;
860
+ }, z.core.$strict>;
861
+ reviewerRole: z.ZodString;
862
+ }, z.core.$strict>]>>;
863
+ isolation: z.ZodObject<{
864
+ processBoundary: z.ZodEnum<{
865
+ same_process: "same_process";
866
+ isolated_process: "isolated_process";
867
+ container: "container";
868
+ }>;
869
+ networkPolicy: z.ZodLiteral<"none">;
870
+ defaultTimeoutMs: z.ZodNumber;
871
+ }, z.core.$strict>;
872
+ calibrationReceiptRefs: z.ZodArray<z.ZodObject<{
873
+ id: z.ZodString;
874
+ contentHash: z.ZodString;
875
+ }, z.core.$strict>>;
876
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
877
+ contentHash: z.ZodString;
878
+ }, z.core.$strict>;
879
+ javascript: z.ZodObject<{
880
+ schemaVersion: z.ZodLiteral<"openpond.javascriptEnvironment.v1">;
881
+ id: z.ZodString;
882
+ revision: z.ZodNumber;
883
+ module: z.ZodObject<{
884
+ id: z.ZodString;
885
+ path: z.ZodString;
886
+ contentHash: z.ZodString;
887
+ sizeBytes: z.ZodNumber;
888
+ mediaType: z.ZodString;
889
+ visibility: z.ZodEnum<{
890
+ policy: "policy";
891
+ verifier: "verifier";
892
+ host_private: "host_private";
893
+ }>;
894
+ }, z.core.$strict>;
895
+ tools: z.ZodArray<z.ZodObject<{
896
+ name: z.ZodString;
897
+ description: z.ZodString;
898
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
899
+ inputSchemaHash: z.ZodString;
900
+ sideEffect: z.ZodEnum<{
901
+ read: "read";
902
+ write: "write";
903
+ }>;
904
+ timeoutMs: z.ZodNumber;
905
+ }, z.core.$strict>>;
906
+ maxSteps: z.ZodNumber;
907
+ maxStateBytes: z.ZodNumber;
908
+ maxObservationBytes: z.ZodNumber;
909
+ operationTimeoutMs: z.ZodNumber;
910
+ executionServices: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
911
+ kind: z.ZodLiteral<"sqlite.v1">;
912
+ sql: z.ZodObject<{
913
+ scope: z.ZodEnum<{
914
+ input: "input";
915
+ state: "state";
916
+ initialState: "initialState";
917
+ arguments: "arguments";
918
+ }>;
919
+ path: z.ZodArray<z.ZodString>;
920
+ }, z.core.$strict>;
921
+ snapshot: z.ZodObject<{
922
+ scope: z.ZodEnum<{
923
+ input: "input";
924
+ state: "state";
925
+ initialState: "initialState";
926
+ arguments: "arguments";
927
+ }>;
928
+ path: z.ZodArray<z.ZodString>;
929
+ }, z.core.$strict>;
930
+ maxRows: z.ZodNumber;
931
+ maxResultBytes: z.ZodNumber;
932
+ id: z.ZodString;
933
+ operation: z.ZodEnum<{
934
+ step: "step";
935
+ collect: "collect";
936
+ }>;
937
+ toolName: z.ZodOptional<z.ZodString>;
938
+ timeoutMs: z.ZodNumber;
939
+ }, z.core.$strict>, z.ZodObject<{
940
+ kind: z.ZodLiteral<"javascript.v1">;
941
+ source: z.ZodObject<{
942
+ scope: z.ZodEnum<{
943
+ input: "input";
944
+ state: "state";
945
+ initialState: "initialState";
946
+ arguments: "arguments";
947
+ }>;
948
+ path: z.ZodArray<z.ZodString>;
949
+ }, z.core.$strict>;
950
+ cases: z.ZodObject<{
951
+ scope: z.ZodEnum<{
952
+ input: "input";
953
+ state: "state";
954
+ initialState: "initialState";
955
+ arguments: "arguments";
956
+ }>;
957
+ path: z.ZodArray<z.ZodString>;
958
+ }, z.core.$strict>;
959
+ exportName: z.ZodString;
960
+ maxCases: z.ZodNumber;
961
+ maxResultBytes: z.ZodNumber;
962
+ id: z.ZodString;
963
+ operation: z.ZodEnum<{
964
+ step: "step";
965
+ collect: "collect";
966
+ }>;
967
+ toolName: z.ZodOptional<z.ZodString>;
968
+ timeoutMs: z.ZodNumber;
969
+ }, z.core.$strict>], "kind">>>;
970
+ contentHash: z.ZodString;
971
+ }, z.core.$strict>;
972
+ }, z.core.$strict>>;
973
+ }, z.core.$strict>;
974
+ export type ModelTasksetPackage = z.infer<typeof ModelTasksetPackageSchema>;
975
+ /** Hosts authorize the source and owner, upload immutable files, then commit
976
+ * this result together with the model CAS and operation receipt. This pure
977
+ * compiler neither allocates a new identity on retry nor changes a consumer. */
978
+ export declare function deriveModelTaskset(input: {
979
+ owner: z.input<typeof OwnerSchema>;
980
+ source: ModelTasksetPackage;
981
+ rewardBinding: z.infer<typeof RewardBindingSchema>;
982
+ rewards: z.infer<typeof RewardReleaseSchema>[];
983
+ assets: z.infer<typeof LearningTextAssetSchema>[];
984
+ }): ModelTasksetPackage;
985
+ export declare function validateModelTasksetPackage(value: unknown): ModelTasksetPackage;
986
+ export {};
987
+ //# sourceMappingURL=model-taskset-derivation.d.ts.map