Re:Shift from passive documentation to active enforcement
by iamalizaidi on Saturday February 28, 2026 @08:03PM
(#47202460)
This is really cool, had no idea someone had solved a similar problem this way. The checksum idea is genius!!
My script only detects whether a checksum for a segment of code doesn't match, using directives placed in the code (not a separate file as you've done). For example:
Also, my script knows nothing about pull requests and is basically a linter. So it's definitely not as capable.[1] https://github.com/btrettel/flt/blob/main/py/tripwire.py
***
Edit: I just checked my notes. I might have got the idea for my script from this earlier Hacker News comment: https://news.ycombinator.com/item?id=25423514