Enforce branch naming convention: {ticket_number}-{purpose} #129
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Lineage
plan-pal-e-agency→ Process enforcementType
Task
Repo
forgejo_admin/claude-customUser Story
As a platform operator
I want branches named
{ticket_number}-{purpose}(e.g.,189-fix-westside-harbor-auth)So that I can trace any branch or PR back to its board ticket at a glance
Context
Currently branch names are ad-hoc — some use issue numbers, some use descriptions, some use both inconsistently. With the new ticket-first workflow (board item → review → Forgejo issue → agent dispatch), every branch should trace back to its board ticket number. This makes it trivial to verify process compliance: see a branch, see its ticket, see its review.
The convention:
{board_item_id}-{kebab-case-purpose}or{forgejo_issue_number}-{kebab-case-purpose}.Examples:
189-fix-westside-harbor-auth111-keycloak-probe-networkpolicy115-remove-capacitor-devFile Targets
~/claude-custom/hooks/— possible validation hook on branch creation (label-on-branch.sh already fires on branch events)skill-create-issuein pal-e-docs — update to include branch naming in the issue specagent-spawn-conventionsin pal-e-docs — update to mandate branch naming when agents are dispatchedconvention-agent-designin pal-e-docs — add branch naming to agent workflow conventionsFiles NOT to touch:
Acceptance Criteria
Test Expectations
git branch -aon any repo shows convention-compliant names for new branchesConstraints
Checklist
Related
pal-e-agency— projectagent-spawn-conventions— agent dispatch SOPsop-board-workflow— board workflow that produces the ticket numberstemplate-ticket— ticket template (traceability triangle)Scope Review: NEEDS_REFINEMENT
Review note:
review-198-2026-03-27Ticket is well-scoped and nearly ready — two fixable gaps in template compliance and traceability.
### Typeheader — Should be "Task" per template-issue (convention documentation work, no code).arch:label on board item #198 — Recommendarch:conventionsto complete the traceability triangle.Key finding: The branch naming convention already exists in practice across 6+ hooks and skills (
forgejo-helper.sh,board-item-on-merge.sh,check-issue.sh,label-on-pr.sh,skill-implement-phase,skill-review-pr). The work here is consolidation and formalization intoagent-spawn-conventionsandskill-create-issue, not invention. All file targets verified and valid.Optional: Clarify whether deliverable is a new
convention-branch-namingnote or updates to existing notes only.Scope Review Corrections Needed
From
review-198-2026-03-27:Fix 1: Add
### Typeheader — should beTask(documentation/convention work, no code file targets).Fix 2: Board label corrected: added
arch:conventions(done).Research finding: The
{issue-num}-{description}convention already exists in practice across 6+ hooks (forgejo-helper.sh:219,board-item-on-merge.sh:8,check-issue.sh:133-145,label-on-pr.sh:45,skill-implement-phasestep 5). This is consolidation work, not invention.Once fixed → READY for next_up.
Issue body updated per scope review corrections.