Run 1 shows the limit of matching command strings: once the agent can use sh -c, a script file, a git alias or a Python subprocess, there's always another spelling of git push. Wildcards help, but the agent only has to be creative once, and it isn't even trying to evade you, it's just being efficient.
So I'd gate capability rather than text:
- Your last point, "the token decides what's possible", runs straight into the public_repo refusal. Until the connection accepts a narrower scope, the repo itself can still say no: a ruleset on main that blocks direct pushes and requires a pull request, with an empty bypass list so it also binds the owner's token, makes a push that slips past the rule fail on GitHub's side.
- Expose push as its own tool that takes structured arguments (remote, branch) and requires approval. Then the approval binds to the action, not to one exact command string, and a retry after a failed push doesn't need a new prompt for a different spelling.
- Treat "did not answer" as no. The 7 ms non-answer in run 1, after which the agent picked a neutral identity and carried on, is the case to block: a missing answer should stop that step, not choose a default.