Skip to content

Explicit-byte package v3 (P09 accepted)

The public packagev3 package defines structural records and explicit-byte Build/Assess APIs. P09.1–.2 provide construction and review assessment; Concrete plan/authority verification is implemented in P09.3; Compatibility, clean ordinary source/consumer qualification, publication and closing review 4 pass; see qualification. A valid record or compatible assessment never grants execution.

The package uses exact approved workflows/workflow.uws.yaml bytes, expected/data.json, expected/operation-shapes.json and explicit source artifacts under sources/<family>/. expected/package.json identifies those inputs. expected/assessment.json reports stable value-free findings; expected/review-handoff.json identifies exact input/manifest/assessment artifacts and remains review_required. Authoring intent.hcl, packaged workflow.hcl, private .icot and browser package artifacts are excluded. Derived presentation views remain consumer-owned, outside this package.

The new record discriminators are openudon.package.v3, openudon.review-handoff.v3 and openudon.assessment.v3. Existing handoff v1/v2, approval v1/v2, authority v1 and report/evidence wires are unchanged. Public schemas are additive new files under docs/schemas/; Go validation also enforces canonical scope/path, role/inventory and cross-field identities. Decoders reject unknown/duplicate/case aliases, missing/null fields and trailing documents under the existing public strict byte/node/depth limits.

Limits are 512 files, 8 MiB each/32 MiB combined, 32 API sources plus one independently verified runtime catalog and 128 stable findings (with explicit truncation). Source IDs are permanent public metadata; credential values and hidden model reasoning have no record field. Handoff credentials are symbolic names only. Library operations perform no filesystem, network, credential, model/provider or runtime I/O; workers own isolation and stable byte custody, and Kinet owns private policy/confirmation/publication.

Manifest.InputDigest delegates to the unchanged handoff.DigestFiles(scope, openudon.handoff-package-digest.v1, files) envelope over canonical reviewed YAML/data/shapes/source hashes. Reports have separate identities, avoiding input/report digest cycles. The final package digest includes actual manifest/assessment/handoff artifact bytes through that same algorithm during qualified construction/inspection. Changed package contents necessarily have new identities and require fresh displayed approval.

Structural validation does not establish that a ShapeTable corresponds to source bytes. Verify independently reproduces API-source claims and requires a trusted runtime-owned catalog verifier for runtime functions. Concrete operation/input/worker constraints are derived before downstream approval. Unknown metadata stays indeterminate; non-HTTP source families do not expand hosted execution. Public OpenUdon imports no private Udon/runtime module. Historical v2 inspection/approval/report reading and the separately pinned browser path remain through their own qualified interfaces; conversion never carries grants.

Free-form JSON data retains case-distinct map keys (for example id/ID) and lossless numeric text; exact duplicate keys remain refused.

Build(ctx, BuildOptions) accepts scope, YAML, JSON data and explicit source ID/kind/path/bytes. It copies bounded inputs before parsing, reproduces shapes through the exact accepted APItools M83 source, independently verifies them, and emits deterministic manifest/assessment/handoff bytes. No intent/HCL is generated. Assess rechecks exact input hashes and independently reproduces supplied shape claims, refusing stale/forged tables instead of trusting flags.

DecodeWorkflow admits one guarded JSON-compatible YAML tree (JSON is its subset), rejecting aliases, anchors, tags, duplicate keys, multiple documents, non-JSON numeric spellings and limits. It preserves json.Number values in the raw projection and restores open fields after legacy model decoding. The exact 17 published core UWS schemas from accepted M08 are embedded; tests compare all bytes to the selected module. Schema loading refuses external resources. Schema, semantics, executable/pending, entrypoint and strict-portability checks precede source-bound binding review. Partial schemas/expressions, runtime profiles, step-supplied values and work/effect bounds remain explicitly unproved. Output pointers use verified response schemas; open schemas do not prove a missing field impossible. Stable findings name the workflow artifact without parser excerpts or private values. Flow observations remain advisory.

Default literal-secret policy is the shared public credentialpolicy package; A32 retires the legacy internal adapters. Build's optional Private predicate applies the consuming host's known-secret policy to each input and emitted artifact, without loading secrets. Kinet still supplies short/encoded known-value detection and worker isolation. Credential readiness and current symbolic revisions are separately checked before execution authority. Historical browser artifact masking belongs to the consuming private host; A32 removes the legacy adapter.

The eight copied synthetic source fixtures retain their accepted APItools hashes, native protocols/selectors and 9,829-byte golden shape table. The fixture package has a pending step, so metadata coverage never becomes execution permission. Literal mismatch, pending, unsupported expression, unknown type/output, stale source, forged method, privacy, alias, duplicate, size, cancellation and snapshot independence are tested offline.

Verify(ctx, VerifyOptions) receives trusted scope/digest plus the complete explicit file map. It copies bounded bytes, requires canonical manifest/handoff, checks the closed inventory and all links, independently reproduces shapes and assessment, and retains private VerifiedPackage state. Snapshot/Assessment accessors copy returned values. CredentialNames is independently derived from known symbolic security alternatives of selected operations; unknown security stays unknown and supplies no invented slot. Forged names or changed canonical records refuse even when an attacker recomputes advertised artifact hashes.

DeriveExecutionPlan binds exact package/handoff/input identities, source/native selectors, every raw operation/step constraint, data identity and selected WorkerIdentity (binary, module closure and Udon runtime revision). Its supported concrete profile is one bounded sequence with unique operation invocations and already preceding dependencies. This retains Kinet's qualified managed-local and hosted broker profile; structural authoring remains reviewable and generic runtime support is not automatically new host permission. Unsupported controls, overrides, browser/non-HTTP leaves, ambiguity and incompatible review outcomes refuse. MetadataComplete remains explicit; a plan is review metadata, never a grant. CheckExecutionPlan reproduces the plan from the private snapshot.

