The guard hook only sees shell commands, so file edits to live systems (like the local kubeconfig) need a written rule.