openpond-sdk 0.2.2 → 0.2.4

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.
@@ -1,6 +1,76 @@
1
1
  import { z } from "zod";
2
2
  import { TasksetCatalogReleaseRefSchema } from "./taskset-catalog.js";
3
3
  import { type TasksetPackage } from "./taskset-package-contracts.js";
4
+ /** Configuration and package selection share one hosted commit. Package-owned
5
+ * references cannot accidentally contain a Desktop-local content hash. */
6
+ export declare const TasksetPackageModelConfigurationSchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ portableProjectId: z.ZodString;
9
+ objective: z.ZodNullable<z.ZodString>;
10
+ defaultBaseModel: z.ZodNullable<z.ZodObject<{
11
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
12
+ modelId: z.ZodString;
13
+ revision: z.ZodNullable<z.ZodString>;
14
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
15
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
16
+ modelAssetId: z.ZodNullable<z.ZodString>;
17
+ source: z.ZodEnum<{
18
+ local: "local";
19
+ managed: "managed";
20
+ builtin: "builtin";
21
+ }>;
22
+ }, z.core.$strict>>;
23
+ defaultDestinationId: z.ZodNullable<z.ZodString>;
24
+ sourceUpdatedAt: z.ZodString;
25
+ sourceRevision: z.ZodNumber;
26
+ trainingSetup: z.ZodObject<{
27
+ method: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
28
+ sft: "sft";
29
+ dpo: "dpo";
30
+ grpo: "grpo";
31
+ ppo: "ppo";
32
+ sdft: "sdft";
33
+ opd: "opd";
34
+ opsd: "opsd";
35
+ sdpo: "sdpo";
36
+ }>>>;
37
+ harnessRelease: z.ZodDefault<z.ZodNullable<z.ZodObject<{
38
+ id: z.ZodString;
39
+ contentHash: z.ZodString;
40
+ }, z.core.$strict>>>;
41
+ baseModel: z.ZodDefault<z.ZodNullable<z.ZodObject<{
42
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
43
+ modelId: z.ZodString;
44
+ revision: z.ZodNullable<z.ZodString>;
45
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
46
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
47
+ modelAssetId: z.ZodNullable<z.ZodString>;
48
+ source: z.ZodEnum<{
49
+ local: "local";
50
+ managed: "managed";
51
+ builtin: "builtin";
52
+ }>;
53
+ }, z.core.$strict>>>;
54
+ destinationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
55
+ managedRolloutPlacement: z.ZodDefault<z.ZodEnum<{
56
+ local: "local";
57
+ remote: "remote";
58
+ }>>;
59
+ managedGpuPlacementObjective: z.ZodDefault<z.ZodEnum<{
60
+ fast: "fast";
61
+ balanced: "balanced";
62
+ economical: "economical";
63
+ }>>;
64
+ runPreset: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
65
+ custom: "custom";
66
+ small: "small";
67
+ standard: "standard";
68
+ small_experiment: "small_experiment";
69
+ }>>>;
70
+ preferredMaximumSpendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
71
+ preferredRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
72
+ }, z.core.$strict>;
73
+ }, z.core.$strict>;
4
74
  export declare const TasksetPackagePublicationSchema: z.ZodObject<{
5
75
  schemaVersion: z.ZodLiteral<"openpond.tasksetPackagePublication.v1">;
6
76
  operationId: z.ZodString;
@@ -984,8 +1054,403 @@ export declare const TasksetPackagePublicationSchema: z.ZodObject<{
984
1054
  contentHash: z.ZodString;
985
1055
  }, z.core.$strict>>;
986
1056
  }, z.core.$strict>>;
