@openpond/evals 0.10.3 → 0.10.5
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 +43 -0
- package/dist/learning/batch-service.js +12 -7
- package/dist/learning/index.js +4 -0
- package/dist/learning/iteration-budget.js +17 -0
- package/dist/learning/iteration-reservation-service.js +3 -13
- package/dist/learning/policy-inspection.js +82 -0
- package/dist/learning/repository.js +2 -0
- package/dist/learning/schedule-contracts.js +45 -0
- package/dist/learning/schedule-service.js +31 -0
- package/dist/learning/schedule-worker.js +96 -0
- package/dist/learning/service.js +13 -0
- package/dist/learning/transport.js +1 -0
- package/dist/types/learning/batch-service.d.ts +310 -0
- package/dist/types/learning/batch-service.d.ts.map +1 -1
- package/dist/types/learning/index.d.ts +4 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/iteration-budget.d.ts +8 -0
- package/dist/types/learning/iteration-budget.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-service.d.ts.map +1 -1
- package/dist/types/learning/policy-inspection.d.ts +47 -0
- package/dist/types/learning/policy-inspection.d.ts.map +1 -0
- package/dist/types/learning/repository.d.ts +66 -1
- package/dist/types/learning/repository.d.ts.map +1 -1
- package/dist/types/learning/schedule-contracts.d.ts +69 -0
- package/dist/types/learning/schedule-contracts.d.ts.map +1 -0
- package/dist/types/learning/schedule-service.d.ts +30 -0
- package/dist/types/learning/schedule-service.d.ts.map +1 -0
- package/dist/types/learning/schedule-worker.d.ts +12 -0
- package/dist/types/learning/schedule-worker.d.ts.map +1 -0
- package/dist/types/learning/service.d.ts +39 -0
- package/dist/types/learning/service.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +75 -2
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/learning/v1/policy-inspection.schema.json +243 -0
- package/schemas/learning/v1/read-request.schema.json +49 -23
- package/schemas/learning/v1/schedule.schema.json +188 -0
- package/schemas/learning/v1/schedule_fire.schema.json +163 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"$ref": "#/$defs/__schema0"
|
|
7
|
+
},
|
|
8
|
+
"id": {
|
|
9
|
+
"$ref": "#/$defs/__schema1"
|
|
10
|
+
},
|
|
11
|
+
"revision": {
|
|
12
|
+
"$ref": "#/$defs/__schema2"
|
|
13
|
+
},
|
|
14
|
+
"policy": {
|
|
15
|
+
"$ref": "#/$defs/__schema3"
|
|
16
|
+
},
|
|
17
|
+
"modelProjectId": {
|
|
18
|
+
"$ref": "#/$defs/__schema1"
|
|
19
|
+
},
|
|
20
|
+
"executionOwner": {
|
|
21
|
+
"$ref": "#/$defs/__schema4"
|
|
22
|
+
},
|
|
23
|
+
"state": {
|
|
24
|
+
"$ref": "#/$defs/__schema5"
|
|
25
|
+
},
|
|
26
|
+
"intervalSeconds": {
|
|
27
|
+
"$ref": "#/$defs/__schema6"
|
|
28
|
+
},
|
|
29
|
+
"nextRunAt": {
|
|
30
|
+
"$ref": "#/$defs/__schema7"
|
|
31
|
+
},
|
|
32
|
+
"lastFire": {
|
|
33
|
+
"$ref": "#/$defs/__schema9"
|
|
34
|
+
},
|
|
35
|
+
"consecutiveFailures": {
|
|
36
|
+
"$ref": "#/$defs/__schema10"
|
|
37
|
+
},
|
|
38
|
+
"nextAttemptAt": {
|
|
39
|
+
"$ref": "#/$defs/__schema11"
|
|
40
|
+
},
|
|
41
|
+
"lastError": {
|
|
42
|
+
"$ref": "#/$defs/__schema12"
|
|
43
|
+
},
|
|
44
|
+
"createdAt": {
|
|
45
|
+
"$ref": "#/$defs/__schema8"
|
|
46
|
+
},
|
|
47
|
+
"updatedAt": {
|
|
48
|
+
"$ref": "#/$defs/__schema8"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"schemaVersion",
|
|
53
|
+
"id",
|
|
54
|
+
"revision",
|
|
55
|
+
"policy",
|
|
56
|
+
"modelProjectId",
|
|
57
|
+
"executionOwner",
|
|
58
|
+
"state",
|
|
59
|
+
"intervalSeconds",
|
|
60
|
+
"nextRunAt",
|
|
61
|
+
"lastFire",
|
|
62
|
+
"consecutiveFailures",
|
|
63
|
+
"nextAttemptAt",
|
|
64
|
+
"lastError",
|
|
65
|
+
"createdAt",
|
|
66
|
+
"updatedAt"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"$defs": {
|
|
70
|
+
"__schema0": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"const": "openpond.learningSchedule.v1"
|
|
73
|
+
},
|
|
74
|
+
"__schema1": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 240
|
|
78
|
+
},
|
|
79
|
+
"__schema2": {
|
|
80
|
+
"type": "integer",
|
|
81
|
+
"exclusiveMinimum": 0,
|
|
82
|
+
"maximum": 9007199254740991
|
|
83
|
+
},
|
|
84
|
+
"__schema3": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"id": {
|
|
88
|
+
"$ref": "#/$defs/__schema1"
|
|
89
|
+
},
|
|
90
|
+
"contentHash": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
93
|
+
},
|
|
94
|
+
"revision": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"exclusiveMinimum": 0,
|
|
97
|
+
"maximum": 9007199254740991
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"id",
|
|
102
|
+
"contentHash",
|
|
103
|
+
"revision"
|
|
104
|
+
],
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
},
|
|
107
|
+
"__schema4": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"enum": [
|
|
110
|
+
"local",
|
|
111
|
+
"hosted"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"__schema5": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": [
|
|
117
|
+
"scheduled",
|
|
118
|
+
"disabled",
|
|
119
|
+
"blocked"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"__schema6": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 60,
|
|
127
|
+
"maximum": 31536000
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "null"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"__schema7": {
|
|
135
|
+
"anyOf": [
|
|
136
|
+
{
|
|
137
|
+
"$ref": "#/$defs/__schema8"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "null"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"__schema8": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"format": "date-time",
|
|
147
|
+
"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)))$"
|
|
148
|
+
},
|
|
149
|
+
"__schema9": {
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"$ref": "#/$defs/__schema3"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "null"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"__schema10": {
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"minimum": 0,
|
|
162
|
+
"maximum": 9007199254740991
|
|
163
|
+
},
|
|
164
|
+
"__schema11": {
|
|
165
|
+
"anyOf": [
|
|
166
|
+
{
|
|
167
|
+
"$ref": "#/$defs/__schema8"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "null"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"__schema12": {
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"type": "string",
|
|
178
|
+
"maxLength": 20000
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "null"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"$id": "urn:openpond:learning:v1:schedule",
|
|
187
|
+
"$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."
|
|
188
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"$ref": "#/$defs/__schema0"
|
|
7
|
+
},
|
|
8
|
+
"id": {
|
|
9
|
+
"$ref": "#/$defs/__schema1"
|
|
10
|
+
},
|
|
11
|
+
"revision": {
|
|
12
|
+
"$ref": "#/$defs/__schema2"
|
|
13
|
+
},
|
|
14
|
+
"scheduleId": {
|
|
15
|
+
"$ref": "#/$defs/__schema1"
|
|
16
|
+
},
|
|
17
|
+
"policy": {
|
|
18
|
+
"$ref": "#/$defs/__schema3"
|
|
19
|
+
},
|
|
20
|
+
"scheduledAt": {
|
|
21
|
+
"$ref": "#/$defs/__schema5"
|
|
22
|
+
},
|
|
23
|
+
"coalescedThroughAt": {
|
|
24
|
+
"$ref": "#/$defs/__schema5"
|
|
25
|
+
},
|
|
26
|
+
"coalescedCount": {
|
|
27
|
+
"$ref": "#/$defs/__schema6"
|
|
28
|
+
},
|
|
29
|
+
"outcome": {
|
|
30
|
+
"$ref": "#/$defs/__schema7"
|
|
31
|
+
},
|
|
32
|
+
"reason": {
|
|
33
|
+
"$ref": "#/$defs/__schema8"
|
|
34
|
+
},
|
|
35
|
+
"iteration": {
|
|
36
|
+
"$ref": "#/$defs/__schema9"
|
|
37
|
+
},
|
|
38
|
+
"createdAt": {
|
|
39
|
+
"$ref": "#/$defs/__schema5"
|
|
40
|
+
},
|
|
41
|
+
"contentHash": {
|
|
42
|
+
"$ref": "#/$defs/__schema4"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"schemaVersion",
|
|
47
|
+
"id",
|
|
48
|
+
"revision",
|
|
49
|
+
"scheduleId",
|
|
50
|
+
"policy",
|
|
51
|
+
"scheduledAt",
|
|
52
|
+
"coalescedThroughAt",
|
|
53
|
+
"coalescedCount",
|
|
54
|
+
"outcome",
|
|
55
|
+
"reason",
|
|
56
|
+
"iteration",
|
|
57
|
+
"createdAt",
|
|
58
|
+
"contentHash"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"$defs": {
|
|
62
|
+
"__schema0": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "openpond.learningScheduleFire.v1"
|
|
65
|
+
},
|
|
66
|
+
"__schema1": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1,
|
|
69
|
+
"maxLength": 240
|
|
70
|
+
},
|
|
71
|
+
"__schema2": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"const": 1
|
|
74
|
+
},
|
|
75
|
+
"__schema3": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"id": {
|
|
79
|
+
"$ref": "#/$defs/__schema1"
|
|
80
|
+
},
|
|
81
|
+
"contentHash": {
|
|
82
|
+
"$ref": "#/$defs/__schema4"
|
|
83
|
+
},
|
|
84
|
+
"revision": {
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"exclusiveMinimum": 0,
|
|
87
|
+
"maximum": 9007199254740991
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"id",
|
|
92
|
+
"contentHash",
|
|
93
|
+
"revision"
|
|
94
|
+
],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
},
|
|
97
|
+
"__schema4": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
100
|
+
},
|
|
101
|
+
"__schema5": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "date-time",
|
|
104
|
+
"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)))$"
|
|
105
|
+
},
|
|
106
|
+
"__schema6": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 0,
|
|
109
|
+
"maximum": 9007199254740991
|
|
110
|
+
},
|
|
111
|
+
"__schema7": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"reserved",
|
|
115
|
+
"waiting_for_data",
|
|
116
|
+
"waiting_for_review",
|
|
117
|
+
"skipped"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"__schema8": {
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": [
|
|
125
|
+
"active_iteration",
|
|
126
|
+
"cooldown",
|
|
127
|
+
"daily_budget"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"__schema9": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"id": {
|
|
141
|
+
"$ref": "#/$defs/__schema1"
|
|
142
|
+
},
|
|
143
|
+
"revision": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"exclusiveMinimum": 0,
|
|
146
|
+
"maximum": 9007199254740991
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": [
|
|
150
|
+
"id",
|
|
151
|
+
"revision"
|
|
152
|
+
],
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "null"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"$id": "urn:openpond:learning:v1:schedule_fire",
|
|
162
|
+
"$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."
|
|
163
|
+
}
|