cyberneticlibrary

Auto-merge work items to production

ship-itemworkflowsetup L40
monkey1sai/AI-BIM-governance
What it does

buffered ship cycle with reviewer hold gate

Best for

automated production merge gate with adversarial reviewer integration and carry-forward tracking

Inputs
  • · { branch, prNumber (optional), userFacing (boolean) }
Outputs
  • · { merged, prNumber, mergeCommit, heldReason }
Requires
  • · agent() executor (full cycle)
  • · git commit/push
  • · gh pr create/checks/merge
  • · gh api (review/comments)
Preconditions
  • · work item complete on branch
  • · authority: .claude/workflows/ship-item.md
  • · reviewer buffer ~90-120s before gate
Failure modes
  • · carry-forward substantive P1/P2 not resolved across push
  • · worktree remove attempted on primary checkout (danger)
Trust signals
  • · step 9 carry-forward list persists across pushes
  • · step 8 three-source reviewer query (inline + PR-level + issue comments)
  • · step 10 worktree guard prevents primary checkout deletion