openpond-sdk 0.1.6 → 0.1.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.
@@ -0,0 +1,1397 @@
1
+ import { z } from "zod";
2
+ /** Catalog records contain references and previews, never the private task rows. */
3
+ export declare const ModelStarterContentSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"openpond.modelStarter.v1">;
5
+ id: z.ZodString;
6
+ revision: z.ZodNumber;
7
+ name: z.ZodString;
8
+ description: z.ZodString;
9
+ category: z.ZodEnum<{
10
+ coding: "coding";
11
+ extraction: "extraction";
12
+ support: "support";
13
+ operations: "operations";
14
+ knowledge: "knowledge";
15
+ writing: "writing";
16
+ classification: "classification";
17
+ }>;
18
+ taskset: z.ZodObject<{
19
+ id: z.ZodString;
20
+ contentHash: z.ZodString;
21
+ revision: z.ZodNumber;
22
+ }, z.core.$strict>;
23
+ taskDefinition: z.ZodObject<{
24
+ id: z.ZodString;
25
+ contentHash: z.ZodString;
26
+ revision: z.ZodNumber;
27
+ }, z.core.$strict>;
28
+ rewardBinding: z.ZodObject<{
29
+ id: z.ZodString;
30
+ contentHash: z.ZodString;
31
+ revision: z.ZodNumber;
32
+ }, z.core.$strict>;
33
+ rewards: z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ contentHash: z.ZodString;
36
+ revision: z.ZodNumber;
37
+ }, z.core.$strict>>;
38
+ assets: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ contentHash: z.ZodString;
41
+ revision: z.ZodNumber;
42
+ }, z.core.$strict>>;
43
+ previewTaskIds: z.ZodArray<z.ZodString>;
44
+ startingModel: z.ZodObject<{
45
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
46
+ modelId: z.ZodString;
47
+ revision: z.ZodNullable<z.ZodString>;
48
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
49
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
50
+ modelAssetId: z.ZodNullable<z.ZodString>;
51
+ source: z.ZodEnum<{
52
+ local: "local";
53
+ managed: "managed";
54
+ builtin: "builtin";
55
+ }>;
56
+ }, z.core.$strict>;
57
+ supportedMethods: z.ZodArray<z.ZodEnum<{
58
+ sft: "sft";
59
+ dpo: "dpo";
60
+ grpo: "grpo";
61
+ ppo: "ppo";
62
+ sdft: "sdft";
63
+ opd: "opd";
64
+ opsd: "opsd";
65
+ sdpo: "sdpo";
66
+ }>>;
67
+ defaultMethod: z.ZodEnum<{
68
+ sft: "sft";
69
+ dpo: "dpo";
70
+ grpo: "grpo";
71
+ ppo: "ppo";
72
+ sdft: "sdft";
73
+ opd: "opd";
74
+ opsd: "opsd";
75
+ sdpo: "sdpo";
76
+ }>;
77
+ provenance: z.ZodObject<{
78
+ author: z.ZodString;
79
+ license: z.ZodString;
80
+ sourceDescription: z.ZodString;
81
+ }, z.core.$strict>;
82
+ evidence: z.ZodObject<{
83
+ verifierFixtures: z.ZodNullable<z.ZodObject<{
84
+ id: z.ZodString;
85
+ contentHash: z.ZodString;
86
+ revision: z.ZodNumber;
87
+ }, z.core.$strict>>;
88
+ baseline: z.ZodNullable<z.ZodObject<{
89
+ id: z.ZodString;
90
+ contentHash: z.ZodString;
91
+ revision: z.ZodNumber;
92
+ }, z.core.$strict>>;
93
+ training: z.ZodNullable<z.ZodObject<{
94
+ id: z.ZodString;
95
+ contentHash: z.ZodString;
96
+ revision: z.ZodNumber;
97
+ }, z.core.$strict>>;
98
+ evaluation: z.ZodNullable<z.ZodObject<{
99
+ id: z.ZodString;
100
+ contentHash: z.ZodString;
101
+ revision: z.ZodNumber;
102
+ }, z.core.$strict>>;
103
+ }, z.core.$strict>;
104
+ }, z.core.$strict>;
105
+ export declare const ModelStarterSchema: z.ZodObject<{
106
+ schemaVersion: z.ZodLiteral<"openpond.modelStarter.v1">;
107
+ id: z.ZodString;
108
+ revision: z.ZodNumber;
109
+ name: z.ZodString;
110
+ description: z.ZodString;
111
+ category: z.ZodEnum<{
112
+ coding: "coding";
113
+ extraction: "extraction";
114
+ support: "support";
115
+ operations: "operations";
116
+ knowledge: "knowledge";
117
+ writing: "writing";
118
+ classification: "classification";
119
+ }>;
120
+ taskset: z.ZodObject<{
121
+ id: z.ZodString;
122
+ contentHash: z.ZodString;
123
+ revision: z.ZodNumber;
124
+ }, z.core.$strict>;
125
+ taskDefinition: z.ZodObject<{
126
+ id: z.ZodString;
127
+ contentHash: z.ZodString;
128
+ revision: z.ZodNumber;
129
+ }, z.core.$strict>;
130
+ rewardBinding: z.ZodObject<{
131
+ id: z.ZodString;
132
+ contentHash: z.ZodString;
133
+ revision: z.ZodNumber;
134
+ }, z.core.$strict>;
135
+ rewards: z.ZodArray<z.ZodObject<{
136
+ id: z.ZodString;
137
+ contentHash: z.ZodString;
138
+ revision: z.ZodNumber;
139
+ }, z.core.$strict>>;
140
+ assets: z.ZodArray<z.ZodObject<{
141
+ id: z.ZodString;
142
+ contentHash: z.ZodString;
143
+ revision: z.ZodNumber;
144
+ }, z.core.$strict>>;
145
+ previewTaskIds: z.ZodArray<z.ZodString>;
146
+ startingModel: z.ZodObject<{
147
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
148
+ modelId: z.ZodString;
149
+ revision: z.ZodNullable<z.ZodString>;
150
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
151
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
152
+ modelAssetId: z.ZodNullable<z.ZodString>;
153
+ source: z.ZodEnum<{
154
+ local: "local";
155
+ managed: "managed";
156
+ builtin: "builtin";
157
+ }>;
158
+ }, z.core.$strict>;
159
+ supportedMethods: z.ZodArray<z.ZodEnum<{
160
+ sft: "sft";
161
+ dpo: "dpo";
162
+ grpo: "grpo";
163
+ ppo: "ppo";
164
+ sdft: "sdft";
165
+ opd: "opd";
166
+ opsd: "opsd";
167
+ sdpo: "sdpo";
168
+ }>>;
169
+ defaultMethod: z.ZodEnum<{
170
+ sft: "sft";
171
+ dpo: "dpo";
172
+ grpo: "grpo";
173
+ ppo: "ppo";
174
+ sdft: "sdft";
175
+ opd: "opd";
176
+ opsd: "opsd";
177
+ sdpo: "sdpo";
178
+ }>;
179
+ provenance: z.ZodObject<{
180
+ author: z.ZodString;
181
+ license: z.ZodString;
182
+ sourceDescription: z.ZodString;
183
+ }, z.core.$strict>;
184
+ evidence: z.ZodObject<{
185
+ verifierFixtures: z.ZodNullable<z.ZodObject<{
186
+ id: z.ZodString;
187
+ contentHash: z.ZodString;
188
+ revision: z.ZodNumber;
189
+ }, z.core.$strict>>;
190
+ baseline: z.ZodNullable<z.ZodObject<{
191
+ id: z.ZodString;
192
+ contentHash: z.ZodString;
193
+ revision: z.ZodNumber;
194
+ }, z.core.$strict>>;
195
+ training: z.ZodNullable<z.ZodObject<{
196
+ id: z.ZodString;
197
+ contentHash: z.ZodString;
198
+ revision: z.ZodNumber;
199
+ }, z.core.$strict>>;
200
+ evaluation: z.ZodNullable<z.ZodObject<{
201
+ id: z.ZodString;
202
+ contentHash: z.ZodString;
203
+ revision: z.ZodNumber;
204
+ }, z.core.$strict>>;
205
+ }, z.core.$strict>;
206
+ contentHash: z.ZodString;
207
+ }, z.core.$strict>;
208
+ export type ModelStarter = z.infer<typeof ModelStarterSchema>;
209
+ /** A resolved small package, obtained separately from catalog discovery.
210
+ * Large Tasksets remain manifest/shard resources; they are not list payloads. */
211
+ export declare const ResolvedModelStarterSchema: z.ZodObject<{
212
+ starter: z.ZodObject<{
213
+ schemaVersion: z.ZodLiteral<"openpond.modelStarter.v1">;
214
+ id: z.ZodString;
215
+ revision: z.ZodNumber;
216
+ name: z.ZodString;
217
+ description: z.ZodString;
218
+ category: z.ZodEnum<{
219
+ coding: "coding";
220
+ extraction: "extraction";
221
+ support: "support";
222
+ operations: "operations";
223
+ knowledge: "knowledge";
224
+ writing: "writing";
225
+ classification: "classification";
226
+ }>;
227
+ taskset: z.ZodObject<{
228
+ id: z.ZodString;
229
+ contentHash: z.ZodString;
230
+ revision: z.ZodNumber;
231
+ }, z.core.$strict>;
232
+ taskDefinition: z.ZodObject<{
233
+ id: z.ZodString;
234
+ contentHash: z.ZodString;
235
+ revision: z.ZodNumber;
236
+ }, z.core.$strict>;
237
+ rewardBinding: z.ZodObject<{
238
+ id: z.ZodString;
239
+ contentHash: z.ZodString;
240
+ revision: z.ZodNumber;
241
+ }, z.core.$strict>;
242
+ rewards: z.ZodArray<z.ZodObject<{
243
+ id: z.ZodString;
244
+ contentHash: z.ZodString;
245
+ revision: z.ZodNumber;
246
+ }, z.core.$strict>>;
247
+ assets: z.ZodArray<z.ZodObject<{
248
+ id: z.ZodString;
249
+ contentHash: z.ZodString;
250
+ revision: z.ZodNumber;
251
+ }, z.core.$strict>>;
252
+ previewTaskIds: z.ZodArray<z.ZodString>;
253
+ startingModel: z.ZodObject<{
254
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
255
+ modelId: z.ZodString;
256
+ revision: z.ZodNullable<z.ZodString>;
257
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
258
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
259
+ modelAssetId: z.ZodNullable<z.ZodString>;
260
+ source: z.ZodEnum<{
261
+ local: "local";
262
+ managed: "managed";
263
+ builtin: "builtin";
264
+ }>;
265
+ }, z.core.$strict>;
266
+ supportedMethods: z.ZodArray<z.ZodEnum<{
267
+ sft: "sft";
268
+ dpo: "dpo";
269
+ grpo: "grpo";
270
+ ppo: "ppo";
271
+ sdft: "sdft";
272
+ opd: "opd";
273
+ opsd: "opsd";
274
+ sdpo: "sdpo";
275
+ }>>;
276
+ defaultMethod: z.ZodEnum<{
277
+ sft: "sft";
278
+ dpo: "dpo";
279
+ grpo: "grpo";
280
+ ppo: "ppo";
281
+ sdft: "sdft";
282
+ opd: "opd";
283
+ opsd: "opsd";
284
+ sdpo: "sdpo";
285
+ }>;
286
+ provenance: z.ZodObject<{
287
+ author: z.ZodString;
288
+ license: z.ZodString;
289
+ sourceDescription: z.ZodString;
290
+ }, z.core.$strict>;
291
+ evidence: z.ZodObject<{
292
+ verifierFixtures: z.ZodNullable<z.ZodObject<{
293
+ id: z.ZodString;
294
+ contentHash: z.ZodString;
295
+ revision: z.ZodNumber;
296
+ }, z.core.$strict>>;
297
+ baseline: z.ZodNullable<z.ZodObject<{
298
+ id: z.ZodString;
299
+ contentHash: z.ZodString;
300
+ revision: z.ZodNumber;
301
+ }, z.core.$strict>>;
302
+ training: z.ZodNullable<z.ZodObject<{
303
+ id: z.ZodString;
304
+ contentHash: z.ZodString;
305
+ revision: z.ZodNumber;
306
+ }, z.core.$strict>>;
307
+ evaluation: z.ZodNullable<z.ZodObject<{
308
+ id: z.ZodString;
309
+ contentHash: z.ZodString;
310
+ revision: z.ZodNumber;
311
+ }, z.core.$strict>>;
312
+ }, z.core.$strict>;
313
+ contentHash: z.ZodString;
314
+ }, z.core.$strict>;
315
+ taskset: z.ZodObject<{
316
+ schemaVersion: z.ZodLiteral<"openpond.tasksetRelease.v2">;
317
+ id: z.ZodString;
318
+ revision: z.ZodNumber;
319
+ policy: z.ZodObject<{
320
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
321
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
322
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
323
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
324
+ }, z.core.$strict>;
325
+ environment: z.ZodObject<{
326
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
327
+ kind: z.ZodEnum<{
328
+ text: "text";
329
+ agent: "agent";
330
+ work: "work";
331
+ custom_program: "custom_program";
332
+ }>;
333
+ entrypoint: z.ZodString;
334
+ stateful: z.ZodBoolean;
335
+ deterministicSeeds: z.ZodBoolean;
336
+ lifecycle: z.ZodArray<z.ZodEnum<{
337
+ create: "create";
338
+ reset: "reset";
339
+ step: "step";
340
+ collect: "collect";
341
+ destroy: "destroy";
342
+ }>>;
343
+ networkPolicy: z.ZodEnum<{
344
+ none: "none";
345
+ declared_read_only: "declared_read_only";
346
+ declared_scoped: "declared_scoped";
347
+ }>;
348
+ defaultTimeoutMs: z.ZodNumber;
349
+ }, z.core.$strict>;
350
+ environmentRelease: z.ZodOptional<z.ZodObject<{
351
+ id: z.ZodString;
352
+ contentHash: z.ZodString;
353
+ }, z.core.$strict>>;
354
+ tools: z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ description: z.ZodString;
357
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
358
+ inputSchemaHash: z.ZodString;
359
+ sideEffect: z.ZodEnum<{
360
+ read: "read";
361
+ write: "write";
362
+ }>;
363
+ timeoutMs: z.ZodNumber;
364
+ }, z.core.$strict>>;
365
+ capabilities: z.ZodArray<z.ZodObject<{
366
+ id: z.ZodString;
367
+ required: z.ZodBoolean;
368
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
369
+ portability: z.ZodEnum<{
370
+ portable: "portable";
371
+ host_adapter: "host_adapter";
372
+ local_only: "local_only";
373
+ hosted_only: "hosted_only";
374
+ }>;
375
+ }, z.core.$strict>>;
376
+ tasks: z.ZodArray<z.ZodObject<{
377
+ id: z.ZodString;
378
+ clusterKey: z.ZodString;
379
+ split: z.ZodEnum<{
380
+ train: "train";
381
+ validation: "validation";
382
+ test: "test";
383
+ frozen_eval: "frozen_eval";
384
+ }>;
385
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
386
+ expectedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
+ policyVisibleContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
388
+ privilegedContextRef: z.ZodNullable<z.ZodString>;
389
+ artifactRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
390
+ id: z.ZodString;
391
+ path: z.ZodString;
392
+ contentHash: z.ZodString;
393
+ sizeBytes: z.ZodNumber;
394
+ mediaType: z.ZodString;
395
+ visibility: z.ZodEnum<{
396
+ policy: "policy";
397
+ verifier: "verifier";
398
+ host_private: "host_private";
399
+ }>;
400
+ }, z.core.$strict>>>;
401
+ requiredOutputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ path: z.ZodString;
403
+ mediaType: z.ZodString;
404
+ schemaRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
405
+ id: z.ZodString;
406
+ path: z.ZodString;
407
+ contentHash: z.ZodString;
408
+ sizeBytes: z.ZodNumber;
409
+ mediaType: z.ZodString;
410
+ visibility: z.ZodEnum<{
411
+ policy: "policy";
412
+ verifier: "verifier";
413
+ host_private: "host_private";
414
+ }>;
415
+ }, z.core.$strict>>>;
416
+ maxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
417
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
418
+ }, z.core.$strict>>>;
419
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
420
+ }, z.core.$strict>>;
421
+ graders: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
422
+ id: z.ZodString;
423
+ version: z.ZodString;
424
+ weight: z.ZodDefault<z.ZodNumber>;
425
+ hardGate: z.ZodDefault<z.ZodBoolean>;
426
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
427
+ privileged: z.ZodDefault<z.ZodBoolean>;
428
+ kind: z.ZodEnum<{
429
+ content: "content";
430
+ schema: "schema";
431
+ artifact: "artifact";
432
+ runtime_event: "runtime_event";
433
+ state: "state";
434
+ }>;
435
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
436
+ }, z.core.$strict>, z.ZodObject<{
437
+ id: z.ZodString;
438
+ version: z.ZodString;
439
+ weight: z.ZodDefault<z.ZodNumber>;
440
+ hardGate: z.ZodDefault<z.ZodBoolean>;
441
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
442
+ privileged: z.ZodDefault<z.ZodBoolean>;
443
+ kind: z.ZodLiteral<"model_judge">;
444
+ rubricRef: z.ZodObject<{
445
+ id: z.ZodString;
446
+ path: z.ZodString;
447
+ contentHash: z.ZodString;
448
+ sizeBytes: z.ZodNumber;
449
+ mediaType: z.ZodString;
450
+ visibility: z.ZodEnum<{
451
+ policy: "policy";
452
+ verifier: "verifier";
453
+ host_private: "host_private";
454
+ }>;
455
+ }, z.core.$strict>;
456
+ calibrationStatus: z.ZodEnum<{
457
+ pending: "pending";
458
+ passed: "passed";
459
+ failed: "failed";
460
+ }>;
461
+ model: z.ZodOptional<z.ZodObject<{
462
+ providerId: z.ZodString;
463
+ modelId: z.ZodString;
464
+ revision: z.ZodNullable<z.ZodString>;
465
+ }, z.core.$strict>>;
466
+ temperature: z.ZodOptional<z.ZodNumber>;
467
+ }, z.core.$strict>, z.ZodObject<{
468
+ id: z.ZodString;
469
+ version: z.ZodString;
470
+ weight: z.ZodDefault<z.ZodNumber>;
471
+ hardGate: z.ZodDefault<z.ZodBoolean>;
472
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
473
+ privileged: z.ZodDefault<z.ZodBoolean>;
474
+ kind: z.ZodLiteral<"custom_verifier">;
475
+ verifierRef: 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
+ exportName: z.ZodOptional<z.ZodString>;
488
+ timeoutMs: z.ZodNumber;
489
+ networkPolicy: z.ZodLiteral<"none">;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ id: z.ZodString;
492
+ version: z.ZodString;
493
+ weight: z.ZodDefault<z.ZodNumber>;
494
+ hardGate: z.ZodDefault<z.ZodBoolean>;
495
+ rewardEligible: z.ZodDefault<z.ZodBoolean>;
496
+ privileged: z.ZodDefault<z.ZodBoolean>;
497
+ kind: z.ZodLiteral<"human">;
498
+ rubricRef: z.ZodObject<{
499
+ id: z.ZodString;
500
+ path: z.ZodString;
501
+ contentHash: z.ZodString;
502
+ sizeBytes: z.ZodNumber;
503
+ mediaType: z.ZodString;
504
+ visibility: z.ZodEnum<{
505
+ policy: "policy";
506
+ verifier: "verifier";
507
+ host_private: "host_private";
508
+ }>;
509
+ }, z.core.$strict>;
510
+ reviewerRole: z.ZodString;
511
+ }, z.core.$strict>]>>;
512
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
513
+ id: z.ZodString;
514
+ contentHash: z.ZodString;
515
+ }, z.core.$strict>>;
516
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
+ contentHash: z.ZodString;
518
+ }, z.core.$strict>;
519
+ taskDefinition: z.ZodObject<{
520
+ schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
521
+ id: z.ZodString;
522
+ revision: z.ZodNumber;
523
+ name: z.ZodString;
524
+ description: z.ZodString;
525
+ instructions: z.ZodString;
526
+ category: z.ZodEnum<{
527
+ custom: "custom";
528
+ structured: "structured";
529
+ question_answering: "question_answering";
530
+ coding: "coding";
531
+ tool_workflow: "tool_workflow";
532
+ }>;
533
+ familyNamespace: z.ZodString;
534
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
535
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
536
+ rewardBinding: z.ZodObject<{
537
+ id: z.ZodString;
538
+ contentHash: z.ZodString;
539
+ revision: z.ZodNumber;
540
+ }, z.core.$strict>;
541
+ harness: z.ZodNullable<z.ZodObject<{
542
+ id: z.ZodString;
543
+ contentHash: z.ZodString;
544
+ }, z.core.$strict>>;
545
+ execution: z.ZodObject<{
546
+ policy: z.ZodObject<{
547
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
548
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
549
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
550
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
551
+ }, z.core.$strict>;
552
+ environment: z.ZodObject<{
553
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
554
+ kind: z.ZodEnum<{
555
+ text: "text";
556
+ agent: "agent";
557
+ work: "work";
558
+ custom_program: "custom_program";
559
+ }>;
560
+ entrypoint: z.ZodString;
561
+ stateful: z.ZodBoolean;
562
+ deterministicSeeds: z.ZodBoolean;
563
+ lifecycle: z.ZodArray<z.ZodEnum<{
564
+ create: "create";
565
+ reset: "reset";
566
+ step: "step";
567
+ collect: "collect";
568
+ destroy: "destroy";
569
+ }>>;
570
+ networkPolicy: z.ZodEnum<{
571
+ none: "none";
572
+ declared_read_only: "declared_read_only";
573
+ declared_scoped: "declared_scoped";
574
+ }>;
575
+ defaultTimeoutMs: z.ZodNumber;
576
+ }, z.core.$strict>;
577
+ environmentRelease: z.ZodOptional<z.ZodObject<{
578
+ id: z.ZodString;
579
+ contentHash: z.ZodString;
580
+ }, z.core.$strict>>;
581
+ tools: z.ZodArray<z.ZodObject<{
582
+ name: z.ZodString;
583
+ description: z.ZodString;
584
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
585
+ inputSchemaHash: z.ZodString;
586
+ sideEffect: z.ZodEnum<{
587
+ read: "read";
588
+ write: "write";
589
+ }>;
590
+ timeoutMs: z.ZodNumber;
591
+ }, z.core.$strict>>;
592
+ capabilities: z.ZodArray<z.ZodObject<{
593
+ id: z.ZodString;
594
+ required: z.ZodBoolean;
595
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
596
+ portability: z.ZodEnum<{
597
+ portable: "portable";
598
+ host_adapter: "host_adapter";
599
+ local_only: "local_only";
600
+ hosted_only: "hosted_only";
601
+ }>;
602
+ }, z.core.$strict>>;
603
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
604
+ id: z.ZodString;
605
+ contentHash: z.ZodString;
606
+ }, z.core.$strict>>;
607
+ }, z.core.$strict>;
608
+ contentHash: z.ZodString;
609
+ }, z.core.$strict>;
610
+ rewardBinding: z.ZodObject<{
611
+ schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
612
+ id: z.ZodString;
613
+ revision: z.ZodNumber;
614
+ name: z.ZodOptional<z.ZodString>;
615
+ description: z.ZodOptional<z.ZodString>;
616
+ recipeRef: z.ZodOptional<z.ZodObject<{
617
+ id: z.ZodString;
618
+ contentHash: z.ZodString;
619
+ revision: z.ZodNumber;
620
+ }, z.core.$strict>>;
621
+ sources: z.ZodArray<z.ZodObject<{
622
+ graderId: z.ZodString;
623
+ reward: z.ZodObject<{
624
+ id: z.ZodString;
625
+ contentHash: z.ZodString;
626
+ revision: z.ZodNumber;
627
+ }, z.core.$strict>;
628
+ role: z.ZodEnum<{
629
+ evaluation: "evaluation";
630
+ training: "training";
631
+ }>;
632
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
633
+ kind: z.ZodLiteral<"identity">;
634
+ }, z.core.$strict>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"linear">;
636
+ minimum: z.ZodNumber;
637
+ maximum: z.ZodNumber;
638
+ direction: z.ZodEnum<{
639
+ higher: "higher";
640
+ lower: "lower";
641
+ }>;
642
+ }, z.core.$strict>], "kind">;
643
+ weight: z.ZodNumber;
644
+ required: z.ZodBoolean;
645
+ hardGate: z.ZodBoolean;
646
+ privileged: z.ZodBoolean;
647
+ fixtureRefs: z.ZodArray<z.ZodObject<{
648
+ id: z.ZodString;
649
+ contentHash: z.ZodString;
650
+ }, z.core.$strict>>;
651
+ }, z.core.$strict>>;
652
+ aggregation: z.ZodLiteral<"weighted_mean">;
653
+ unscorable: z.ZodLiteral<"exclude_optional_require_all_required">;
654
+ contentHash: z.ZodString;
655
+ }, z.core.$strict>;
656
+ rewards: z.ZodArray<z.ZodObject<{
657
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
658
+ id: z.ZodString;
659
+ revision: z.ZodNumber;
660
+ name: z.ZodString;
661
+ description: z.ZodString;
662
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
663
+ kind: z.ZodEnum<{
664
+ content: "content";
665
+ schema: "schema";
666
+ artifact: "artifact";
667
+ runtime_event: "runtime_event";
668
+ state: "state";
669
+ }>;
670
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
671
+ }, z.core.$strict>, z.ZodObject<{
672
+ kind: z.ZodLiteral<"model_judge">;
673
+ rubricRef: z.ZodObject<{
674
+ id: z.ZodString;
675
+ path: z.ZodString;
676
+ contentHash: z.ZodString;
677
+ sizeBytes: z.ZodNumber;
678
+ mediaType: z.ZodString;
679
+ visibility: z.ZodEnum<{
680
+ policy: "policy";
681
+ verifier: "verifier";
682
+ host_private: "host_private";
683
+ }>;
684
+ }, z.core.$strict>;
685
+ calibrationStatus: z.ZodEnum<{
686
+ pending: "pending";
687
+ passed: "passed";
688
+ failed: "failed";
689
+ }>;
690
+ model: z.ZodOptional<z.ZodObject<{
691
+ providerId: z.ZodString;
692
+ modelId: z.ZodString;
693
+ revision: z.ZodNullable<z.ZodString>;
694
+ }, z.core.$strict>>;
695
+ temperature: z.ZodOptional<z.ZodNumber>;
696
+ }, z.core.$strict>, z.ZodObject<{
697
+ kind: z.ZodLiteral<"custom_verifier">;
698
+ networkPolicy: z.ZodLiteral<"none">;
699
+ verifierRef: z.ZodObject<{
700
+ id: z.ZodString;
701
+ path: z.ZodString;
702
+ contentHash: z.ZodString;
703
+ sizeBytes: z.ZodNumber;
704
+ mediaType: z.ZodString;
705
+ visibility: z.ZodEnum<{
706
+ policy: "policy";
707
+ verifier: "verifier";
708
+ host_private: "host_private";
709
+ }>;
710
+ }, z.core.$strict>;
711
+ exportName: z.ZodOptional<z.ZodString>;
712
+ timeoutMs: z.ZodNumber;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"human">;
715
+ rubricRef: z.ZodObject<{
716
+ id: z.ZodString;
717
+ path: z.ZodString;
718
+ contentHash: z.ZodString;
719
+ sizeBytes: z.ZodNumber;
720
+ mediaType: z.ZodString;
721
+ visibility: z.ZodEnum<{
722
+ policy: "policy";
723
+ verifier: "verifier";
724
+ host_private: "host_private";
725
+ }>;
726
+ }, z.core.$strict>;
727
+ reviewerRole: z.ZodString;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"learned_model">;
730
+ modelVersion: z.ZodObject<{
731
+ id: z.ZodString;
732
+ contentHash: z.ZodString;
733
+ }, z.core.$strict>;
734
+ inputContract: z.ZodObject<{
735
+ id: z.ZodString;
736
+ path: z.ZodString;
737
+ contentHash: z.ZodString;
738
+ sizeBytes: z.ZodNumber;
739
+ mediaType: z.ZodString;
740
+ visibility: z.ZodEnum<{
741
+ policy: "policy";
742
+ verifier: "verifier";
743
+ host_private: "host_private";
744
+ }>;
745
+ }, z.core.$strict>;
746
+ }, z.core.$strict>]>;
747
+ rawScore: z.ZodObject<{
748
+ minimum: z.ZodNumber;
749
+ maximum: z.ZodNumber;
750
+ }, z.core.$strict>;
751
+ assets: z.ZodArray<z.ZodObject<{
752
+ id: z.ZodString;
753
+ path: z.ZodString;
754
+ contentHash: z.ZodString;
755
+ sizeBytes: z.ZodNumber;
756
+ mediaType: z.ZodString;
757
+ visibility: z.ZodEnum<{
758
+ policy: "policy";
759
+ verifier: "verifier";
760
+ host_private: "host_private";
761
+ }>;
762
+ }, z.core.$strict>>;
763
+ contentHash: z.ZodString;
764
+ }, z.core.$strict>>;
765
+ assets: z.ZodArray<z.ZodObject<{
766
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
767
+ id: z.ZodString;
768
+ revision: z.ZodLiteral<1>;
769
+ asset: z.ZodObject<{
770
+ id: z.ZodString;
771
+ path: z.ZodString;
772
+ contentHash: z.ZodString;
773
+ sizeBytes: z.ZodNumber;
774
+ mediaType: z.ZodString;
775
+ visibility: z.ZodEnum<{
776
+ policy: "policy";
777
+ verifier: "verifier";
778
+ host_private: "host_private";
779
+ }>;
780
+ }, z.core.$strict>;
781
+ text: z.ZodString;
782
+ contentHash: z.ZodString;
783
+ }, z.core.$strict>>;
784
+ }, z.core.$strict>;
785
+ export type ResolvedModelStarter = z.infer<typeof ResolvedModelStarterSchema>;
786
+ /** Final creation intent. The server resolves package bytes from its catalog;
787
+ * callers cannot supply executable resources or qualification receipts here. */
788
+ export declare const ModelStarterCreationIntentSchema: z.ZodObject<{
789
+ profileId: z.ZodString;
790
+ modelId: z.ZodString;
791
+ name: z.ZodString;
792
+ starter: z.ZodObject<{
793
+ id: z.ZodString;
794
+ contentHash: z.ZodString;
795
+ revision: z.ZodNumber;
796
+ }, z.core.$strict>;
797
+ startingModel: z.ZodObject<{
798
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
799
+ modelId: z.ZodString;
800
+ revision: z.ZodNullable<z.ZodString>;
801
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
802
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
803
+ modelAssetId: z.ZodNullable<z.ZodString>;
804
+ source: z.ZodEnum<{
805
+ local: "local";
806
+ managed: "managed";
807
+ builtin: "builtin";
808
+ }>;
809
+ }, z.core.$strict>;
810
+ method: z.ZodEnum<{
811
+ sft: "sft";
812
+ dpo: "dpo";
813
+ grpo: "grpo";
814
+ ppo: "ppo";
815
+ sdft: "sdft";
816
+ opd: "opd";
817
+ opsd: "opsd";
818
+ sdpo: "sdpo";
819
+ }>;
820
+ }, z.core.$strict>;
821
+ export declare const ModelStarterCreationRequestSchema: z.ZodObject<{
822
+ profileId: z.ZodString;
823
+ modelId: z.ZodString;
824
+ name: z.ZodString;
825
+ starter: z.ZodObject<{
826
+ id: z.ZodString;
827
+ contentHash: z.ZodString;
828
+ revision: z.ZodNumber;
829
+ }, z.core.$strict>;
830
+ startingModel: z.ZodObject<{
831
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
832
+ modelId: z.ZodString;
833
+ revision: z.ZodNullable<z.ZodString>;
834
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
835
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
836
+ modelAssetId: z.ZodNullable<z.ZodString>;
837
+ source: z.ZodEnum<{
838
+ local: "local";
839
+ managed: "managed";
840
+ builtin: "builtin";
841
+ }>;
842
+ }, z.core.$strict>;
843
+ method: z.ZodEnum<{
844
+ sft: "sft";
845
+ dpo: "dpo";
846
+ grpo: "grpo";
847
+ ppo: "ppo";
848
+ sdft: "sdft";
849
+ opd: "opd";
850
+ opsd: "opsd";
851
+ sdpo: "sdpo";
852
+ }>;
853
+ schemaVersion: z.ZodLiteral<"openpond.modelStarterCreation.v1">;
854
+ operationId: z.ZodString;
855
+ }, z.core.$strict>;
856
+ export type ModelStarterCreationRequest = z.infer<typeof ModelStarterCreationRequestSchema>;
857
+ export declare function parseModelStarterCreationRequest(value: unknown): ModelStarterCreationRequest;
858
+ /** Prepare once on final confirmation and retain across uncertain transport
859
+ * outcomes. The server must bind operationId to the complete original intent
860
+ * and atomically commit resources, model configuration and the retry receipt. */
861
+ export declare function createModelStarterCreationRequest(value: z.input<typeof ModelStarterCreationIntentSchema>): Promise<ModelStarterCreationRequest>;
862
+ /** Scope authorization belongs to the API. This validates the final intent
863
+ * against the exact trusted package before any user resources are written. */
864
+ export declare function validateModelStarterCreation(value: unknown, packageValue: unknown): {
865
+ request: {
866
+ profileId: string;
867
+ modelId: string;
868
+ name: string;
869
+ starter: {
870
+ id: string;
871
+ contentHash: string;
872
+ revision: number;
873
+ };
874
+ startingModel: {
875
+ schemaVersion: "openpond.baseModelPreference.v1";
876
+ modelId: string;
877
+ revision: string | null;
878
+ tokenizerRevision: string | null;
879
+ chatTemplateHash: string | null;
880
+ modelAssetId: string | null;
881
+ source: "local" | "managed" | "builtin";
882
+ };
883
+ method: "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo";
884
+ schemaVersion: "openpond.modelStarterCreation.v1";
885
+ operationId: string;
886
+ };
887
+ resolved: {
888
+ starter: {
889
+ schemaVersion: "openpond.modelStarter.v1";
890
+ id: string;
891
+ revision: number;
892
+ name: string;
893
+ description: string;
894
+ category: "coding" | "extraction" | "support" | "operations" | "knowledge" | "writing" | "classification";
895
+ taskset: {
896
+ id: string;
897
+ contentHash: string;
898
+ revision: number;
899
+ };
900
+ taskDefinition: {
901
+ id: string;
902
+ contentHash: string;
903
+ revision: number;
904
+ };
905
+ rewardBinding: {
906
+ id: string;
907
+ contentHash: string;
908
+ revision: number;
909
+ };
910
+ rewards: {
911
+ id: string;
912
+ contentHash: string;
913
+ revision: number;
914
+ }[];
915
+ assets: {
916
+ id: string;
917
+ contentHash: string;
918
+ revision: number;
919
+ }[];
920
+ previewTaskIds: string[];
921
+ startingModel: {
922
+ schemaVersion: "openpond.baseModelPreference.v1";
923
+ modelId: string;
924
+ revision: string | null;
925
+ tokenizerRevision: string | null;
926
+ chatTemplateHash: string | null;
927
+ modelAssetId: string | null;
928
+ source: "local" | "managed" | "builtin";
929
+ };
930
+ supportedMethods: ("sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo")[];
931
+ defaultMethod: "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo";
932
+ provenance: {
933
+ author: string;
934
+ license: string;
935
+ sourceDescription: string;
936
+ };
937
+ evidence: {
938
+ verifierFixtures: {
939
+ id: string;
940
+ contentHash: string;
941
+ revision: number;
942
+ } | null;
943
+ baseline: {
944
+ id: string;
945
+ contentHash: string;
946
+ revision: number;
947
+ } | null;
948
+ training: {
949
+ id: string;
950
+ contentHash: string;
951
+ revision: number;
952
+ } | null;
953
+ evaluation: {
954
+ id: string;
955
+ contentHash: string;
956
+ revision: number;
957
+ } | null;
958
+ };
959
+ contentHash: string;
960
+ };
961
+ taskset: {
962
+ schemaVersion: "openpond.tasksetRelease.v2";
963
+ id: string;
964
+ revision: number;
965
+ policy: {
966
+ policyVisibleFields: string[];
967
+ privilegedFields: string[];
968
+ hiddenGraderRefs: string[];
969
+ connectedAppScopes: string[];
970
+ };
971
+ environment: {
972
+ protocolVersion: "openpond.environment.v1";
973
+ kind: "text" | "work" | "agent" | "custom_program";
974
+ entrypoint: string;
975
+ stateful: boolean;
976
+ deterministicSeeds: boolean;
977
+ lifecycle: ("create" | "reset" | "step" | "collect" | "destroy")[];
978
+ networkPolicy: "none" | "declared_read_only" | "declared_scoped";
979
+ defaultTimeoutMs: number;
980
+ };
981
+ tools: {
982
+ name: string;
983
+ description: string;
984
+ inputSchema: Record<string, unknown>;
985
+ inputSchemaHash: string;
986
+ sideEffect: "read" | "write";
987
+ timeoutMs: number;
988
+ }[];
989
+ capabilities: {
990
+ id: string;
991
+ required: boolean;
992
+ scopes: string[];
993
+ portability: "portable" | "host_adapter" | "local_only" | "hosted_only";
994
+ }[];
995
+ tasks: {
996
+ id: string;
997
+ clusterKey: string;
998
+ split: "train" | "validation" | "test" | "frozen_eval";
999
+ input: Record<string, unknown>;
1000
+ expectedOutput: Record<string, unknown> | null;
1001
+ policyVisibleContext: Record<string, unknown>;
1002
+ privilegedContextRef: string | null;
1003
+ artifactRefs: {
1004
+ id: string;
1005
+ path: string;
1006
+ contentHash: string;
1007
+ sizeBytes: number;
1008
+ mediaType: string;
1009
+ visibility: "policy" | "verifier" | "host_private";
1010
+ }[];
1011
+ tags: string[];
1012
+ requiredOutputs?: {
1013
+ path: string;
1014
+ mediaType: string;
1015
+ schemaRef: {
1016
+ id: string;
1017
+ path: string;
1018
+ contentHash: string;
1019
+ sizeBytes: number;
1020
+ mediaType: string;
1021
+ visibility: "policy" | "verifier" | "host_private";
1022
+ } | null;
1023
+ maxBytes: number | null;
1024
+ metadata: Record<string, unknown>;
1025
+ }[] | undefined;
1026
+ }[];
1027
+ graders: ({
1028
+ id: string;
1029
+ version: string;
1030
+ weight: number;
1031
+ hardGate: boolean;
1032
+ rewardEligible: boolean;
1033
+ privileged: boolean;
1034
+ kind: "state" | "content" | "schema" | "artifact" | "runtime_event";
1035
+ config: Record<string, unknown>;
1036
+ } | {
1037
+ id: string;
1038
+ version: string;
1039
+ weight: number;
1040
+ hardGate: boolean;
1041
+ rewardEligible: boolean;
1042
+ privileged: boolean;
1043
+ kind: "model_judge";
1044
+ rubricRef: {
1045
+ id: string;
1046
+ path: string;
1047
+ contentHash: string;
1048
+ sizeBytes: number;
1049
+ mediaType: string;
1050
+ visibility: "policy" | "verifier" | "host_private";
1051
+ };
1052
+ calibrationStatus: "failed" | "pending" | "passed";
1053
+ model?: {
1054
+ providerId: string;
1055
+ modelId: string;
1056
+ revision: string | null;
1057
+ } | undefined;
1058
+ temperature?: number | undefined;
1059
+ } | {
1060
+ id: string;
1061
+ version: string;
1062
+ weight: number;
1063
+ hardGate: boolean;
1064
+ rewardEligible: boolean;
1065
+ privileged: boolean;
1066
+ kind: "custom_verifier";
1067
+ verifierRef: {
1068
+ id: string;
1069
+ path: string;
1070
+ contentHash: string;
1071
+ sizeBytes: number;
1072
+ mediaType: string;
1073
+ visibility: "policy" | "verifier" | "host_private";
1074
+ };
1075
+ timeoutMs: number;
1076
+ networkPolicy: "none";
1077
+ exportName?: string | undefined;
1078
+ } | {
1079
+ id: string;
1080
+ version: string;
1081
+ weight: number;
1082
+ hardGate: boolean;
1083
+ rewardEligible: boolean;
1084
+ privileged: boolean;
1085
+ kind: "human";
1086
+ rubricRef: {
1087
+ id: string;
1088
+ path: string;
1089
+ contentHash: string;
1090
+ sizeBytes: number;
1091
+ mediaType: string;
1092
+ visibility: "policy" | "verifier" | "host_private";
1093
+ };
1094
+ reviewerRole: string;
1095
+ })[];
1096
+ metadata: Record<string, unknown>;
1097
+ contentHash: string;
1098
+ environmentRelease?: {
1099
+ id: string;
1100
+ contentHash: string;
1101
+ } | undefined;
1102
+ verifierSetRelease?: {
1103
+ id: string;
1104
+ contentHash: string;
1105
+ } | undefined;
1106
+ };
1107
+ taskDefinition: {
1108
+ schemaVersion: "openpond.taskDefinition.v1";
1109
+ id: string;
1110
+ revision: number;
1111
+ name: string;
1112
+ description: string;
1113
+ instructions: string;
1114
+ category: "custom" | "structured" | "question_answering" | "coding" | "tool_workflow";
1115
+ familyNamespace: string;
1116
+ inputSchema: Record<string, unknown>;
1117
+ outputSchema: Record<string, unknown>;
1118
+ rewardBinding: {
1119
+ id: string;
1120
+ contentHash: string;
1121
+ revision: number;
1122
+ };
1123
+ harness: {
1124
+ id: string;
1125
+ contentHash: string;
1126
+ } | null;
1127
+ execution: {
1128
+ policy: {
1129
+ policyVisibleFields: string[];
1130
+ privilegedFields: string[];
1131
+ hiddenGraderRefs: string[];
1132
+ connectedAppScopes: string[];
1133
+ };
1134
+ environment: {
1135
+ protocolVersion: "openpond.environment.v1";
1136
+ kind: "text" | "work" | "agent" | "custom_program";
1137
+ entrypoint: string;
1138
+ stateful: boolean;
1139
+ deterministicSeeds: boolean;
1140
+ lifecycle: ("create" | "reset" | "step" | "collect" | "destroy")[];
1141
+ networkPolicy: "none" | "declared_read_only" | "declared_scoped";
1142
+ defaultTimeoutMs: number;
1143
+ };
1144
+ tools: {
1145
+ name: string;
1146
+ description: string;
1147
+ inputSchema: Record<string, unknown>;
1148
+ inputSchemaHash: string;
1149
+ sideEffect: "read" | "write";
1150
+ timeoutMs: number;
1151
+ }[];
1152
+ capabilities: {
1153
+ id: string;
1154
+ required: boolean;
1155
+ scopes: string[];
1156
+ portability: "portable" | "host_adapter" | "local_only" | "hosted_only";
1157
+ }[];
1158
+ environmentRelease?: {
1159
+ id: string;
1160
+ contentHash: string;
1161
+ } | undefined;
1162
+ verifierSetRelease?: {
1163
+ id: string;
1164
+ contentHash: string;
1165
+ } | undefined;
1166
+ };
1167
+ contentHash: string;
1168
+ };
1169
+ rewardBinding: {
1170
+ schemaVersion: "openpond.rewardBinding.v1";
1171
+ id: string;
1172
+ revision: number;
1173
+ sources: {
1174
+ graderId: string;
1175
+ reward: {
1176
+ id: string;
1177
+ contentHash: string;
1178
+ revision: number;
1179
+ };
1180
+ role: "evaluation" | "training";
1181
+ normalization: {
1182
+ kind: "identity";
1183
+ } | {
1184
+ kind: "linear";
1185
+ minimum: number;
1186
+ maximum: number;
1187
+ direction: "higher" | "lower";
1188
+ };
1189
+ weight: number;
1190
+ required: boolean;
1191
+ hardGate: boolean;
1192
+ privileged: boolean;
1193
+ fixtureRefs: {
1194
+ id: string;
1195
+ contentHash: string;
1196
+ }[];
1197
+ }[];
1198
+ aggregation: "weighted_mean";
1199
+ unscorable: "exclude_optional_require_all_required";
1200
+ contentHash: string;
1201
+ name?: string | undefined;
1202
+ description?: string | undefined;
1203
+ recipeRef?: {
1204
+ id: string;
1205
+ contentHash: string;
1206
+ revision: number;
1207
+ } | undefined;
1208
+ };
1209
+ rewards: {
1210
+ schemaVersion: "openpond.rewardRelease.v1";
1211
+ id: string;
1212
+ revision: number;
1213
+ name: string;
1214
+ description: string;
1215
+ implementation: {
1216
+ kind: "state" | "content" | "schema" | "artifact" | "runtime_event";
1217
+ config: Record<string, unknown>;
1218
+ } | {
1219
+ kind: "model_judge";
1220
+ rubricRef: {
1221
+ id: string;
1222
+ path: string;
1223
+ contentHash: string;
1224
+ sizeBytes: number;
1225
+ mediaType: string;
1226
+ visibility: "policy" | "verifier" | "host_private";
1227
+ };
1228
+ calibrationStatus: "failed" | "pending" | "passed";
1229
+ model?: {
1230
+ providerId: string;
1231
+ modelId: string;
1232
+ revision: string | null;
1233
+ } | undefined;
1234
+ temperature?: number | undefined;
1235
+ } | {
1236
+ kind: "custom_verifier";
1237
+ networkPolicy: "none";
1238
+ verifierRef: {
1239
+ id: string;
1240
+ path: string;
1241
+ contentHash: string;
1242
+ sizeBytes: number;
1243
+ mediaType: string;
1244
+ visibility: "policy" | "verifier" | "host_private";
1245
+ };
1246
+ timeoutMs: number;
1247
+ exportName?: string | undefined;
1248
+ } | {
1249
+ kind: "human";
1250
+ rubricRef: {
1251
+ id: string;
1252
+ path: string;
1253
+ contentHash: string;
1254
+ sizeBytes: number;
1255
+ mediaType: string;
1256
+ visibility: "policy" | "verifier" | "host_private";
1257
+ };
1258
+ reviewerRole: string;
1259
+ } | {
1260
+ kind: "learned_model";
1261
+ modelVersion: {
1262
+ id: string;
1263
+ contentHash: string;
1264
+ };
1265
+ inputContract: {
1266
+ id: string;
1267
+ path: string;
1268
+ contentHash: string;
1269
+ sizeBytes: number;
1270
+ mediaType: string;
1271
+ visibility: "policy" | "verifier" | "host_private";
1272
+ };
1273
+ };
1274
+ rawScore: {
1275
+ minimum: number;
1276
+ maximum: number;
1277
+ };
1278
+ assets: {
1279
+ id: string;
1280
+ path: string;
1281
+ contentHash: string;
1282
+ sizeBytes: number;
1283
+ mediaType: string;
1284
+ visibility: "policy" | "verifier" | "host_private";
1285
+ }[];
1286
+ contentHash: string;
1287
+ }[];
1288
+ assets: {
1289
+ schemaVersion: "openpond.learningTextAsset.v1";
1290
+ id: string;
1291
+ revision: 1;
1292
+ asset: {
1293
+ id: string;
1294
+ path: string;
1295
+ contentHash: string;
1296
+ sizeBytes: number;
1297
+ mediaType: string;
1298
+ visibility: "policy" | "verifier" | "host_private";
1299
+ };
1300
+ text: string;
1301
+ contentHash: string;
1302
+ }[];
1303
+ };
1304
+ };
1305
+ /** Explicit projection keeps frozen examples, expected outputs, privileged
1306
+ * context and verifier source out of read-only model-facing previews. */
1307
+ export declare function previewModelStarter(value: unknown): {
1308
+ starter: {
1309
+ schemaVersion: "openpond.modelStarter.v1";
1310
+ id: string;
1311
+ revision: number;
1312
+ name: string;
1313
+ description: string;
1314
+ category: "coding" | "extraction" | "support" | "operations" | "knowledge" | "writing" | "classification";
1315
+ taskset: {
1316
+ id: string;
1317
+ contentHash: string;
1318
+ revision: number;
1319
+ };
1320
+ taskDefinition: {
1321
+ id: string;
1322
+ contentHash: string;
1323
+ revision: number;
1324
+ };
1325
+ rewardBinding: {
1326
+ id: string;
1327
+ contentHash: string;
1328
+ revision: number;
1329
+ };
1330
+ rewards: {
1331
+ id: string;
1332
+ contentHash: string;
1333
+ revision: number;
1334
+ }[];
1335
+ assets: {
1336
+ id: string;
1337
+ contentHash: string;
1338
+ revision: number;
1339
+ }[];
1340
+ previewTaskIds: string[];
1341
+ startingModel: {
1342
+ schemaVersion: "openpond.baseModelPreference.v1";
1343
+ modelId: string;
1344
+ revision: string | null;
1345
+ tokenizerRevision: string | null;
1346
+ chatTemplateHash: string | null;
1347
+ modelAssetId: string | null;
1348
+ source: "local" | "managed" | "builtin";
1349
+ };
1350
+ supportedMethods: ("sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo")[];
1351
+ defaultMethod: "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo";
1352
+ provenance: {
1353
+ author: string;
1354
+ license: string;
1355
+ sourceDescription: string;
1356
+ };
1357
+ evidence: {
1358
+ verifierFixtures: {
1359
+ id: string;
1360
+ contentHash: string;
1361
+ revision: number;
1362
+ } | null;
1363
+ baseline: {
1364
+ id: string;
1365
+ contentHash: string;
1366
+ revision: number;
1367
+ } | null;
1368
+ training: {
1369
+ id: string;
1370
+ contentHash: string;
1371
+ revision: number;
1372
+ } | null;
1373
+ evaluation: {
1374
+ id: string;
1375
+ contentHash: string;
1376
+ revision: number;
1377
+ } | null;
1378
+ };
1379
+ contentHash: string;
1380
+ };
1381
+ inputSchema: Record<string, unknown>;
1382
+ outputSchema: Record<string, unknown>;
1383
+ tasks: {
1384
+ id: string;
1385
+ input: Record<string, unknown>;
1386
+ policyVisibleContext: Record<string, unknown>;
1387
+ }[];
1388
+ counts: {
1389
+ train: number;
1390
+ validation: number;
1391
+ frozenEvaluation: number;
1392
+ };
1393
+ };
1394
+ /** Verify the dependency graph before creating user-owned configuration.
1395
+ * A matching outer hash alone cannot authorize substituted private graders. */
1396
+ export declare function validateResolvedModelStarter(value: unknown): ResolvedModelStarter;
1397
+ //# sourceMappingURL=model-starters.d.ts.map