Skip to content

Branch Naming Strategy — Constitution Principle V Implementation #3365

Description

@ashleyshaw

Summary

Complete alignment of branch naming strategy with Constitution Principle V, enforcing all 38 authorized branch types across all validation layers, documentation, governance files, and automation systems.

Scope

This task consolidates the implementation work for the Branch Naming Strategy & Enforcement feature (Spec 004), specifically Phase 4 (Documentation & Compliance) completion.

Deliverables

✅ Documentation Updates:

  • docs/BRANCHING_STRATEGY.md — Fixed type count (24→38), corrected validation regex
  • CHANGELOG.md — Added comprehensive Constitution alignment entry
  • instructions/branch-naming.instructions.md — Verified complete with all 38 types

✅ Validation Layer Updates:

  • lib/validate-branch-name.js — Updated to include all 38 types
  • .github/branch-types.yml — Added 13 missing type-to-template mappings
  • .github/workflows/branch-name-validation.yml — Updated PR failure messages

✅ Governance Alignment:

  • CLAUDE.md — Verified correct branch naming section
  • AGENTS.md — References 38 types per Constitution
  • agents/pr-creation.agent.md — Added branch naming requirements section
  • agents/release.agent.md — Updated to proper syntax (hyphens, not dots)

✅ Infrastructure Verification:

  • lib/hooks/pre-push — Validates all 38 types locally
  • GitHub Actions workflows — Remote validation operational
  • CLI validation — npm run validate:branch-name functional

All 38 Authorized Types

Core (14): feat, fix, hotfix, release, refactor, chore, task, doc, docs, test, perf, ci, build, deps

Security & Quality (6): security, design, a11y, ux, i18n, ops

Specialized (18): proto, ds, api, schema, telemetry, content, seo, config, migrate, qa, uat, audit, codex, revert, research, aiops, automation, epic

Validation

  • ✅ All 38 types documented and enforced
  • ✅ Local Git hook validation working
  • ✅ Remote GitHub Actions validation working
  • ✅ CLI validation functional
  • ✅ PR template routing correct
  • ✅ Label automation correct
  • ✅ No breaking changes

Related Specification

  • Specification: .github/specs/004-branch-naming-strategy/spec.md
  • Tasks: .github/specs/004-branch-naming-strategy/tasks.md (Phase 4 complete: T049-T061)
  • Pull Request: #3353

Definition of Done

  • All 38 branch types enforced in validation
  • Documentation updated and verified
  • Governance files aligned with Constitution
  • Git hooks operational
  • GitHub Actions workflows validated
  • Agent specifications updated
  • PR template routing verified
  • Label automation verified
  • CHANGELOG entry added
  • No breaking changes introduced
  • Code review approved
  • CI checks passing

Notes

Constitution Principle V is non-negotiable. The 38 authorized branch types must be enforced consistently across all validation layers, documentation, and automation to prevent downstream failures in PR template routing, GitHub Actions workflows, and labeling systems.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions