@openpond/evals 0.11.9 → 0.11.11

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.
Files changed (46) hide show
  1. package/LEARNING.md +35 -0
  2. package/dist/experiments.js +169 -0
  3. package/dist/index.js +1 -0
  4. package/dist/learning/acceptance-group.js +199 -0
  5. package/dist/learning/acceptance-plan.js +7 -1
  6. package/dist/learning/authoring.js +2 -1
  7. package/dist/learning/index.js +1 -0
  8. package/dist/learning/reward-authoring.js +3 -3
  9. package/dist/rewards.js +5 -0
  10. package/dist/types/experiments.d.ts +426 -0
  11. package/dist/types/experiments.d.ts.map +1 -0
  12. package/dist/types/index.d.ts +1 -0
  13. package/dist/types/index.d.ts.map +1 -1
  14. package/dist/types/learning/acceptance-group.d.ts +540 -0
  15. package/dist/types/learning/acceptance-group.d.ts.map +1 -0
  16. package/dist/types/learning/acceptance-plan.d.ts +39 -0
  17. package/dist/types/learning/acceptance-plan.d.ts.map +1 -1
  18. package/dist/types/learning/admission.d.ts +1 -0
  19. package/dist/types/learning/admission.d.ts.map +1 -1
  20. package/dist/types/learning/authoring-service.d.ts +1 -0
  21. package/dist/types/learning/authoring-service.d.ts.map +1 -1
  22. package/dist/types/learning/authoring.d.ts +4 -0
  23. package/dist/types/learning/authoring.d.ts.map +1 -1
  24. package/dist/types/learning/contracts.d.ts +4 -3
  25. package/dist/types/learning/contracts.d.ts.map +1 -1
  26. package/dist/types/learning/index.d.ts +1 -0
  27. package/dist/types/learning/index.d.ts.map +1 -1
  28. package/dist/types/learning/iteration-candidate-decision.d.ts +1 -1
  29. package/dist/types/learning/operations.d.ts +6 -0
  30. package/dist/types/learning/operations.d.ts.map +1 -1
  31. package/dist/types/learning/repository.d.ts +4 -2
  32. package/dist/types/learning/repository.d.ts.map +1 -1
  33. package/dist/types/learning/reward-authoring.d.ts.map +1 -1
  34. package/dist/types/learning/reward-calibration.d.ts +1 -0
  35. package/dist/types/learning/reward-calibration.d.ts.map +1 -1
  36. package/dist/types/learning/transport.d.ts +8 -3
  37. package/dist/types/learning/transport.d.ts.map +1 -1
  38. package/dist/types/rewards.d.ts +4 -0
  39. package/dist/types/rewards.d.ts.map +1 -1
  40. package/package.json +5 -1
  41. package/schemas/learning/v1/acceptance-group-manifest.schema.json +261 -0
  42. package/schemas/learning/v1/acceptance-group-snapshot.schema.json +585 -0
  43. package/schemas/learning/v1/acceptance-plan.schema.json +205 -0
  44. package/schemas/learning/v1/command-request.schema.json +248 -235
  45. package/schemas/learning/v1/draft.schema.json +4 -0
  46. package/schemas/learning/v1/reward.schema.json +4 -0
