@openpond/evals 0.12.4 → 0.12.6

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 +21 -0
  2. package/dist/javascript-isolate-process-entry.js +4 -1
  3. package/dist/javascript-isolate-process-source.js +1 -1
  4. package/dist/javascript-isolate-process.js +36 -2
  5. package/dist/javascript-isolate.js +8 -2
  6. package/dist/javascript-verifier-node.js +1 -0
  7. package/dist/javascript-verifier-worker-source.js +1 -1
  8. package/dist/learning/admission.js +1 -1
  9. package/dist/learning/contracts.js +12 -0
  10. package/dist/learning/index.js +1 -0
  11. package/dist/learning/iteration-dispatch-commands.js +1 -1
  12. package/dist/learning/iteration-dispatch-contracts.js +27 -0
  13. package/dist/learning/iteration-dispatch-deferral.js +28 -0
  14. package/dist/learning/iteration-dispatch-worker.js +34 -5
  15. package/dist/learning/reward-authoring.js +4 -2
  16. package/dist/types/javascript-isolate-process.d.ts +7 -0
  17. package/dist/types/javascript-isolate-process.d.ts.map +1 -1
  18. package/dist/types/javascript-isolate.d.ts +3 -1
  19. package/dist/types/javascript-isolate.d.ts.map +1 -1
  20. package/dist/types/javascript-verifier-node.d.ts +1 -0
  21. package/dist/types/javascript-verifier-node.d.ts.map +1 -1
  22. package/dist/types/learning/batch-service.d.ts +1 -0
  23. package/dist/types/learning/batch-service.d.ts.map +1 -1
  24. package/dist/types/learning/contracts.d.ts +42 -0
  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-dispatch-contracts.d.ts +45 -0
  29. package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -1
  30. package/dist/types/learning/iteration-dispatch-deferral.d.ts +71 -0
  31. package/dist/types/learning/iteration-dispatch-deferral.d.ts.map +1 -0
  32. package/dist/types/learning/iteration-dispatch-worker.d.ts +7 -2
  33. package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -1
  34. package/dist/types/learning/operations.d.ts +38 -0
  35. package/dist/types/learning/operations.d.ts.map +1 -1
  36. package/dist/types/learning/repository.d.ts +30 -0
  37. package/dist/types/learning/repository.d.ts.map +1 -1
  38. package/dist/types/learning/reward-authoring.d.ts.map +1 -1
  39. package/dist/types/learning/transport.d.ts +49 -0
  40. package/dist/types/learning/transport.d.ts.map +1 -1
  41. package/package.json +2 -2
  42. package/schemas/learning/v1/command-request.schema.json +119 -93
  43. package/schemas/learning/v1/dispatch.schema.json +100 -1
  44. package/schemas/learning/v1/evidence.schema.json +3 -0
  45. package/schemas/learning/v1/example-submission.schema.json +3 -0
  46. package/schemas/learning/v1/source.schema.json +20 -0
@@ -59,9 +59,15 @@
59
59
  "nextAttemptAt": {
60
60
  "$ref": "#/$defs/__schema19"
61
61
  },
62
- "lastError": {
62
+ "admission": {
63
63
  "$ref": "#/$defs/__schema20"
64
64
  },
65
+ "lastSubmissionDeferral": {
66
+ "$ref": "#/$defs/__schema21"
67
+ },
68
+ "lastError": {
69
+ "$ref": "#/$defs/__schema22"
70
+ },
65
71
  "createdAt": {
66
72
  "$ref": "#/$defs/__schema10"
67
73
  },
@@ -322,6 +328,99 @@
322
328
  ]
323
329
  },
324
330
  "__schema20": {
331
+ "anyOf": [
332
+ {
333
+ "oneOf": [
334
+ {
335
+ "type": "object",
336
+ "properties": {
337
+ "status": {
338
+ "type": "string",
339
+ "const": "ready"
340
+ }
341
+ },
342
+ "required": [
343
+ "status"
344
+ ],
345
+ "additionalProperties": false
346
+ },
347
+ {
348
+ "type": "object",
349
+ "properties": {
350
+ "status": {
351
+ "type": "string",
352
+ "const": "deferred"
353
+ },
354
+ "retryAt": {
355
+ "$ref": "#/$defs/__schema10"
356
+ },
357
+ "reason": {
358
+ "type": "string",
359
+ "minLength": 1,
360
+ "maxLength": 2000
361
+ }
362
+ },
363
+ "required": [
364
+ "status",
365
+ "retryAt",
366
+ "reason"
367
+ ],
368
+ "additionalProperties": false
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ "type": "null"
374
+ }
375
+ ]
376
+ },
377
+ "__schema21": {
378
+ "type": "object",
379
+ "properties": {
380
+ "scope": {
381
+ "$ref": "#/$defs/__schema1"
382
+ },
383
+ "dispatchId": {
384
+ "$ref": "#/$defs/__schema1"
385
+ },
386
+ "submissionHash": {
387
+ "type": "string",
388
+ "pattern": "^[a-f0-9]{64}$"
389
+ },
390
+ "leaseGeneration": {
391
+ "type": "integer",
392
+ "exclusiveMinimum": 0,
393
+ "maximum": 9007199254740991
394
+ },
395
+ "status": {
396
+ "type": "string",
397
+ "const": "deferred"
398
+ },
399
+ "retryAt": {
400
+ "$ref": "#/$defs/__schema10"
401
+ },
402
+ "reason": {
403
+ "type": "string",
404
+ "minLength": 1,
405
+ "maxLength": 2000
406
+ },
407
+ "receipt": {
408
+ "$ref": "#/$defs/__schema12"
409
+ }
410
+ },
411
+ "required": [
412
+ "scope",
413
+ "dispatchId",
414
+ "submissionHash",
415
+ "leaseGeneration",
416
+ "status",
417
+ "retryAt",
418
+ "reason",
419
+ "receipt"
420
+ ],
421
+ "additionalProperties": false
422
+ },
423
+ "__schema22": {
325
424
  "anyOf": [
326
425
  {
327
426
  "type": "string",
@@ -64,6 +64,9 @@
64
64
  "input": {
65
65
  "$ref": "#/$defs/__schema4"
66
66
  },
67
+ "policyVisibleContext": {
68
+ "$ref": "#/$defs/__schema4"
69
+ },
67
70
  "observedOutput": {
68
71
  "anyOf": [
69
72
  {
@@ -67,6 +67,9 @@
67
67
  "input": {
68
68
  "$ref": "#/$defs/__schema2"
69
69
  },
70
+ "policyVisibleContext": {
71
+ "$ref": "#/$defs/__schema2"
72
+ },
70
73
  "observedOutput": {
71
74
  "anyOf": [
72
75
  {
@@ -160,6 +160,26 @@
160
160
  ],
161
161
  "additionalProperties": false
162
162
  },
163
+ "datasetOrigin": {
164
+ "type": "object",
165
+ "properties": {
166
+ "receiptId": {
167
+ "$ref": "#/$defs/__schema0"
168
+ },
169
+ "packageHash": {
170
+ "$ref": "#/$defs/__schema2"
171
+ },
172
+ "taskset": {
173
+ "$ref": "#/$defs/__schema1"
174
+ }
175
+ },
176
+ "required": [
177
+ "receiptId",
178
+ "packageHash",
179
+ "taskset"
180
+ ],
181
+ "additionalProperties": false
182
+ },
163
183
  "capturedOrigin": {
164
184
  "type": "object",
165
185
  "properties": {