Skip to content

gate: zsh runs a brace group with no space after the open brace, which the subagent guard does not see as a command start #318

Closed

Description

@wasikarn

Found by the #306 differential fuzz (3 of its 46 remaining false-allows; pre-existing).

zsh runs a brace group written with no space after the open brace (git stash directly after it, then a semicolon and a close brace). bash, dash and ksh do not treat that as a group, so the guard's command-start anchor does not either. The Bash tool on this machine runs zsh, so this is a live subagent-guard bypass for plain stash, reset and clean today. Fix direction: accept an open brace directly followed by a command word as a command start (zsh reading; any deny wins), and fuzz it against zsh.

Activity

  1. added a commit that references this issue on Oct 2, 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions