It seems like a very thorough prompt. I wonder if the LLM (which one are you using?) just had too much in it's context window. I use Windsurf and I only add the couple files I need to modify to the context so that it can be focused on the few files that are important.