docs: branch-cleanup triage + deletion script (87 stale branches) - #110
Merged
Conversation
Explains the 87-branch pileup (a March 2026 NEO/hourly-scan swarm of ~59 near- duplicate AI branches + 15 already-squash-merged-this-session + 12 old reviews + legacy master) and classifies every branch. All are safe to delete; the NEO core was salvaged to main (#108/#109). Flags three distinct un-salvaged features (hourly scanner, event journal, space-weather client) as salvage candidates before the swarm is deleted. scripts/delete_stale_branches.sh is turnkey (remote deletion is blocked from the automation sandbox, so it's run locally). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SKZMQ755R7q38SKqJsCQsg
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5903328. Configure here.
| git push origin --delete claude/nightwatch-frontend-demo-takdve | ||
| git push origin --delete claude/install-review-org-37y4ck | ||
| git push origin --delete claude/repo-landscape-audit-mdpb4f | ||
| git push origin --delete cursor/nightwatch-demo-console-86da |
There was a problem hiding this comment.
Script aborts on delete failure
Medium Severity
With set -e, any failed git push origin --delete ends the script immediately, so later branches are never removed. A missing remote ref, permission error, or network blip on one line leaves cleanup incomplete and makes a full re-run fail again at the same step unless lines are edited manually.
Reviewed by Cursor Bugbot for commit 5903328. Configure here.
THOClabs
added a commit
that referenced
this pull request
Aug 7, 2026
#112) Preserves the durable content of three open-PR branches before the v0.1.1 branch purge closes them: - .claude/agents/ (7 review subagents) + .claude/commands/full-review.md from PR #93's branch — repo-state-independent review tooling; the stale July review reports on that branch are intentionally NOT taken. - docs/design/ Claude Design frontend prompt pack (3 files) from PR #92's branch — targets the v0.2 frontend; NEO data-model sections predate #108/#109 and need a refresh before use (noted in its provenance table). - docs/audits/ archive of AUDIT_LANDSCAPE.md + REVIEW_RECONCILIATION.md from PR #90's branch, with HISTORICAL SNAPSHOT headers — findings were fixed by #94-#110; preserved as engineering history. Its STALE_BRANCH_TRIAGE.md is dropped (superseded by #110). Part 1/Step 2 of the v0.1.1 main-only consolidation. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This was referenced Aug 7, 2026
Closed
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
Explains and resolves the 87-branch pileup. Adds
docs/BRANCH_CLEANUP.md(full classification + rationale) andscripts/delete_stale_branches.sh(turnkey remote deletion, run locally since the automation sandbox can't push branch deletes).Findings
mainvia Recover NASA NEO close-approach + feed clients (salvage from March swarm) #108/fix(neo_feed): missing-distance false ALERT + UTC feed window #109.mainthis session (mechanical-design packages + Stage 0–5 fixes); look "unmerged" only because squash doesn't preserve branch SHAs.master(commented out in the script; confirm before deleting).All are safe to delete. The doc flags three distinct un-salvaged features in the swarm — hourly scanner, event journal, space-weather client — as salvage candidates to recover before deletion if wanted (otherwise they're discarded with the swarm).
Testing
🤖 Generated with Claude Code
Generated by Claude Code
Note
Low Risk
Documentation and an opt-in maintenance script only; no runtime or application code paths change. Operational risk is limited to mistaken remote branch deletion if the script is run without review.
Overview
Adds
docs/BRANCH_CLEANUP.mdto document 87 staleoriginbranches againstmain: why the count is high (squash-merged branches still look unmerged, plus a March 2026 NEO/hourly-scan branch swarm), and how they are grouped (MERGED, SWARM, REVIEW, OLD-DEFAULT). The doc includes a full branch table and calls out three optional salvage features on swarm branches (hourly scanner, event journal, space-weather client) to recover before deletion.Adds
scripts/delete_stale_branches.sh, a local-only script that runsgit push origin --deletefor each listed branch (automation cannot delete remotes).masteris left commented out for manual verification.Reviewed by Cursor Bugbot for commit 5903328. Bugbot is set up for automated code reviews on this repo. Configure here.