Where is puppetmaster: pulled from in Puppet ENC YAML

Problem:
The puppetmaster parameter has the wrong value, causing the puppet modules who use it to assign the incorrect puppet server. This is inconsistent, and happens on a subset of Host Groups. The value that is being populated into the puppetmaster does not appear anywhere in the Location, and is explicitly disallowed within the Location/Organization it’s showing up in.

parameters:
foreman_config_groups:
puppetmaster: puppet.WRONG.com

Expected outcome:

The puppetmaster defined in the YAML should match the closest defined value, Host → HostGroup

Foreman and Proxy versions:

3.7.0 / (Proxy isn’t involved)

Foreman and Proxy plugin versions:

3.7.0 Foreman 6.0.0 Puppet Plugin version

Distribution and version:

Rocky8

Other relevant data: