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
Allow a Bounded Wrapper Inside a function-Keyword Definition #2314
The wait-loop check in host-setup/agent-safety/claude/gh-write-guard.py denies a bounded wrapper inside a function defined with the function keyword and no (). Constructed example, denied although the timeout bounds the loop:
functionf { timeout 900 bash -c 'until [ -f x ]; do sleep 60; done'; }
The walk back from the wrapper reaches function, which is neither a command prefix nor timeout, so the run reads as unbounded. README requirement 7 does not declare this false deny. The f() { ... } form is allowed.
Done looks like
The function name { opener ends the walk the way a separator does, with a self-test row for the shape above, or README requirement 7 declares the false deny.
Found by a local strict review pass on #2117. It predates that pull request.
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.