1057
+ learningResources: z.ZodOptional<z.ZodObject<{
1058
+ batch: z.ZodObject<{
1059
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
1060
+ id: z.ZodString;
1061
+ revision: z.ZodLiteral<1>;
1062
+ taskDefinition: z.ZodObject<{
1063
+ id: z.ZodString;
1064
+ contentHash: z.ZodString;
1065
+ revision: z.ZodNumber;
1066
+ }, z.core.$strict>;
1067
+ rewardBinding: z.ZodObject<{
1068
+ id: z.ZodString;
1069
+ contentHash: z.ZodString;
1070
+ revision: z.ZodNumber;
1071
+ }, z.core.$strict>;
1072
+ purpose: z.ZodEnum<{
1073
+ evaluation: "evaluation";
1074
+ supervised_training: "supervised_training";
1075
+ reward_training: "reward_training";
1076
+ }>;
1077
+ examples: z.ZodArray<z.ZodObject<{
1078
+ evidence: z.ZodObject<{
1079
+ id: z.ZodString;
1080
+ contentHash: z.ZodString;
1081
+ revision: z.ZodNumber;
1082
+ }, z.core.$strict>;
1083
+ decision: z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ contentHash: z.ZodString;
1086
+ revision: z.ZodNumber;
1087
+ }, z.core.$strict>;
1088
+ familyKey: z.ZodString;
1089
+ inputHash: z.ZodString;
1090
+ split: z.ZodEnum<{
1091
+ train: "train";
1092
+ validation: "validation";
1093
+ test: "test";
1094
+ frozen_eval: "frozen_eval";
1095
+ }>;
1096
+ }, z.core.$strict>>;
1097
+ sealedAt: z.ZodString;
1098
+ sealedBy: z.ZodString;
1099
+ contentHash: z.ZodString;
1100
+ }, z.core.$strict>;
1101
+ evidence: z.ZodArray<z.ZodObject<{
1102
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
1103
+ id: z.ZodString;
1104
+ revision: z.ZodNumber;
1105
+ source: z.ZodObject<{
1106
+ id: z.ZodString;
1107
+ contentHash: z.ZodString;
1108
+ revision: z.ZodNumber;
1109
+ }, z.core.$strict>;
1110
+ submission: z.ZodObject<{
1111
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
1112
+ sourceId: z.ZodString;
1113
+ idempotencyKey: z.ZodString;
1114
+ taskDefinition: z.ZodObject<{
1115
+ id: z.ZodString;
1116
+ contentHash: z.ZodString;
1117
+ revision: z.ZodNumber;
1118
+ }, z.core.$strict>;
1119
+ exampleId: z.ZodString;
1120
+ attemptId: z.ZodString;
1121
+ occurredAt: z.ZodString;
1122
+ familyKey: z.ZodNullable<z.ZodString>;
1123
+ split: z.ZodEnum<{
1124
+ train: "train";
1125
+ validation: "validation";
1126
+ test: "test";
1127
+ frozen_eval: "frozen_eval";
1128
+ }>;
1129
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1130
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1131
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1132
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1133
+ assets: z.ZodArray<z.ZodObject<{
1134
+ id: z.ZodString;
1135
+ path: z.ZodString;
1136
+ contentHash: z.ZodString;
1137
+ sizeBytes: z.ZodNumber;
1138
+ mediaType: z.ZodString;
1139
+ visibility: z.ZodEnum<{
1140
+ policy: "policy";
1141
+ verifier: "verifier";
1142
+ host_private: "host_private";
1143
+ }>;
1144
+ }, z.core.$strict>>;
1145
+ provenance: z.ZodObject<{
1146
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
1147
+ mappingHash: z.ZodNullable<z.ZodString>;
1148
+ }, z.core.$strict>;
1149
+ }, z.core.$strict>;
1150
+ supersedes: z.ZodNullable<z.ZodObject<{
1151
+ id: z.ZodString;
1152
+ contentHash: z.ZodString;
1153
+ revision: z.ZodNumber;
1154
+ }, z.core.$strict>>;
1155
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
1156
+ receivedAt: z.ZodString;
1157
+ contentHash: z.ZodString;
1158
+ }, z.core.$strict>>;
1159
+ decisions: z.ZodArray<z.ZodObject<{
1160
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
1161
+ id: z.ZodString;
1162
+ revision: z.ZodNumber;
1163
+ evidence: z.ZodObject<{
1164
+ id: z.ZodString;
1165
+ contentHash: z.ZodString;
1166
+ revision: z.ZodNumber;
1167
+ }, z.core.$strict>;
1168
+ supersedes: z.ZodNullable<z.ZodObject<{
1169
+ id: z.ZodString;
1170
+ contentHash: z.ZodString;
1171
+ revision: z.ZodNumber;
1172
+ }, z.core.$strict>>;
1173
+ actor: z.ZodObject<{
1174
+ kind: z.ZodEnum<{
1175
+ human: "human";
1176
+ qualified_policy: "qualified_policy";
1177
+ }>;
1178
+ id: z.ZodString;
1179
+ policy: z.ZodNullable<z.ZodObject<{
1180
+ id: z.ZodString;
1181
+ contentHash: z.ZodString;
1182
+ revision: z.ZodNumber;
1183
+ }, z.core.$strict>>;
1184
+ }, z.core.$strict>;
1185
+ evidenceValidity: z.ZodEnum<{
1186
+ pending: "pending";
1187
+ valid: "valid";
1188
+ invalid: "invalid";
1189
+ }>;
1190
+ taskAdmissibility: z.ZodEnum<{
1191
+ pending: "pending";
1192
+ rejected: "rejected";
1193
+ approved: "approved";
1194
+ }>;
1195
+ observedQuality: z.ZodEnum<{
1196
+ passed: "passed";
1197
+ failed: "failed";
1198
+ unavailable: "unavailable";
1199
+ unscored: "unscored";
1200
+ }>;
1201
+ targetApproval: z.ZodEnum<{
1202
+ pending: "pending";
1203
+ rejected: "rejected";
1204
+ approved: "approved";
1205
+ not_required: "not_required";
1206
+ }>;
1207
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1208
+ grade: z.ZodNullable<z.ZodObject<{
1209
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1210
+ binding: z.ZodObject<{
1211
+ id: z.ZodString;
1212
+ contentHash: z.ZodString;
1213
+ revision: z.ZodNumber;
1214
+ }, z.core.$strict>;
1215
+ taskHash: z.ZodString;
1216
+ outputHash: z.ZodString;
1217
+ results: z.ZodArray<z.ZodObject<{
1218
+ graderId: z.ZodString;
1219
+ reward: z.ZodObject<{
1220
+ id: z.ZodString;
1221
+ contentHash: z.ZodString;
1222
+ revision: z.ZodNumber;
1223
+ }, z.core.$strict>;
1224
+ role: z.ZodEnum<{
1225
+ evaluation: "evaluation";
1226
+ training: "training";
1227
+ }>;
1228
+ status: z.ZodEnum<{
1229
+ pending: "pending";
1230
+ failed: "failed";
1231
+ scored: "scored";
1232
+ unavailable: "unavailable";
1233
+ }>;
1234
+ rawScore: z.ZodNullable<z.ZodNumber>;
1235
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1236
+ passed: z.ZodNullable<z.ZodBoolean>;
1237
+ evidenceHashes: z.ZodArray<z.ZodString>;
1238
+ message: z.ZodNullable<z.ZodString>;
1239
+ }, z.core.$strict>>;
1240
+ training: z.ZodObject<{
1241
+ status: z.ZodEnum<{
1242
+ scored: "scored";
1243
+ unscorable: "unscorable";
1244
+ not_configured: "not_configured";
1245
+ }>;
1246
+ score: z.ZodNullable<z.ZodNumber>;
1247
+ passed: z.ZodNullable<z.ZodBoolean>;
1248
+ }, z.core.$strict>;
1249
+ evaluation: z.ZodObject<{
1250
+ status: z.ZodEnum<{
1251
+ scored: "scored";
1252
+ unscorable: "unscorable";
1253
+ not_configured: "not_configured";
1254
+ }>;
1255
+ score: z.ZodNullable<z.ZodNumber>;
1256
+ passed: z.ZodNullable<z.ZodBoolean>;
1257
+ }, z.core.$strict>;
1258
+ contentHash: z.ZodString;
1259
+ }, z.core.$strict>>;
1260
+ targetGrade: z.ZodNullable<z.ZodObject<{
1261
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1262
+ binding: z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ contentHash: z.ZodString;
1265
+ revision: z.ZodNumber;
1266
+ }, z.core.$strict>;
1267
+ taskHash: z.ZodString;
1268
+ outputHash: z.ZodString;
1269
+ results: z.ZodArray<z.ZodObject<{
1270
+ graderId: z.ZodString;
1271
+ reward: z.ZodObject<{
1272
+ id: z.ZodString;
1273
+ contentHash: z.ZodString;
1274
+ revision: z.ZodNumber;
1275
+ }, z.core.$strict>;
1276
+ role: z.ZodEnum<{
1277
+ evaluation: "evaluation";
1278
+ training: "training";
1279
+ }>;
1280
+ status: z.ZodEnum<{
1281
+ pending: "pending";
1282
+ failed: "failed";
1283
+ scored: "scored";
1284
+ unavailable: "unavailable";
1285
+ }>;
1286
+ rawScore: z.ZodNullable<z.ZodNumber>;
1287
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1288
+ passed: z.ZodNullable<z.ZodBoolean>;
1289
+ evidenceHashes: z.ZodArray<z.ZodString>;
1290
+ message: z.ZodNullable<z.ZodString>;
1291
+ }, z.core.$strict>>;
1292
+ training: z.ZodObject<{
1293
+ status: z.ZodEnum<{
1294
+ scored: "scored";
1295
+ unscorable: "unscorable";
1296
+ not_configured: "not_configured";
1297
+ }>;
1298
+ score: z.ZodNullable<z.ZodNumber>;
1299
+ passed: z.ZodNullable<z.ZodBoolean>;
1300
+ }, z.core.$strict>;
1301
+ evaluation: z.ZodObject<{
1302
+ status: z.ZodEnum<{
1303
+ scored: "scored";
1304
+ unscorable: "unscorable";
1305
+ not_configured: "not_configured";
1306
+ }>;
1307
+ score: z.ZodNullable<z.ZodNumber>;
1308
+ passed: z.ZodNullable<z.ZodBoolean>;
1309
+ }, z.core.$strict>;
1310
+ contentHash: z.ZodString;
1311
+ }, z.core.$strict>>;
1312
+ note: z.ZodString;
1313
+ decidedAt: z.ZodString;
1314
+ contentHash: z.ZodString;
1315
+ }, z.core.$strict>>;
1316
+ sources: z.ZodArray<z.ZodObject<{
1317
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
1318
+ id: z.ZodString;
1319
+ revision: z.ZodNumber;
1320
+ name: z.ZodString;
1321
+ kind: z.ZodEnum<{
1322
+ work: "work";
1323
+ provider: "provider";
1324
+ direct: "direct";
1325
+ benchmark: "benchmark";
1326
+ opentelemetry: "opentelemetry";
1327
+ }>;
1328
+ taskDefinition: z.ZodObject<{
1329
+ id: z.ZodString;
1330
+ contentHash: z.ZodString;
1331
+ revision: z.ZodNumber;
1332
+ }, z.core.$strict>;
1333
+ enabled: z.ZodBoolean;
1334
+ allowedSplits: z.ZodArray<z.ZodEnum<{
1335
+ train: "train";
1336
+ validation: "validation";
1337
+ test: "test";
1338
+ frozen_eval: "frozen_eval";
1339
+ }>>;
1340
+ mapping: z.ZodNullable<z.ZodObject<{
1341
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
1342
+ exampleId: z.ZodString;
1343
+ attemptId: z.ZodString;
1344
+ occurredAt: z.ZodString;
1345
+ input: z.ZodString;
1346
+ observedOutput: z.ZodNullable<z.ZodString>;
1347
+ expected: z.ZodNullable<z.ZodString>;
1348
+ evaluatorContext: z.ZodNullable<z.ZodString>;
1349
+ familyKey: z.ZodString;
1350
+ split: z.ZodEnum<{
1351
+ train: "train";
1352
+ validation: "validation";
1353
+ test: "test";
1354
+ frozen_eval: "frozen_eval";
1355
+ }>;
1356
+ }, z.core.$strict>>;
1357
+ adapterVersion: z.ZodNullable<z.ZodString>;
1358
+ contentHash: z.ZodString;
1359
+ }, z.core.$strict>>;
1360
+ assets: z.ZodArray<z.ZodObject<{
1361
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
1362
+ id: z.ZodString;
1363
+ revision: z.ZodLiteral<1>;
1364
+ asset: z.ZodObject<{
1365
+ id: z.ZodString;
1366
+ path: z.ZodString;
1367
+ contentHash: z.ZodString;
1368
+ sizeBytes: z.ZodNumber;
1369
+ mediaType: z.ZodString;
1370
+ visibility: z.ZodEnum<{
1371
+ policy: "policy";
1372
+ verifier: "verifier";
1373
+ host_private: "host_private";
1374
+ }>;
1375
+ }, z.core.$strict>;
1376
+ text: z.ZodString;
1377
+ contentHash: z.ZodString;
1378
+ }, z.core.$strict>>;
1379
+ }, z.core.$strict>>;
987
1380
  contentHash: z.ZodString;
