Pinning Matplotlib to the Agg Backend: A Headless Rendering Design
Pin matplotlib to the Agg backend so chart generation works on CI runners and display-less containers, with verification steps, memory limits, and the cases where Agg is the wrong tool.