The deploy gate runs on a self-hosted runner under an unprivileged user, so the sudo apt-get install and sudo sysctl steps fail. Both are host provisioning: ripgrep is installed on the runner host and the userns restriction belongs in sysctl.d. The namespace check stays, without sudo.