988
1381
  }, z.core.$strict>;
1382
+ modelConfiguration: z.ZodOptional<z.ZodObject<{
1383
+ name: z.ZodString;
1384
+ portableProjectId: z.ZodString;
1385
+ objective: z.ZodNullable<z.ZodString>;
1386
+ defaultBaseModel: z.ZodNullable<z.ZodObject<{
1387
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
1388
+ modelId: z.ZodString;
1389
+ revision: z.ZodNullable<z.ZodString>;
1390
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
1391
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
1392
+ modelAssetId: z.ZodNullable<z.ZodString>;
1393
+ source: z.ZodEnum<{
1394
+ local: "local";
1395
+ managed: "managed";
1396
+ builtin: "builtin";
1397
+ }>;
1398
+ }, z.core.$strict>>;
1399
+ defaultDestinationId: z.ZodNullable<z.ZodString>;
1400
+ sourceUpdatedAt: z.ZodString;
1401
+ sourceRevision: z.ZodNumber;
1402
+ trainingSetup: z.ZodObject<{
1403
+ method: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1404
+ sft: "sft";
1405
+ dpo: "dpo";
1406
+ grpo: "grpo";
1407
+ ppo: "ppo";
1408
+ sdft: "sdft";
1409
+ opd: "opd";
1410
+ opsd: "opsd";
1411
+ sdpo: "sdpo";
1412
+ }>>>;
1413
+ harnessRelease: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1414
+ id: z.ZodString;
1415
+ contentHash: z.ZodString;
1416
+ }, z.core.$strict>>>;
1417
+ baseModel: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1418
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
1419
+ modelId: z.ZodString;
1420
+ revision: z.ZodNullable<z.ZodString>;
1421
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
1422
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
1423
+ modelAssetId: z.ZodNullable<z.ZodString>;
1424
+ source: z.ZodEnum<{
1425
+ local: "local";
1426
+ managed: "managed";
1427
+ builtin: "builtin";
1428
+ }>;
1429
+ }, z.core.$strict>>>;
1430
+ destinationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1431
+ managedRolloutPlacement: z.ZodDefault<z.ZodEnum<{
1432
+ local: "local";
1433
+ remote: "remote";
1434
+ }>>;
1435
+ managedGpuPlacementObjective: z.ZodDefault<z.ZodEnum<{
1436
+ fast: "fast";
1437
+ balanced: "balanced";
1438
+ economical: "economical";
1439
+ }>>;
1440
+ runPreset: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1441
+ custom: "custom";
1442
+ small: "small";
1443
+ standard: "standard";
1444
+ small_experiment: "small_experiment";
1445
+ }>>>;
1446
+ preferredMaximumSpendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1447
+ preferredRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1448
+ }, z.core.$strict>;
1449
+ }, z.core.$strict>>;
1450
+ selection: z.ZodOptional<z.ZodEnum<{
1451
+ select: "select";
1452
+ attach: "attach";
1453
+ }>>;
989
1454
  }, z.core.$strict>;
