Skip to content

epic: branch-governance - Enforce branch lifecycle rules and AI guardrails #897

Open

Description

@ashleyshaw

title: "Branch Governance Hardening Epic"
description: "Epic proposal for enforcing branch lifecycle rules, GitHub rulesets, and AI branch-selection guardrails."
file_type: "documentation"
version: "1.0.0"
last_updated: "2026-06-03"
created_date: "2026-06-03"
authors: ["LightSpeed Team"]
maintainer: "LightSpeed Team"
license: "GPL-3.0"
tags: ["epic", "branching", "governance", "rulesets"]
domain: "governance"
stability: "experimental"
status: "draft"

Branch Governance Hardening Epic

Problem

The repo already documents branch naming, merge discipline, and deletion
expectations. That guidance does not stop an AI or a human from reusing a work
branch, skipping the intended branch type, or continuing a new batch on an old
branch. The policy needs to be enforced where the repo can actually check it.

Goal

Convert branch policy from prose into enforceable controls:

  • GitHub rulesets and branch protections
  • workflow checks that validate branch state
  • AI branch-selection guardrails that require explicit intent
  • tests and rollout controls that keep the policy from drifting

Non-goals

  • redesigning the branching model from scratch
  • removing develop from the delivery flow
  • changing the team's preferred merge strategy

Acceptance Criteria

  • branch protection and ruleset coverage is defined for the protected branches
  • the workflow layer blocks invalid branch names and reused batch branches
  • AI-facing instructions require explicit branch choice and current-state checks
  • tests prove the rules fire before a bad branch can be used
  • the rollout plan explains how to extend the guardrails to later batches

Child Issues

  1. GitHub rulesets and branch protection
  2. Workflow branch validation and reuse prevention
  3. AI branch-selection guardrails
  4. Validation tests and rollout controls

Definition of Ready (DoR)

  • Epic vision and scope clearly defined
  • Success criteria and measurable outcomes documented
  • High-level tasks/stories identified
  • Dependencies and risks mapped
  • Timeline and resource estimates provided
  • Stakeholder alignment confirmed

Definition of Done (DoD)

  • All child issues/stories completed
  • Epic acceptance criteria met
  • Epic documentation and summary updated
  • Release notes and announcement prepared
  • Post-launch monitoring and support plan in place
  • Retrospective completed (if applicable)

Activity

  1. linear-code commented on Jun 8, 2026

    @linear-code
  2. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    ✅ Template check passed after update. Thanks for fixing the issue body.

  3. ashleyshaw commented on Jun 8, 2026

    @ashleyshaw
    MemberAuthor

    Project archive sync: the Branch Governance Hardening project pack is now archived at .github/projects/archived/branch-governance-hardening-2026-06-08.

    The archived issue register is the canonical mapping for this chain and has been updated to reflect closed status across #897-#901.

  4. ashleyshaw commented on Jun 18, 2026

    @ashleyshaw
    MemberAuthor

    PR #915 (ops/branch-governance-hardening) has been merged to develop (squash commit 835d72e). That PR delivered the branch governance hardening work tracked by this issue, including GitHub Ruleset JSON files, --base flag and reuse detection in validate-branch-name.js, 35-test Jest suite, and updated AGENTS.md/CLAUDE.md governance sections.


    Generated by Claude Code

  5. 7 remaining items

  6. modified the milestones: , v1.3 on Jul 22, 2026
  7. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    ⚠️ Bare Labels Detected

    This issue has labels that are not in the canonical taxonomy:

    • migrate:type:epic

    Valid Canonical Labels

    Please use labels with a prefix from the canonical taxonomy:

    • Type: type:bug, type:feature, type:task, type:documentation, etc.
    • Status: status:needs-triage, status:in-progress, status:done, etc.
    • Priority: priority:critical, priority:high, priority:normal, priority:low
    • Area: area:ci, area:docs, area:labels, area:security, etc.
    • Meta: meta:needs-changelog, meta:duplicate, meta:blocked, etc.

    For the complete list, see .github/labels.yml.

  8. changed the title [-][Epic] Branch Governance Hardening[/-] [+]epic: branch-governance - Enforce branch lifecycle rules and AI guardrails[/+] on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions