Is there any reason why cf-agent could not also use this function (I presume it is only used by cf-promises at the moment)? cf-agent currently uses ``WritePromisesValidatedFileToMasterfiles()`` (see https://github.com/tzz/core/blob/bugfix/redmine4650-tag-directory-from-checksum/libpromises/generic_agent.c#L237).