Skip to content

chore(maintenance): on-demand stale-branch audit script (ADR-0921) - #419

Closed
lusoris wants to merge 0 commit into
masterfrom
chore/stale-branches-audit
Closed

lusoris wants to merge 0 commit into
masterfrom
chore/stale-branches-audit

Conversation

@lusoris

@lusoris lusoris commented May 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds scripts/maintenance/prune-stale-branches.sh — read-only audit by
default with explicit --delete / --delete-stale opt-in flags. Classifies
every remote branch on origin (248 today) by age, PR status, and
naming convention; never touches master or release-please--branches--master*.

Today's audit findings:

Bucket Count
Total branches 248
KEEP-tier 246
DELETE-MERGED 2
DELETE-WT-OLD 0
DELETE-STALE 0
STALE-CLOSED 0

The 2 DELETE-MERGED survivors are feat/cuda-resolution-dispatch-scaffold-20260529
(PR #91 merged 2026-05-29) and feat/vmafx-tune-go-stage3-20260528 (PR #57 merged
2026-05-28) — GitHub auto-delete-on-merge stragglers. Safe to delete via
--delete after this PR merges.

Git LFS posture confirmed correctly disabled in .gitattributes (intentional —
ONNX blobs ship inline per the 2026-05-15 rationale; see ADR-0921).

Also fixes a pre-existing ADR-index drift: ADR-0887's fragment was missing,
causing every README regen to emit a WARNING.

Type

  • chore — maintenance tooling

Checklist

  • Commits follow Conventional Commits.
  • pre-commit run --files <staged> is green locally.
  • No SIMD/GPU code path touched.
  • No new .c / .cpp / .cu / .h (no copyright-header requirement).

Bug-status hygiene (ADR-0165)

  • docs/state.md updated — no state delta: pure tooling addition, no bug opened/closed/ruled-out.

Netflix golden-data gate (ADR-0024)

  • No assertAlmostEqual modified.

Deep-dive deliverables (ADR-0108)

Reproducer

bash scripts/maintenance/prune-stale-branches.sh           # read-only audit
bash scripts/maintenance/prune-stale-branches.sh --json    # machine-readable
bash scripts/maintenance/prune-stale-branches.sh --delete  # delete DELETE-tier

Expected output today: 248 branches scanned, 2 DELETE-MERGED candidates,
0 strict-stale.

Touched-file cleanup (CLAUDE.md §12 r12)

Fixed in this PR: missing index fragment for ADR-0887 (pre-existing
WARNING from scripts/docs/concat-adr-index.sh).

@lusoris
lusoris marked this pull request as ready for review May 31, 2026 02:26
@lusoris
lusoris enabled auto-merge (squash) May 31, 2026 02:26
@lusoris lusoris closed this May 31, 2026
auto-merge was automatically disabled May 31, 2026 02:27

Pull request was closed

@lusoris
lusoris force-pushed the chore/stale-branches-audit branch from 3b33c05 to 84e4d91 Compare May 31, 2026 02:27
@lusoris
lusoris deleted the chore/stale-branches-audit branch June 4, 2026 10:25

This branch was previously deployed

1 inactive deployment
github-pages — 84e4d91b Deployed May 31, 2026 by lusoris via deploy #112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant