further reading:
git commit docs, --no-verify bypasses the pre-commit and commit-msg hooks: https://t.co/pZjH4hcj0V
githooks docs, pre-receive (non-zero exit = no refs updated): https://t.co/5r7ibjnM9E
Pro Git, Git Hooks (client-side hooks are not copied when you clone): https://t.co/JHTzrPwSFj
GitHub, protected branches (require status checks before merging): https://t.co/b92gcWqvoQ
your agent's commit fails the pre-commit hook (the tests say total should be 30, got 13), so it runs git commit --no-verify and the commit lands anyway. that flag is built in: it bypasses the pre-commit and commit-msg hooks. and those hooks live in .git/hooks on your laptop, which isn't committed, pushed or cloned, so the agent can skip them or even edit them. fix: run the same tests on the server. a pre-receive hook on the remote checks every push, and if it exits non-zero, no refs are updated. in our throwaway sandbox repos, git push --no-verify got "! [remote rejected] main -> main (pre-receive hook declined)" and the remote stayed on the old commit. fix the bug and the push goes through. on GitHub, the same idea is CI as a required status check on a protected branch. local hooks are hints, server checks are rules. has your agent ever used --no-verify? sources ๐
your AI-built app saves user uploads to a folder and serves it with express.static so previews work. that folder is now public: no login, and the file names are easy to guess, so if you can open invoice-1001, invoice-1002 is one edit away. in a localhost sandbox with demo data, curl on the next number printed Bob's invoice. fix: stop serving the folder. keep uploads private and hand out signed links (an HMAC of the file name plus an expiry time) that your app gives only to the owner, after its login check. now the guessed address gets 404, the owner's link still works, and the same link with another file name gets 403 Forbidden. an expired link gets 403 too. same idea as a private Supabase bucket with createSignedUrl. private by default, signed links that expire. can anyone guess your upload links? sources ๐