But qrexec-policy-graph shows that a Workstation anon-whonix-example that has a separate Gateway sys-whonix-example uses sys-whonix for whonix.NewStatus.
Maybe Qubes should tag Workstations according to gateway, this makes much easier to enforce the policies via @tag:something.
For example, Gateway is created, names sys-whonix-test, receives tag anon-gateway-sys-whonix-test. Every Workstation that assigns the above Gateway to be its NetVM will receive the tag anon-vm-gateway-sys-whonix-test.
Of course the tags should have a better name, but putting the name according to the domain name makes it easier to locate.
Qubes already puts tags anon-vm and anon-gateway when the AppVMs are created anyway.
An additional tag perhaps. The existing ones are/might be re-used for other purposes already. Or some other qrexec feature. “Qrexec only to the Net Qube I am connected to.”
In any case, this is too complex. I cannot even foresee when this would happen unless contributed by a volunteer. Would have to be discussed upstream at Qubes.