## Objective Implement branch cleanup infrastructure to audit Git branch state, categorise branches (KEEP/DELETE/DISCUSS), and automate cleanup with safety guardrails. ## Related Work - **Specification:** `.github/specs/009-audit-branch-cleanup/` (SpecKit workflow complete) - **PR:** #3358 - Implementation branch and spec consolidation - **Branch:** `task/branch-cleanup-refactor` ## Scope - Branch categorization engine (KEEP/DELETE/DISCUSS classification) - Branch audit tooling with exclusion patterns and age calculations - Safe deletion workflow with dry-run and confirmation - GitHub Actions integration for scheduled/manual audits - Comprehensive reporting (text, JSON, metrics) - SpecKit specification and planning documentation ## Acceptance Criteria - [x] Branch categorization logic implemented and tested - [x] Audit script with dry-run capability - [x] Changelog validation and metrics aggregation - [x] Specification complete with task breakdown - [x] Implementation branch naming compliant (task/branch-cleanup-refactor) - [x] All code passes linting and style checks ## Next Steps 1. Review PR #3358 for implementation details 2. Integrate into GitHub Actions workflows 3. Run initial audit in staging/test environment 4. Gather team feedback and refine delete thresholds --- 🤖 Generated with [Claude Code](https://claude.ai/code)
Objective
Implement branch cleanup infrastructure to audit Git branch state, categorise branches (KEEP/DELETE/DISCUSS), and automate cleanup with safety guardrails.
Related Work
.github/specs/009-audit-branch-cleanup/(SpecKit workflow complete)task/branch-cleanup-refactorScope
Acceptance Criteria
Next Steps
🤖 Generated with Claude Code