Runtime source kind runtime-function is limited to one udon-runtime-functions catalog under sources/runtime-function/. Its exact source bytes and table must be independently reproduced by the trusted RuntimeVerifier supplied by the actual qualified consuming runtime. A producer string or verification flag is insufficient. Function plans additionally bind the catalog revision to WorkerIdentity.RuntimeRevision and require the trusted RuntimeAdmission adapter to the selected runtime's non-effectful Compile/CheckSupported path over independent supplied byte copies. The public SDK imports no private runtime and performs no function invocation. Native catalog type/domain/invocation gaps remain partial; admission is not a claim that those metadata schemas became complete. Catalog production and independent verification are value-free, and new hosted functions are not enabled here.

DeriveBrokerAuthority accepts a fresh identity/time seed and current symbolic credential revisions, deriving package/input/executor/ordered operations through the unchanged broker-authority v1 wire. It requires compatible review metadata, complete fixed HTTP shapes, one server and one fixed security alternative. The APItools native inventory independently distinguishes bearer from basic (the coarse shared security type alone cannot). Only known unscoped bearer and header/query API keys are admitted, with exact canonical placement and no extra credential names. Missing/stale revisions, altered policy/constraints, unsupported auth, OR alternatives, functions, unsafe origins and old populated seeds refuse. The host still enforces owner/current grant custody, revocation and destinations.

CheckExecutionApproval requires the trusted host's separately confirmed exact PlanSHA256, including the worker/closure, and a current exact-scope/package approval with explicit expiry. HTTP requires broker approval v2 and independent concrete-authority verification; pure functions retain approval v1 with native admission and no credentials. Existing approval wires are unchanged. Approval v1's package digest alone is insufficient for a changed worker. The SDK never reads a host grant store or treats package text as confirmation authority.

All default checks remain offline. Tampering/rehashed provenance/security, missing artifacts, stale sources/inputs/credential revisions, changed workers, unknown versions, private values, cancellation and zero-value proofs are tested. The synthetic runtime fixture is independently generated and verified by the published Udon M48 module; see testdata/runtime/README.md. A preliminary private adapter uses that ordinary exact runtime module with a temporary local SDK bootstrap and synthetic worker hashes. It performs no effects and is not final publication or worker qualification. P09.5 owns the clean ordinary published consumer/closure proof, while Kinet M47 owns actual worker isolation and pins.

InspectHistory explicitly selects either apitools.review-handoff.v2 or openudon.package.v3, requiring trusted scope/digest and the format's complete byte inventory. V2 delegates unchanged neutral trust inspection; v3 checks only closed canonical artifact/report identities. It returns read_only=true and source_proof=false, never VerifiedPackage, assessment success or approval. Unsupported/ambiguous versions, missing/changed artifacts, private content and cancelled reads refuse. V3 function history does not need a private runtime verifier; executable verification still does. No reader builds/converts a successor or silently selects an executor.

Historical handoff/approval/report/run-evidence APIs and their golden bytes remain unchanged. A v2 approval can still be inspected against its old package; it cannot authorize a new v3 identity even when scope is retained. Kinet W19 owns explicit confirmed successor publication, preserving old bytes/history, and fresh owner/worker/schedule authority. Kinet's independently selected browser image remains sha256:a88e1c3deb570350661d4522b9b0c8540e17b56f019695d61023c79a673b8e8d, source c2f161d762bc9f2217bbf0c34b00cdef64b0f7d0, binary 072cd762973804db7c72355b838be077b93d55463c9c331e877382b2db8297a4. P09.4 independently checked immutable image labels and an actual bounded network-none/read-only/rootless version probe, returning go1.26.6 and the exact clean revision. This is a pin/probe compatibility check, not new browser-capture qualification. Browser implementation/dependencies/locks and Kinet paths are unchanged; Stage 12 still owns their replacement/removal.

P09 assessment derives expression contracts from exact reviewed data and source-backed operation/step outputs through the public core parser. Literal input consts preserve numeric text; required response fields retain constraints. All supported body/pointer/dot/header reference spellings are checked, and missing/forward/cyclic output references block compatible review. Optional, nullable, open or unproved paths stay indeterminate; metadata does not invent a presence guarantee or resolve arbitrary expressions. A component/top-variable collision also stays indeterminate because the retained reference/lowerer precedence does not prove one value for the implementing runtime.

Response child projection does not discard restricting parent schema keywords. Unproved parent restrictions retain unknownness; a const is validated against its complete source schema through a closed loader before projection. Direct input/schema contradictions and contradictory response parents cannot acquire compatible review by reducing their contracts to a weaker child type.

Unsupported source security scheme symbols remain unchanged in exact source, shape and plan review metadata. Build/Assess/Verify mark their execution addressability indeterminate; the unchanged handoff wire inventories only addressable symbolic slots. Unknown security never becomes anonymous, and broker/credential/approval validation still refuses unbound unsupported symbols. Secret-shaped values remain refused under the existing privacy policy.

M99 source-backed expression inference follows the native output owner. $steps references require an explicit preceding step output; operation outputs do not populate step outputs. Active $outputs sees only lexically preceding, already-resolved outputs of its actual operation, step or workflow. Missing, current, forward and cyclic outputs cannot qualify metadata authority. A minimum-only large-integer source path remains indeterminate under accepted M09 bounded witness proof; a correctly owned original-dialect finite enum proves exact numeric propagation. OpenAPI 3.0 const stays unproved; 3.1 const is independently supported. Native execution evidence and Build/Verify/Broker results are qualified together; metadata compatibility grants no host authority.