@openpond/evals 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LEARNING.md +70 -0
- package/dist/learning/batch-service.js +44 -0
- package/dist/learning/contracts.js +1 -1
- package/dist/learning/index.js +3 -0
- package/dist/learning/iteration-dispatch-commands.js +31 -0
- package/dist/learning/iteration-dispatch-contracts.js +73 -0
- package/dist/learning/iteration-dispatch-worker.js +178 -0
- package/dist/learning/iteration-eligibility.js +76 -0
- package/dist/learning/iteration-reservation-cancellation.js +31 -0
- package/dist/learning/iteration-reservation-contracts.js +57 -0
- package/dist/learning/iteration-reservation-service.js +106 -0
- package/dist/learning/operations.js +6 -1
- package/dist/learning/repository.js +4 -0
- package/dist/learning/service.js +19 -43
- package/dist/types/learning/batch-service.d.ts +8 -0
- package/dist/types/learning/batch-service.d.ts.map +1 -0
- package/dist/types/learning/contracts.d.ts +6 -0
- package/dist/types/learning/contracts.d.ts.map +1 -1
- package/dist/types/learning/index.d.ts +3 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/iteration-dispatch-commands.d.ts +8 -0
- package/dist/types/learning/iteration-dispatch-commands.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-contracts.d.ts +93 -0
- package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-worker.d.ts +35 -0
- package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -0
- package/dist/types/learning/iteration-eligibility.d.ts +18 -0
- package/dist/types/learning/iteration-eligibility.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-cancellation.d.ts +8 -0
- package/dist/types/learning/iteration-reservation-cancellation.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-contracts.d.ts +90 -0
- package/dist/types/learning/iteration-reservation-contracts.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-service.d.ts +9 -0
- package/dist/types/learning/iteration-reservation-service.d.ts.map +1 -0
- package/dist/types/learning/operations.d.ts +64 -0
- package/dist/types/learning/operations.d.ts.map +1 -1
- package/dist/types/learning/repository.d.ts +121 -0
- package/dist/types/learning/repository.d.ts.map +1 -1
- package/dist/types/learning/service.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +151 -0
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/learning/v1/chain.schema.json +72 -0
- package/schemas/learning/v1/command-request.schema.json +374 -233
- package/schemas/learning/v1/consumption.schema.json +77 -0
- package/schemas/learning/v1/dispatch.schema.json +338 -0
- package/schemas/learning/v1/iteration.schema.json +3 -1
- package/schemas/learning/v1/read-request.schema.json +4 -0
- package/schemas/learning/v1/reservation.schema.json +201 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LearningCommand } from "./operations.js";
|
|
2
|
+
import { type LearningResourcePointer, type LearningTransaction } from "./repository.js";
|
|
3
|
+
type ReserveCommand = Extract<LearningCommand, {
|
|
4
|
+
action: "reserve_iteration";
|
|
5
|
+
}>;
|
|
6
|
+
/** The caller owns one scope-serialized transaction. This never submits a Job. */
|
|
7
|
+
export declare function reserveLearningIteration(transaction: LearningTransaction, input: ReserveCommand, actorId: string, now: string): Promise<LearningResourcePointer[]>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=iteration-reservation-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iteration-reservation-service.d.ts","sourceRoot":"","sources":["../../../../../src/learning/iteration-reservation-service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAmD,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE1I,KAAK,cAAc,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAAC;AAEhF,kFAAkF;AAClF,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC,CA0ExK"}
|
|
@@ -1414,7 +1414,71 @@ export declare const CancelRewardCheckCommandSchema: z.ZodObject<{
|
|
|
1414
1414
|
checkId: z.ZodString;
|
|
1415
1415
|
expectedRevision: z.ZodNumber;
|
|
1416
1416
|
}, z.core.$strict>;
|
|
1417
|
+
export declare const ReserveLearningIterationCommandSchema: z.ZodObject<{
|
|
1418
|
+
operationId: z.ZodString;
|
|
1419
|
+
action: z.ZodLiteral<"reserve_iteration">;
|
|
1420
|
+
policy: z.ZodObject<{
|
|
1421
|
+
id: z.ZodString;
|
|
1422
|
+
contentHash: z.ZodString;
|
|
1423
|
+
revision: z.ZodNumber;
|
|
1424
|
+
}, z.core.$strict>;
|
|
1425
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1426
|
+
kind: z.ZodLiteral<"manual">;
|
|
1427
|
+
identity: z.ZodString;
|
|
1428
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1429
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1430
|
+
scheduledAt: z.ZodString;
|
|
1431
|
+
}, z.core.$strict>], "kind">;
|
|
1432
|
+
}, z.core.$strict>;
|
|
1433
|
+
export declare const CancelLearningIterationReservationCommandSchema: z.ZodObject<{
|
|
1434
|
+
operationId: z.ZodString;
|
|
1435
|
+
action: z.ZodLiteral<"cancel_iteration_reservation">;
|
|
1436
|
+
iterationId: z.ZodString;
|
|
1437
|
+
expectedRevision: z.ZodNumber;
|
|
1438
|
+
}, z.core.$strict>;
|
|
1439
|
+
export declare const CancelLearningIterationCommandSchema: z.ZodObject<{
|
|
1440
|
+
operationId: z.ZodString;
|
|
1441
|
+
action: z.ZodLiteral<"cancel_iteration">;
|
|
1442
|
+
iterationId: z.ZodString;
|
|
1443
|
+
expectedRevision: z.ZodNumber;
|
|
1444
|
+
}, z.core.$strict>;
|
|
1445
|
+
export declare const RetryLearningIterationDispatchCommandSchema: z.ZodObject<{
|
|
1446
|
+
operationId: z.ZodString;
|
|
1447
|
+
action: z.ZodLiteral<"retry_iteration_dispatch">;
|
|
1448
|
+
iterationId: z.ZodString;
|
|
1449
|
+
expectedRevision: z.ZodNumber;
|
|
1450
|
+
}, z.core.$strict>;
|
|
1417
1451
|
export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1452
|
+
operationId: z.ZodString;
|
|
1453
|
+
action: z.ZodLiteral<"cancel_iteration">;
|
|
1454
|
+
iterationId: z.ZodString;
|
|
1455
|
+
expectedRevision: z.ZodNumber;
|
|
1456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1457
|
+
operationId: z.ZodString;
|
|
1458
|
+
action: z.ZodLiteral<"retry_iteration_dispatch">;
|
|
1459
|
+
iterationId: z.ZodString;
|
|
1460
|
+
expectedRevision: z.ZodNumber;
|
|
1461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1462
|
+
operationId: z.ZodString;
|
|
1463
|
+
action: z.ZodLiteral<"cancel_iteration_reservation">;
|
|
1464
|
+
iterationId: z.ZodString;
|
|
1465
|
+
expectedRevision: z.ZodNumber;
|
|
1466
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1467
|
+
operationId: z.ZodString;
|
|
1468
|
+
action: z.ZodLiteral<"reserve_iteration">;
|
|
1469
|
+
policy: z.ZodObject<{
|
|
1470
|
+
id: z.ZodString;
|
|
1471
|
+
contentHash: z.ZodString;
|
|
1472
|
+
revision: z.ZodNumber;
|
|
1473
|
+
}, z.core.$strict>;
|
|
1474
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1475
|
+
kind: z.ZodLiteral<"manual">;
|
|
1476
|
+
identity: z.ZodString;
|
|
1477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1478
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1479
|
+
scheduledAt: z.ZodString;
|
|
1480
|
+
}, z.core.$strict>], "kind">;
|
|
1481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1418
1482
|
operationId: z.ZodString;
|
|
1419
1483
|
action: z.ZodLiteral<"queue_reward_check">;
|
|
1420
1484
|
draft: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/learning/operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/learning/operations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAO/C,CAAC;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;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
1038
|
contentHash: z.ZodString;
|
|
1039
1039
|
}, z.core.$strict>;
|
|
1040
|
+
readonly chain: z.ZodObject<{
|
|
1041
|
+
schemaVersion: z.ZodLiteral<"openpond.learningChain.v1">;
|
|
1042
|
+
id: z.ZodString;
|
|
1043
|
+
revision: z.ZodNumber;
|
|
1044
|
+
modelProjectId: z.ZodString;
|
|
1045
|
+
activeIterationId: z.ZodNullable<z.ZodString>;
|
|
1046
|
+
latestIterationId: z.ZodString;
|
|
1047
|
+
lastReservedAt: z.ZodNullable<z.ZodString>;
|
|
1048
|
+
updatedAt: z.ZodString;
|
|
1049
|
+
}, z.core.$strict>;
|
|
1050
|
+
readonly consumption: z.ZodObject<{
|
|
1051
|
+
schemaVersion: z.ZodLiteral<"openpond.learningConsumption.v1">;
|
|
1052
|
+
id: z.ZodString;
|
|
1053
|
+
revision: z.ZodLiteral<1>;
|
|
1054
|
+
chainId: z.ZodString;
|
|
1055
|
+
iterationId: z.ZodString;
|
|
1056
|
+
evidence: z.ZodObject<{
|
|
1057
|
+
id: z.ZodString;
|
|
1058
|
+
contentHash: z.ZodString;
|
|
1059
|
+
revision: z.ZodNumber;
|
|
1060
|
+
}, z.core.$strict>;
|
|
1061
|
+
decision: z.ZodObject<{
|
|
1062
|
+
id: z.ZodString;
|
|
1063
|
+
contentHash: z.ZodString;
|
|
1064
|
+
revision: z.ZodNumber;
|
|
1065
|
+
}, z.core.$strict>;
|
|
1066
|
+
reservedAt: z.ZodString;
|
|
1067
|
+
}, z.core.$strict>;
|
|
1068
|
+
readonly reservation: z.ZodObject<{
|
|
1069
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationReservation.v1">;
|
|
1070
|
+
id: z.ZodString;
|
|
1071
|
+
revision: z.ZodNumber;
|
|
1072
|
+
chainId: z.ZodString;
|
|
1073
|
+
iterationId: z.ZodString;
|
|
1074
|
+
policy: z.ZodObject<{
|
|
1075
|
+
id: z.ZodString;
|
|
1076
|
+
contentHash: z.ZodString;
|
|
1077
|
+
revision: z.ZodNumber;
|
|
1078
|
+
}, z.core.$strict>;
|
|
1079
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1080
|
+
kind: z.ZodLiteral<"manual">;
|
|
1081
|
+
identity: z.ZodString;
|
|
1082
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1083
|
+
kind: z.ZodLiteral<"schedule">;
|
|
1084
|
+
scheduledAt: z.ZodString;
|
|
1085
|
+
}, z.core.$strict>], "kind">;
|
|
1086
|
+
requestHash: z.ZodString;
|
|
1087
|
+
outcome: z.ZodEnum<{
|
|
1088
|
+
waiting_for_data: "waiting_for_data";
|
|
1089
|
+
waiting_for_review: "waiting_for_review";
|
|
1090
|
+
reserved: "reserved";
|
|
1091
|
+
}>;
|
|
1092
|
+
counts: z.ZodObject<{
|
|
1093
|
+
eligible: z.ZodNumber;
|
|
1094
|
+
awaitingReview: z.ZodNumber;
|
|
1095
|
+
excluded: z.ZodNumber;
|
|
1096
|
+
consumed: z.ZodNumber;
|
|
1097
|
+
}, z.core.$strict>;
|
|
1098
|
+
budget: z.ZodObject<{
|
|
1099
|
+
maximumSpendUsd: z.ZodNumber;
|
|
1100
|
+
reservedSpendUsd: z.ZodNumber;
|
|
1101
|
+
settledSpendUsd: z.ZodNumber;
|
|
1102
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
1103
|
+
}, z.core.$strict>;
|
|
1104
|
+
createdAt: z.ZodString;
|
|
1105
|
+
updatedAt: z.ZodString;
|
|
1106
|
+
}, z.core.$strict>;
|
|
1107
|
+
readonly dispatch: z.ZodObject<{
|
|
1108
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationDispatch.v1">;
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
revision: z.ZodNumber;
|
|
1111
|
+
iterationId: z.ZodString;
|
|
1112
|
+
chainId: z.ZodString;
|
|
1113
|
+
policy: z.ZodObject<{
|
|
1114
|
+
id: z.ZodString;
|
|
1115
|
+
contentHash: z.ZodString;
|
|
1116
|
+
revision: z.ZodNumber;
|
|
1117
|
+
}, z.core.$strict>;
|
|
1118
|
+
batch: z.ZodObject<{
|
|
1119
|
+
id: z.ZodString;
|
|
1120
|
+
contentHash: z.ZodString;
|
|
1121
|
+
revision: z.ZodNumber;
|
|
1122
|
+
}, z.core.$strict>;
|
|
1123
|
+
state: z.ZodEnum<{
|
|
1124
|
+
blocked: "blocked";
|
|
1125
|
+
preparing: "preparing";
|
|
1126
|
+
prepared: "prepared";
|
|
1127
|
+
submitted: "submitted";
|
|
1128
|
+
settled: "settled";
|
|
1129
|
+
}>;
|
|
1130
|
+
submission: z.ZodNullable<z.ZodObject<{
|
|
1131
|
+
provider: z.ZodString;
|
|
1132
|
+
protocol: z.ZodString;
|
|
1133
|
+
payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1134
|
+
}, z.core.$strict>>;
|
|
1135
|
+
submissionHash: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
submissionStartedAt: z.ZodNullable<z.ZodString>;
|
|
1137
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
1138
|
+
id: z.ZodString;
|
|
1139
|
+
contentHash: z.ZodString;
|
|
1140
|
+
}, z.core.$strict>>;
|
|
1141
|
+
terminalReceipt: z.ZodNullable<z.ZodObject<{
|
|
1142
|
+
id: z.ZodString;
|
|
1143
|
+
contentHash: z.ZodString;
|
|
1144
|
+
}, z.core.$strict>>;
|
|
1145
|
+
cancelRequestedAt: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
leaseOwner: z.ZodNullable<z.ZodString>;
|
|
1147
|
+
leaseGeneration: z.ZodNumber;
|
|
1148
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1149
|
+
consecutiveFailures: z.ZodNumber;
|
|
1150
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
1152
|
+
createdAt: z.ZodString;
|
|
1153
|
+
updatedAt: z.ZodString;
|
|
1154
|
+
}, z.core.$strict>;
|
|
1040
1155
|
readonly iteration: z.ZodObject<{
|
|
1041
1156
|
schemaVersion: z.ZodLiteral<"openpond.learningIteration.v1">;
|
|
1042
1157
|
id: z.ZodString;
|
|
@@ -1055,10 +1170,12 @@ export declare const learningResourceSchemas: {
|
|
|
1055
1170
|
waiting_for_data: "waiting_for_data";
|
|
1056
1171
|
waiting_for_review: "waiting_for_review";
|
|
1057
1172
|
ready: "ready";
|
|
1173
|
+
dispatching: "dispatching";
|
|
1058
1174
|
evaluating: "evaluating";
|
|
1059
1175
|
candidate_ready: "candidate_ready";
|
|
1060
1176
|
paused: "paused";
|
|
1061
1177
|
cancelling: "cancelling";
|
|
1178
|
+
completed_without_candidate: "completed_without_candidate";
|
|
1062
1179
|
}>;
|
|
1063
1180
|
triggerIdentity: z.ZodString;
|
|
1064
1181
|
batch: z.ZodNullable<z.ZodObject<{
|
|
@@ -1431,6 +1548,10 @@ export declare const LearningResourceKindSchema: z.ZodEnum<{
|
|
|
1431
1548
|
definition: "definition";
|
|
1432
1549
|
draft: "draft";
|
|
1433
1550
|
reward_check: "reward_check";
|
|
1551
|
+
chain: "chain";
|
|
1552
|
+
consumption: "consumption";
|
|
1553
|
+
reservation: "reservation";
|
|
1554
|
+
dispatch: "dispatch";
|
|
1434
1555
|
iteration: "iteration";
|
|
1435
1556
|
package: "package";
|
|
1436
1557
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../src/learning/repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../src/learning/repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAkO,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1R,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKlD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AAE,MAAM,GAAG,MAAM,CAEjG;AACD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/learning/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/learning/service.ts"],"names":[],"mappings":"AAYA,OAAO,EAA+Q,KAAK,mBAAmB,EAAwC,MAAM,gBAAgB,CAAC;AAE7W,OAAO,EAAmH,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,oBAAoB,EAAgC,KAAK,qBAAqB,EAAE,KAAK,sBAAsB,EAA4B,MAAM,iBAAiB,CAAC;AAK5W,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACtG,MAAM,MAAM,sBAAsB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAC7E,MAAM,MAAM,uBAAuB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,sBAAsB,EAAE,CAAA;CAAE,CAAC;AAEnG,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,kBAAkB,EAAE,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAO;uBAGxE,sBAAsB,OAAO,OAAO,KAAG,OAAO,CAAC,uBAAuB,CAAC;6BAyPtE,sBAAsB,aAAa,mBAAmB;;;;;;;;;;;;;QAS3E,CAAC,SAAS,oBAAoB,WAAW,sBAAsB,QAAQ,CAAC,MAAM,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;SAIxI,CAAC,SAAS,oBAAoB,WAAW,sBAAsB,QAAQ,CAAC,UAAS,OAAO,CAAC,qBAAqB,CAAC,GAAQ,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;EAMrK"}
|
|
@@ -5,6 +5,36 @@ export declare function assertLearningRequestJson(raw: unknown): void;
|
|
|
5
5
|
export declare const LearningCommandRequestSchema: z.ZodObject<{
|
|
6
6
|
scope: z.ZodString;
|
|
7
7
|
command: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
operationId: z.ZodString;
|
|
9
|
+
action: z.ZodLiteral<"cancel_iteration">;
|
|
10
|
+
iterationId: z.ZodString;
|
|
11
|
+
expectedRevision: z.ZodNumber;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
operationId: z.ZodString;
|
|
14
|
+
action: z.ZodLiteral<"retry_iteration_dispatch">;
|
|
15
|
+
iterationId: z.ZodString;
|
|
16
|
+
expectedRevision: z.ZodNumber;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
operationId: z.ZodString;
|
|
19
|
+
action: z.ZodLiteral<"cancel_iteration_reservation">;
|
|
20
|
+
iterationId: z.ZodString;
|
|
21
|
+
expectedRevision: z.ZodNumber;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
operationId: z.ZodString;
|
|
24
|
+
action: z.ZodLiteral<"reserve_iteration">;
|
|
25
|
+
policy: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
contentHash: z.ZodString;
|
|
28
|
+
revision: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"manual">;
|
|
32
|
+
identity: z.ZodString;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"schedule">;
|
|
35
|
+
scheduledAt: z.ZodString;
|
|
36
|
+
}, z.core.$strict>], "kind">;
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
38
|
operationId: z.ZodString;
|
|
9
39
|
action: z.ZodLiteral<"queue_reward_check">;
|
|
10
40
|
draft: z.ZodObject<{
|
|
@@ -1432,6 +1462,10 @@ export declare const LearningReadRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1432
1462
|
definition: "definition";
|
|
1433
1463
|
draft: "draft";
|
|
1434
1464
|
reward_check: "reward_check";
|
|
1465
|
+
chain: "chain";
|
|
1466
|
+
consumption: "consumption";
|
|
1467
|
+
reservation: "reservation";
|
|
1468
|
+
dispatch: "dispatch";
|
|
1435
1469
|
iteration: "iteration";
|
|
1436
1470
|
package: "package";
|
|
1437
1471
|
}>;
|
|
@@ -1454,6 +1488,10 @@ export declare const LearningReadRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1454
1488
|
definition: "definition";
|
|
1455
1489
|
draft: "draft";
|
|
1456
1490
|
reward_check: "reward_check";
|
|
1491
|
+
chain: "chain";
|
|
1492
|
+
consumption: "consumption";
|
|
1493
|
+
reservation: "reservation";
|
|
1494
|
+
dispatch: "dispatch";
|
|
1457
1495
|
iteration: "iteration";
|
|
1458
1496
|
package: "package";
|
|
1459
1497
|
}>;
|
|
@@ -2471,10 +2509,12 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2471
2509
|
waiting_for_data: "waiting_for_data";
|
|
2472
2510
|
waiting_for_review: "waiting_for_review";
|
|
2473
2511
|
ready: "ready";
|
|
2512
|
+
dispatching: "dispatching";
|
|
2474
2513
|
evaluating: "evaluating";
|
|
2475
2514
|
candidate_ready: "candidate_ready";
|
|
2476
2515
|
paused: "paused";
|
|
2477
2516
|
cancelling: "cancelling";
|
|
2517
|
+
completed_without_candidate: "completed_without_candidate";
|
|
2478
2518
|
}>;
|
|
2479
2519
|
triggerIdentity: z.ZodString;
|
|
2480
2520
|
batch: z.ZodNullable<z.ZodObject<{
|
|
@@ -2603,6 +2643,70 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2603
2643
|
failure: z.ZodNullable<z.ZodString>;
|
|
2604
2644
|
createdAt: z.ZodString;
|
|
2605
2645
|
updatedAt: z.ZodString;
|
|
2646
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2647
|
+
schemaVersion: z.ZodLiteral<"openpond.learningChain.v1">;
|
|
2648
|
+
id: z.ZodString;
|
|
2649
|
+
revision: z.ZodNumber;
|
|
2650
|
+
modelProjectId: z.ZodString;
|
|
2651
|
+
activeIterationId: z.ZodNullable<z.ZodString>;
|
|
2652
|
+
latestIterationId: z.ZodString;
|
|
2653
|
+
lastReservedAt: z.ZodNullable<z.ZodString>;
|
|
2654
|
+
updatedAt: z.ZodString;
|
|
2655
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2656
|
+
schemaVersion: z.ZodLiteral<"openpond.learningConsumption.v1">;
|
|
2657
|
+
id: z.ZodString;
|
|
2658
|
+
revision: z.ZodLiteral<1>;
|
|
2659
|
+
chainId: z.ZodString;
|
|
2660
|
+
iterationId: z.ZodString;
|
|
2661
|
+
evidence: z.ZodObject<{
|
|
2662
|
+
id: z.ZodString;
|
|
2663
|
+
contentHash: z.ZodString;
|
|
2664
|
+
revision: z.ZodNumber;
|
|
2665
|
+
}, z.core.$strict>;
|
|
2666
|
+
decision: z.ZodObject<{
|
|
2667
|
+
id: z.ZodString;
|
|
2668
|
+
contentHash: z.ZodString;
|
|
2669
|
+
revision: z.ZodNumber;
|
|
2670
|
+
}, z.core.$strict>;
|
|
2671
|
+
reservedAt: z.ZodString;
|
|
2672
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2673
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationReservation.v1">;
|
|
2674
|
+
id: z.ZodString;
|
|
2675
|
+
revision: z.ZodNumber;
|
|
2676
|
+
chainId: z.ZodString;
|
|
2677
|
+
iterationId: z.ZodString;
|
|
2678
|
+
policy: z.ZodObject<{
|
|
2679
|
+
id: z.ZodString;
|
|
2680
|
+
contentHash: z.ZodString;
|
|
2681
|
+
revision: z.ZodNumber;
|
|
2682
|
+
}, z.core.$strict>;
|
|
2683
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2684
|
+
kind: z.ZodLiteral<"manual">;
|
|
2685
|
+
identity: z.ZodString;
|
|
2686
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2687
|
+
kind: z.ZodLiteral<"schedule">;
|
|
2688
|
+
scheduledAt: z.ZodString;
|
|
2689
|
+
}, z.core.$strict>], "kind">;
|
|
2690
|
+
requestHash: z.ZodString;
|
|
2691
|
+
outcome: z.ZodEnum<{
|
|
2692
|
+
waiting_for_data: "waiting_for_data";
|
|
2693
|
+
waiting_for_review: "waiting_for_review";
|
|
2694
|
+
reserved: "reserved";
|
|
2695
|
+
}>;
|
|
2696
|
+
counts: z.ZodObject<{
|
|
2697
|
+
eligible: z.ZodNumber;
|
|
2698
|
+
awaitingReview: z.ZodNumber;
|
|
2699
|
+
excluded: z.ZodNumber;
|
|
2700
|
+
consumed: z.ZodNumber;
|
|
2701
|
+
}, z.core.$strict>;
|
|
2702
|
+
budget: z.ZodObject<{
|
|
2703
|
+
maximumSpendUsd: z.ZodNumber;
|
|
2704
|
+
reservedSpendUsd: z.ZodNumber;
|
|
2705
|
+
settledSpendUsd: z.ZodNumber;
|
|
2706
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
2707
|
+
}, z.core.$strict>;
|
|
2708
|
+
createdAt: z.ZodString;
|
|
2709
|
+
updatedAt: z.ZodString;
|
|
2606
2710
|
}, z.core.$strict> | z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2607
2711
|
id: z.ZodString;
|
|
2608
2712
|
targetId: z.ZodString;
|
|
@@ -2818,6 +2922,53 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2818
2922
|
updatedAt: z.ZodString;
|
|
2819
2923
|
contentHash: z.ZodString;
|
|
2820
2924
|
}, z.core.$strict>], "targetKind"> | z.ZodObject<{
|
|
2925
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationDispatch.v1">;
|
|
2926
|
+
id: z.ZodString;
|
|
2927
|
+
revision: z.ZodNumber;
|
|
2928
|
+
iterationId: z.ZodString;
|
|
2929
|
+
chainId: z.ZodString;
|
|
2930
|
+
policy: z.ZodObject<{
|
|
2931
|
+
id: z.ZodString;
|
|
2932
|
+
contentHash: z.ZodString;
|
|
2933
|
+
revision: z.ZodNumber;
|
|
2934
|
+
}, z.core.$strict>;
|
|
2935
|
+
batch: z.ZodObject<{
|
|
2936
|
+
id: z.ZodString;
|
|
2937
|
+
contentHash: z.ZodString;
|
|
2938
|
+
revision: z.ZodNumber;
|
|
2939
|
+
}, z.core.$strict>;
|
|
2940
|
+
state: z.ZodEnum<{
|
|
2941
|
+
blocked: "blocked";
|
|
2942
|
+
preparing: "preparing";
|
|
2943
|
+
prepared: "prepared";
|
|
2944
|
+
submitted: "submitted";
|
|
2945
|
+
settled: "settled";
|
|
2946
|
+
}>;
|
|
2947
|
+
submission: z.ZodNullable<z.ZodObject<{
|
|
2948
|
+
provider: z.ZodString;
|
|
2949
|
+
protocol: z.ZodString;
|
|
2950
|
+
payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2951
|
+
}, z.core.$strict>>;
|
|
2952
|
+
submissionHash: z.ZodNullable<z.ZodString>;
|
|
2953
|
+
submissionStartedAt: z.ZodNullable<z.ZodString>;
|
|
2954
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
2955
|
+
id: z.ZodString;
|
|
2956
|
+
contentHash: z.ZodString;
|
|
2957
|
+
}, z.core.$strict>>;
|
|
2958
|
+
terminalReceipt: z.ZodNullable<z.ZodObject<{
|
|
2959
|
+
id: z.ZodString;
|
|
2960
|
+
contentHash: z.ZodString;
|
|
2961
|
+
}, z.core.$strict>>;
|
|
2962
|
+
cancelRequestedAt: z.ZodNullable<z.ZodString>;
|
|
2963
|
+
leaseOwner: z.ZodNullable<z.ZodString>;
|
|
2964
|
+
leaseGeneration: z.ZodNumber;
|
|
2965
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
2966
|
+
consecutiveFailures: z.ZodNumber;
|
|
2967
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
2968
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
2969
|
+
createdAt: z.ZodString;
|
|
2970
|
+
updatedAt: z.ZodString;
|
|
2971
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2821
2972
|
schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
|
|
2822
2973
|
id: z.ZodString;
|
|
2823
2974
|
revision: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../src/learning/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,mFAAmF;AACnF,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAG5D;AAED,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../src/learning/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,mFAAmF;AACnF,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAG5D;AAED,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "openpond.learningChain.v1"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"$ref": "#/$defs/__schema0"
|
|
11
|
+
},
|
|
12
|
+
"revision": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"exclusiveMinimum": 0,
|
|
15
|
+
"maximum": 9007199254740991
|
|
16
|
+
},
|
|
17
|
+
"modelProjectId": {
|
|
18
|
+
"$ref": "#/$defs/__schema0"
|
|
19
|
+
},
|
|
20
|
+
"activeIterationId": {
|
|
21
|
+
"anyOf": [
|
|
22
|
+
{
|
|
23
|
+
"$ref": "#/$defs/__schema0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"latestIterationId": {
|
|
31
|
+
"$ref": "#/$defs/__schema0"
|
|
32
|
+
},
|
|
33
|
+
"lastReservedAt": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/$defs/__schema1"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"updatedAt": {
|
|
44
|
+
"$ref": "#/$defs/__schema1"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"schemaVersion",
|
|
49
|
+
"id",
|
|
50
|
+
"revision",
|
|
51
|
+
"modelProjectId",
|
|
52
|
+
"activeIterationId",
|
|
53
|
+
"latestIterationId",
|
|
54
|
+
"lastReservedAt",
|
|
55
|
+
"updatedAt"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"$defs": {
|
|
59
|
+
"__schema0": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 240
|
|
63
|
+
},
|
|
64
|
+
"__schema1": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "date-time",
|
|
67
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"$id": "urn:openpond:learning:v1:chain",
|
|
71
|
+
"$comment": "Generated from @openpond/evals. Cross-resource identity, authorization, idempotency, admission, grading and split constraints are enforced by the shared domain service in addition to this structural schema."
|
|
72
|
+
}
|