The ls -la trap is the detail I will remember. Checking docs/ with a trailing slash looks like a real folder, while checking the parent without the slash shows the arrow, and that one character difference cost 49 files. Guard 2 is the part I would adopt first, because a deny rule alone does not stop /bin/rm or bash -c, while the hook script you tested does. Your honesty about what the script does not catch, rm docs/a.md and mv, makes the whole piece more useful than a simple checklist.