HFCrossEncoderReranker.rank(..., return_score=True) returned reranked documents sorted by descending score, but the accompanying score array stayed in the original input order. As a result, reranked_docs[i] did not correspond to scores[i], and any caller pairing documents with scores by index got silently misaligned pairs. The bug was reported with a minimal reproduction and fixed upstream.