Skip to content

ci: remove only demonstrably ancestor-only obsolete branches - #340

Merged
turinglambdaai merged 1 commit into
mainfrom
ci/prune-proven-ancestor-branches-20261028
Oct 28, 2026
Merged

turinglambdaai merged 1 commit into
mainfrom
ci/prune-proven-ancestor-branches-20261028

Conversation

@turinglambdaai

Copy link
Copy Markdown
Owner

Scope

Extend successful merged-head cleanup #336 to remove a second, rigorously provable category: a nonreserved, nonprotected, nondefault, non-open-PR topic branch with zero unique commits ahead of main (GitHub compare status behind/identical). Guard all previously preserved release/deployment/history names.

Evidence: after cleanup, remote only has main, fix/release-keyword-compat, and pr-259. Verified pr-259 has ahead_by=0, behind_by=123; it is fully contained in main. Verified fix/release-keyword-compat has one unique ahead commit, so must remain untouched.

The script re-reads branch SHA/protection, open PRs and default-branch ancestry immediately before deleting. PR heads exactly matching an actually merged PR retain prior protection. No other repositories, runtime APIs, license, release assets or user data touched. GitHub compare/delete cannot be atomic; documented residual race remains. Requires full current-head Rivet CI before merge, then verify GitHub cleanup run and remote refs. Tracks portfolio branch hygiene #10.

@turinglambdaai
turinglambdaai merged commit 441ed1f into main Oct 28, 2026
27 of 29 checks passed
@github-actions
github-actions Bot deleted the ci/prune-proven-ancestor-branches-20261028 branch October 28, 2026 12:11
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