990
1455
  export declare const TasksetPackageReceiptSchema: z.ZodObject<{
991
1456
  schemaVersion: z.ZodLiteral<"openpond.tasksetPackageReceipt.v1">;
@@ -1000,6 +1465,115 @@ export declare const TasksetPackageReceiptSchema: z.ZodObject<{
1000
1465
  packageHash: z.ZodString;
1001
1466
  hostedTasksetId: z.ZodString;
1002
1467
  projectEtag: z.ZodString;
1468
+ project: z.ZodOptional<z.ZodObject<{
1469
+ id: z.ZodString;
1470
+ teamId: z.ZodString;
1471
+ portableProjectId: z.ZodString;
1472
+ name: z.ZodString;
1473
+ objective: z.ZodNullable<z.ZodString>;
1474
+ defaultBaseModel: z.ZodNullable<z.ZodObject<{
1475
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
1476
+ modelId: z.ZodString;
1477
+ revision: z.ZodNullable<z.ZodString>;
1478
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
1479
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
1480
+ modelAssetId: z.ZodNullable<z.ZodString>;
1481
+ source: z.ZodEnum<{
1482
+ local: "local";
1483
+ managed: "managed";
1484
+ builtin: "builtin";
1485
+ }>;
1486
+ }, z.core.$strict>>;
1487
+ defaultDestinationId: z.ZodNullable<z.ZodString>;
1488
+ trainingSetup: z.ZodObject<{
1489
+ method: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1490
+ sft: "sft";
1491
+ dpo: "dpo";
1492
+ grpo: "grpo";
1493
+ ppo: "ppo";
1494
+ sdft: "sdft";
1495
+ opd: "opd";
1496
+ opsd: "opsd";
1497
+ sdpo: "sdpo";
1498
+ }>>>;
1499
+ recipe: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1500
+ schemaVersion: z.ZodString;
1501
+ method: z.ZodEnum<{
1502
+ sft: "sft";
1503
+ dpo: "dpo";
1504
+ grpo: "grpo";
1505
+ ppo: "ppo";
1506
+ sdft: "sdft";
1507
+ opd: "opd";
1508
+ opsd: "opsd";
1509
+ sdpo: "sdpo";
1510
+ }>;
1511
+ parameterization: z.ZodEnum<{
1512
+ lora: "lora";
1513
+ full: "full";
1514
+ }>;
1515
+ }, z.core.$catchall<z.ZodUnknown>>>>;
1516
+ tasksetRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1517
+ id: z.ZodString;
1518
+ contentHash: z.ZodString;
1519
+ revision: z.ZodNumber;
1520
+ }, z.core.$strict>>>;
1521
+ rewardBindingRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1522
+ id: z.ZodString;
1523
+ contentHash: z.ZodString;
1524
+ revision: z.ZodNumber;
1525
+ }, z.core.$strict>>>;
1526
+ tasksetRelease: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1527
+ id: z.ZodString;
1528
+ contentHash: z.ZodString;
1529
+ }, z.core.$strict>>>;
1530
+ harnessRelease: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1531
+ id: z.ZodString;
1532
+ contentHash: z.ZodString;
1533
+ }, z.core.$strict>>>;
1534
+ baseModel: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1535
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
1536
+ modelId: z.ZodString;
1537
+ revision: z.ZodNullable<z.ZodString>;
1538
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
1539
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
1540
+ modelAssetId: z.ZodNullable<z.ZodString>;
1541
+ source: z.ZodEnum<{
1542
+ local: "local";
1543
+ managed: "managed";
1544
+ builtin: "builtin";
1545
+ }>;
1546
+ }, z.core.$strict>>>;
1547
+ destinationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1548
+ managedRolloutPlacement: z.ZodDefault<z.ZodEnum<{
1549
+ local: "local";
1550
+ remote: "remote";
1551
+ }>>;
1552
+ managedGpuPlacementObjective: z.ZodDefault<z.ZodEnum<{
1553
+ fast: "fast";
1554
+ balanced: "balanced";
1555
+ economical: "economical";
1556
+ }>>;
1557
+ runPreset: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1558
+ custom: "custom";
1559
+ small: "small";
1560
+ standard: "standard";
1561
+ small_experiment: "small_experiment";
1562
+ }>>>;
1563
+ preferredMaximumSpendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1564
+ preferredRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1565
+ }, z.core.$strict>;
1566
+ sourceRevision: z.ZodNumber;
1567
+ sourceUpdatedAt: z.ZodString;
1568
+ revision: z.ZodNumber;
1569
+ etag: z.ZodString;
1570
+ createdAt: z.ZodString;
1571
+ updatedAt: z.ZodString;
1572
+ }, z.core.$strict>>;
1573
+ selection: z.ZodOptional<z.ZodEnum<{
1574
+ select: "select";
1575
+ attach: "attach";
1576
+ }>>;
1003
1577
  }, z.core.$strict>;
