Skip to content

Decide How to Close the Nested-Timeout False Deny in the Signal-0 Check (#1634) #2029

Closed

Description

@ptr727

Question

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

  1. 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.
  2. 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.
  3. 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.

Blocks

Activity

  1. added
    agents
    decision
    on Sep 29, 2026
  2. ptr727 commented on Sep 29, 2026

    @ptr727
    OwnerAuthor

    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.

  3. removed
    decision
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agents

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions