Cover stacked PRs and stale skill copies in the dev-work flow #311

Merged
nelsong6 merged 1 commit from claude/dev-work-stacked-prs into main 2026-08-08 23:45:53 -07:00
nelsong6 commented 2026-08-08 23:45:44 -07:00 (Migrated from github.com)

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 one main commit. Every existing main commit 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), verify git diff --stat main shows 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

#307 fixed 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-branch twice, the exact flag the new text forbids. Both #308 and #309 stranded the worktree on main as a result.

The failure mode is structural, not incidental: the copy in context is always the one read first, and workflow fixes land on main precisely 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

  • Doc-only change. No code, no build, no reload.
  • Merged with --squash and no --delete-branch, per the section this touches.
Two gaps found while merging [#308](https://github.com/romaine-life/spirelens/pull/308)–[#310](https://github.com/romaine-life/spirelens/pull/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 one `main` commit. Every existing `main` commit 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), verify `git diff --stat main` shows 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 `#307` fixed 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-branch` twice, the exact flag the new text forbids. Both `#308` and `#309` stranded the worktree on `main` as a result. The failure mode is structural, not incidental: the copy in context is always the one read first, and workflow fixes land on `main` precisely 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 - Doc-only change. No code, no build, no reload. - Merged with `--squash` and no `--delete-branch`, per the section this touches.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!311
No description provided.