pub fn publish_bundle(
root: &Path,
sidecar: &[u8; 768],
payload: &[u8],
receipt: &SidecarReceipt,
byte_budget: usize,
authority: &mut impl CustodyAuthority,
) -> Result<PublishedBundle, CustodyError>Expand description
Publish a single receipt-addressed bundle without replacing an existing destination. Other links or writers may still modify the underlying file. Host must hold an exclusive lease and enforce local-root/aggregate-budget policy throughout. A same-filesystem hard-link create is used; no replacement is attempted. Temporary cleanup is best effort and crash cleanup is external.