openpond-sdk 0.8.0 → 0.8.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/TRAINING_PROTOCOL.md +28 -0
- package/dist/{chunk-CGIMLZE5.js → chunk-5KA6NN6I.js} +277 -188
- package/dist/chunk-5KA6NN6I.js.map +7 -0
- package/dist/dataset-workspaces.js +1 -1
- package/dist/model-starter-catalog.js +1 -1
- package/dist/model-starters.js +1 -1
- package/dist/taskset-drafts.js +1 -1
- package/dist/taskset-packages.js +1 -1
- package/dist/training-bundle.js +1 -1
- package/dist/training.js +13 -1
- package/dist/types/packages/sdk/src/training-preparations.d.ts +639 -0
- package/dist/types/packages/sdk/src/training-preparations.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/training.d.ts +309 -0
- package/dist/types/packages/sdk/src/training.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CGIMLZE5.js.map +0 -7
package/TRAINING_PROTOCOL.md
CHANGED
|
@@ -78,6 +78,34 @@ checkpoint inventory or qualification metrics, when the portable client needs
|
|
|
78
78
|
that evidence to validate the artifact. This metadata is immutable output
|
|
79
79
|
evidence, not private worker-control, lease, or provider state.
|
|
80
80
|
|
|
81
|
+
## Manual run preparation
|
|
82
|
+
|
|
83
|
+
Hosts supporting reviewed-data training expose these authenticated, team-scoped
|
|
84
|
+
routes through `createTrainingClient`:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
POST /v1/training/preparations
|
|
88
|
+
GET /v1/training/preparations/{preparationId}?teamId=
|
|
89
|
+
POST /v1/training/preparations/{preparationId}/start
|
|
90
|
+
POST /v1/training/preparations/{preparationId}/cancel
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`prepareRun` accepts a stable operation ID, the expected configuration revision
|
|
94
|
+
and ETag, an exact sealed batch reference, an optional organizing Project, a run
|
|
95
|
+
name and a maximum spend. Preparation freezes the executable inputs and stages
|
|
96
|
+
artifacts without starting compute or creating a recurring learning policy.
|
|
97
|
+
The returned plan binds its creator, request hash, source and submission hash.
|
|
98
|
+
The SDK verifies both plan and request identity before returning the receipt.
|
|
99
|
+
|
|
100
|
+
`startPreparation` and `cancelPreparation` require the retained plan hash and
|
|
101
|
+
observed receipt revision. Starting uses the stored submission; mutable
|
|
102
|
+
configuration changes do not silently recompile a prepared run. Providers must
|
|
103
|
+
serialize cancellation with job and dispatch creation, retain the submitted job
|
|
104
|
+
ID, and make identical retries return that same job. A cancelled preparation
|
|
105
|
+
cannot start. Once submitted, use the ordinary job cancellation controls.
|
|
106
|
+
Reading a preparation does not authorize starting it; the host rechecks scope,
|
|
107
|
+
creator permissions, resource access, runtime availability and spending limits.
|
|
108
|
+
|
|
81
109
|
## Deterministic grading identity
|
|
82
110
|
|
|
83
111
|
For portable training bundles, derive `job.rewardSource` with
|