Describe how you would implement a script to fetch and process data from active workplaces for Clipboard Health, covering data sources, reliability, and transformation steps.
Implement process_workplace_sources(sources). Each source contains an available flag and workplace records. Ignore unavailable sources, keep the newest record for each workplace ID using ISO timestamp ordering, retain records whose latest status is active, trim names, and return records sorted by ID. The output record must contain only id, normalized name, and headcount.
def process_workplace_sources(sources):