Repository navigation
Push rule by owning chief: a former chief's push of a task branch refuses in both hooks (T822) - #459
Merged
Merged
Conversation
…uses in both hooks (T822) In a shared logbook, the Claude hook and the Codex gate refuse a git push (and sage-pr create) of a branch that a live task of another chief uses, by its branch= or by a run on it. One owner test (liveBar) serves the merge check and the new branchBar of the state tool; the push policy takes the bar as an owner callback. A legacy logbook keeps today's rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ith a plain refusal (T822) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… holds git, as /usr/bin does on Ubuntu (T822) pushWorld took every folder that holds a gh off the hooks' PATH. On the Ubuntu runner gh and git are both in /usr/bin, so the hooks could not run git and refused the owning chief's push. git now goes into the fake's bin folder first, and the world proves that git runs on that PATH. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Takeover, PR B (T822). After a takeover (PR A, #448), a former chief or its agent could still push to the task's branch. This PR closes that in a shared logbook. It is hardening: main was already safe (create is fast-forward only, and the merge must match the head).
What changes
liveBar: why a chief does not land or push a live task's work, and an ended task bars nothing. The merge check uses it (its behaviour is the same). The newbranchBar(project, branch, session)uses it for a push.branch=and the--branchof its runs. A branch that no task uses passes.owner(dir, branch)callback. The Claude hook and the Codex gate each give it the state tool'sbranchBarwith the session's chief. A push in the push form (also--delete) of a branch that a live task of another chief uses is refused. The refusal names the task, the owning chief and the takeover gate (gate replace <T> --to C<n>in Claude, thegate_replacetool in Codex). A throw (for example an event with no session id) refuses too.sage-pr create. It pushes the task's branch, so the Claude hook appliesbranchBarto that branch after the existing task owner check.changes/T822.md, and one row in the shared logbook table of the guide.Tests (scripts/chiefs.test.mjs)
sage-pr createis refused while a live task of another chief (Codex or Claude) uses the branch, and passes after that task ends.🤖 Generated with Claude Code