Repository navigation
fix(cleanup): retire settled reviewer worktrees after archival - #144
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
Retire a completed reviewer's detached Orca checkout while the PR is still open. First verify worker settlement, preserve the report and supporting evidence in a private archive, read back the manifest, classify every remaining file, and use exact-path cleanup and native worktree removal without force. A later review uses a fresh child checkout; the author candidate stays intact.
Keep a guarded recovery path for a checkout with scratch from two settled review passes. Independently archive each pass, verify the full file union, and clean each recorded prefix separately. After native removal, retire a generated local review ref only when its origin and exact old tip are proven and its commit is reachable from the retained author candidate or confirmed PR head. Unknown refs and useful branches stay protected.
Verification
bun testat the current head: 424 passed, 0 failed.git diff --check: clean.The driver archived all three review passes for this PR and removed both exact reviewer checkouts through Orca while the PR remained open. The author branch and PR were preserved. Future removals still require fresh identity, evidence, liveness, and hook checks. Human merges.