Repository navigation
fix: clean_slate misses grouped repos; tidy recommends deleting claimed branches - #587
Merged
Merged
Conversation
…lver (#586) for dir in */ at the workspace root saw none of the grouped repos (fit/PyAutoFit, organs/PyAutoNerves, ...), so every scope silently found nothing. Iterate pyauto_repo_list, match the name-keyed lists on the basename, and fail loudly when nothing resolves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…anches (#586) enumerate_condemn_candidates spared only the canonical checkout's HEAD. A task branch lives in its own worktree, and with no commits it reads merged=yes, so tidy recommended a straight delete of live task branches (feature/magnification-maps-wiring on 2026-11-04). Skip every branch checked out in any worktree of the repo and every branch claimed in PyAutoMind/active.md (worktree_list_claimed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
This fixes two hygiene remedies that disagreed with the scan recommending them. There is one commit for each.
1.
clean_slate.shmissed grouped repos. It enumerated repos withfor dir in */at the workspace root. The workspace groups repos (fit/PyAutoFit,organs/PyAutoNerves, ...), so every scope silently found nothing; on 2026-11-04,--packagingreported nothing while 10egg-info/builddirectories existed.pyauto_repo_listfrombin/_repo_paths.sh.$repostays the root-relative path, and the name-keyed lists (is_dataset_repo,is_packaging_repo) match on the basename.2.
hygiene tidyrecommended deleting live task branches.enumerate_condemn_candidatesspared only the canonical checkout's HEAD. A task branch lives in its own worktree, and before its first commit it readsmerged=yes, so tidy recommended a straight delete of claimed branches (feature/magnification-maps-wiring).git worktree list --porcelain).PyAutoMind/active.md, read through the worktree guard's ownworktree_list_claimed.Closes #586.
Tests
test_packaging_reaches_repos_grouped_under_a_family_directoryandtest_no_resolved_checkout_is_an_error_not_a_silent_no_op.test_tidy_never_condemns_a_branch_held_by_another_worktreeandtest_tidy_never_condemns_a_branch_claimed_in_the_registry. In both, an unprotected spent branch is still condemned.test_provenance_helper_failure_aborts_the_sweepcopiesclean_slate.shalone, so its fixture now symlinks_repo_paths.shbeside the copy.DRY_RUN=1 clean_slate.sh --packagingnow lists the grouped library build products.hygiene tidygoes from 25 to 15 candidates. The dropped 10 are all live-task or worktree-held branches, such asmagnification-maps-wiringandpyautodna-stack-management.🤖 Generated with Claude Code