Skip to content

Say What a Refused Lease Push Means in the Dirty-Branch Rebase Chain #4345

Done

Description

@ptr727

upstream-contribution-workflow says nothing about what to do when the dirty-branch rebase chain's lease push is refused.

The Gap

The chain under "Where the upstream's own CI rejects merge commits, rebase the dirty branch instead" ends in git push --force-with-lease="work/x:$old" origin work/x. The PowerShell form throws lease push refused. Neither form, and no sentence of prose, says what comes next.

The only guidance that could apply is step 5: "If force-with-lease is ever refused or unavailable, open a fresh PR from a newly ..." That sentence sits in the paragraph about the clean squash branch. Read on its own, it covers every force-with-lease push, the dirty branch's included. Read in context, it covers the clean branch only. Opening a fresh PR is the wrong answer for the dirty branch, because that branch is the append-only iteration log the workflow exists to keep.

What Done Looks Like

The dirty-branch rebase guidance states what a refused lease push means and what to do next. A refused lease push means the fork's branch moved since the backup was read. The guidance probably says to re-fetch, compare against the backup, and stop to ask the maintainer.

Step 5's refused-lease sentence names which branch it covers.

Found during the round-3 promotion review of #4342 (fix PR #4344). The text predates that PR.

Activity

  1. ptr727 commented on Nov 23, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (round 5, 2026-11-23): branch burndown/lease-refusal-and-audit-checkout.

    Predicted files: .agents/skills/upstream-contribution-workflow/SKILL.md, .agents/skills/audit-a-repo/SKILL.md.

    Group issues: #4345.

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