The files
Run it
Output
What the checks found
Ticket T-1002 is from Sam Lee, and the CRM has two customers of that name. The agent refunds the first match without checking the email on the ticket, soeffects_match_expected fails: the case expects the refund to go to the other customer. The failure cluster names the error kind (wrong_customer), the station (send), the check, and the tool.
Ticket T-1005 also names a shared name, but its customer happens to be the first match: it passes. That is why the stratum, not the case, is the unit to read: “customers who share a name” fails on one of its two cases here, and the strata weights say how often such tickets arrive.
Ticket T-1004 asks for 180.00, over the limit: the agent escalates, as the case expects.
Fix it
Match the customer by the email on the ticket, not by name alone:Output