Skip to content

Recognize a Promotion Branch Cut From Main in Cleanup and the Prose Gate #4062

Closed

Description

@ptr727

The branching-and-release-model reference sends a textually conflicted promotion through a throwaway branch cut from main that merges develop. Two pieces of hub tooling don't recognize that shape.

pr_review.py cleanup refuses the branch. Its check requires a base of develop, so a merged promote/develop-to-main pull request into main ends in status=REFUSED ... its base is 'main', not 'develop'. merge-and-release step 8 forbids deleting a feature branch by hand, so the branch has no sanctioned removal path short of cleanup --sweep --apply.

The prose gate's promotion exemption does not reach it. The comment-added rule stands down for a pull request whose head is develop. A promotion cut from main has another head, so it fails on every comment line its already-reviewed feature pull requests carried. It needs the comments label added and the failed job rerun.

Reproduce

  1. Move a pinned line differently on main and develop, so a develop to main promotion conflicts.
  2. Follow the reference: branch from main, merge develop, take its side, and open that branch into main.
  3. Observe the prose gate fail on the carried comment lines.
  4. Merge it, then run pr_review.py cleanup <number>, and observe the refusal.

Expected: both tools treat a merged or open promotion branch of this documented shape as a promotion. Seen on hub 1397e30a (2.0.1388).

The shape is routine rather than rare. Dependabot bumps hub pins on both branches independently, so any resync that moves the pins further on develop produces it.

Activity

  1. added
    script
    on Nov 11, 2026
  2. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-13): PR #4152 merged into develop, and its branch and worktree were cleaned up. This claim holds no files.

    Backlog burndown claim (away run 2026-11-13, round 3). Branch: burndown/promotion-branch-shape. Issues: #4062. Tier: frontier.

    Also in scope, unfiled: the scripts/README.md pr_cleanup.py contract says git worktree remove refuses untracked changes, which is false under status.showUntrackedFiles=no (left by #4138).

    Predicted file set:

    • scripts/pr_cleanup.py
    • tests/test_pr_cleanup.py
    • .github/workflows/validate-task.yml
    • .github/actions/prose-gate/prose_lint.py
    • tests/test_prose_lint.py
    • tests/test_workflow_steps.py
    • tests/workflow_steps.py
    • docs/reusable-workflows.md
    • scripts/README.md
    • .agents/skills/merge-and-release/SKILL.md
    • .github/skills/merge-and-release/SKILL.md
    • .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/merge-and-release

    Claim extended (orchestrator adjudication, round 3). No other in-flight group, branch, or open PR holds these:

    • scripts/pr_cleanup_rest.py (new), a split that keeps scripts/pr_cleanup.py under its size ceiling
    • .agents/skills/pr-review-conduct/SKILL.md, .github/skills/pr-review-conduct/SKILL.md, .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md, .claude-plugin/fleet-skills/.source-digests/pr-review-conduct

    Pending, not granted yet: repo-worktree (all three trees and its digest). The group on burndown/untracked-mode-reads (#4142) holds it. This group waits for that merge before editing it.

    Parked (round 3): the worker died and left a dirty worktree. The group waits on decision #4150 and keeps its branch and claim.

    Resumed (round 3): #4150 was answered (keep the edits). The edits are committed as 3abc363, and a fresh worker continues on this branch. repo-worktree is still pending the #4142 group's merge.

    Granted (round 3): repo-worktree, which is .agents/skills/repo-worktree/SKILL.md, its .github/skills/ and .claude-plugin/fleet-skills/skills/ copies, and .claude-plugin/fleet-skills/.source-digests/repo-worktree. The holding group's PR #4148 merged and was cleaned up.

    Granted (round 3, local-pass findings on #4152). No other in-flight group, branch, or open PR holds these:

    • tests/test_pr_review.py and tests/test_pr_review_size.py, to register the new pr_cleanup_rest.py. No existing ceiling is raised.
    • drive-pr: .agents/skills/drive-pr/SKILL.md, its .github/skills/ and .claude-plugin/fleet-skills/skills/ copies, and .claude-plugin/fleet-skills/.source-digests/drive-pr.
  3. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Parked (away-mode burndown, round 3), waiting on #4150.

    • Done: branch burndown/promotion-branch-shape holds 3 signed commits that are not pushed.
      • Cleanup and the prose gate's comment stand-down recognize a promotion cut from main by its content and ancestry, never its name.
      • Cleanup's REST reads moved to scripts/pr_cleanup_rest.py, which keeps pr_cleanup.py under its ceiling.
      • The scripts/README.md claim that git worktree remove refuses untracked changes is deleted. Read Ignored Files Before Removing the Session-Handoff Hub Clone #4138 left that disagreement.
      • pr-review-conduct and merge-and-release are updated to match.
    • Why it stopped: the worker died on an API authentication error and left uncommitted edits to 4 files.
    • Worktree: left standing, exactly as it was, at ProjectTemplate-promotion-branch-shape in the fleet worktrees directory. No PR exists.
    • Remaining:
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

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions