Repository navigation
Bind Worktree synchronization to acquired checkout ownership - #523
Merged
Merged
Conversation
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.
Summary
Ordinary operations reject changed ownership, including observations, no-ops, refs-lock waits and Git retries. Legitimate commits on the acquired Issue branch remain valid. Confirmed Self-merge completion uses the captured repository even after checkout replacement or interruption.
Closes #522
Evidence
Cleanand advanced unrelated work; deletion could remove a replacement origin's branch.After: Worktree regressions refuse the wrong merge, retain unrelated work, and delete only the captured repository's origin branch.
fetch ran after ownership changedandmerge retry mutated unrelated branch.After: both pass with ownership checked after lock waits and around every command attempt.
cargo check --all-targets,cargo fmt --check,cargo clippy --all-targets -- -D warnings, andcargo test. Linux and macOS CI passed.Test seams
Merge Danger
Door: two-way
No migrations or irreversible data changes; the ownership implementation can be reverted.
Blast Radius: synchronization
Affects Delivery, Spec catch-up, Repair synchronization and confirmed Self-merge branch deletion. Changed or uncertain ownership now fails conservatively and follows existing preservation and cleanup behavior.
Unaddressed findings
Standards
None. The duplicate origin-sampling finding was addressed; re-review found no new findings.
Spec
None. The helper-internal execution finding was addressed for refs-lock waits and retries; re-review confirmed all gates remain intact.
Built with codex · gpt-6.1-sol · xhigh