An email fallback that could cross tenants
The first resolver fell back to email-domain matching whenever the tenant id didn’t match. A caller from an unrelated tenant with an address at a customer’s domain would have been served that customer’s data.
Tenant present but unknown now means refuse, with no fallback. Rows with no index or agent are refused as well. Eight xUnit tests lock the rules in.