Question
Assuming the #1548 is accepted, then if the right directory exists in cache, then we know it is a complete copy, so we don't need to check all the files (or you could if you wanted to verify cache, but that is a different operation really). So if the directory exists, it is cached.
You could add is_pipeline_cached_and_verified if you want. That could check sizes and everything to try and see that there is no corruption.
But is_pipeline_cached should be near instantaneous, just doing local cache access.
By the way, i love these additions.