Repository navigation
Move Failed run preservation and retention into Worktree - #484
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
Worktree owns Failed run preservation and cleanup through one operation. Failed salvage retains the checkout and local Issue branch before Delivery reports the failure or handles the PR.
Closes #482
Evidence
a_staging_error_retains_uncommitted_work_and_the_local_branch_after_dropfailed withworktree was removedwhen retention was left to the caller.After: All 13 real-Git Worktree preservation tests pass, including staging/merge-abort/commit/push failures, signal isolation, remote content and failure metadata. All 26 Delivery tests and the existing 12 Failed run binary tests pass.
cargo fmt --checkandcargo clippy --all-targets -- -D warningspass; fullcargo testpasses (1314 passed, 1 existing ignored test).main: Standards S1 addressed by removing the new internal call-order assertion; Spec found no gaps or scope creep.Test seams: Worktree's preservation interface and observable local/remote Git state after drop; Delivery's Failed run outcome/reporting interface; existing binary Failed run and Claim coverage.
Merge Danger
Door: two-way
Blast Radius: preservation
Failed run salvage for Runs and Spec runs; no change to preservation policy or Git flags.
Unaddressed findings
Standards
None.
Spec
None.
Built with codex · gpt-6.1-sol · xhigh