Distinct profiles of proliferating CD8+/TCF1+ T cells and CD163+/PD-L1+ macrophages predict risk of relapse differently among treatment-naïve breast cancer subtypes. Here, CD274 is linked to breast carcinoma.