Charlie Sharpsteen
12/03/2025, 4:11 PMresources[] list produced by the compiler is also incomplete as the agent can generate additional resources (e.g. recursive file resources, or purge resources).
The default sort order also changed between Puppet 3 and Puppet 4. It may have changed again between Puppet 4 and modern versions, as a decade of time and change has passed, but you'd have to do some research to track down if that happened. But, "default" sort order should be of no consequence in normal operation. If a change in the default does cause an impact, then there was a missing require or other ordering relationship.