Skip to content

Phase 1: Stop New Label Prefix Violations (2-3 hrs)Β #2283

Description

@ashleyshaw

Overview

This is Phase 1 of the label-prefix-enforcement-2026-08-05 project. This phase MUST be completed TODAY to prevent new label violations.

Status: πŸ”΄ CRITICAL β€” Blocks Phase 2–5
Priority: Highest
Duration: 2–3 hours
Related Project: label-prefix-enforcement-2026-08-05


What This Phase Does

Stops new label prefix violations by:

  1. Delete defective code in scripts/agents/includes/labeling-agent.js
  2. Update governance documents to reflect fix
  3. Verify that no further bare labels can be created

Root Cause

The labeling agent script applies bare labels (e.g., bug, feature) without required family prefixes (e.g., type:bug, type:feature). This must be removed immediately.

File: scripts/agents/includes/labeling-agent.js


Deliverables

  • Delete defective labeling code from scripts/agents/includes/labeling-agent.js
  • Update .github/labels.yml governance document with fix notes
  • Update CLAUDE.md label creation rules section
  • Test: Verify labeling agent now enforces prefixes only
  • Create PR for Phase 1 completion
  • Merge PR and verify CI green

Timeline

  • Start: 2026-08-21 (after approval)
  • Target Completion: 2026-08-21 (same day, 2–3 hours)
  • Next Phase Unblocks: Phase 2 (fix existing ~100 issues)

Acceptance Criteria

βœ… Defective code removed from labeling agent
βœ… No bare labels can be created by any script
βœ… Governance documents updated
βœ… PR created and merged
βœ… CI green on main branch


Related Issues

  • Phase 2: #1604 β€” Fix Existing Label Prefix Violations (24-48 hrs)
  • Phase 3: #1605 β€” Enforce Label Validation (3-5 days)
  • Audit Report: #1592 β€” Label Prefix Governance Enforcement

Notes

This is the blocking first step. Do not proceed to Phase 2 until this issue is closed.

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