Repository navigation
Preserve retained Architecture review worktrees across retries - #506
Merged
Merged
Conversation
) Git 2.55 prunes a missing-backlink worktree during automatic fetch and fast-forward maintenance. Inspect stale reviews before acquisition fetch; disable implicit maintenance in origin fetches and launch fast-forward preparation so uncertain registrations survive until ownership inspection. Cover both retry and Architect preflight, including launch.pull.
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
Repeated Architect runs preserve review work retained by failed acquisition. Successfully acquired detached scratch remains recoverable after process death, including edits and detached commits.
Closes #505
Evidence
a_review_retry_preserves_work_retained_after_a_failed_hookfailed: retry removed retained staged, untracked and ignored work, then returned success.After: That regression passes. Focused checks pass: 108 Worktree tests and 80 Architect lifecycle tests, including process death before publication, disposable detached commits, interruption, damaged evidence, substitutions and publication faults.
cargo fmt --check,cargo clippy --all-targets -- -D warnings, andRUST_TEST_THREADS=2 cargo testwith Git 2.55 passed (1421 tests passed, 1 ignored).Reviewed against
main(a2faf4f): one Standards finding and one Spec finding, both addressed. Both reviewers checked the Git maintenance fix and reported no additional findings.Test seams
ReviewWorktree::createand scope-exit cleanup with real local Git: repeated acquisition, preserved work, disposable scratch, ownership substitution, publication failure and interruption. Existing Worktree interfaces verify fresh Run and Continuation behavior.thirdshift architect --plan-only: process-death recovery and refusal before an agent session, including Base branch preparation with and withoutlaunch.pull.Merge Danger
Door: two-way
Blast Radius: Worktrees
Unmarked legacy review paths and repository rules that negate token exclusion require Day shift resolution. The shared ownership inspector also rejects symlinked administrative Git backlinks. Durable eligibility applies only to detached Architecture reviews.
Unaddressed findings
Standards
None. The naming finding was addressed by renaming the destructive closure to
inspect_and_remove.Spec
None. The marker-exclusion finding was addressed by verifying effective Git exclusion before marker creation; the Spec reviewer confirmed the fix.
Built with codex · gpt-6.1-sol · xhigh