Skip to content

Decide How a Promotion Treats the Closes-on-Promotion Line of a Fix Reverted Later in Its Range #4175

Description

@ptr727

Question for the maintainer (away-mode backlog-burndown planner, round 7, 2026-11-13). Split out of #4057, the part of it that needs a decision.

The Problem

In an operational repository, develop takes direct commits. Each change that reaches develop names the issues it fixes on a Closes on promotion: #N line. Whoever assembles the develop -> main promotion turns each such line in origin/main..origin/develop into a Closes #N.

When a fix is rolled back later in the same range, its line is still in the range. So the promotion closes the issue although main gains no fix.

Reading the reverts out of the range is not reliable:

  • A rollback is often a folder restored from an earlier commit, committed as an ordinary change. It carries no This reverts commit marker.
  • A revert of a revert: dropping every line whose commit a later commit reverts also drops the line of a fix that does ship.
  • A merge reverted with git revert -m 1 leaves its branch commits, and their lines, in the range.

The rest of #4057 needs no decision. That part says a change reaching develop by pull request writes its line in the pull request body. It is worked in this round. Only this question is held.

Options, Recommended First

  1. The rollback states it (recommended). The commit or pull request that undoes a fix carries a line of its own, such as Reopens on promotion: #N. A line it names is left out of the promotion. Reason: the rule already holds that the closed set is stated rather than inferred. This keeps that, and it treats a folder restore and a revert of a revert the same way, with no new tooling. Cost: an author who forgets the line still closes the issue, and only a later reading of that closed issue catches it.
  2. A hub script assembles the set. A script reads the range, maps each commit to its pull request, and applies revert markers, chains included. It still cannot see an unmarked folder restore, so it needs option 1's line as well, plus a script to maintain.
  3. Leave reverts to the person promoting. The rule says only that a reverted fix's line is removed by hand when the promotion body is written. This is the cheapest option. It is also the judgment Operational Repositories' Closes-on-Promotion Rule Misses Reverted Fixes and Pull Requests Into develop #4057 reports going wrong.

The answer changes GOVERNANCE.md "Operational Repositories" and the branching-and-release-model skill. Downstream runbooks that restate the rule follow at their next resync.

Activity

  1. added
    decision
    on Nov 13, 2026
  2. ptr727 commented on Nov 16, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-16: option 1, the rollback states it. The commit or pull request that undoes a fix carries a Reopens on promotion: #N line, and a promotion leaves out the Closes on promotion: line it names. The change lands in GOVERNANCE.md "Operational Repositories" and the branching-and-release-model skill. This issue stays open to track that work.

  3. removed
    decision
    on Nov 16, 2026
  4. ptr727 commented on Nov 22, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-22): the branch merged as #4346 and was cleaned up, so this claim holds no files.

    Backlog burndown claim (round 4, group 1, 2026-11-22): branch burndown/r4-one-off-and-reopens, issues #4210, #4175.

    Predicted files: GOVERNANCE.md, .agents/skills/branching-and-release-model/SKILL.md, .agents/skills/backlog-burndown/SKILL.md, and the generated include region in .agents/skills/fleet-code-review/SKILL.md. Generated trees .github/skills/ and .claude-plugin/ follow any .agents/skills/ edit.

    Grown set granted (2026-11-22): .agents/skills/add-host-tool/SKILL.md, which the #4210 rule puts in disagreement.

  5. ptr727 commented on Nov 22, 2026

    @ptr727
    OwnerAuthor

    Answer recorded (2026-11-22): the maintainer settled the case this answer leaves open. A fix that already reached main, whose issue closed at that promotion and was later rolled back, is reopened by hand by the rollback pull request's author. No new rule covers it.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions