Cover stacked PRs and stale skill copies in the dev-work flow #311
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!311
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/dev-work-stacked-prs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two gaps found while merging #308–#310.
Stacked PRs
Squash is the only merge method enabled (
allow_merge_commit: false,allow_rebase_merge: false), so a branch carrying two separable commits collapses into onemaincommit. Every existingmaincommit is one focused change with its own(#N); collapsing two loses that.The doc said nothing about it, so the split has to be reinvented each time. Now records the land-oldest-first procedure: branch the first commit off, merge it,
git fetch origin main:main, rebase (the merged commit drops out as an empty cherry-pick), verifygit diff --stat mainshows only the remainder, then force-with-lease and PR that.Includes the guard against over-splitting — a fix plus its test is one change, not two.
Stale copies of this file
#307fixed the merge step while a session was already running. That session had read the old text at startup, only pulled the fix in at a later rebase, and never re-read it — then passed--delete-branchtwice, the exact flag the new text forbids. Both#308and#309stranded the worktree onmainas a result.The failure mode is structural, not incidental: the copy in context is always the one read first, and workflow fixes land on
mainprecisely because someone hit the problem. Now says to re-read after any rebase that pulls new commits, and before the PR/merge phase specifically.Notes
--squashand no--delete-branch, per the section this touches.