I'm not familiar with Bazel at all so this might be obvious, but does Bazel check that the files listed in the BUILD file are the "right ones" (ex. through a checksum), and if so, is this always enforced (that is, this behavior cannot be disabled)?
Bazel is really sophisticated and I'd be lying if I said I understood it well, but I have spent time looking at it.