It might be a completely new project tho. It will be really large with lots of rules, quick fixes, etc. (like Roslynator).
I currently don't know how to determine at compile time where cache is not invalidated, this might require analysis of code flow, integration with EF change tracking (again at compile time change tracker does not even exist yet).
For now what can be done is configuration analysis and validation, like if FailSafe time is less than Duration.
I'm opening this issue as idea for some unknown future.