Skip to content

fix: clean_slate misses grouped repos; tidy recommends deleting claimed branches #586

Closed

Description

@Jammy2211

Overview

Two hygiene remedies disagree with the scan that recommends them:

  • clean_slate.sh misses grouped repos: it enumerates repos with for dir in */ at the workspace root (bin/clean_slate.sh:155). On the grouped layout (fit/PyAutoFit, organs/PyAutoNerves, ...), every scope therefore finds nothing, which is why --packaging silently reported nothing on 2026-11-04.
  • hygiene tidy recommends deleting claimed branches: enumerate_condemn_candidates skips only the branch checked out in the canonical checkout. A task's branch lives in its own worktree, and with zero commits it reads as merged, so tidy recommends a straight delete of live, claimed branches (e.g. feature/magnification-maps-wiring).

Plan

  • clean_slate.sh: iterate repos through the shared resolver (bin/_repo_paths.sh), the same as the hygiene scan.
  • hygiene.sh tidy: skip any branch checked out in any worktree of the repo, and any branch claimed in Mind's active.md (worktree_list_claimed).
  • Add a regression test for each: a grouped-layout packaging fixture, and a zero-commit branch held by a worktree or claimed in active.md.
  • Tier: judge — merge mode: human /prm

Activity

  1. Jammy2211 commented on Nov 5, 2026

    @Jammy2211
    ContributorAuthor

    Shipped in #587 (merged 2026-11-05, every CI leg green or skipped by design).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions