> "not just "does this file exist" but "does it still match the actual codebase.""
Completely agree that this is central, and I think thinking about this as a CI problem makes a lot of sense.
Yes one of our background agent is tasked with this exactly. I think you could do this via CI as well. We handle it via hooks and background agents but the goal is the same.