Skip to content

Open the Guard's Context Scan Pull Request Despite One False Deny #2045

Closed

Description

@ptr727

May handoff #2041 open the pull request from feature/auto-1910 now? Its fourth local review pass found no hiding regression, but it found one introduced false deny.

Context

Branch feature/auto-1910 is pushed at 656b969, with no pull request yet. Develop is merged in. Commit 656b969 follows the answer on #2023 (option 1). _redirects_stdin no longer takes a shell-operator token as a redirect's target, and a redirect with no target bounds nothing. The #2023 command is a selftest case, and so is a dangling done <. A mutation of either half fails a case. The selftest, ruff, mypy, and the commit hooks pass.

Per #2023, this pass decides whether the pull request opens. It found no develop-deny, branch-allow case that bash would run, and it traced every consumer of the joined tokens to show why. It also ran differential fuzzing of classify against develop, with no crash or timeout. It found one introduced finding, a false deny:

  • _operator_lex strips quotes, so a quoted operator used as a redirect target arrives as a bare operator token. A constructed command, while read l; do sleep 30; done < ";", reads from a file literally named ;, so its loop is bounded. Develop allows it, and the branch now denies it. This is on the primary path, not only the fallback.

A file named after a shell operator is very unusual, so the practical cost is close to nothing.

Options

  1. Recommended: accept the false deny and open the pull request. The worker opens it without a closing line for Read a Multi-Line Quote Whole in the Guard's Token Fallback #1910, which stays open per Decide How the Guard's Context Scan for #1910 Proceeds After Review Found Hiding Regressions #1960, and drives it to develop. The false deny goes into a new issue beside A Substitution Nested in an Opaque Word Hides a Command From the Guard's Token Fallback #1958 and Shlex Parsing Successfully but Wrongly Hides a Command From the Guard's Context Scan #1959.
  2. Refuse only the joining newline token as a target. The worker changes the guard to reject "\n" alone instead of every operator, which restores develop's allow for < ";", and adds that command as a selftest case. It then runs a fifth pass, and opens the pull request only if that pass finds nothing introduced. A quoted newline as a file name would still be a false deny.
  3. Stop here. Close the branch unmerged, and Read a Multi-Line Quote Whole in the Guard's Token Fallback #1910 stays open.

Effect on the parked work

Option 1 adds no commit. Option 2 adds one small commit and a review pass. Option 3 deletes the branch.

Blocks: handoff #2041, and the pull request from feature/auto-1910 that would carry #1910's scan.

Activity

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

    @ptr727
    OwnerAuthor

    Answered by the maintainer on 2026-09-29: option 1, accept the false deny and open the pull request. The false deny goes into a new issue beside #1958 and #1959.

  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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions