You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lane-end's close-out gate: should a lane-owned branch whose open PR is fully published hold the lane's end? (Copilot round 2 on #175, after the cap) #178
Filed from Copilot's second (last, under the two-round cap) review of #175, thread on lane-end at 41b5a6a:
This filter drops a lane-owned branch with an open PR. branch_items emits open-PR branches as keep with retire=False even when their Lane: trailer matches this lane, so a lane with that local branch and no other leftovers can end. That contradicts the close-out contract and the stated rule that keep rows left by --yes still block; preserve branch ownership in the porcelain contract and count lane-owned protected rows here.
lane-end's close-out gate counts the rows whose second porcelain field is retire, plus every cache row and the gate's own residue. It defers to the sweep's retire flag, so the gate and lane-worktrees sweep never disagree about what is the lane's to retire.
On #169's base (45fa45d), branch_items emits a branch named by an OPEN pull request as keep with retire=False, whoever owns it. So a lane whose only leftover is a local branch of its own with an open PR ends cleanly.
The in-flight guard already holds a lane whose log has an open OPENED. A lane that posted its PR through lanes-edit.sh log OPENED cannot end until LANDED/CLOSED (or --force).
The question for the lane owner
Should a lane-owned branch whose open PR has every commit on origin hold lane-end?
If yes, the porcelain wants an owner field, or a retire value for it, and lane-end needs no parsing of its own.
Activity
lane-worktrees add now deletes a branch it made only while that branc…