You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Guard's eval Reading Ends Its Arguments at a Parenthesis #2362
The guard's eval reading (#2080) ends an eval's arguments at any unquoted ( or ) token. Among an eval's words that is usually a command substitution or a process substitution, which is one of the arguments rather than the end of the command, so the loop after it is never read.
Reproduce (constructed)
Allowed by the guard, and loops under timeout 3 bash -c until the timeout kills it:
eval$(true)'until false; do sleep 1; done'
Done looks like
An eval's arguments end only at ;, &, |, or a newline, alone or fused to another operator, never at a parenthesis. The command above is denied, and a self-test row pins it.
Found by the third local strict review of the #2080 branch and split out per decision #2208. Develop allows this command too, since it reads no eval argument at all.
Declined per #2517, approved by the maintainer, under GOVERNANCE.md "Trust Boundaries and Hardening Effort": The guard backstops an agent's own mistakes, and this is a command shape built to defeat it rather than one an agent session writes, so a miss does not realistically occur. See #2517 for the per-issue reason.
Activity
ptr727 commentedon Oct 8, 2026
Declined per #2517, approved by the maintainer, under GOVERNANCE.md "Trust Boundaries and Hardening Effort": The guard backstops an agent's own mistakes, and this is a command shape built to defeat it rather than one an agent session writes, so a miss does not realistically occur. See #2517 for the per-issue reason.