pub fn write_project_context_ir( project_root: &Path, ir: &ContextIrV1, filename: Option<&str>, ) -> Result<PathBuf, String>