Rating agency
An organisation that assigns credit ratings to issuers and issues.
When the metric lies
A rating is an opinion about default probability, not a guarantee. It changes with a lag, and usually after the market has already seen the same thing.