In the latest chef-client, the recipes node attribute includes recipes executed via include_recipe. Of course, chef-client doesn’t know the future, so if you look at this while chef-client is compiling your recipes, there could be a recipe that will be loaded later but doesn’t appear in that attribute.

In the latest chef-client, the recipes node attribute includes
recipes executed via include_recipe. Of course, chef-client doesn’t
know the future, so if you look at this while chef-client is
compiling your recipes, there could be a recipe that will be loaded
later but doesn’t appear in that attribute.

But a recipe can fetch the resulting recipes-list from the last run with
a search for itself on the chef server. Doesn’t work with chef-solo
though…