pub fn write_report(report: &PipelineReport, path: &Path) -> Result<()>
Writes the pipeline report to a JSON file
Returns error if file creation or JSON serialization fails