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.
@@ -979,6 +979,329 @@ export declare const TasksetPackageContentSchema: z.ZodObject<{
979
979
  contentHash: z.ZodString;
980
980
  }, z.core.$strict>>;
981
981
  }, z.core.$strict>>;
982
+ learningResources: z.ZodOptional<z.ZodObject<{
983
+ batch: z.ZodObject<{
984
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
985
+ id: z.ZodString;
986
+ revision: z.ZodLiteral<1>;
987
+ taskDefinition: z.ZodObject<{
988
+ id: z.ZodString;
989
+ contentHash: z.ZodString;
990
+ revision: z.ZodNumber;
991
+ }, z.core.$strict>;
992
+ rewardBinding: z.ZodObject<{
993
+ id: z.ZodString;
994
+ contentHash: z.ZodString;
995
+ revision: z.ZodNumber;
996
+ }, z.core.$strict>;
997
+ purpose: z.ZodEnum<{
998
+ evaluation: "evaluation";
999
+ supervised_training: "supervised_training";
1000
+ reward_training: "reward_training";
1001
+ }>;
1002
+ examples: z.ZodArray<z.ZodObject<{
1003
+ evidence: z.ZodObject<{
1004
+ id: z.ZodString;
1005
+ contentHash: z.ZodString;
1006
+ revision: z.ZodNumber;
1007
+ }, z.core.$strict>;
1008
+ decision: z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ contentHash: z.ZodString;
1011
+ revision: z.ZodNumber;
1012
+ }, z.core.$strict>;
1013
+ familyKey: z.ZodString;
1014
+ inputHash: z.ZodString;
1015
+ split: z.ZodEnum<{
1016
+ train: "train";
1017
+ validation: "validation";
1018
+ test: "test";
1019
+ frozen_eval: "frozen_eval";
1020
+ }>;
1021
+ }, z.core.$strict>>;
1022
+ sealedAt: z.ZodString;
1023
+ sealedBy: z.ZodString;
1024
+ contentHash: z.ZodString;
1025
+ }, z.core.$strict>;
1026
+ evidence: z.ZodArray<z.ZodObject<{
1027
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
1028
+ id: z.ZodString;
1029
+ revision: z.ZodNumber;
1030
+ source: z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ contentHash: z.ZodString;
1033
+ revision: z.ZodNumber;
1034
+ }, z.core.$strict>;
1035
+ submission: z.ZodObject<{
1036
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
1037
+ sourceId: z.ZodString;
1038
+ idempotencyKey: z.ZodString;
1039
+ taskDefinition: z.ZodObject<{
1040
+ id: z.ZodString;
1041
+ contentHash: z.ZodString;
1042
+ revision: z.ZodNumber;
1043
+ }, z.core.$strict>;
1044
+ exampleId: z.ZodString;
1045
+ attemptId: z.ZodString;
1046
+ occurredAt: z.ZodString;
1047
+ familyKey: z.ZodNullable<z.ZodString>;
1048
+ split: z.ZodEnum<{
1049
+ train: "train";
1050
+ validation: "validation";
1051
+ test: "test";
1052
+ frozen_eval: "frozen_eval";
1053
+ }>;
1054
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1055
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1056
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1057
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1058
+ assets: z.ZodArray<z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ path: z.ZodString;
1061
+ contentHash: z.ZodString;
1062
+ sizeBytes: z.ZodNumber;
1063
+ mediaType: z.ZodString;
1064
+ visibility: z.ZodEnum<{
1065
+ policy: "policy";
1066
+ verifier: "verifier";
1067
+ host_private: "host_private";
1068
+ }>;
1069
+ }, z.core.$strict>>;
1070
+ provenance: z.ZodObject<{
1071
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
1072
+ mappingHash: z.ZodNullable<z.ZodString>;
1073
+ }, z.core.$strict>;
1074
+ }, z.core.$strict>;
1075
+ supersedes: z.ZodNullable<z.ZodObject<{
1076
+ id: z.ZodString;
1077
+ contentHash: z.ZodString;
1078
+ revision: z.ZodNumber;
1079
+ }, z.core.$strict>>;
1080
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
1081
+ receivedAt: z.ZodString;
1082
+ contentHash: z.ZodString;
1083
+ }, z.core.$strict>>;
1084
+ decisions: z.ZodArray<z.ZodObject<{
1085
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
1086
+ id: z.ZodString;
1087
+ revision: z.ZodNumber;
1088
+ evidence: z.ZodObject<{
1089
+ id: z.ZodString;
1090
+ contentHash: z.ZodString;
1091
+ revision: z.ZodNumber;
1092
+ }, z.core.$strict>;
1093
+ supersedes: z.ZodNullable<z.ZodObject<{
1094
+ id: z.ZodString;
1095
+ contentHash: z.ZodString;
1096
+ revision: z.ZodNumber;
1097
+ }, z.core.$strict>>;
1098
+ actor: z.ZodObject<{
1099
+ kind: z.ZodEnum<{
1100
+ human: "human";
1101
+ qualified_policy: "qualified_policy";
1102
+ }>;
1103
+ id: z.ZodString;
1104
+ policy: z.ZodNullable<z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ contentHash: z.ZodString;
1107
+ revision: z.ZodNumber;
1108
+ }, z.core.$strict>>;
1109
+ }, z.core.$strict>;
1110
+ evidenceValidity: z.ZodEnum<{
1111
+ pending: "pending";
1112
+ valid: "valid";
1113
+ invalid: "invalid";
1114
+ }>;
1115
+ taskAdmissibility: z.ZodEnum<{
1116
+ pending: "pending";
1117
+ rejected: "rejected";
1118
+ approved: "approved";
1119
+ }>;
1120
+ observedQuality: z.ZodEnum<{
1121
+ passed: "passed";
1122
+ failed: "failed";
1123
+ unavailable: "unavailable";
1124
+ unscored: "unscored";
1125
+ }>;
1126
+ targetApproval: z.ZodEnum<{
1127
+ pending: "pending";
1128
+ rejected: "rejected";
1129
+ approved: "approved";
1130
+ not_required: "not_required";
1131
+ }>;
1132
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1133
+ grade: z.ZodNullable<z.ZodObject<{
1134
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1135
+ binding: z.ZodObject<{
1136
+ id: z.ZodString;
1137
+ contentHash: z.ZodString;
1138
+ revision: z.ZodNumber;
1139
+ }, z.core.$strict>;
1140
+ taskHash: z.ZodString;
1141
+ outputHash: z.ZodString;
1142
+ results: z.ZodArray<z.ZodObject<{
1143
+ graderId: z.ZodString;
1144
+ reward: z.ZodObject<{
1145
+ id: z.ZodString;
1146
+ contentHash: z.ZodString;
1147
+ revision: z.ZodNumber;
1148
+ }, z.core.$strict>;
1149
+ role: z.ZodEnum<{
1150
+ evaluation: "evaluation";
1151
+ training: "training";
1152
+ }>;
1153
+ status: z.ZodEnum<{
1154
+ pending: "pending";
1155
+ failed: "failed";
1156
+ scored: "scored";
1157
+ unavailable: "unavailable";
1158
+ }>;
1159
+ rawScore: z.ZodNullable<z.ZodNumber>;
1160
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1161
+ passed: z.ZodNullable<z.ZodBoolean>;
1162
+ evidenceHashes: z.ZodArray<z.ZodString>;
1163
+ message: z.ZodNullable<z.ZodString>;
1164
+ }, z.core.$strict>>;
1165
+ training: z.ZodObject<{
1166
+ status: z.ZodEnum<{
1167
+ scored: "scored";
1168
+ unscorable: "unscorable";
1169
+ not_configured: "not_configured";
1170
+ }>;
1171
+ score: z.ZodNullable<z.ZodNumber>;
1172
+ passed: z.ZodNullable<z.ZodBoolean>;
1173
+ }, z.core.$strict>;
1174
+ evaluation: z.ZodObject<{
1175
+ status: z.ZodEnum<{
1176
+ scored: "scored";
1177
+ unscorable: "unscorable";
1178
+ not_configured: "not_configured";
1179
+ }>;
1180
+ score: z.ZodNullable<z.ZodNumber>;
1181
+ passed: z.ZodNullable<z.ZodBoolean>;
1182
+ }, z.core.$strict>;
1183
+ contentHash: z.ZodString;
1184
+ }, z.core.$strict>>;
1185
+ targetGrade: z.ZodNullable<z.ZodObject<{
1186
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1187
+ binding: z.ZodObject<{
1188
+ id: z.ZodString;
1189
+ contentHash: z.ZodString;
1190
+ revision: z.ZodNumber;
1191
+ }, z.core.$strict>;
1192
+ taskHash: z.ZodString;
1193
+ outputHash: z.ZodString;
1194
+ results: z.ZodArray<z.ZodObject<{
1195
+ graderId: z.ZodString;
1196
+ reward: z.ZodObject<{
1197
+ id: z.ZodString;
1198
+ contentHash: z.ZodString;
1199
+ revision: z.ZodNumber;
1200
+ }, z.core.$strict>;
1201
+ role: z.ZodEnum<{
1202
+ evaluation: "evaluation";
1203
+ training: "training";
1204
+ }>;
1205
+ status: z.ZodEnum<{
1206
+ pending: "pending";
1207
+ failed: "failed";
1208
+ scored: "scored";
1209
+ unavailable: "unavailable";
1210
+ }>;
1211
+ rawScore: z.ZodNullable<z.ZodNumber>;
1212
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1213
+ passed: z.ZodNullable<z.ZodBoolean>;
1214
+ evidenceHashes: z.ZodArray<z.ZodString>;
1215
+ message: z.ZodNullable<z.ZodString>;
1216
+ }, z.core.$strict>>;
1217
+ training: z.ZodObject<{
1218
+ status: z.ZodEnum<{
1219
+ scored: "scored";
1220
+ unscorable: "unscorable";
1221
+ not_configured: "not_configured";
1222
+ }>;
1223
+ score: z.ZodNullable<z.ZodNumber>;
1224
+ passed: z.ZodNullable<z.ZodBoolean>;
1225
+ }, z.core.$strict>;
1226
+ evaluation: z.ZodObject<{
1227
+ status: z.ZodEnum<{
1228
+ scored: "scored";
1229
+ unscorable: "unscorable";
1230
+ not_configured: "not_configured";
1231
+ }>;
1232
+ score: z.ZodNullable<z.ZodNumber>;
1233
+ passed: z.ZodNullable<z.ZodBoolean>;
1234
+ }, z.core.$strict>;
1235
+ contentHash: z.ZodString;
1236
+ }, z.core.$strict>>;
1237
+ note: z.ZodString;
1238
+ decidedAt: z.ZodString;
1239
+ contentHash: z.ZodString;
1240
+ }, z.core.$strict>>;
1241
+ sources: z.ZodArray<z.ZodObject<{
1242
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
1243
+ id: z.ZodString;
1244
+ revision: z.ZodNumber;
1245
+ name: z.ZodString;
1246
+ kind: z.ZodEnum<{
1247
+ work: "work";
1248
+ provider: "provider";
1249
+ direct: "direct";
1250
+ benchmark: "benchmark";
1251
+ opentelemetry: "opentelemetry";
1252
+ }>;
1253
+ taskDefinition: z.ZodObject<{
1254
+ id: z.ZodString;
1255
+ contentHash: z.ZodString;
1256
+ revision: z.ZodNumber;
1257
+ }, z.core.$strict>;
1258
+ enabled: z.ZodBoolean;
1259
+ allowedSplits: z.ZodArray<z.ZodEnum<{
1260
+ train: "train";
1261
+ validation: "validation";
1262
+ test: "test";
1263
+ frozen_eval: "frozen_eval";
1264
+ }>>;
1265
+ mapping: z.ZodNullable<z.ZodObject<{
1266
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
1267
+ exampleId: z.ZodString;
1268
+ attemptId: z.ZodString;
1269
+ occurredAt: z.ZodString;
1270
+ input: z.ZodString;
1271
+ observedOutput: z.ZodNullable<z.ZodString>;
1272
+ expected: z.ZodNullable<z.ZodString>;
1273
+ evaluatorContext: z.ZodNullable<z.ZodString>;
1274
+ familyKey: z.ZodString;
1275
+ split: z.ZodEnum<{
1276
+ train: "train";
1277
+ validation: "validation";
1278
+ test: "test";
1279
+ frozen_eval: "frozen_eval";
1280
+ }>;
1281
+ }, z.core.$strict>>;
1282
+ adapterVersion: z.ZodNullable<z.ZodString>;
1283
+ contentHash: z.ZodString;
1284
+ }, z.core.$strict>>;
1285
+ assets: z.ZodArray<z.ZodObject<{
1286
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
1287
+ id: z.ZodString;
1288
+ revision: z.ZodLiteral<1>;
1289
+ asset: z.ZodObject<{
1290
+ id: z.ZodString;
1291
+ path: z.ZodString;
1292
+ contentHash: z.ZodString;
1293
+ sizeBytes: z.ZodNumber;
1294
+ mediaType: z.ZodString;
1295
+ visibility: z.ZodEnum<{
1296
+ policy: "policy";
1297
+ verifier: "verifier";
1298
+ host_private: "host_private";
1299
+ }>;
1300
+ }, z.core.$strict>;
1301
+ text: z.ZodString;
1302
+ contentHash: z.ZodString;
1303
+ }, z.core.$strict>>;
1304
+ }, z.core.$strict>>;
982
1305
  }, z.core.$strict>;
