# Renamed for workflow clarity # ...existing code from ci_extraction.R...