the last few months it has happened a few times that my bot unwantingly removed a large part of a long page. I still don't know
If it's your bot, presumably you could get it to do a diff between the before and after of its change, and write that to a log somewhere...?
Steve