@@ -0,0 +1,261 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "openpond.acceptanceGroupManifest.v1"
8
+ },
9
+ "id": {
10
+ "$ref": "#/$defs/__schema0"
11
+ },
12
+ "teamId": {
13
+ "$ref": "#/$defs/__schema0"
14
+ },
15
+ "trainingJob": {
16
+ "$ref": "#/$defs/__schema1"
17
+ },
18
+ "baseline": {
19
+ "$ref": "#/$defs/__schema1"
20
+ },
21
+ "candidate": {
22
+ "$ref": "#/$defs/__schema1"
23
+ },
24
+ "plan": {
25
+ "type": "object",
26
+ "properties": {
27
+ "schemaVersion": {
28
+ "type": "string",
29
+ "const": "openpond.acceptancePlan.v1"
30
+ },
31
+ "id": {
32
+ "$ref": "#/$defs/__schema2"
33
+ },
34
+ "revision": {
35
+ "type": "integer",
36
+ "exclusiveMinimum": 0,
37
+ "maximum": 9007199254740991
38
+ },
39
+ "checks": {
40
+ "minItems": 1,
41
+ "maxItems": 100,
42
+ "type": "array",
43
+ "items": {
44
+ "$ref": "#/$defs/__schema3"
45
+ }
46
+ },
47
+ "maximumSpendUsd": {
48
+ "type": "number",
49
+ "exclusiveMinimum": 0
50
+ },
51
+ "contentHash": {
52
+ "$ref": "#/$defs/__schema9"
53
+ }
54
+ },
55
+ "required": [
56
+ "schemaVersion",
57
+ "id",
58
+ "revision",
59
+ "checks",
60
+ "maximumSpendUsd",
61
+ "contentHash"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ "maximumParallelAttempts": {
66
+ "type": "integer",
67
+ "minimum": 1,
68
+ "maximum": 8
69
+ },
70
+ "createdAt": {
71
+ "type": "string",
72
+ "format": "date-time",
73
+ "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))$"
74
+ },
75
+ "contentHash": {
76
+ "type": "string",
77
+ "pattern": "^[a-f0-9]{64}$"
78
+ }
79
+ },
80
+ "required": [
81
+ "schemaVersion",
82
+ "id",
83
+ "teamId",
84
+ "trainingJob",
85
+ "baseline",
86
+ "candidate",
87
+ "plan",
88
+ "maximumParallelAttempts",
89
+ "createdAt",
90
+ "contentHash"
91
+ ],
92
+ "additionalProperties": false,
93
+ "$defs": {
94
+ "__schema0": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "maxLength": 240
98
+ },
99
+ "__schema1": {
100
+ "type": "object",
101
+ "properties": {
102
+ "id": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "maxLength": 240
106
+ },
107
+ "contentHash": {
108
+ "type": "string",
109
+ "pattern": "^[a-f0-9]{64}$"
110
+ }
111
+ },
112
+ "required": [
113
+ "id",
114
+ "contentHash"
115
+ ],
116
+ "additionalProperties": false
117
+ },
118
+ "__schema2": {
119
+ "type": "string",
120
+ "minLength": 1,
121
+ "maxLength": 240
122
+ },
123
+ "__schema3": {
124
+ "type": "object",
125
+ "properties": {
126
+ "id": {
127
+ "$ref": "#/$defs/__schema2"
128
+ },
129
+ "name": {
130
+ "$ref": "#/$defs/__schema4"
131
+ },
132
+ "required": {
133
+ "$ref": "#/$defs/__schema5"
134
+ },
135
+ "role": {
136
+ "$ref": "#/$defs/__schema6"
137
+ },
138
+ "unit": {
139
+ "$ref": "#/$defs/__schema7"
140
+ },
141
+ "baselineReuse": {
142
+ "$ref": "#/$defs/__schema8"
143
+ },
144
+ "dataset": {
145
+ "$ref": "#/$defs/__schema1"
146
+ },
147
+ "evaluator": {
148
+ "$ref": "#/$defs/__schema1"
149
+ },
150
+ "executionHash": {
151
+ "$ref": "#/$defs/__schema9"
152
+ },
153
+ "populationHash": {
154
+ "$ref": "#/$defs/__schema9"
155
+ },
156
+ "metric": {
157
+ "$ref": "#/$defs/__schema2"
158
+ },
159
+ "direction": {
160
+ "$ref": "#/$defs/__schema10"
161
+ },
162
+ "minimumCoverage": {
163
+ "$ref": "#/$defs/__schema11"
164
+ },
165
+ "threshold": {
166
+ "$ref": "#/$defs/__schema12"
167
+ },
168
+ "maximumRegression": {
169
+ "$ref": "#/$defs/__schema13"
170
+ },
171
+ "maximumSpendUsd": {
172
+ "$ref": "#/$defs/__schema14"
173
+ }
174
+ },
175
+ "required": [
176
+ "id",
177
+ "name",
178
+ "required",
179
+ "dataset",
180
+ "evaluator",
181
+ "executionHash",
182
+ "populationHash",
183
+ "metric",
184
+ "direction",
185
+ "minimumCoverage",
186
+ "threshold",
187
+ "maximumRegression",
188
+ "maximumSpendUsd"
189
+ ],
190
+ "additionalProperties": false
191
+ },
192
+ "__schema4": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "maxLength": 200
196
+ },
197
+ "__schema5": {
198
+ "type": "boolean"
199
+ },
200
+ "__schema6": {
201
+ "type": "string",
202
+ "enum": [
203
+ "quality",
204
+ "retention",
205
+ "diagnostic"
206
+ ]
207
+ },
208
+ "__schema7": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 80
212
+ },
213
+ "__schema8": {
214
+ "type": "object",
215
+ "properties": {
216
+ "maximumAgeSeconds": {
217
+ "type": "integer",
218
+ "exclusiveMinimum": 0,
219
+ "maximum": 31536000
220
+ },
221
+ "qualification": {
222
+ "$ref": "#/$defs/__schema1"
223
+ }
224
+ },
225
+ "required": [
226
+ "maximumAgeSeconds",
227
+ "qualification"
228
+ ],
229
+ "additionalProperties": false
230
+ },
231
+ "__schema9": {
232
+ "type": "string",
233
+ "pattern": "^[a-f0-9]{64}$"
234
+ },
235
+ "__schema10": {
236
+ "type": "string",
237
+ "enum": [
238
+ "higher",
239
+ "lower"
240
+ ]
241
+ },
242
+ "__schema11": {
243
+ "type": "number",
244
+ "exclusiveMinimum": 0,
245
+ "maximum": 1
246
+ },
247
+ "__schema12": {
248
+ "type": "number"
249
+ },
250
+ "__schema13": {
251
+ "type": "number",
252
+ "minimum": 0
253
+ },
254
+ "__schema14": {
255
+ "type": "number",
256
+ "exclusiveMinimum": 0
257
+ }
258
+ },
259
+ "$id": "urn:openpond:learning:v1:acceptance-group-manifest",
260
+ "$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."
261
+ }