Skip to content

Operational Repositories' Closes-on-Promotion Rule Misses Reverted Fixes and Pull Requests Into develop #4057

Closed

Description

@ptr727

Summary

GOVERNANCE.md "Operational Repositories" sets the Closes on promotion: rule for a direct push only. It leaves two cases where a promotion assembled by hand closes the wrong issues.

Evidence

  • Hub ref: main at 1397e30a, found by a local strict review pass during a resync of ptr727/HolidayLights (ptr727/HolidayLights#48), which carries the section verbatim.
  • A reverted fix still closes its issue. Take a direct commit A on develop carrying Closes on promotion: #5. A later commit in the same range runs git revert A, whose default message keeps only the subject. A's line is still in origin/main..origin/develop. So a promotion following the rule takes Closes #5 and closes the issue, although main gains no fix.
  • A pull request into develop is never told to carry the line. The section keeps "a PR still exists for a change worth reviewing". But the instruction to write the line names "a direct push" alone. backlog-burndown reads such a change's line from the pull request body, and branching-and-release-model tells a feature pull request's author only to reference the issue. So a reviewed change whose body says Refs #7 reaches main with no line, and a promotion assembled under the rule leaves #7 open.
  • Expected: one rule covering both routes into develop, and a line whose commit is reverted later in the range is dropped.
  • Actual: the rule covers the direct push only, and it counts every line in the range.

Fix

In "Operational Repositories", name where a change reaching develop by pull request writes its line, its body, as backlog-burndown already reads it. Drop a line whose commit a later commit in the range reverts. Downstream runbooks that restate the rule, such as ptr727/HolidayLights OPERATIONS.md, then follow on their next resync.

Activity

  1. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Three more facets, from the review of a downstream runbook that tried to state the rule completely (ptr727/HolidayLights#48, OPERATIONS.md "Promote a known-good snapshot"). Each pass over a hand-written fix found new gaps, which suggests the rule wants a mechanized reader rather than more prose.

    • A revert has no single recognizable form. An operational repository's rollback is often a restore of a folder from a known-good commit, committed as an ordinary change. It carries no This reverts commit <sha>. marker, so "skip a reverted commit's line" cannot be applied to it by reading the range.
    • A reverted revert. Take C carrying the line, R reverting C, and R2 reverting R. Skipping every commit a later one reverts drops C's line although the fix ships, since R2's default message carries none.
    • The commit range does not hold a pull request's body. Neither GitHub's default squash message nor its merge-commit message copies the body into git. So reading the line from origin/main..origin/develop alone misses every pull request route. The reader has to map each commit to its pull request, by the (#N) squash suffix or the Merge pull request #N subject, and read that body, as backlog-burndown does. A merge reverted with git revert -m 1 leaves its branch commits in the range as well.
  2. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (round 7, away mode, 2026-11-13): group #4057, #3865, #1594 on branch burndown/governance-question-rules, tier frontier.

    Predicted file set:

    • GOVERNANCE.md
    • .agents/skills/branching-and-release-model/SKILL.md, .github/skills/branching-and-release-model/SKILL.md, .claude-plugin/fleet-skills/skills/branching-and-release-model/SKILL.md, .claude-plugin/fleet-skills/.source-digests/branching-and-release-model
    • .agents/skills/agent-conduct/SKILL.md, .github/skills/agent-conduct/SKILL.md, .claude-plugin/fleet-skills/skills/agent-conduct/SKILL.md, .claude-plugin/fleet-skills/.source-digests/agent-conduct
    • .agents/skills/decision-triage/SKILL.md, .github/skills/decision-triage/SKILL.md, .claude-plugin/fleet-skills/skills/decision-triage/SKILL.md, .claude-plugin/fleet-skills/.source-digests/decision-triage
    • .agents/skills/session-handoff/SKILL.md, .github/skills/session-handoff/SKILL.md, .claude-plugin/fleet-skills/skills/session-handoff/SKILL.md, .claude-plugin/fleet-skills/.source-digests/session-handoff
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