Skip to content

Describe the Write Guard's New Push Option, Pattern, List Expansion, and --admin Readings in the Agent-Safety READMEs #3009

Closed

Description

@ptr727

Context

The pull request for #2957 changes what the write guard reads, and edits only gh-write-guard.py, since another lane was editing the agent-safety READMEs at the same time. This issue carries the README text that change owes.

What the READMEs Now Say Wrongly or Leave Out

  • host-setup/agent-safety/README.md requirement 4, and the matching sentence in host-setup/agent-safety/claude/README.md, say the explicit-bypass flags are read "and not inside a quoted eval argument". After that change, gh pr merge --admin is read inside one, under the eval reading budget, and a quoted "--admin" the shell passes as a flag is read too. --no-verify, a core.hooksPath override, and an include override are still not read inside an eval argument.
  • The push check now reads a short-option cluster (-uf, -ud) for its force or delete, a long option cut short (--del, --al, --mirr) as the option it starts, and --branches as --all. A refspec pattern whose destination can still reach refs/heads/, such as refs/*:refs/*, is read as matching every branch, the way a lone : is.
  • A double-quoted list expansion ("$@", "${a[@]}") or an indirect "${!name}" as a -C, --git-dir, or --work-tree value, or among a commit's arguments, now fails closed, where Fail Closed on Split Directory Values and Hidden Git Command Words in the Write Guard #2994 let a double-quoted value through.

Possible Direction

Update the requirement 4 sentence in both READMEs to name the --admin exception, and add the push and directory-value readings wherever the README lists what the push check reads.

Activity

  1. added
    documentation
    on Oct 14, 2026
  2. ptr727 commented on Oct 14, 2026

    @ptr727
    OwnerAuthor

    Claim (engineering round 25): branch feature/3009-guard-readme-readings, files host-setup/agent-safety/README.md and host-setup/agent-safety/claude/README.md.

  3. added a commit that references this issue on Oct 15, 2026
    0f20899
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions