pub fn largest_asset_fits(
largest_asset: u64,
available: u64,
headroom_margin: u64,
) -> boolExpand description
The pure minimum-headroom verdict for a streaming import: streaming bounds peak disk to the in-flight window, but a single asset must still fully materialize locally (original + derivatives + metadata) before its upload and release, so the largest single asset in the plan must fit within available space minus the headroom margin. When even one asset cannot fit, streaming cannot proceed and the plan surfaces a hard error rather than stall mid-stream — streaming cannot make a single file smaller than the disk.