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
{{ message }}
Repository navigation
Backlog capture: status reports stale task branches, so a skipped sweep is visible before the next close #295
Backlog capture (deliberately unlabeled — not protocol traffic until adopted via task new). Split out of #167, whose first bullet ships as M14-R4 in #273 / PR #293.
What is left.#167 proposed two things. The first — milestone close sweeps every task/<n>-… branch whose task issue is closed, not only the closing milestone's own — is delivered by #273, and #167 closes with that PR. The second is not, and M14-R4 words the adoption as the close sweep alone, so it was never in scope:
status reports stale task branches (a closed task's branch still on the remote) the way it reports contract drift and the delete-on-merge setting — so a skipped sweep is visible before the next close, not after.
Why it still matters after #273. The sweep now reaches a stale branch, but only when a milestone closes. Between closes nothing looks, so a branch a sweep declined to delete — an unreadable task issue, a failed delete, a branch with unmerged commits, a repo carrying more task branches than one listing holds — stands unremarked until someone runs the next close's --dry-run. The delete-on-merge and contract-drift lines in status exist for exactly this: a condition the protocol can see, said before it costs anything. It is also the only place a solo operator with no open milestone would ever see one.
Shape, if adopted.status lists the repo's task/<n>-… branches whose task issue is closed, with the reason each would or would not be swept — the same branchAction verdict milestone close's two passes use, so the report and the sweep can never disagree. internal/tracker already carries what it needs after #273: TaskBranches (one prefix-filtered listing per repo), OpenPRsForBranch, and BranchAhead. The costs are the open question — status is run far more often than a close, and a per-branch verdict costs an issue read and a comparison each — so a cheaper first cut might name the branches and their task's state only, and leave the verdict to milestone close --dry-run.
Not in scope, as in #167: local checkouts (the CLI cannot reach a working copy), and the scaffold branch (#164 finding 68 / M7-R4).
Source: #167 (the original capture), #269's M14-R4, #273 and PR #293 — where checky's finding 3 asked that this half be recorded before the merge closes #167.
Adopted by#310 — this issue is delivered as that task, and gh codecrew task finish closes it when the task's pull request merges (SPEC §4). The PR needs no Closes line for it.
Activity
davison commentedon Sep 6, 2026
Adopted by #310 — this issue is delivered as that task, and
gh codecrew task finishcloses it when the task's pull request merges (SPEC §4). The PR needs noClosesline for it.feat(status): report the stale task branches of the repo it runs in (#…
feat(status): report the stale task branches of the repo it runs in (#…
feat(status): report the stale task branches of the repo it runs in (#…
feat(status): report the stale task branches of the repo it runs in (#…
radiusred-cody commentedon Sep 7, 2026
Closed by
gh codecrew task finish 310: adopted by #310 and delivered by #317, merged as 9c322e0.feat(status): report the stale task branches of the repo it runs in (#…