983
1306
  export declare const TasksetPackageSchema: z.ZodObject<{
984
1307
  schemaVersion: z.ZodLiteral<"openpond.tasksetPackage.v1">;
@@ -1943,9 +2266,373 @@ export declare const TasksetPackageSchema: z.ZodObject<{
1943
2266
  contentHash: z.ZodString;
1944
2267
  }, z.core.$strict>>;
1945
2268
  }, z.core.$strict>>;
2269
+ learningResources: z.ZodOptional<z.ZodObject<{
2270
+ batch: z.ZodObject<{
2271
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
2272
+ id: z.ZodString;
2273
+ revision: z.ZodLiteral<1>;
2274
+ taskDefinition: z.ZodObject<{
2275
+ id: z.ZodString;
2276
+ contentHash: z.ZodString;
2277
+ revision: z.ZodNumber;
2278
+ }, z.core.$strict>;
2279
+ rewardBinding: z.ZodObject<{
2280
+ id: z.ZodString;
2281
+ contentHash: z.ZodString;
2282
+ revision: z.ZodNumber;
2283
+ }, z.core.$strict>;
2284
+ purpose: z.ZodEnum<{
2285
+ evaluation: "evaluation";
2286
+ supervised_training: "supervised_training";
2287
+ reward_training: "reward_training";
2288
+ }>;
2289
+ examples: z.ZodArray<z.ZodObject<{
2290
+ evidence: z.ZodObject<{
2291
+ id: z.ZodString;
2292
+ contentHash: z.ZodString;
2293
+ revision: z.ZodNumber;
2294
+ }, z.core.$strict>;
2295
+ decision: z.ZodObject<{
2296
+ id: z.ZodString;
2297
+ contentHash: z.ZodString;
2298
+ revision: z.ZodNumber;
2299
+ }, z.core.$strict>;
2300
+ familyKey: z.ZodString;
2301
+ inputHash: z.ZodString;
2302
+ split: z.ZodEnum<{
2303
+ train: "train";
2304
+ validation: "validation";
2305
+ test: "test";
2306
+ frozen_eval: "frozen_eval";
2307
+ }>;
2308
+ }, z.core.$strict>>;
2309
+ sealedAt: z.ZodString;
2310
+ sealedBy: z.ZodString;
2311
+ contentHash: z.ZodString;
2312
+ }, z.core.$strict>;
2313
+ evidence: z.ZodArray<z.ZodObject<{
2314
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
2315
+ id: z.ZodString;
2316
+ revision: z.ZodNumber;
2317
+ source: z.ZodObject<{
2318
+ id: z.ZodString;
2319
+ contentHash: z.ZodString;
2320
+ revision: z.ZodNumber;
2321
+ }, z.core.$strict>;
2322
+ submission: z.ZodObject<{
2323
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
2324
+ sourceId: z.ZodString;
2325
+ idempotencyKey: z.ZodString;
2326
+ taskDefinition: z.ZodObject<{
2327
+ id: z.ZodString;
2328
+ contentHash: z.ZodString;
2329
+ revision: z.ZodNumber;
2330
+ }, z.core.$strict>;
2331
+ exampleId: z.ZodString;
2332
+ attemptId: z.ZodString;
2333
+ occurredAt: z.ZodString;
2334
+ familyKey: z.ZodNullable<z.ZodString>;
2335
+ split: z.ZodEnum<{
2336
+ train: "train";
2337
+ validation: "validation";
2338
+ test: "test";
2339
+ frozen_eval: "frozen_eval";
2340
+ }>;
2341
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2342
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2343
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2344
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2345
+ assets: z.ZodArray<z.ZodObject<{
2346
+ id: z.ZodString;
2347
+ path: z.ZodString;
2348
+ contentHash: z.ZodString;
2349
+ sizeBytes: z.ZodNumber;
2350
+ mediaType: z.ZodString;
2351
+ visibility: z.ZodEnum<{
2352
+ policy: "policy";
2353
+ verifier: "verifier";
2354
+ host_private: "host_private";
2355
+ }>;
2356
+ }, z.core.$strict>>;
2357
+ provenance: z.ZodObject<{
2358
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
2359
+ mappingHash: z.ZodNullable<z.ZodString>;
2360
+ }, z.core.$strict>;
2361
+ }, z.core.$strict>;
2362
+ supersedes: z.ZodNullable<z.ZodObject<{
2363
+ id: z.ZodString;
2364
+ contentHash: z.ZodString;
2365
+ revision: z.ZodNumber;
2366
+ }, z.core.$strict>>;
2367
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
2368
+ receivedAt: z.ZodString;
2369
+ contentHash: z.ZodString;
2370
+ }, z.core.$strict>>;
2371
+ decisions: z.ZodArray<z.ZodObject<{
2372
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
2373
+ id: z.ZodString;
2374
+ revision: z.ZodNumber;
2375
+ evidence: z.ZodObject<{
2376
+ id: z.ZodString;
2377
+ contentHash: z.ZodString;
2378
+ revision: z.ZodNumber;
2379
+ }, z.core.$strict>;
2380
+ supersedes: z.ZodNullable<z.ZodObject<{
2381
+ id: z.ZodString;
2382
+ contentHash: z.ZodString;
2383
+ revision: z.ZodNumber;
2384
+ }, z.core.$strict>>;
2385
+ actor: z.ZodObject<{
2386
+ kind: z.ZodEnum<{
2387
+ human: "human";
2388
+ qualified_policy: "qualified_policy";
2389
+ }>;
2390
+ id: z.ZodString;
2391
+ policy: z.ZodNullable<z.ZodObject<{
2392
+ id: z.ZodString;
2393
+ contentHash: z.ZodString;
2394
+ revision: z.ZodNumber;
2395
+ }, z.core.$strict>>;
2396
+ }, z.core.$strict>;
2397
+ evidenceValidity: z.ZodEnum<{
2398
+ pending: "pending";
2399
+ valid: "valid";
2400
+ invalid: "invalid";
2401
+ }>;
2402
+ taskAdmissibility: z.ZodEnum<{
2403
+ pending: "pending";
2404
+ rejected: "rejected";
2405
+ approved: "approved";
2406
+ }>;
2407
+ observedQuality: z.ZodEnum<{
2408
+ passed: "passed";
2409
+ failed: "failed";
2410
+ unavailable: "unavailable";
2411
+ unscored: "unscored";
2412
+ }>;
2413
+ targetApproval: z.ZodEnum<{
2414
+ pending: "pending";
2415
+ rejected: "rejected";
2416
+ approved: "approved";
2417
+ not_required: "not_required";
2418
+ }>;
2419
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2420
+ grade: z.ZodNullable<z.ZodObject<{
2421
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2422
+ binding: z.ZodObject<{
2423
+ id: z.ZodString;
2424
+ contentHash: z.ZodString;
2425
+ revision: z.ZodNumber;
2426
+ }, z.core.$strict>;
2427
+ taskHash: z.ZodString;
2428
+ outputHash: z.ZodString;
2429
+ results: z.ZodArray<z.ZodObject<{
2430
+ graderId: z.ZodString;
2431
+ reward: z.ZodObject<{
2432
+ id: z.ZodString;
2433
+ contentHash: z.ZodString;
2434
+ revision: z.ZodNumber;
2435
+ }, z.core.$strict>;
2436
+ role: z.ZodEnum<{
2437
+ evaluation: "evaluation";
2438
+ training: "training";
2439
+ }>;
2440
+ status: z.ZodEnum<{
2441
+ pending: "pending";
2442
+ failed: "failed";
2443
+ scored: "scored";
2444
+ unavailable: "unavailable";
2445
+ }>;
2446
+ rawScore: z.ZodNullable<z.ZodNumber>;
2447
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
2448
+ passed: z.ZodNullable<z.ZodBoolean>;
2449
+ evidenceHashes: z.ZodArray<z.ZodString>;
2450
+ message: z.ZodNullable<z.ZodString>;
2451
+ }, z.core.$strict>>;
2452
+ training: z.ZodObject<{
2453
+ status: z.ZodEnum<{
2454
+ scored: "scored";
2455
+ unscorable: "unscorable";
2456
+ not_configured: "not_configured";
2457
+ }>;
2458
+ score: z.ZodNullable<z.ZodNumber>;
2459
+ passed: z.ZodNullable<z.ZodBoolean>;
2460
+ }, z.core.$strict>;
2461
+ evaluation: z.ZodObject<{
2462
+ status: z.ZodEnum<{
2463
+ scored: "scored";
2464
+ unscorable: "unscorable";
2465
+ not_configured: "not_configured";
2466
+ }>;
2467
+ score: z.ZodNullable<z.ZodNumber>;
2468
+ passed: z.ZodNullable<z.ZodBoolean>;
2469
+ }, z.core.$strict>;
2470
+ contentHash: z.ZodString;
2471
+ }, z.core.$strict>>;
2472
+ targetGrade: z.ZodNullable<z.ZodObject<{
2473
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2474
+ binding: z.ZodObject<{
2475
+ id: z.ZodString;
2476
+ contentHash: z.ZodString;
2477
+ revision: z.ZodNumber;
2478
+ }, z.core.$strict>;
2479
+ taskHash: z.ZodString;
2480
+ outputHash: z.ZodString;
2481
+ results: z.ZodArray<z.ZodObject<{
2482
+ graderId: z.ZodString;
2483
+ reward: z.ZodObject<{
2484
+ id: z.ZodString;
2485
+ contentHash: z.ZodString;
2486
+ revision: z.ZodNumber;
2487
+ }, z.core.$strict>;
2488
+ role: z.ZodEnum<{
2489
+ evaluation: "evaluation";
2490
+ training: "training";
2491
+ }>;
2492
+ status: z.ZodEnum<{
2493
+ pending: "pending";
2494
+ failed: "failed";
2495
+ scored: "scored";
2496
+ unavailable: "unavailable";
2497
+ }>;
2498
+ rawScore: z.ZodNullable<z.ZodNumber>;
2499
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
2500
+ passed: z.ZodNullable<z.ZodBoolean>;
2501
+ evidenceHashes: z.ZodArray<z.ZodString>;
2502
+ message: z.ZodNullable<z.ZodString>;
2503
+ }, z.core.$strict>>;
2504
+ training: z.ZodObject<{
2505
+ status: z.ZodEnum<{
2506
+ scored: "scored";
2507
+ unscorable: "unscorable";
2508
+ not_configured: "not_configured";
2509
+ }>;
2510
+ score: z.ZodNullable<z.ZodNumber>;
2511
+ passed: z.ZodNullable<z.ZodBoolean>;
2512
+ }, z.core.$strict>;
2513
+ evaluation: z.ZodObject<{
2514
+ status: z.ZodEnum<{
2515
+ scored: "scored";
2516
+ unscorable: "unscorable";
2517
+ not_configured: "not_configured";
2518
+ }>;
2519
+ score: z.ZodNullable<z.ZodNumber>;
2520
+ passed: z.ZodNullable<z.ZodBoolean>;
2521
+ }, z.core.$strict>;
2522
+ contentHash: z.ZodString;
2523
+ }, z.core.$strict>>;
2524
+ note: z.ZodString;
2525
+ decidedAt: z.ZodString;
2526
+ contentHash: z.ZodString;
2527
+ }, z.core.$strict>>;
2528
+ sources: z.ZodArray<z.ZodObject<{
2529
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
2530
+ id: z.ZodString;
2531
+ revision: z.ZodNumber;
2532
+ name: z.ZodString;
2533
+ kind: z.ZodEnum<{
2534
+ work: "work";
2535
+ provider: "provider";
2536
+ direct: "direct";
2537
+ benchmark: "benchmark";
2538
+ opentelemetry: "opentelemetry";
2539
+ }>;
2540
+ taskDefinition: z.ZodObject<{
2541
+ id: z.ZodString;
2542
+ contentHash: z.ZodString;
2543
+ revision: z.ZodNumber;
2544
+ }, z.core.$strict>;
2545
+ enabled: z.ZodBoolean;
2546
+ allowedSplits: z.ZodArray<z.ZodEnum<{
2547
+ train: "train";
2548
+ validation: "validation";
2549
+ test: "test";
2550
+ frozen_eval: "frozen_eval";
2551
+ }>>;
2552
+ mapping: z.ZodNullable<z.ZodObject<{
2553
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
2554
+ exampleId: z.ZodString;
2555
+ attemptId: z.ZodString;
2556
+ occurredAt: z.ZodString;
2557
+ input: z.ZodString;
2558
+ observedOutput: z.ZodNullable<z.ZodString>;
2559
+ expected: z.ZodNullable<z.ZodString>;
2560
+ evaluatorContext: z.ZodNullable<z.ZodString>;
2561
+ familyKey: z.ZodString;
2562
+ split: z.ZodEnum<{
2563
+ train: "train";
2564
+ validation: "validation";
2565
+ test: "test";
2566
+ frozen_eval: "frozen_eval";
2567
+ }>;
2568
+ }, z.core.$strict>>;
2569
+ adapterVersion: z.ZodNullable<z.ZodString>;
2570
+ contentHash: z.ZodString;
2571
+ }, z.core.$strict>>;
2572
+ assets: z.ZodArray<z.ZodObject<{
2573
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
2574
+ id: z.ZodString;
2575
+ revision: z.ZodLiteral<1>;
2576
+ asset: z.ZodObject<{
2577
+ id: z.ZodString;
2578
+ path: z.ZodString;
2579
+ contentHash: z.ZodString;
2580
+ sizeBytes: z.ZodNumber;
2581
+ mediaType: z.ZodString;
2582
+ visibility: z.ZodEnum<{
2583
+ policy: "policy";
2584
+ verifier: "verifier";
2585
+ host_private: "host_private";
2586
+ }>;
2587
+ }, z.core.$strict>;
2588
+ text: z.ZodString;
2589
+ contentHash: z.ZodString;
2590
+ }, z.core.$strict>>;
2591
+ }, z.core.$strict>>;
1946
2592
  contentHash: z.ZodString;
