@openpond/evals 0.7.0 → 0.7.1
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 +14 -0
- package/dist/javascript-verifier-worker-source.js +1 -1
- package/dist/learning/service.js +10 -0
- package/dist/learning/transport.js +10 -0
- package/dist/task-schema-meta-validator.js +2 -0
- package/dist/task-schema-validation.js +113 -0
- package/dist/task-schema.js +4 -142
- package/dist/task-value-validator.js +37 -0
- package/dist/types/learning/service.d.ts +14 -0
- package/dist/types/learning/service.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +34 -0
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/dist/types/task-schema-meta-validator.d.ts +3 -0
- package/dist/types/task-schema-validation.d.ts +18 -0
- package/dist/types/task-schema-validation.d.ts.map +1 -0
- package/dist/types/task-schema.d.ts +2 -17
- package/dist/types/task-schema.d.ts.map +1 -1
- package/dist/types/task-value-validator.d.ts +3 -0
- package/dist/types/task-value-validator.d.ts.map +1 -0
- package/package.json +2 -2
- package/schemas/learning/v1/evidence-inspection.schema.json +106 -0
- package/schemas/learning/v1/read-request.schema.json +41 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"evidence": {
|
|
6
|
+
"$ref": "#/$defs/__schema0"
|
|
7
|
+
},
|
|
8
|
+
"definition": {
|
|
9
|
+
"$ref": "#/$defs/__schema0"
|
|
10
|
+
},
|
|
11
|
+
"inspection": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"evidenceValidity": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"valid",
|
|
18
|
+
"invalid"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"taskReady": {
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
24
|
+
"observedOutputValid": {
|
|
25
|
+
"anyOf": [
|
|
26
|
+
{
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "null"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"issues": {
|
|
35
|
+
"maxItems": 100,
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"$ref": "#/$defs/__schema1"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"evidenceValidity",
|
|
44
|
+
"taskReady",
|
|
45
|
+
"observedOutputValid",
|
|
46
|
+
"issues"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"evidence",
|
|
53
|
+
"definition",
|
|
54
|
+
"inspection"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"$defs": {
|
|
58
|
+
"__schema0": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"id": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1,
|
|
64
|
+
"maxLength": 240
|
|
65
|
+
},
|
|
66
|
+
"contentHash": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
69
|
+
},
|
|
70
|
+
"revision": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"exclusiveMinimum": 0,
|
|
73
|
+
"maximum": 9007199254740991
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"id",
|
|
78
|
+
"contentHash",
|
|
79
|
+
"revision"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
},
|
|
83
|
+
"__schema1": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"path": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"code": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"message": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"path",
|
|
98
|
+
"code",
|
|
99
|
+
"message"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"$id": "urn:openpond:learning:v1:evidence-inspection",
|
|
105
|
+
"$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."
|
|
106
|
+
}
|
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "inspect_evidence"
|
|
10
|
+
},
|
|
11
|
+
"scope": {
|
|
12
|
+
"$ref": "#/$defs/__schema0"
|
|
13
|
+
},
|
|
14
|
+
"evidence": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"id": {
|
|
18
|
+
"$ref": "#/$defs/__schema0"
|
|
19
|
+
},
|
|
20
|
+
"contentHash": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
23
|
+
},
|
|
24
|
+
"revision": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"exclusiveMinimum": 0,
|
|
27
|
+
"maximum": 9007199254740991
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"id",
|
|
32
|
+
"contentHash",
|
|
33
|
+
"revision"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"action",
|
|
40
|
+
"scope",
|
|
41
|
+
"evidence"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
4
45
|
{
|
|
5
46
|
"type": "object",
|
|
6
47
|
"properties": {
|