Skip to content

docs: add feature branch hygiene rules for multi-agent workflows#21

Merged
JordanChoo merged 2 commits into
mainfrom
docs/feature-branch-hygiene
Feb 17, 2026
Merged

docs: add feature branch hygiene rules for multi-agent workflows#21
JordanChoo merged 2 commits into
mainfrom
docs/feature-branch-hygiene

Conversation

@JordanChoo
Copy link
Copy Markdown
Owner

@JordanChoo JordanChoo commented Feb 17, 2026

Summary

  • Added draft PR creation immediately when a feature branch is first pushed, for live merge status visibility
  • Added merge origin/main before implementation (session start) and before final push (session end)
  • Changed Phase 3 from gh pr create to gh pr ready (convert existing draft PR)
  • Added 3 new Critical Rules: merge-main at session boundaries, draft PR requirement, DIRTY-status-first-priority

Context

Feature branches in multi-agent workflows were diverging from main over days/weeks, causing all PRs to show DIRTY (conflicted) merge status. These changes ensure branches stay synchronized with main through regular merge-main bookends, and draft PRs provide early warning when conflicts arise.

Test plan

  • Review AGENTS.md diff for correctness
  • Verify Phase 2 flow: worktree → push → draft PR → task beads → merge main → implement
  • Verify Phase 3 flow: cleanup → push → close epic → gh pr ready
  • Verify Landing the Plane step 6: commit → merge main → push
  • Verify 3 new critical rules are present

🤖 Generated with Claude Code

JordanChoo and others added 2 commits February 16, 2026 21:09
Add merge-main bookends (session start + end), draft PR requirement,
branch lifetime guidance, and 3 new critical rules to prevent feature
branches from diverging and accumulating merge conflicts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JordanChoo JordanChoo merged commit 0263629 into main Feb 17, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant