Waybill
Waybill receives and verifies update artifacts using authenticated metadata supplied by the caller. The initial API is unpublished and under validation.
1 API
download-artifact! accepts an HTTPS URL and destination. receive-artifact! accepts an input port and destination. Both require #:size, #:sha256, and #:maximum-bytes. Optional keywords include #:validate, #:on-progress, #:progress-every, #:stall-timeout-seconds, and #:total-timeout-seconds. Both return the destination on success. The receive operation does not close the caller’s input port. The progress interval is a positive byte count or false for the default (approximately one percent of the signed artifact size, at least one byte). Progress reports zero initially and the final byte count on completion.
verify-artifact! accepts a path, expected size and hexadecimal SHA-256, and optional #:validate. The validation callback receives the file path; returning false or raising rejects the artifact. The callback must not modify the file. Download and receive publish only after verification.
2 Responsibility
The caller authenticates feed bytes and chooses artifacts. Products and platform adapters own installation, restart and recovery.
3 Update channels
waybill/channel exports valid-update-channel? and channel-accepts-version?. The former returns a boolean for the symbols stable, beta, and dev. The latter validates the channel and SemVer string, then evaluates the existing Rivet/Glaze channel policy. Stable accepts releases, beta also accepts beta prerelease identifiers, and dev accepts all valid versions. Build metadata does not affect channel eligibility. The caller still chooses the desired channel and authenticates feed metadata before using the policy. SemVer validation remains in Keel.