You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: drop dead stale batch option from Branch Cleanup workflow
Problem
.github/workflows/branch-cleanup.yml advertised a stale batch in the workflow_dispatch.inputs.batch choice list and the push-sentinel regex
([run-cleanup:safe|stale|review]), but scripts/maintenance/branch-cleanup-delete.sh
only implements safe and review. The STALE_BRANCHES case was
intentionally removed after the 30 CLOSE-STALE branches were archived and
deleted on 2026-06-02 (see docs/branch-cleanup-followups.md), but the
workflow wasn't updated to match.
Confirmed failure — run 34392035516 (Branch Cleanup, dry_run=1, batch=stale):
usage: scripts/maintenance/branch-cleanup-delete.sh {safe|review} (prefix DRY_RUN=1 to preview)
##[error]Process completed with exit code 2.
Any dispatch or sentinel push using stale fails immediately, even in
dry-run/preview mode.
Fix
Removed stale from all 4 places it appeared in the workflow file: the
doc comment, the workflow_dispatch choice list, and both places in the
push-sentinel regex. No script changes were needed — safe/review
already work correctly.
Verification
grep -n stale .github/workflows/branch-cleanup.yml # no matches
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/branch-cleanup.yml'))"# YAML OK
DRY_RUN=1 bash scripts/maintenance/branch-cleanup-delete.sh safe # exit 0
DRY_RUN=1 bash scripts/maintenance/branch-cleanup-delete.sh review # exit 0
Evidence chart
Closes the workflow-drift bug described in the linked issue.
Opened by the PR Iteration Loop. Recommended pattern for this class of fix: Continuous AI — a small, LLM-driven pass that watches live workflow run signals and closes drift between a workflow's advertised options and its script's actual implementation, without needing a new automation program (Agentic Workflows), a live multiplayer session (Chopin), or an unsupervised iterate-to-goal loop (Autoloop).
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
.github/workflows/branch-cleanup.ymlFix: drop dead
stalebatch option from Branch Cleanup workflowProblem
.github/workflows/branch-cleanup.ymladvertised astalebatch in theworkflow_dispatch.inputs.batchchoice list and the push-sentinel regex(
[run-cleanup:safe|stale|review]), butscripts/maintenance/branch-cleanup-delete.shonly implements
safeandreview. TheSTALE_BRANCHEScase wasintentionally removed after the 30 CLOSE-STALE branches were archived and
deleted on 2026-06-02 (see
docs/branch-cleanup-followups.md), but theworkflow wasn't updated to match.
Confirmed failure — run 34392035516 (
Branch Cleanup,dry_run=1,batch=stale):Any dispatch or sentinel push using
stalefails immediately, even indry-run/preview mode.
Fix
Removed
stalefrom all 4 places it appeared in the workflow file: thedoc comment, the
workflow_dispatchchoice list, and both places in thepush-sentinel regex. No script changes were needed —
safe/reviewalready work correctly.
Verification
Evidence chart
Closes the workflow-drift bug described in the linked issue.
Opened by the PR Iteration Loop. Recommended pattern for this class of fix: Continuous AI — a small, LLM-driven pass that watches live workflow run signals and closes drift between a workflow's advertised options and its script's actual implementation, without needing a new automation program (Agentic Workflows), a live multiplayer session (Chopin), or an unsupervised iterate-to-goal loop (Autoloop).
Note
This was originally intended as a pull request, but the git push operation failed.
Original error: The process '/usr/bin/git' failed with exit code 1
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.Create the pull request manually