Repository navigation
Preserve Failed run work only on its acquired Worktree - #521
Merged
Merged
Conversation
The old origin hook required concurrent Failed run pushes and rejected the first push while preservation held the repository locks. Wait for the sibling session to acknowledge interruption instead, keeping the parent broadcast-before-wait contract and both origin and cleanup assertions.
Merged
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
Failed run preservation changes only the acquired Worktree instance on its Issue branch.
Closes #518
Evidence
Ok(()), committed on the switched checkout, and pushed the unchanged Issue branch.After: Changed or uncertain ownership returns an error naming the acquired path, expected Issue branch and cause; unrelated work and refs remain unchanged, and Drop retains local resources. A successful push followed by ownership refusal also retains local resources.
cargo testpassed (1453 tests; 1 existing local latency probe ignored); 120 Worktree tests, 13 Failed run integration tests and 64 Spec run tests passed.cargo check --all-targets,cargo clippy --all-targets -- -D warnings, andcargo fmt --checkpassed.thirdshift-code-reviewagainstmain(pinned at200661b). Both Standards findings addressed and verified; no Spec findings.Test seams
ReviewWorktree::createrefusal andWorktree::merge_base_branchexercise ownership and refs coordination.Scenariochecks the original Failed run cause, preservation warning, PR finishing, Claim ending and interrupted Spec run completion.Merge Danger
Door: two-way
Private ownership refactor with no interface or storage migration.
Blast Radius: preservation
Failed run salvage holds repository locks through final inspection. External Git or filesystem operations can still race between inspections.
Unaddressed findings
Standards
None. Both findings were addressed.
Spec
None. The review reported no findings.
Built with codex · gpt-6.1-sol · xhigh