openpond-sdk 0.2.1 → 0.2.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/TASKSETS.md CHANGED
@@ -29,3 +29,31 @@ The client rejects responses for a different workspace or requested resource,
29
29
  limits catalog responses to 4 MiB, supports abort signals, and does not follow
30
30
  redirects with credentials. `OpenPondTasksetCatalogError` preserves HTTP status and
31
31
  the service's error code.
32
+
33
+ ## Complete private packages
34
+
35
+ `openpond-sdk/taskset-packages` exports `createTasksetPackage`,
36
+ `validateTasksetPackage`, `decodeTasksetPackageFile`, and
37
+ `OpenPondTasksetPackageClient`. A package carries the exact Taskset, Environment
38
+ and Verifier Set releases, binary files encoded as canonical base64, and the
39
+ complete model resource graph when the Taskset declares a model binding.
40
+
41
+ Validation verifies release hashes, dependency references, file bytes and
42
+ visibility. The package content hash seals the whole graph, including files
43
+ outside the Taskset manifest. The 64 MiB limit includes the JSON envelope and
44
+ base64 encoding. Validation does not establish execution readiness or authorize
45
+ access to private resources.
46
+
47
+ The client defines authenticated `POST /v1/taskset-packages` publication and
48
+ `GET /v1/taskset-packages/{model}/{taskset}/{revision}/{hash}` readback. These
49
+ operations require a host that implements the package protocol; availability
50
+ must be verified before enabling a hosted transfer flow.
51
+
52
+ Callers retain the publication's operation ID and expected project ETag across
53
+ retries. A successful receipt binds the operation, workspace, Model, Taskset
54
+ release, complete package hash and resulting project ETag. Pass its `packageHash`
55
+ as `get`'s `expectedPackageHash` to pin readback to that publication. The client
56
+ checks response ownership and release identity, rejects credential redirects,
57
+ and bounds streamed response bytes. Hosts must authorize Model access, enforce
58
+ immutable release-to-package mappings, and commit attachment and operation
59
+ receipts atomically with the project revision check.