pub fn replace_artifact_with_tail( paths: &TaskPaths, artifact: TaskArtifact, retain_bytes: u64, ) -> Result<u64>