logoalt Hacker News

monkpityesterday at 10:12 PM3 repliesview on HN

Hooks only keep honest people honest :) and an LLM will happily clobber a tag and skip hooks while the user just spams “accept”.


Replies

venturecrueltytoday at 5:38 AM

Can't solve culture problems with technology, but we all know that by now, right?

mrocheyesterday at 10:39 PM

Luckily commonly used forges for collaboration have the ability to make tags immutable. Any repository where multiple people collaborate on a project should have that feature enabled by default. I'm still waiting for the day where tags are immutable by default with no option exposed to change it.

I'm sure that would cause problems for some, but transitive labels already exist in Git: branches.

show 3 replies
Denvercoder9yesterday at 11:48 PM

That's true for local hooks, but neither a dishonest person nor an LLM can bypass a pre-receive hook on the server (as long as they don't have admin access).