Skip to content

Describe the Write Guard's --prune, Mirror Delete, heads/ Destination, and @{push} Readings in the Agent-Safety READMEs #3021

Closed

Description

@ptr727

Context

The pull request closing #3005, #3007, and #2973 changes what the write guard reads, and edits only gh-write-guard.py. This issue carries the README text that change owes.

What the READMEs Now Leave Out or Say Wrongly

  • host-setup/agent-safety/README.md requirement 4, and the matching sentence in host-setup/agent-safety/claude/README.md, say "A push's force, delete, all, and mirror options are read as git reads them". The push check now also reads --prune, whole or cut short. It adds a delete to every branch a pattern refspec, a :, --all, or a bare push may match. --mirror is now read as a delete as well as a force.
  • Neither README describes destination completion. A destination outside refs/ starting heads/, such as HEAD:heads/develop or :heads/develop, is now read as the branch after heads/ as well as by its literal name, since git completes it under refs/.
  • host-setup/agent-safety/README.md says "A remote-tracking push target such as origin/feature/x is checked with its remote dropped." The full @{push} name is now read. Each remote name git remote lists that prefixes it is stripped, and the name is also read whole and with its first segment dropped.

Possible Direction

Extend the requirement 4 push-option sentence in both READMEs with the --prune and --mirror readings and the heads/ completion, and replace the remote-tracking sentence in the root README with the remote-name reading.

Activity

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

    @ptr727
    OwnerAuthor

    Claimed for an engineering-track lane (handoff #3040 resume). Branch: feature/guard-readme-readings-3021. Predicted file set: host-setup/agent-safety/README.md, host-setup/agent-safety/claude/README.md.

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