Stop the dev-work flow from camping on main #304
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!304
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/dev-work-no-main-camping"
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?
The dev-work skill told agents to check
mainout twice — "Switch to localmain, pull fast-forward only" at session start, and "Switch tomainandpull latest
origin/mainafter merge" at the end. Git allows one worktree perbranch, so the clone that follows those steps holds
mainhostage from everyother worktree.
Concrete failure:
gh pr merge --delete-branchrun from a feature worktreedies with
fatal: 'main' is already used by worktree at 'D:/repos/spirelens'.The merge has already succeeded by then, so it surfaces as a post-merge cleanup
error that reads like a failed merge. Hit this on #303.
Fix: both steps now update
mainas a ref viagit fetch origin main:main,which fast-forwards and fails loudly on divergence without checking anything
out. The start section also states the no-camping rule and the
git checkout --detachrecovery for a clone already parked there.Left alone:
internal/host/preparehost.gochecks outmainin the separateSpireLensMcp clone. That is a single-worktree repo that legitimately tracks
main, not a camping case.
Docs only; no code or behavior change, and no mod version bump.