You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Judge a Push to Another Remote Against That Remote's Repository in the Write Guard #3048
Found while closing the #2943 item about the directory a push runs in. Develop's guard shares it.
A Push to Another Remote Is Judged Against the Origin's Rules
_check_push_bypass reads branch rules from the checkout's origin remote, whatever remote the push names. With a second remote upstream pointing at another repository, git push upstream develop is judged against the origin's develop. Where the origin's develop carries no pull_request rule and the other repository's does, the guard allows the push.
The same holds for a push naming a URL or a path instead of a remote, and for a bare push whose branch pushes to a pushRemote or remote.pushDefault other than origin.
Possible Direction
Resolve the remote each push names, or the one a bare push uses, to its URL, and read the rules of the repository that URL names as well as the origin's. Where the remote cannot be resolved to a repository, treat its rules as undetermined, which denies only a protected default.
Claimed for an engineering-track lane (handoff #3312 resume). Branch: feature/guard-push-targets-3048. Predicted file set: all of host-setup/agent-safety/, READMEs included, with the edits expected in host-setup/agent-safety/claude/gh-write-guard.py, host-setup/agent-safety/claude/test_install.py, host-setup/agent-safety/README.md, and host-setup/agent-safety/claude/README.md. This claim covers #3048, #3053, and #2943's push-target items (persisted push config, the repository a -C/cd/sudo -D push runs in, a pattern-matched branch under a non-default ruleset, and cd -/cd ~-).
Activity
Read a Bare Push's Destination From Branch Config, a Persisted Mirror…
ptr727 commentedon Oct 21, 2026
Claimed for an engineering-track lane (handoff #3312 resume). Branch:
feature/guard-push-targets-3048. Predicted file set: all ofhost-setup/agent-safety/, READMEs included, with the edits expected inhost-setup/agent-safety/claude/gh-write-guard.py,host-setup/agent-safety/claude/test_install.py,host-setup/agent-safety/README.md, andhost-setup/agent-safety/claude/README.md. This claim covers #3048, #3053, and #2943's push-target items (persisted push config, the repository a-C/cd/sudo -Dpush runs in, a pattern-matched branch under a non-default ruleset, andcd -/cd ~-).Judge a Push Against the Repository and Branches It Actually Writes (#…
Promote the Write Guard Push Target Reads, Self-Test Isolation, and S…