I've been searching for something similar I saw years ago. It was a python library that would remove "heretical" code or something like that. Any error would be "eradicated".

It was funny! There was a religious or medieval theme or something. I can never find it...

Vigil, the eternal morally vigilant programming language:

https://github.com/munificent/vigil