@openpond/evals 0.7.0 → 0.7.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 +14 -0
- package/dist/javascript-verifier-worker-source.js +1 -1
- package/dist/learning/authoring-service.js +49 -0
- package/dist/learning/authoring.js +37 -0
- package/dist/learning/index.js +1 -0
- package/dist/learning/operations.js +7 -3
- package/dist/learning/repository.js +2 -0
- package/dist/learning/service.js +22 -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/authoring-service.d.ts +25 -0
- package/dist/types/learning/authoring-service.d.ts.map +1 -0
- package/dist/types/learning/authoring.d.ts +672 -0
- package/dist/types/learning/authoring.d.ts.map +1 -0
- package/dist/types/learning/index.d.ts +1 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/operations.d.ts +557 -1
- package/dist/types/learning/operations.d.ts.map +1 -1
- package/dist/types/learning/repository.d.ts +192 -0
- package/dist/types/learning/repository.d.ts.map +1 -1
- 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 +505 -2
- 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/command-request.schema.json +757 -366
- package/schemas/learning/v1/draft.schema.json +562 -0
- package/schemas/learning/v1/evidence-inspection.schema.json +106 -0
- package/schemas/learning/v1/read-request.schema.json +42 -0
package/LEARNING.md
CHANGED
|
@@ -12,6 +12,20 @@ with `{ "scope": "<profile-or-team>", "command": { ... } }` and a Bearer token.
|
|
|
12
12
|
Reads use `POST /v1/learning/read`. Scope is a requested ownership boundary; the
|
|
13
13
|
host must authorize it from the credential and assign the actor itself.
|
|
14
14
|
|
|
15
|
+
Task-schema authoring uses a precompiled JSON Schema 2020-12 meta-validator plus
|
|
16
|
+
the bounded keyword/reference checks. Parsing definitions in a browser requires
|
|
17
|
+
no runtime code generation and works under a Content Security Policy without
|
|
18
|
+
`unsafe-eval`. The execution owner separately compiles schemas when validating
|
|
19
|
+
submitted values; schema publication alone is not evidence that an example passes.
|
|
20
|
+
|
|
21
|
+
Browser review uses `client.inspectEvidence({ id, revision, contentHash })`, or
|
|
22
|
+
the read payload `{ "action": "inspect_evidence", "scope": "<profile-or-team>",
|
|
23
|
+
"evidence": { "id": "...", "revision": 1, "contentHash": "..." } }`. The
|
|
24
|
+
execution owner checks the exact stored evidence and task definition and returns
|
|
25
|
+
their references with task readiness, observed-output validity and schema issues.
|
|
26
|
+
Source-only credentials cannot inspect evidence. Inspection is read-only; grade
|
|
27
|
+
and approval operations still validate their authoritative inputs independently.
|
|
28
|
+
|
|
15
29
|
## Data flow
|
|
16
30
|
|
|
17
31
|
1. Publish a Reward, then a binding, task definition and source. Use
|