To catch most cases we can do it just by implementing some simple check in force_have_afm_details. We'd pass in the path to somewhere that needs writing to. This works as the vast majority of AFM processes are either re-entrant, or work only under one folder.
For the _multi_action/_addon_install/_addon_uninstall functions, we must pre-check with a list of files being removed.
For the _multi_action/_addon_install/_addon_uninstall functions, we must pre-check with a list of files being removed.