Skip to main content

validate_serving_profile

Function validate_serving_profile 

Source
pub fn validate_serving_profile(bundle: &Bundle) -> Result<()>
Expand description

Validate that a bundle matches the serving profile this responder supports: a full, uncompressed bundle (design §S3).

The ahu format can represent delta bundles, tombstones, Zstd compression, and delta-chain metadata; this responder implements none of the runtime machinery those require (no delta overlays, no decompression, no chain tracking). Admission therefore rejects them before any durable state changes. A valid seal does not change this: use authenticate_bundle to inspect an authenticated delta, and materialize deltas into a full, uncompressed bundle (ahu apply) before serving them.