Skip to content

repo-hygiene: scan.sh still runs unpruned per-pattern find walks — migrate onto clean_enumerate #1011

Description

@kyle-sexton

Problem

scan.sh shares the exact unpruned per-pattern find walk pattern that #993 removed from clean-build.sh / clean-caches.sh: one full-tree find per cache/build pattern, with ! -path filters that do not -prune, so every walk still descends .git/, node_modules/, .venv/.

#993 introduced a shared clean_enumerate single-pruned-walk engine in lib/clean-common.sh but scoped the change to the two mutating scripts named in that issue. scan.sh was intentionally left on the old pattern to avoid scope creep, leaving two parallel enumeration ways in the same skill.

Fix direction

Migrate scan.sh onto clean_enumerate / clean_caches_candidates / clean_build_candidates so the read-only inventory shares the single-pruned-walk engine and the skill has one enumeration way. Read-only tier, so no manifest/apply surface — just the walk.

Referenced by a TODO(#…) at the enumeration engine in lib/clean-common.sh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumReal value, no hard deadline; normal backlog flow.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions