Obtaining the name of a component in model rules

I ran into another issue, whilst trying an alternative solution - https://discuss.gradle.org/t/why-does-this-rule-not-get-called/17810