Repository navigation
gate: a tracker write needs no lease - #32
Merged
Merged
Conversation
The lease protects the holder's code. ghissue --new, a comment, --close and --reopen touch no file of theirs, yet a hook refused `ghissue --new` for 30+ minutes on 2026-11-18 because another session held the repository. Those ghissue forms are now allowed with or without a claim, and when another session holds one the gate prints a one-line notice naming the holder (stderr and additionalContext, no permission decision). Everything else stays refused: gitpush, ghmerge, ghrelease, ghpr, ghrun, ghrel, and ghissue --edit/--delete/ --comment or any flag the classifier does not know (fail closed). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
agentsync gate --hookno longer refuses a TRACKER write into a repository another session holds:ghissuewith--new, a comment,--closeor--reopen(and--dry-runplus the text-carrying flags). It prints a one-line notice naming the holder (stderr, andadditionalContextwith no permission decision).Why
The lease protects the holder's code. On 2026-11-18 21:55
ghissue go-fleettools/fleettools --new ...was refused for 30+ minutes although opening an issue cannot collide with their branch, PR, merge or release.Boundary, tested on both sides
--new, comment,--close --reason,--reopen,--repo,--flag=value, quoted values, and with no claim at all.gitpush,ghmerge,ghrelease,ghpr,ghrun,ghrel,ghissue --edit,--delete, an unknown flag, and a tracker write chained with a code write.Not touched: Refs #30 (--help/--dry-run of a publishing program needs no claim) is a separate boundary and stays open.
🤖 Generated with Claude Code