Skip to content

fix(cleanup): retire settled reviewer worktrees after archival - #144

Merged
axatbhardwaj merged 4 commits into
mainfrom
axatbhardwaj/review-cleanup-multipass
Sep 23, 2026
Merged

axatbhardwaj merged 4 commits into
mainfrom
axatbhardwaj/review-cleanup-multipass

Conversation

@axatbhardwaj

@axatbhardwaj axatbhardwaj commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

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

  • Two-pass and open-PR regressions failed against the old policy before their edits.
  • Final ref/archive assertions failed on the prior candidate: 7 passed, 2 failed; final focused suite: 9 passed, 0 failed.
  • Full bun test at 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.

@axatbhardwaj axatbhardwaj changed the title fix(cleanup): allow settled multipass reviewer scratch fix(cleanup): retire settled reviewer worktrees after archival Sep 23, 2026
@axatbhardwaj
axatbhardwaj merged commit 5a6314f into main Sep 23, 2026
8 checks passed
@axatbhardwaj
axatbhardwaj deleted the axatbhardwaj/review-cleanup-multipass branch September 23, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant