intent-driven-template icon indicating copy to clipboard operation
intent-driven-template copied to clipboard

openspec-git-discipline behaves poorly when developing with a protected main branch

Open dclements opened this issue 3 weeks ago • 0 comments

If you are working on a project with a protected main branch you will basically never be committing directly to main, but the skill expects things to not only pass through main but—for the purposes of archive—you to be on main when it is run. This flow also does not play nicely with other git development methodologies (e.g., gitflow, or a lot of PR-driven development), despite that otherwise the intent driven development patterns should work fine otherwise.

To break down the problem, at the moment in order to work with the gates in this skill you need to:

  1. Create a proposal.
  2. Check in that proposal in a branch.
  3. Create a PR for that proposal
  4. Get that proposal merged into the main branch specifically
  5. Sync the main branch.
  6. Create another branch to do the work.
  7. Create a PR for it.
  8. Get that PR merged into the main branch.
  9. Sync the main branch.
  10. In the main branch specifically archive it.
  11. Move the changes to a new branch.
  12. Create a PR for that new branch.
  13. Get that new PR merged into main.

dclements avatar Nov 07 '26 00:11 dclements