Skip to content

fleet: scheduled Action that deletes landed claude/issue-N-SLUG-wip backup branches (ruling #36920 c7239649077) #38313

Backlog

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

Filing gate: ② a ruled follow-up. Source: the maintainer's ruling on #36920, comment 7239649077 (question 1, letter A, 「同意」). Asked by seat repo:objectstack#1. ⛔ Not a claim, and NOT dispatched: the maintainer wound area o1-F down at 2026-11-28T13:00Z (「fleet当前任务处理完就结束」), so this card waits for a later claimant.

维护者速读

  • 是什么:开发助手现在默认把暂时进不了正式分支的代码推到备份分支(PR docs(os-dev): finished work the work branch cannot take is pushed to a no-PR backup branch by default #38271)。你已同意:做一个定时任务,在工作合并后自动删掉这些备份分支。
  • 怎么删才安全:只删对应 PR 已合并、且分支最后一次提交早于合并的;合并后再等几天才删;每次删除都记下提交号,需要时可以恢复。
  • 要你做什么:这个任务要新的删除权限,规则文字和权限在它的 PR 上由你批准。

What is true

Ask

A scheduled workflow (Tier H, .github/workflows/**) that, for each remote branch matching claude/issue-*-wip:

  1. finds the card number N in the name and the card's merged pull request(s);
  2. deletes the branch only when a PR of that card has merged and the branch's last commit is older than that merge, and only after a grace period of a few days (the PR proposes the number);
  3. logs each deleted branch name and SHA in the run summary (and a durable place the PR proposes) so it can be restored;
  4. touches no other branch name; has a dry-run mode and a self-test.
    The rule text and the workflow's permission go to the maintainer for approval on the PR (Rule-change: yes).

Done when

The Action runs on schedule, its self-test pins the merged/unmerged, older/newer and grace-period cases and a non-matching name, and a first real run's deletions are posted here.

Note for the claimant: the ruling's question 2 says the project instructions now allow pushing claude/issue-N-wip; the rule in os-dev.md names claude/issue-N-SLUG-wip. Confirm the allowance covers the slug form before relying on it.

Dedupe: is:issue is:open wip backup branch delete and is:issue is:open claude/issue -wip cleanup return no card.
Suggested-grade: p3 · housekeeping; branches accumulate but nothing breaks.

Activity

  1. added
    tooling
    pm:queue
    domain:devx
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Seat note on #38313 · owed item for the claimant · 2026-11-28T13:09Z

    The approved allowance (ruling 7239649077, question 2) covers pushes to claude/issue-N-wip only. The landed .claude/agents/os-dev.md rule from #38271 names the backup branch claude/issue-N-SLUG-wip, which that allowance does not cover.

    Owed by this card's PR: change .claude/agents/os-dev.md to push the backup branch as claude/issue-N-wip, with no slug, so it matches the approved line. Key the cleanup Action on the same name. The seat ruled that the allowance is not to be widened instead, since widening it would change wording the maintainer approved.

  3. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Path: none
    Triage: lands in a new scheduled workflow under .github/workflows/ (domain:devx) plus the owed branch rename to claude/issue-N-wip in .claude/agents/os-dev.md (domain:skills; the claim declares both) · area:fleet · Task · p3 · pm:queue · size M. Rationale: landed backup branches pile up; nothing breaks. The card passes none of the three tooling queue gates, but it carries out a relayed maintainer ruling (letter A, relay 7239649077). That is a keep condition, so it is neither closed nor routed for a decision. A new workflow with ref-delete permission plus .claude/** text is Tier H, and the maintainer approves the PR. The ruling exists on GitHub only as a seat relay of chat, with no maintainer comment or Ruling-ref: line. Type set to Task.

    Recorded 2026-11-28T14:18Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fleetdomain:devxpm:queuepriority:p3tooling

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions