1.8.4 is a single fix, and it is the kind of fix that only exists because someone noticed a rule that was being applied backwards.
The rule came in at 1.7.3: run_bash requires elevated=true before it will invoke sudo. The
purpose is that a model asking for root is an explicit, visible act. The implementation treated the
flag as "this command runs elevated", so a command that said elevated=true and contained no sudo
at all was run as root anyway. The flag is a gate on sudo. It is not a request for privilege.
That is a small logic inversion with a large consequence: a tool call marked elevated is a tool call the interface shows you as needing root, and a policy that approves elevated calls approves it. The command then runs as root without ever asking for it.
The fix is one condition: elevated handling fires when the command actually invokes sudo.
Worth recording for the same reason the sudo password file was made 0600 three releases earlier,
and for the reason 1.9.0 keeps working on this path: Pengy runs commands as you, and the safety story
of a tool like this is not a slogan about safety, it is a list of specific rules, each with a
condition, each of which has to be exactly right.