pub fn filter_announces_by_tenant<'a, I>(names: I, tenant: &str) -> Vec<&'a str>where
I: IntoIterator<Item = &'a str>,Expand description
Pure per-tenant announce filter — the independently-testable core of the scoping behaviour.
Given a set of broadcast/track names and a tenant, returns only the names
belonging to that tenant (i.e. whose first {tenant} segment equals
tenant). This is what a peer in tenant is permitted to enumerate; names
from other tenants are filtered out so cross-tenant broadcast-name
enumeration is impossible.
Matching is segment-exact on the tenant (alice does not match alicent).