Destructive command guard
Blocks rm -rf, force-push, pipe-to-shell, drop table before the command runs — not a warning after it already ran.
rm -rf → block
git push -f → block
curl | bash → blockAI works. You hold authority.
SAFETY / GUARDRAILS
From blocking a plain destructive command to a supervisor running outside the AI session with authority to stop the whole project — these are real, active blocking layers, not a list of safety ideas.
THE BLOCKING LAYERS
Blocks rm -rf, force-push, pipe-to-shell, drop table before the command runs — not a warning after it already ran.
rm -rf → block
git push -f → block
curl | bash → blockAn action touching many files or a sensitive area needs explicit approval before it executes — never runs through silently.
> 50 files in 1 command
→ needs explicit confirmationA repeatedly failing tool gets temporarily locked out (60s → 300s → 1800s), preventing an infinite retry loop from burning tokens.
CLOSED → OPEN → HALF_OPEN → CLOSEDGIÁM THỊ
An in-chat hook only enforces a shared safety state — the hook itself holds no HALT authority. That authority belongs only to Giám Thị, a process running independently at the OS level, checking periodically and able to lock the entire project when it detects an unreviewed change to a sensitive area.
INFRASTRUCTURE INTEGRITY
Files under core/rules/, core/hooks/, core/gates/ are pinned by SHA-256 in a dedicated manifest. Editing a file in that zone without updating the manifest — exactly what happened for real during this project's own development — makes Giám Thị HALT at the very next check.
YANA PRINCIPLE
Giám Thị doesn't ask an agent's opinion before it HALTs — that's exactly why it works.