bug#81520: Add pre-receive hook to Savannah to reject LLM-encumbered commits
Eli Zaretskii <[email protected]> Fri, 31 Jul 2026 10:46:42 +0300
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 30 Jul 2026 17:06:57 -0700 > Cc: [email protected] > From: Jim Porter <[email protected]> > > On 7/30/2026 10:36 AM, Sean Whitton wrote: > > We explicitly permit it in CONTRIBUTE. > > > > So yeah, let's match on e-mail addresses. > > Ok, here's a patch series to do this locally. You rush to post a patch too quickly, sorry. When Sean and myself disagree, it is better to leave time to both of us to respond. In this case, I'm against this method, so let's please find better alternatives. > After thinking over my options here, a pre-push hook seemed better than > commit-msg for two reasons: Pre-push hooks are an annoyance, because usually a push is supposed to be a step that almost always succeeds. Going back to commits and redoing them is a terrible nuisance. Moreover, in many cases I push more than one commit, in which case rejection of one that is not the last one is an even larger nuisance. > 2. LLM agents tend to try all possibilities - even bad ones[1] - to > resolve failed commands. If we checked this in the commit-msg hook, an > LLM that vibecoded a patch might well see the error from the hook and > "fix" the problem by simply deleting the attribution, even without the > user being aware. You seem to think about an LLM agent pushing commits? How is that possible if the agent doesn't have write access?