1947
2593
  }, z.core.$strict>;
1948
2594
  export type TasksetPackage = z.infer<typeof TasksetPackageSchema>;
2595
+ /** The selected binding belongs to the package's declared authoring graph. */
2596
+ export declare function tasksetPackageRewardBinding(value: TasksetPackage): {
2597
+ schemaVersion: "openpond.rewardBinding.v1";
2598
+ id: string;
2599
+ revision: number;
2600
+ sources: {
2601
+ graderId: string;
2602
+ reward: {
2603
+ id: string;
2604
+ contentHash: string;
2605
+ revision: number;
2606
+ };
2607
+ role: "evaluation" | "training";
2608
+ normalization: {
2609
+ kind: "identity";
2610
+ } | {
2611
+ kind: "linear";
2612
+ minimum: number;
2613
+ maximum: number;
2614
+ direction: "higher" | "lower";
2615
+ };
2616
+ weight: number;
2617
+ required: boolean;
2618
+ hardGate: boolean;
2619
+ privileged: boolean;
2620
+ fixtureRefs: {
2621
+ id: string;
2622
+ contentHash: string;
2623
+ }[];
2624
+ }[];
2625
+ aggregation: "weighted_mean";
2626
+ unscorable: "exclude_optional_require_all_required";
2627
+ contentHash: string;
2628
+ name?: string | undefined;
2629
+ description?: string | undefined;
2630
+ recipeRef?: {
2631
+ id: string;
2632
+ contentHash: string;
2633
+ revision: number;
2634
+ } | undefined;
2635
+ } | null;
1949
2636
  export declare function decodeTasksetPackageFile(value: z.infer<typeof TasksetPackageFileSchema>): Uint8Array;
1950
2637
  /** Admission verifies the complete declared dependency graph, not readiness or
1951
2638
  * permission to execute it. Hosts separately authorize the workspace/project. */