1004
1578
  export declare const TasksetPackageReadbackSchema: z.ZodObject<{
1005
1579
  schemaVersion: z.ZodLiteral<"openpond.tasksetPackageReadback.v1">;
@@ -1968,11 +2542,335 @@ export declare const TasksetPackageReadbackSchema: z.ZodObject<{
1968
2542
  contentHash: z.ZodString;
1969
2543
  }, z.core.$strict>>;
1970
2544
  }, z.core.$strict>>;
2545
+ learningResources: z.ZodOptional<z.ZodObject<{
2546
+ batch: z.ZodObject<{
2547
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
2548
+ id: z.ZodString;
2549
+ revision: z.ZodLiteral<1>;
2550
+ taskDefinition: z.ZodObject<{
2551
+ id: z.ZodString;
2552
+ contentHash: z.ZodString;
2553
+ revision: z.ZodNumber;
2554
+ }, z.core.$strict>;
2555
+ rewardBinding: z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ contentHash: z.ZodString;
2558
+ revision: z.ZodNumber;
2559
+ }, z.core.$strict>;
2560
+ purpose: z.ZodEnum<{
2561
+ evaluation: "evaluation";
2562
+ supervised_training: "supervised_training";
2563
+ reward_training: "reward_training";
2564
+ }>;
2565
+ examples: z.ZodArray<z.ZodObject<{
2566
+ evidence: z.ZodObject<{
2567
+ id: z.ZodString;
2568
+ contentHash: z.ZodString;
2569
+ revision: z.ZodNumber;
2570
+ }, z.core.$strict>;
2571
+ decision: z.ZodObject<{
2572
+ id: z.ZodString;
2573
+ contentHash: z.ZodString;
2574
+ revision: z.ZodNumber;
2575
+ }, z.core.$strict>;
2576
+ familyKey: z.ZodString;
2577
+ inputHash: z.ZodString;
2578
+ split: z.ZodEnum<{
2579
+ train: "train";
2580
+ validation: "validation";
2581
+ test: "test";
2582
+ frozen_eval: "frozen_eval";
2583
+ }>;
2584
+ }, z.core.$strict>>;
2585
+ sealedAt: z.ZodString;
2586
+ sealedBy: z.ZodString;
2587
+ contentHash: z.ZodString;
2588
+ }, z.core.$strict>;
2589
+ evidence: z.ZodArray<z.ZodObject<{
2590
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
2591
+ id: z.ZodString;
2592
+ revision: z.ZodNumber;
2593
+ source: z.ZodObject<{
2594
+ id: z.ZodString;
2595
+ contentHash: z.ZodString;
2596
+ revision: z.ZodNumber;
2597
+ }, z.core.$strict>;
2598
+ submission: z.ZodObject<{
2599
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
2600
+ sourceId: z.ZodString;
2601
+ idempotencyKey: z.ZodString;
2602
+ taskDefinition: z.ZodObject<{
2603
+ id: z.ZodString;
2604
+ contentHash: z.ZodString;
2605
+ revision: z.ZodNumber;
2606
+ }, z.core.$strict>;
2607
+ exampleId: z.ZodString;
2608
+ attemptId: z.ZodString;
2609
+ occurredAt: z.ZodString;
2610
+ familyKey: z.ZodNullable<z.ZodString>;
2611
+ split: z.ZodEnum<{
2612
+ train: "train";
2613
+ validation: "validation";
2614
+ test: "test";
2615
+ frozen_eval: "frozen_eval";
2616
+ }>;
2617
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2618
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2619
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2620
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2621
+ assets: z.ZodArray<z.ZodObject<{
2622
+ id: z.ZodString;
2623
+ path: z.ZodString;
2624
+ contentHash: z.ZodString;
2625
+ sizeBytes: z.ZodNumber;
2626
+ mediaType: z.ZodString;
2627
+ visibility: z.ZodEnum<{
2628
+ policy: "policy";
2629
+ verifier: "verifier";
2630
+ host_private: "host_private";
2631
+ }>;
2632
+ }, z.core.$strict>>;
2633
+ provenance: z.ZodObject<{
2634
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
2635
+ mappingHash: z.ZodNullable<z.ZodString>;
2636
+ }, z.core.$strict>;
2637
+ }, z.core.$strict>;
2638
+ supersedes: z.ZodNullable<z.ZodObject<{
2639
+ id: z.ZodString;
2640
+ contentHash: z.ZodString;
2641
+ revision: z.ZodNumber;
2642
+ }, z.core.$strict>>;
2643
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
2644
+ receivedAt: z.ZodString;
2645
+ contentHash: z.ZodString;
2646
+ }, z.core.$strict>>;
2647
+ decisions: z.ZodArray<z.ZodObject<{
2648
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
2649
+ id: z.ZodString;
2650
+ revision: z.ZodNumber;
2651
+ evidence: z.ZodObject<{
2652
+ id: z.ZodString;
2653
+ contentHash: z.ZodString;
2654
+ revision: z.ZodNumber;
2655
+ }, z.core.$strict>;
2656
+ supersedes: z.ZodNullable<z.ZodObject<{
2657
+ id: z.ZodString;
2658
+ contentHash: z.ZodString;
2659
+ revision: z.ZodNumber;
2660
+ }, z.core.$strict>>;
2661
+ actor: z.ZodObject<{
2662
+ kind: z.ZodEnum<{
2663
+ human: "human";
2664
+ qualified_policy: "qualified_policy";
2665
+ }>;
2666
+ id: z.ZodString;
2667
+ policy: z.ZodNullable<z.ZodObject<{
2668
+ id: z.ZodString;
2669
+ contentHash: z.ZodString;
2670
+ revision: z.ZodNumber;
2671
+ }, z.core.$strict>>;
2672
+ }, z.core.$strict>;
2673
+ evidenceValidity: z.ZodEnum<{
2674
+ pending: "pending";
2675
+ valid: "valid";
2676
+ invalid: "invalid";
2677
+ }>;
2678
+ taskAdmissibility: z.ZodEnum<{
2679
+ pending: "pending";
2680
+ rejected: "rejected";
2681
+ approved: "approved";
2682
+ }>;
2683
+ observedQuality: z.ZodEnum<{
2684
+ passed: "passed";
2685
+ failed: "failed";
2686
+ unavailable: "unavailable";
2687
+ unscored: "unscored";
2688
+ }>;
2689
+ targetApproval: z.ZodEnum<{
2690
+ pending: "pending";
2691
+ rejected: "rejected";
2692
+ approved: "approved";
2693
+ not_required: "not_required";
2694
+ }>;
2695
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2696
+ grade: z.ZodNullable<z.ZodObject<{
2697
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2698
+ binding: z.ZodObject<{
2699
+ id: z.ZodString;
2700
+ contentHash: z.ZodString;
2701
+ revision: z.ZodNumber;
2702
+ }, z.core.$strict>;
2703
+ taskHash: z.ZodString;
2704
+ outputHash: z.ZodString;
2705
+ results: z.ZodArray<z.ZodObject<{
2706
+ graderId: z.ZodString;
2707
+ reward: z.ZodObject<{
2708
+ id: z.ZodString;
2709
+ contentHash: z.ZodString;
2710
+ revision: z.ZodNumber;
2711
+ }, z.core.$strict>;
2712
+ role: z.ZodEnum<{
2713
+ evaluation: "evaluation";
2714
+ training: "training";
2715
+ }>;
2716
+ status: z.ZodEnum<{
2717
+ pending: "pending";
2718
+ failed: "failed";
2719
+ scored: "scored";
2720
+ unavailable: "unavailable";
2721
+ }>;
2722
+ rawScore: z.ZodNullable<z.ZodNumber>;
2723
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
2724
+ passed: z.ZodNullable<z.ZodBoolean>;
2725
+ evidenceHashes: z.ZodArray<z.ZodString>;
2726
+ message: z.ZodNullable<z.ZodString>;
2727
+ }, z.core.$strict>>;
2728
+ training: z.ZodObject<{
2729
+ status: z.ZodEnum<{
2730
+ scored: "scored";
2731
+ unscorable: "unscorable";
2732
+ not_configured: "not_configured";
2733
+ }>;
2734
+ score: z.ZodNullable<z.ZodNumber>;
2735
+ passed: z.ZodNullable<z.ZodBoolean>;
2736
+ }, z.core.$strict>;
2737
+ evaluation: z.ZodObject<{
2738
+ status: z.ZodEnum<{
2739
+ scored: "scored";
2740
+ unscorable: "unscorable";
2741
+ not_configured: "not_configured";
2742
+ }>;
2743
+ score: z.ZodNullable<z.ZodNumber>;
2744
+ passed: z.ZodNullable<z.ZodBoolean>;
2745
+ }, z.core.$strict>;
2746
+ contentHash: z.ZodString;
2747
+ }, z.core.$strict>>;
2748
+ targetGrade: z.ZodNullable<z.ZodObject<{
2749
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2750
+ binding: z.ZodObject<{
2751
+ id: z.ZodString;
2752
+ contentHash: z.ZodString;
2753
+ revision: z.ZodNumber;
2754
+ }, z.core.$strict>;
2755
+ taskHash: z.ZodString;
2756
+ outputHash: z.ZodString;
2757
+ results: z.ZodArray<z.ZodObject<{
2758
+ graderId: z.ZodString;
2759
+ reward: z.ZodObject<{
2760
+ id: z.ZodString;
2761
+ contentHash: z.ZodString;
2762
+ revision: z.ZodNumber;
2763
+ }, z.core.$strict>;
2764
+ role: z.ZodEnum<{
2765
+ evaluation: "evaluation";
2766
+ training: "training";
2767
+ }>;
2768
+ status: z.ZodEnum<{
2769
+ pending: "pending";
2770
+ failed: "failed";
2771
+ scored: "scored";
2772
+ unavailable: "unavailable";
2773
+ }>;
2774
+ rawScore: z.ZodNullable<z.ZodNumber>;
2775
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
2776
+ passed: z.ZodNullable<z.ZodBoolean>;
2777
+ evidenceHashes: z.ZodArray<z.ZodString>;
2778
+ message: z.ZodNullable<z.ZodString>;
2779
+ }, z.core.$strict>>;
2780
+ training: z.ZodObject<{
2781
+ status: z.ZodEnum<{
2782
+ scored: "scored";
2783
+ unscorable: "unscorable";
2784
+ not_configured: "not_configured";
2785
+ }>;
2786
+ score: z.ZodNullable<z.ZodNumber>;
2787
+ passed: z.ZodNullable<z.ZodBoolean>;
2788
+ }, z.core.$strict>;
2789
+ evaluation: z.ZodObject<{
2790
+ status: z.ZodEnum<{
2791
+ scored: "scored";
2792
+ unscorable: "unscorable";
2793
+ not_configured: "not_configured";
2794
+ }>;
2795
+ score: z.ZodNullable<z.ZodNumber>;
2796
+ passed: z.ZodNullable<z.ZodBoolean>;
2797
+ }, z.core.$strict>;
2798
+ contentHash: z.ZodString;
2799
+ }, z.core.$strict>>;
2800
+ note: z.ZodString;
2801
+ decidedAt: z.ZodString;
2802
+ contentHash: z.ZodString;
2803
+ }, z.core.$strict>>;
2804
+ sources: z.ZodArray<z.ZodObject<{
2805
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
2806
+ id: z.ZodString;
2807
+ revision: z.ZodNumber;
2808
+ name: z.ZodString;
2809
+ kind: z.ZodEnum<{
2810
+ work: "work";
2811
+ provider: "provider";
2812
+ direct: "direct";
2813
+ benchmark: "benchmark";
2814
+ opentelemetry: "opentelemetry";
2815
+ }>;
2816
+ taskDefinition: z.ZodObject<{
2817
+ id: z.ZodString;
2818
+ contentHash: z.ZodString;
2819
+ revision: z.ZodNumber;
2820
+ }, z.core.$strict>;
2821
+ enabled: z.ZodBoolean;
2822
+ allowedSplits: z.ZodArray<z.ZodEnum<{
2823
+ train: "train";
2824
+ validation: "validation";
2825
+ test: "test";
2826
+ frozen_eval: "frozen_eval";
2827
+ }>>;
2828
+ mapping: z.ZodNullable<z.ZodObject<{
2829
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
2830
+ exampleId: z.ZodString;
2831
+ attemptId: z.ZodString;
2832
+ occurredAt: z.ZodString;
2833
+ input: z.ZodString;
2834
+ observedOutput: z.ZodNullable<z.ZodString>;
2835
+ expected: z.ZodNullable<z.ZodString>;
2836
+ evaluatorContext: z.ZodNullable<z.ZodString>;
2837
+ familyKey: z.ZodString;
2838
+ split: z.ZodEnum<{
2839
+ train: "train";
2840
+ validation: "validation";
2841
+ test: "test";
2842
+ frozen_eval: "frozen_eval";
2843
+ }>;
2844
+ }, z.core.$strict>>;
2845
+ adapterVersion: z.ZodNullable<z.ZodString>;
2846
+ contentHash: z.ZodString;
2847
+ }, z.core.$strict>>;
2848
+ assets: z.ZodArray<z.ZodObject<{
2849
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
2850
+ id: z.ZodString;
2851
+ revision: z.ZodLiteral<1>;
2852
+ asset: z.ZodObject<{
2853
+ id: z.ZodString;
2854
+ path: z.ZodString;
2855
+ contentHash: z.ZodString;
2856
+ sizeBytes: z.ZodNumber;
2857
+ mediaType: z.ZodString;
2858
+ visibility: z.ZodEnum<{
2859
+ policy: "policy";
2860
+ verifier: "verifier";
2861
+ host_private: "host_private";
2862
+ }>;
2863
+ }, z.core.$strict>;
2864
+ text: z.ZodString;
2865
+ contentHash: z.ZodString;
2866
+ }, z.core.$strict>>;
2867
+ }, z.core.$strict>>;
1971
2868
  contentHash: z.ZodString;
1972
2869
  }, z.core.$strict>;
1973
2870
  }, z.core.$strict>;
1974
2871
  export type TasksetPackagePublication = z.infer<typeof TasksetPackagePublicationSchema>;
1975
2872
  export type TasksetPackageReceipt = z.infer<typeof TasksetPackageReceiptSchema>;
2873
+ export type TasksetPackageModelConfiguration = z.infer<typeof TasksetPackageModelConfigurationSchema>;
1976
2874
  export declare class OpenPondTasksetPackageError extends Error {
1977
2875
  readonly status: number;
1978
2876
  readonly code: string;