As I said, calibre chooses how to name files using whatever algorithm is in the release when the file is created. The algorithm is complex, taking into consideration lengths of the title, authors, path to library, and library ID. You cannot turn off calibre's actions when metadata changes. Others have tried to reproduce calibre's naming with templates. To my knowledge, during 15 years none have been successful.
Your only chance is to use the calibre-generated name, available via format_paths(). Or