Repository navigation
Bind Failed run preservation retries to acquired Worktree ownership - #525
Merged
Merged
Conversation
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
Closes #524
Bind execution, inspection interruption and ownership diagnostics at construction. Preserve the existing salvage policy and locks; retain local work on ownership loss, including after an earlier action succeeded. Preservation finishes after Command interruption without clearing it.
Evidence
main(535c307), each new ownership-change regression failed: abort retried and discarded merge state; stage retried and staged unrelated work; commit retried on the unrelated branch; push retried after ownership changed. The valid-ownership retry regression passed.After: All four regressions pass through
Worktree::preserve_failed_run; valid ownership permits each mutation to retry successfully.cargo test --bin thirdshift worktree::— 144 passed;cargo test --test failed_run— 13 passed.cargo fmt --checkandcargo clippy --all-targets -- -D warningspassed.cargo test— 1,484 passed, 0 failed, 1 existing ignored across 39 test binaries.Test seams
Review
Reviewed with
thirdshift-code-reviewusinggit diff main...HEAD, withmainfixed at535c307. Standards: 0 findings. Spec: 0 findings.Unaddressed findings
Standards
None; the Standards review reported no findings.
Spec
None; the Spec review reported no findings.
CI notes
535c307), and local Linux verification passed all 144 Worktree tests and the fullcargo nextest run(1,484 passed, one existing ignored test), so no code change is warranted.Merge Danger
Door: two-way
Private refactor; reverting restores the previous execution implementation. No migration or new dependency.
Blast Radius: Worktree
Ordinary synchronization and Failed run preservation share execution. Acquisition, cleanup, stale Architecture review disposal and confirmed Self-merge authority retain their existing implementations.
Built with codex · gpt-6.1-sol · xhigh