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, #:stall-timeout-seconds, and #:total-timeout-seconds. Both return the destination on success. The receive operation does not close the caller’s input port.
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.