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
Decide How to Close the Nested-Timeout False Deny in the Signal-0 Check (#1634) #2029
The fix for #1634 (handoff #1983, branch feature/auto-1634, no pull request yet) applied #1985's answer, and the one further strict review pass that answer asked for found one more introduced finding. The edit budget was already spent before #1985, so editing stopped here. How should the lane close it?
The open finding
_timeout_bounds_wrapper in host-setup/agent-safety/claude/gh-write-guard.py reads only the first timeout in a command. Once that one sends signal 0 with no kill-after, the check now returns "no bound" without looking at the command it runs. So timeout -s 0 900 timeout 800 bash -c 'until [ -f x ]; do sleep 60; done' is denied, although the inner timeout 800 sends SIGTERM and does bound the loop. The base branch allowed that command, reading the outer timeout as the bound. This is a false deny, which is the safe direction, on a rare shape.
The same pass found one pre-existing defect, filed as #2028, and it blocks nothing here.
Options
Recommended: fix and continue. Where the outer timeout sends signal 0 with no kill-after, go on to judge the command it runs, so a nested timeout that is a bound still counts. Add an allow row for the nested shape and a deny row for a nested timeout that also sends signal 0, run one more strict pass, then open the pull request to develop. The parked work keeps everything it has and gains one small change.
Accept the false deny. Declare the nested shape in host-setup/agent-safety/README.md requirement 7's limitations as a false deny, run one more strict pass over that wording, then open the pull request. Less code, and the one wrapped-twice spelling stays denied.
Open the pull request as it stands and file the nested shape as a follow-up issue. No further edit on this branch, and the false deny ships until the follow-up lands.
Answered by the maintainer: option 1, fix and continue. Where the outer timeout sends signal 0 with no kill-after, judge the command it runs, add the allow and deny rows, run one more strict pass, then open the pull request.
Activity
ptr727 commentedon Sep 29, 2026
Answered by the maintainer: option 1, fix and continue. Where the outer timeout sends signal 0 with no kill-after, judge the command it runs, add the allow and deny rows, run one more strict pass, then open the pull request.
Bound a Nested timeout Only Behind Signal-0 Outer Ones